ridley 4.3.1 → 4.3.2

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: 1cdee86bd45ed367c142a0c3bd2e885316aecf0e
4
- data.tar.gz: 7a0881f4bff4e42facfbb358e0135d09d6cedaa5
3
+ metadata.gz: 4c73bbc35f580f839090a95c36596b1bdfb4b964
4
+ data.tar.gz: 4b49aefdc9fc5131405180c6d7bc5eeea7538b4d
5
5
  SHA512:
6
- metadata.gz: c88a72594451ac2f9ef18d6f3a4bd29de04b48a92e4fe602ca0871189011381b858e9b0df1f8a00ab1acf4240fc6b7a584ac2081bca9819bd7e07ff2b0c49ec7
7
- data.tar.gz: 45eb518e21ee882a5e9619b3dc010bbab3f3c91c34172fa449529f20361e133fc5d203bed1bf613cc9419df6983eb8504cc01b54b416c9f186eb0feb808cfbc4
6
+ metadata.gz: 3310169e9d3883306db759fc9b3374407bf41ccbde8e2c9f8e56c9771b0ac0483d7211537d59c9eeb54ccbec88af4743591d97308bd92130d4b2dbf80f9cc82f
7
+ data.tar.gz: 97e67adf132b721fe9f3d99faf96d4262b488b93e43f26a9e16374a71e391448cc8172e074028859d790629bb1965c90fa9f2c5ff04fd04ec27fa93c28c75de8
@@ -1,3 +1,8 @@
1
+ # 4.3.2
2
+
3
+ * Bug Fixes
4
+ * Supress warning output re: cookbook domain from httpclient
5
+
1
6
  # 4.3.1
2
7
 
3
8
  * Tighten constraint on varia_model to `~> 0.4.0`
@@ -7,6 +7,8 @@ require 'hashie'
7
7
  require 'json'
8
8
  require 'pathname'
9
9
  require 'semverse'
10
+ require 'httpclient'
11
+ require 'ridley/httpclient_ext'
10
12
 
11
13
  JSON.create_id = nil
12
14
 
@@ -0,0 +1,3 @@
1
+ require_relative 'httpclient_ext/cookie'
2
+
3
+ ::WebAgent::Cookie.send(:include, ::Ridley::HTTPClientExt::WebAgent::Cookie)
@@ -0,0 +1,13 @@
1
+ require 'httpclient/webagent-cookie'
2
+
3
+ module Ridley
4
+ module HTTPClientExt
5
+ module WebAgent
6
+ module Cookie
7
+ def domain
8
+ self.original_domain
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Ridley
2
- VERSION = "4.3.1"
2
+ VERSION = "4.3.2"
3
3
  end
@@ -17,7 +17,7 @@ describe Ridley::Connection do
17
17
  it "attempts five (5) retries by default" do
18
18
  expect {
19
19
  subject.get('organizations/vialstudios')
20
- }.to raise_error
20
+ }.to raise_error(Ridley::Errors::HTTPInternalServerError)
21
21
  expect(a_request(:get, "https://api.opscode.com/organizations/vialstudios")).to have_been_made.times(6)
22
22
  end
23
23
 
@@ -29,7 +29,7 @@ describe Ridley::Connection do
29
29
  it "attempts two (2) retries" do
30
30
  expect {
31
31
  subject.get('organizations/vialstudios')
32
- }.to raise_error
32
+ }.to raise_error(Ridley::Errors::HTTPInternalServerError)
33
33
 
34
34
  expect(a_request(:get, "https://api.opscode.com/organizations/vialstudios")).to have_been_made.times(3)
35
35
  end
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.3.1
4
+ version: 4.3.2
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: 2015-10-07 00:00:00.000000000 Z
12
+ date: 2015-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable
@@ -295,6 +295,8 @@ files:
295
295
  - lib/ridley/connection.rb
296
296
  - lib/ridley/errors.rb
297
297
  - lib/ridley/helpers.rb
298
+ - lib/ridley/httpclient_ext.rb
299
+ - lib/ridley/httpclient_ext/cookie.rb
298
300
  - lib/ridley/logger.rb
299
301
  - lib/ridley/logging.rb
300
302
  - lib/ridley/middleware.rb