Permalink
Browse files

Use RUBY_PLATFORM to build Gem::Platform instead of #local.

This workaround issues detecting gems between VC6 and cross
compiled gems with MinGW.
  • Loading branch information...
1 parent 9aec047 commit 596ff97836b9c27ae8207fadb8b7de7122d4eb3d @luislavena luislavena committed Jan 4, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 features/step_definitions/gem.rb
@@ -24,6 +24,7 @@ def gem_file(folder, name, version)
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

0 comments on commit 596ff97

Please sign in to comment.