ohai 7.2.0.rc.2 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d1436bcd73ef60c3c794bdf276c0b572e757455
4
- data.tar.gz: b767aa0d9791d62f002005b904c2115585ce4139
3
+ metadata.gz: 8f5021abfe73ff336fe9486ae97057693bf26393
4
+ data.tar.gz: 5071190fbdfb48ac7f082ad9414c11ef2e4d3258
5
5
  SHA512:
6
- metadata.gz: aced95949e6cb8df985e11c345dfba4a73f30a222fd06be5d250bcb36d69fa96c9566394a2bf3b4d6379ff765d307888d5765a61aaf648864af593f181ef7ef8
7
- data.tar.gz: 82b6fa1453d0352261468a31e23af6a5a047ef681da5db209c4b49bbf87dcf3f5e17a352d9bf5308d67e1e207797bb60b8b3e8be386db482b2bef592e3373fd3
6
+ metadata.gz: b8c615bbf2ac0859d6d5880e8c3189abca58270a0e115ce364a443e9f7d34c3b36b9ef679f67d0788501c6d4cb4b0c002cd00dc80fca57229db462f88d264056
7
+ data.tar.gz: 92dc7cdb0928b81d0695bf2298725fe50887d85c81129c1c765790ca0ca72f6e2069913f2914744f61135e356f1b62eff4372c6f15b21b81b92ce4f7898724b0
@@ -17,7 +17,7 @@
17
17
  # limitations under the License.
18
18
  #
19
19
 
20
- require 'ffi_yajl'
20
+ require 'ffi_yajl/json_gem'
21
21
 
22
22
  module Ohai
23
23
  module Hints
@@ -22,10 +22,10 @@ Ohai.plugin(:Kernel) do
22
22
  collect_data(:aix) do
23
23
  kernel Mash.new
24
24
 
25
- kernel[:name] = shell_out("uname -s").stdout.downcase
26
- kernel[:release] = shell_out("uname -r").stdout
27
- kernel[:version] = shell_out("uname -v").stdout
28
- kernel[:machine] = shell_out("uname -p").stdout
25
+ kernel[:name] = shell_out("uname -s").stdout.split($/)[0].downcase
26
+ kernel[:release] = shell_out("uname -r").stdout.split($/)[0]
27
+ kernel[:version] = shell_out("uname -v").stdout.split($/)[0]
28
+ kernel[:machine] = shell_out("uname -p").stdout.split($/)[0]
29
29
  kernel[:modules] = Mash.new
30
30
  end
31
31
  end
@@ -29,7 +29,7 @@ require 'ohai/provides_map'
29
29
  require 'ohai/hints'
30
30
  require 'mixlib/shellout'
31
31
 
32
- require 'ffi_yajl'
32
+ require 'ffi_yajl/json_gem'
33
33
 
34
34
  module Ohai
35
35
  class System
@@ -18,5 +18,5 @@
18
18
 
19
19
  module Ohai
20
20
  OHAI_ROOT = File.expand_path(File.dirname(__FILE__))
21
- VERSION = '7.2.0.rc.2'
21
+ VERSION = '7.2.0'
22
22
  end
@@ -24,6 +24,8 @@ describe Ohai::System, "plugin ec2" do
24
24
  before(:each) do
25
25
  @plugin = get_plugin("ec2")
26
26
  @plugin[:network] = {:interfaces => {:eth0 => {} } }
27
+ File.stub(:exist?).with('/etc/chef/ohai/hints/ec2.json').and_return(false)
28
+ File.stub(:exist?).with('C:\chef\ohai\hints/ec2.json').and_return(false)
27
29
  end
28
30
 
29
31
  shared_examples_for "!ec2" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohai
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.0.rc.2
4
+ version: 7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-02 00:00:00.000000000 Z
11
+ date: 2014-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: ffi-yajl
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '1.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mixlib-cli
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -521,9 +521,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
521
521
  version: '0'
522
522
  required_rubygems_version: !ruby/object:Gem::Requirement
523
523
  requirements:
524
- - - ">"
524
+ - - ">="
525
525
  - !ruby/object:Gem::Version
526
- version: 1.3.1
526
+ version: '0'
527
527
  requirements: []
528
528
  rubyforge_project:
529
529
  rubygems_version: 2.2.2