os 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/Gemfile +1 -1
  2. data/README.rdoc +1 -1
  3. data/VERSION +1 -1
  4. data/lib/os.rb +5 -0
  5. data/os.gemspec +5 -8
  6. data/spec/osx_spec.rb +1 -0
  7. metadata +40 -67
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'rspec', ">= 2"
3
+ #gem 'rspec', ">= 2"
@@ -17,7 +17,7 @@ The OS gem allows for some easy telling if you're on windows or not.
17
17
  >> OS.posix?
18
18
  => false
19
19
 
20
- >> OS.mac?
20
+ >> OS.mac? # or OS.osx? or OS.x?
21
21
  => false
22
22
 
23
23
  >> OS.dev_null
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.3
1
+ 0.9.4
data/lib/os.rb CHANGED
@@ -120,6 +120,11 @@ class OS
120
120
  mac?
121
121
  end
122
122
 
123
+ def self.x?
124
+ mac?
125
+ end
126
+
127
+
123
128
  # amount of memory the current process "is using", in RAM
124
129
  # (doesn't include any swap memory that it may be using, just that in actual RAM)
125
130
  # raises 'unknown' on jruby currently
data/os.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{os}
8
- s.version = "0.9.2"
8
+ s.version = "0.9.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{rdp}, %q{David McCullars}]
12
- s.date = %q{2011-06-09}
11
+ s.authors = ["rdp", "David McCullars"]
12
+ s.date = %q{2011-08-11}
13
13
  s.description = %q{The OS gem allows for some useful and easy functions, like OS.windows? (=> true or false) OS.bits ( => 32 or 64) etc"}
14
14
  s.email = %q{rogerpack2005@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -32,22 +32,19 @@ Gem::Specification.new do |s|
32
32
  "spec/spec_helper.rb"
33
33
  ]
34
34
  s.homepage = %q{http://github.com/rdp/os}
35
- s.require_paths = [%q{lib}]
36
- s.rubygems_version = %q{1.8.2}
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = %q{1.7.2}
37
37
  s.summary = %q{Simple and easy way to know if you're on windows or not (reliably), as well as how many bits the OS is, etc.}
38
38
 
39
39
  if s.respond_to? :specification_version then
40
40
  s.specification_version = 3
41
41
 
42
42
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
- s.add_runtime_dependency(%q<rspec>, [">= 2"])
44
43
  s.add_development_dependency(%q<rspec>, [">= 2.0"])
45
44
  else
46
- s.add_dependency(%q<rspec>, [">= 2"])
47
45
  s.add_dependency(%q<rspec>, [">= 2.0"])
48
46
  end
49
47
  else
50
- s.add_dependency(%q<rspec>, [">= 2"])
51
48
  s.add_dependency(%q<rspec>, [">= 2.0"])
52
49
  end
53
50
  end
@@ -13,6 +13,7 @@ describe 'For OSX (Snow Leopard, 10.6),' do
13
13
  subject { OS } # class, not instance
14
14
 
15
15
  it { should be_mac }
16
+ it { should be_x } # OS.x?
16
17
  it { should be_osx }
17
18
  it { should be_posix }
18
19
 
metadata CHANGED
@@ -1,52 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: os
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 9
9
- - 3
10
- version: 0.9.3
5
+ version: 0.9.4
11
6
  platform: ruby
12
7
  authors:
13
- - rdp
14
- - David McCullars
8
+ - rdp
9
+ - David McCullars
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
13
 
19
- date: 2011-06-27 00:00:00 Z
14
+ date: 2011-08-11 00:00:00 -06:00
15
+ default_executable:
20
16
  dependencies:
21
- - !ruby/object:Gem::Dependency
22
- type: :runtime
23
- prerelease: false
24
- name: rspec
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 7
31
- segments:
32
- - 2
33
- version: "2"
34
- requirement: *id001
35
- - !ruby/object:Gem::Dependency
36
- type: :development
37
- prerelease: false
38
- name: rspec
39
- version_requirements: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 2
47
- - 0
48
- version: "2.0"
49
- requirement: *id002
17
+ - !ruby/object:Gem::Dependency
18
+ name: rspec
19
+ version_requirements: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "2.0"
25
+ requirement: *id001
26
+ prerelease: false
27
+ type: :development
50
28
  description: The OS gem allows for some useful and easy functions, like OS.windows? (=> true or false) OS.bits ( => 32 or 64) etc"
51
29
  email: rogerpack2005@gmail.com
52
30
  executables: []
@@ -54,22 +32,23 @@ executables: []
54
32
  extensions: []
55
33
 
56
34
  extra_rdoc_files:
57
- - README.rdoc
35
+ - README.rdoc
58
36
  files:
59
- - .autotest
60
- - .document
61
- - Gemfile
62
- - Gemfile.lock
63
- - README.rdoc
64
- - Rakefile
65
- - VERSION
66
- - autotest/discover.rb
67
- - lib/os.rb
68
- - os.gemspec
69
- - spec/linux_spec.rb
70
- - spec/os_spec.rb
71
- - spec/osx_spec.rb
72
- - spec/spec_helper.rb
37
+ - .autotest
38
+ - .document
39
+ - Gemfile
40
+ - Gemfile.lock
41
+ - README.rdoc
42
+ - Rakefile
43
+ - VERSION
44
+ - autotest/discover.rb
45
+ - lib/os.rb
46
+ - os.gemspec
47
+ - spec/linux_spec.rb
48
+ - spec/os_spec.rb
49
+ - spec/osx_spec.rb
50
+ - spec/spec_helper.rb
51
+ has_rdoc: true
73
52
  homepage: http://github.com/rdp/os
74
53
  licenses: []
75
54
 
@@ -77,29 +56,23 @@ post_install_message:
77
56
  rdoc_options: []
78
57
 
79
58
  require_paths:
80
- - lib
59
+ - lib
81
60
  required_ruby_version: !ruby/object:Gem::Requirement
82
61
  none: false
83
62
  requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
- version: "0"
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
90
66
  required_rubygems_version: !ruby/object:Gem::Requirement
91
67
  none: false
92
68
  requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- hash: 3
96
- segments:
97
- - 0
98
- version: "0"
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: "0"
99
72
  requirements: []
100
73
 
101
74
  rubyforge_project:
102
- rubygems_version: 1.8.5
75
+ rubygems_version: 1.5.1
103
76
  signing_key:
104
77
  specification_version: 3
105
78
  summary: Simple and easy way to know if you're on windows or not (reliably), as well as how many bits the OS is, etc.