ohai 13.12.4 → 13.12.6

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
  SHA256:
3
- metadata.gz: a41edda21a06898377a46f64d60114fd881760976a7410142f2edc8da1db5720
4
- data.tar.gz: c912b6aff14cb52b866353fd63ecc57e52fcf0cacf4a5a6854f26c8dc0f474ba
3
+ metadata.gz: c2169a6aec003fe099183763483cfd37d07dcf5dc2851c88e007319ab6ec6f64
4
+ data.tar.gz: c238454b9d6d1516200adab45a351f89a4b5115ab27bddfe8bccd0c0bf3f1fa4
5
5
  SHA512:
6
- metadata.gz: a9afdaa6fbf0727f4a7da85544090b4c73e14286527c9f0bb4d0d1f2ac9c93bc2669833c3f3138604802a5ddace874ac5b6002e33abf72a719a48d71af9e62ce
7
- data.tar.gz: 9c5889f73fed85d39570fc4720c0ee2ae61814ef41624e04806fd3d3ba272b7bb05d50c0828e279452ea8a9b906427fe7b0e6f914a57ef880c2ca3d969e63fd9
6
+ metadata.gz: d48ac20acb31d3caa0b5be3df33cc4a12bcfcc3eaca0a8dd8d4e7b0ead1020c8bfc62eafae73f28c457ee3f466abf73139c6dbe336eb0aad568ac56a2dc447df
7
+ data.tar.gz: bff03881401a6faf59cc6dddc888ec47823d00641452fb53f0093d588c0a99343294ba65fd6c296a180fedb5827b56bdd1d3b939b961c22202afec157b4e3038
@@ -28,7 +28,11 @@ module Ohai
28
28
  def http_get(uri)
29
29
  conn = Net::HTTP.start(GCE_METADATA_ADDR)
30
30
  conn.read_timeout = 6
31
- conn.get(uri, initheader = { "Metadata-Flavor" => "Google" })
31
+ conn.get(uri, {
32
+ "Metadata-Flavor" => "Google",
33
+ "User-Agent" => "chef-ohai/#{Ohai::VERSION}",
34
+ }
35
+ )
32
36
  end
33
37
 
34
38
  def fetch_metadata(id = "")
@@ -18,5 +18,5 @@
18
18
 
19
19
  module Ohai
20
20
  OHAI_ROOT = File.expand_path(File.dirname(__FILE__))
21
- VERSION = "13.12.4"
21
+ VERSION = "13.12.6"
22
22
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_dependency "systemu", "~> 2.6.4"
18
18
  s.add_dependency "ffi-yajl", "~> 2.2"
19
- s.add_dependency "mixlib-cli"
19
+ s.add_dependency "mixlib-cli", "< 2.0" # 2.0 requires Ruby 2.5+
20
20
  s.add_dependency "mixlib-config", "~> 2.0"
21
21
  s.add_dependency "mixlib-log", ">= 1.7.1", "< 2.0"
22
22
  s.add_dependency "mixlib-shellout", "~> 2.0"
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: 13.12.4
4
+ version: 13.12.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-30 00:00:00.000000000 Z
11
+ date: 2019-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: systemu
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: mixlib-cli
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '2.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: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mixlib-config
57
57
  requirement: !ruby/object:Gem::Requirement