yao 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yao/version.rb +1 -1
- data/test/support/restfully_accesible_stub.rb +1 -1
- data/test/yao/resources/test_hypervisor.rb +3 -3
- data/yao.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: 0f0da0f480910417b6f051cb2450f683aa387a5f2ea24d81e1c25f90129af822
|
4
|
+
data.tar.gz: 10784d983ea85ebfa79559fea9f93912d0f498e92b0bf65577b60b869846102d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 309cb837c30b9b7f6a68ec6af32b086bb1fce9d8ed0b668f53699ffe8fefd35be6e48082c0184ae8c8e637a70f920aa73bbc34361a3b8a2a2ca2d0739418dc2d
|
7
|
+
data.tar.gz: 29ec510260386b7dc2d568368db6dfd9c49f849b725b6d290c72573a103248ae13cc2be67e2be891ae4b9ba999c384cbd41c73148baa93672702b1735fe8681c
|
data/lib/yao/version.rb
CHANGED
@@ -20,6 +20,6 @@ module RestfullAccessibleStub
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def request_headers
|
23
|
-
{'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>
|
23
|
+
{'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>"Faraday v#{Faraday::VERSION}"}
|
24
24
|
end
|
25
25
|
end
|
@@ -14,7 +14,7 @@ class TestHypervisor < Test::Unit::TestCase
|
|
14
14
|
|
15
15
|
def test_list_detail
|
16
16
|
stub_request(:get, "https://example.com:12345/os-hypervisors/detail")
|
17
|
-
.with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>
|
17
|
+
.with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>"Faraday v#{Faraday::VERSION}"})
|
18
18
|
.to_return(
|
19
19
|
status: 200,
|
20
20
|
body: <<-JSON,
|
@@ -33,7 +33,7 @@ class TestHypervisor < Test::Unit::TestCase
|
|
33
33
|
|
34
34
|
def test_statistics
|
35
35
|
stub_request(:get, "https://example.com:12345/os-hypervisors/statistics")
|
36
|
-
.with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>
|
36
|
+
.with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>"Faraday v#{Faraday::VERSION}"})
|
37
37
|
.to_return(
|
38
38
|
status: 200,
|
39
39
|
body: <<-JSON,
|
@@ -63,7 +63,7 @@ class TestHypervisor < Test::Unit::TestCase
|
|
63
63
|
|
64
64
|
def test_uptime
|
65
65
|
stub_request(:get, "https://example.com:12345/os-hypervisors/1/uptime")
|
66
|
-
.with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>
|
66
|
+
.with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>"Faraday v#{Faraday::VERSION}"})
|
67
67
|
.to_return(
|
68
68
|
status: 200,
|
69
69
|
body: <<-JSON,
|
data/yao.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_dependency "json"
|
21
|
-
spec.add_dependency "faraday"
|
21
|
+
spec.add_dependency "faraday"
|
22
22
|
spec.add_dependency "faraday_middleware"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", ">= 1.10"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yao
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uchio, KONDO
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: faraday_middleware
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|