os 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -1
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/os.rb +5 -0
- data/os.gemspec +5 -8
- data/spec/osx_spec.rb +1 -0
- metadata +40 -67
data/Gemfile
CHANGED
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
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.
|
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 = [
|
12
|
-
s.date = %q{2011-
|
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 = [
|
36
|
-
s.rubygems_version = %q{1.
|
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
|
data/spec/osx_spec.rb
CHANGED
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
|
-
|
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-
|
14
|
+
date: 2011-08-11 00:00:00 -06:00
|
15
|
+
default_executable:
|
20
16
|
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
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
|
-
|
86
|
-
|
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
|
-
|
95
|
-
|
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.
|
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.
|