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 +4 -4
- data/lib/ohai/mixin/gce_metadata.rb +5 -1
- data/lib/ohai/version.rb +1 -1
- data/ohai.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2169a6aec003fe099183763483cfd37d07dcf5dc2851c88e007319ab6ec6f64
|
4
|
+
data.tar.gz: c238454b9d6d1516200adab45a351f89a4b5115ab27bddfe8bccd0c0bf3f1fa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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 = "")
|
data/lib/ohai/version.rb
CHANGED
data/ohai.gemspec
CHANGED
@@ -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
|
+
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:
|
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
|