ridley 4.5.1 → 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +7 -0
- data/lib/ridley/resource.rb +1 -1
- data/lib/ridley/sandbox_uploader.rb +2 -2
- data/lib/ridley/version.rb +1 -1
- data/ridley.gemspec +1 -1
- data/spec/unit/ridley/connection_spec.rb +21 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 433215dfdcf7febb114b41a9f59fc061cde13bb5
|
4
|
+
data.tar.gz: cea3731e41a9aaf4632b4d9a11928461d1a29b36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46b6e1e4d07b0660b82bfd2013e509207f898a6cf8d6eed5d3d13e935e3e2e53b509c40fc76f084f73f5c5ea40c028749433805786f07c81550669edc10c3fa7
|
7
|
+
data.tar.gz: 97e62bf74323ab6989c02322e83914738af8790352732504a04482edaeec8240d46a5438e2b51255901ba730cc42c0f01a4dffceed828ba04ad2a6e8bfbe8437
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,15 @@
|
|
1
|
+
# 4.6.0
|
2
|
+
|
3
|
+
* Enhancements
|
4
|
+
* Switch from net_http to httpclient under the hood to add proxy support
|
5
|
+
|
1
6
|
# 4.5.0
|
7
|
+
|
2
8
|
* Enhancements
|
3
9
|
* Add support for chef server universe endpoint
|
4
10
|
|
5
11
|
# 4.4.3
|
12
|
+
|
6
13
|
* updating httpclient version dep to ~> 2.7
|
7
14
|
|
8
15
|
# 4.4.2
|
data/lib/ridley/resource.rb
CHANGED
@@ -74,7 +74,7 @@ module Ridley
|
|
74
74
|
'Content-Type' => 'application/x-binary',
|
75
75
|
'content-md5' => calculated_checksum
|
76
76
|
}
|
77
|
-
|
77
|
+
|
78
78
|
url = URI(checksum[:url])
|
79
79
|
upload_path = url.path
|
80
80
|
url.path = ""
|
@@ -92,7 +92,7 @@ module Ridley
|
|
92
92
|
c.response :chef_response
|
93
93
|
c.response :follow_redirects
|
94
94
|
c.request :chef_auth, self.client_name, self.client_key
|
95
|
-
c.adapter :
|
95
|
+
c.adapter :httpclient
|
96
96
|
end.put(upload_path, io.read, headers)
|
97
97
|
rescue Ridley::Errors::HTTPError => ex
|
98
98
|
abort(ex)
|
data/lib/ridley/version.rb
CHANGED
data/ridley.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.email = ["jamie@vialstudios.com", "kallan@riotgames.com"]
|
7
7
|
s.description = %q{A reliable Chef API client with a clean syntax}
|
8
8
|
s.summary = s.description
|
9
|
-
s.homepage = "https://github.com/
|
9
|
+
s.homepage = "https://github.com/berkshelf/ridley"
|
10
10
|
s.license = "Apache 2.0"
|
11
11
|
|
12
12
|
s.files = `git ls-files`.split($\)
|
@@ -9,6 +9,27 @@ describe Ridley::Connection do
|
|
9
9
|
described_class.new(server_url, client_name, client_key)
|
10
10
|
end
|
11
11
|
|
12
|
+
context " when proxy environment variables are set" do
|
13
|
+
subject do
|
14
|
+
described_class.new('http://0.0.0.0:8889', client_name, client_key)
|
15
|
+
end
|
16
|
+
|
17
|
+
it "fails with http_proxy set without no_proxy" do
|
18
|
+
stub_const('ENV', ENV.to_hash.merge(
|
19
|
+
'http_proxy' => 'http://i.am.an.http.proxy')
|
20
|
+
)
|
21
|
+
expect { subject.get('/nodes') }.to raise_error(SocketError)
|
22
|
+
end
|
23
|
+
|
24
|
+
it "works with http_proxy and no_proxy set" do
|
25
|
+
stub_const('ENV', ENV.to_hash.merge(
|
26
|
+
'http_proxy' => 'http://i.am.an.http.proxy',
|
27
|
+
'no_proxy' => '0.0.0.0:8889')
|
28
|
+
)
|
29
|
+
expect(subject.get('/nodes').status).to eq(200)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
12
33
|
describe "configurable retries" do
|
13
34
|
before(:each) do
|
14
35
|
stub_request(:get, "https://api.opscode.com/organizations/vialstudios").to_return(status: 500, body: "")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ridley
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Winsor
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|
@@ -409,7 +409,7 @@ files:
|
|
409
409
|
- spec/unit/ridley/resources/user_resource_spec.rb
|
410
410
|
- spec/unit/ridley/sandbox_uploader_spec.rb
|
411
411
|
- spec/unit/ridley_spec.rb
|
412
|
-
homepage: https://github.com/
|
412
|
+
homepage: https://github.com/berkshelf/ridley
|
413
413
|
licenses:
|
414
414
|
- Apache 2.0
|
415
415
|
metadata: {}
|
@@ -429,7 +429,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
429
429
|
version: '0'
|
430
430
|
requirements: []
|
431
431
|
rubyforge_project:
|
432
|
-
rubygems_version: 2.
|
432
|
+
rubygems_version: 2.2.2
|
433
433
|
signing_key:
|
434
434
|
specification_version: 4
|
435
435
|
summary: A reliable Chef API client with a clean syntax
|