diff options
Diffstat (limited to 'spec/support/platforms.rb')
-rw-r--r-- | spec/support/platforms.rb | 20 |
1 files changed, 16 insertions, 4 deletions
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 |