From 27c8e606cef18dd88de3998ec0b6c40efd6ee86d Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Tue, 1 Jun 2010 14:16:36 -0700 Subject: Add a first spec for cross platform bundle installs --- spec/support/platforms.rb | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'spec/support/platforms.rb') diff --git a/spec/support/platforms.rb b/spec/support/platforms.rb index 09f4dcda..18fa2331 100644 --- a/spec/support/platforms.rb +++ b/spec/support/platforms.rb @@ -1,19 +1,31 @@ module Spec module Platforms def rb - %|Gem::Platform::RUBY| + Gem::Platform::RUBY + end + + def mac + Gem::Platform.new('x86-darwin-10') end def java - %|Gem::Platform.new([nil, "java", nil])| + Gem::Platform.new([nil, "java", nil]) end def linux - %|Gem::Platform.new(['x86', 'linux', nil])| + Gem::Platform.new(['x86', 'linux', nil]) end def mswin - %|Gem::Platform.new(['x86', 'mswin32', nil])| + Gem::Platform.new(['x86', 'mswin32', nil]) + end + + def all_platforms + [rb, java, linux, mswin] + end + + def not_local + all_platforms.reject { |p| p == Gem::Platform.local } end end end \ No newline at end of file -- cgit v1.2.3