diff options
author | Carl Lerche <carllerche@mac.com> | 2010-01-31 18:02:02 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-01-31 18:02:02 -0800 |
commit | 32e72a45581d47466f2013659675bb427a5daf93 (patch) | |
tree | 8bc32ac2b9df5e64ff840e0408fac17e27fc2245 /spec/support/platforms.rb | |
parent | 7c15c17dc4680cbb8a367eb7aa605b072cf6d3d5 (diff) | |
download | bundler-32e72a45581d47466f2013659675bb427a5daf93.tar.gz |
Pick the correct platform when installing gems
Diffstat (limited to 'spec/support/platforms.rb')
-rw-r--r-- | spec/support/platforms.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/support/platforms.rb b/spec/support/platforms.rb new file mode 100644 index 00000000..2598488b --- /dev/null +++ b/spec/support/platforms.rb @@ -0,0 +1,15 @@ +module Spec + module Platforms + def rb + Gem::Platform::RUBY + end + + def java + Gem::Platform.new [nil, "java", nil] + end + + def linux + Gem::Platform.new ['x86', 'linux', nil] + end + end +end
\ No newline at end of file |