ohai 0.5.8.rc.0 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'date'
5
5
  require 'spec/rake/spectask'
6
6
 
7
7
  GEM = "ohai"
8
- GEM_VERSION = "0.5.8.rc.0"
8
+ GEM_VERSION = "0.5.8"
9
9
  AUTHOR = "Adam Jacob"
10
10
  EMAIL = "adam@opscode.com"
11
11
  HOMEPAGE = "http://wiki.opscode.com/display/ohai"
@@ -20,5 +20,5 @@ require 'ohai/config'
20
20
  require 'ohai/system'
21
21
 
22
22
  module Ohai
23
- VERSION = '0.5.8.rc.0'
23
+ VERSION = '0.5.8'
24
24
  end
@@ -32,7 +32,7 @@ describe Ohai::System, "Linux plugin platform" do
32
32
  File.stub!(:exists?).with("/etc/gentoo-release").and_return(false)
33
33
  File.stub!(:exists?).with("/etc/SuSE-release").and_return(false)
34
34
  File.stub!(:exists?).with("/etc/arch-release").and_return(false)
35
- File.stub!(:exists?).with("/etc/fedora-release").and_return(false)
35
+ File.stub!(:exists?).with("/etc/system-release").and_return(false)
36
36
  end
37
37
 
38
38
  it "should require the lsb plugin" do
@@ -92,6 +92,18 @@ describe Ohai::System, "Linux plugin platform" do
92
92
  @ohai[:platform].should == "arch"
93
93
  end
94
94
  end
95
+
96
+ describe "on gentoo" do
97
+ before(:each) do
98
+ @ohai.lsb = nil
99
+ File.should_receive(:exists?).with("/etc/gentoo-release").and_return(true)
100
+ end
101
+
102
+ it "should set platform to gentoo" do
103
+ @ohai._require_plugin("linux::platform")
104
+ @ohai[:platform].should == "gentoo"
105
+ end
106
+ end
95
107
 
96
108
  describe "on redhat breeds" do
97
109
  before(:each) do
@@ -150,23 +162,23 @@ describe Ohai::System, "Linux plugin platform" do
150
162
  @ohai.lsb = nil
151
163
  File.should_receive(:exists?).with("/etc/SuSE-release").and_return(true)
152
164
  end
153
-
165
+
154
166
  it "should check for the existance of SuSE-release" do
155
167
  @ohai._require_plugin("linux::platform")
156
168
  end
157
-
169
+
158
170
  it "should set platform to suse" do
159
171
  @ohai._require_plugin("linux::platform")
160
172
  @ohai[:platform].should == "suse"
161
173
  end
162
-
174
+
163
175
  it "should read the version as 10.1 for bogus SLES 10" do
164
176
  File.should_receive(:read).with("/etc/SuSE-release").and_return("SUSE Linux Enterprise Server 10 (i586)\nVERSION = 10\nPATCHLEVEL = 1\n")
165
177
  @ohai._require_plugin("linux::platform")
166
178
  @ohai[:platform].should == "suse"
167
179
  @ohai[:platform_version].should == "10.1"
168
180
  end
169
-
181
+
170
182
  it "should read the version as 11.2" do
171
183
  File.should_receive(:read).with("/etc/SuSE-release").and_return("SUSE Linux Enterprise Server 11.2 (i586)\nVERSION = 11\nPATCHLEVEL = 2\n")
172
184
  @ohai._require_plugin("linux::platform")
metadata CHANGED
@@ -1,14 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohai
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ prerelease: false
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
8
  - 8
9
- - rc
10
- - 0
11
- version: 0.5.8.rc.0
9
+ version: 0.5.8
12
10
  platform: ruby
13
11
  authors:
14
12
  - Adam Jacob
@@ -16,7 +14,7 @@ autorequire: ohai
16
14
  bindir: bin
17
15
  cert_chain: []
18
16
 
19
- date: 2010-10-07 00:00:00 -07:00
17
+ date: 2010-10-19 00:00:00 -07:00
20
18
  default_executable:
21
19
  dependencies:
22
20
  - !ruby/object:Gem::Dependency
@@ -322,13 +320,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
322
320
  required_rubygems_version: !ruby/object:Gem::Requirement
323
321
  none: false
324
322
  requirements:
325
- - - ">"
323
+ - - ">="
326
324
  - !ruby/object:Gem::Version
327
325
  segments:
328
- - 1
329
- - 3
330
- - 1
331
- version: 1.3.1
326
+ - 0
327
+ version: "0"
332
328
  requirements: []
333
329
 
334
330
  rubyforge_project: