Platform 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/platform.rb +9 -3
  2. metadata +5 -3
@@ -50,14 +50,18 @@ module Platform
50
50
  [ /linux/i, :unix, :linux ],
51
51
  [ /freebsd/i, :unix, :freebsd ],
52
52
  [ /netbsd/i, :unix, :netbsd ],
53
+ [ /mswin/i, :win32, :mswin ],
53
54
  [ /cygwin/i, :hybrid, :cygwin ],
54
55
  [ /mingw/i, :win32, :mingw ],
55
56
  [ /bccwin/i, :win32, :bccwin ],
57
+ [ /wince/i, :win32, :wince ],
56
58
  [ /vms/i, :vms, :vms ],
57
59
  [ /os2/i, :os2, :os2 ],
58
- [ /.*/, :unknwon, :unknown ]
60
+ [ /solaris/i, :unix, :solaris ],
61
+ [ /irix/i, :unix, :irix ],
62
+ [ /.*/, :unknown, :unknown ]
59
63
  ]
60
- x, OS, IMPL = PLATFORMS.find { |p| RUBY_PLATFORM =~ /#{p[0]}/ }
64
+ (*), OS, IMPL = PLATFORMS.find { |p| RUBY_PLATFORM =~ /#{p[0]}/ }
61
65
 
62
66
  # What about AMD, Turion, Motorola, etc..?
63
67
  ARCHS = [
@@ -65,9 +69,11 @@ module Platform
65
69
  [ /ia64/, :ia64 ],
66
70
  [ /powerpc/, :powerpc ],
67
71
  [ /alpha/, :alpha ],
72
+ [ /sparc/i, :sparc ],
73
+ [ /mips/i, :mips ],
68
74
  [ /.*/, :unknown ]
69
75
  ]
70
- x, ARCH = ARCHS.find { |a| RUBY_PLATFORM =~ /#{a[0]}/}
76
+ (*), ARCH = ARCHS.find { |a| RUBY_PLATFORM =~ /#{a[0]}/}
71
77
 
72
78
  end
73
79
 
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.10
2
+ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: Platform
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.0
7
- date: 2005-06-29
6
+ version: 0.4.0
7
+ date: 2005-12-02 00:00:00 +00:00
8
8
  summary: Hopefully robust platform sensing
9
9
  require_paths:
10
10
  - lib
@@ -24,6 +24,8 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
24
24
  version: 0.0.0
25
25
  version:
26
26
  platform: ruby
27
+ signing_key:
28
+ cert_chain:
27
29
  authors:
28
30
  - Matt Mower
29
31
  files: