diff options
author | Luis Lavena <luislavena@gmail.com> | 2009-01-04 16:23:36 -0200 |
---|---|---|
committer | Luis Lavena <luislavena@gmail.com> | 2009-01-04 16:23:36 -0200 |
commit | 596ff97836b9c27ae8207fadb8b7de7122d4eb3d (patch) | |
tree | 91451a6b1e57fcb6fbdd7f13acf605c115c161dd /features | |
parent | 9aec047594a82f61f7b6a0e69575b544f3a63d9f (diff) | |
download | rake-compiler-596ff97836b9c27ae8207fadb8b7de7122d4eb3d.tar.gz |
Use RUBY_PLATFORM to build Gem::Platform instead of #local.
This workaround issues detecting gems between VC6 and cross
compiled gems with MinGW.
Diffstat (limited to 'features')
-rw-r--r-- | features/step_definitions/gem.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/features/step_definitions/gem.rb b/features/step_definitions/gem.rb index 830cb3f..afa9ea1 100644 --- a/features/step_definitions/gem.rb +++ b/features/step_definitions/gem.rb @@ -24,6 +24,7 @@ end def gem_file_platform(folder, name, version, platform = nil) file = "#{folder}/#{name}-#{version}" - file << "-" << (platform || Gem::Platform.local.to_s) + file << "-" << (platform || Gem::Platform.new(RUBY_PLATFORM).to_s) file << ".gem" + file end |