ridley 4.5.1 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4e00238e54e9232413052abc2f81f5ab712a2bd
4
- data.tar.gz: 69cda3ec682d77f62c716c83717b904c928efcb5
3
+ metadata.gz: 433215dfdcf7febb114b41a9f59fc061cde13bb5
4
+ data.tar.gz: cea3731e41a9aaf4632b4d9a11928461d1a29b36
5
5
  SHA512:
6
- metadata.gz: 6e3edc7d191b8d3d97874ba964158d09e0451ced2a61e4c48423b3c169c6ffa8909a27096b16a859de8ef71c1f7363da81237cd04cffbd57f15843ffef5b2f11
7
- data.tar.gz: 31fdbcbbf0d04f1adbcd8fc2bbfb6d335f6b465969cdd9b3a7de22c034b1c0b0aadce205016c4959f95b03dfe34848df62b94c94547445a0b027ff459749987a
6
+ metadata.gz: 46b6e1e4d07b0660b82bfd2013e509207f898a6cf8d6eed5d3d13e935e3e2e53b509c40fc76f084f73f5c5ea40c028749433805786f07c81550669edc10c3fa7
7
+ data.tar.gz: 97e62bf74323ab6989c02322e83914738af8790352732504a04482edaeec8240d46a5438e2b51255901ba730cc42c0f01a4dffceed828ba04ad2a6e8bfbe8437
@@ -15,7 +15,7 @@ cache:
15
15
  - apt
16
16
  - bundler
17
17
  dist: precise
18
-
18
+ bundler_args: --without development
19
19
  script: "bundle exec thor spec:$TEST_SUITE"
20
20
  before_install:
21
21
  - gem update --system
@@ -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
@@ -64,7 +64,7 @@ module Ridley
64
64
  # @return [Array<Object>]
65
65
  def all
66
66
  request(:get, self.class.resource_path).collect do |identity, location|
67
- new(self.class.representation.chef_id => identity)
67
+ new(self.class.representation.chef_id.to_s => identity)
68
68
  end
69
69
  end
70
70
 
@@ -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 :net_http
95
+ c.adapter :httpclient
96
96
  end.put(upload_path, io.read, headers)
97
97
  rescue Ridley::Errors::HTTPError => ex
98
98
  abort(ex)
@@ -1,3 +1,3 @@
1
1
  module Ridley
2
- VERSION = "4.5.1"
2
+ VERSION = "4.6.0"
3
3
  end
@@ -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/RiotGames/ridley"
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.5.1
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-05-13 00:00:00.000000000 Z
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/RiotGames/ridley
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.4.5.1
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