berkshelf-api-client 1.2.0.rc1 → 1.2.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 972d666efa5532ebbe7196b2a11c8c9ea27e3f10
4
- data.tar.gz: 5453edd6aa9bf491a493e222d06d905d6bf2a02d
3
+ metadata.gz: 7a9e44541db4ab5a688b5aeb1b2f16d186244c45
4
+ data.tar.gz: d9e9a8730a412cda88e63c2336d2135672bb1732
5
5
  SHA512:
6
- metadata.gz: 7b7daeef0775e166bd06209454a800550eb4e4585a4b0a835eff3a4d0c675680f5b82e63af9a6c88c35df084c222338ffe3b7f6b0e7ee7bf654ba526d8641362
7
- data.tar.gz: fb25d5c05ecb4b6a0f0eb4a6dd4b09bcf62b05d28abd1c60a90656ecb0e975320d2aa517d48c1367ed9aa8558ba44548216fe623307e2be99c9282ab8f9d1d4d
6
+ metadata.gz: 0ac8b62846c5374b4b9fb445652c76dac8c6c6f906afedeac0a29d445577fa7899a64f4d9b219ce58f4237edb0868e58e6b5162b6252bbf9698cb32b075abfdc
7
+ data.tar.gz: 48803e66e5a488d593d602cd82acf551e070b04b17bfa5354151395fe9f54855396402b960c524f631bc409d0a2d9797d86505587fbe5800c7861d5bd45bc0d5
data/Gemfile CHANGED
@@ -8,7 +8,6 @@ group :guard do
8
8
  gem 'guard-cucumber'
9
9
  gem 'guard-rspec'
10
10
  gem 'guard-spork'
11
- gem 'guard-yard'
12
11
 
13
12
  require 'rbconfig'
14
13
 
data/Guardfile CHANGED
@@ -3,10 +3,6 @@ guard 'spork' do
3
3
  watch('spec/spec_helper.rb') { :rspec }
4
4
  end
5
5
 
6
- guard 'yard', stdout: '/dev/null', stderr: '/dev/null' do
7
- watch(%r{lib/.+\.rb})
8
- end
9
-
10
6
  guard 'rspec', cli: '--color --drb --format Fuubar', all_on_start: false, all_after_pass: false do
11
7
  watch(%r{^spec/unit/.+_spec\.rb$})
12
8
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/unit/#{m[1]}_spec.rb" }
@@ -29,10 +29,10 @@ module Berkshelf::APIClient
29
29
  options = options.reverse_merge(retries: 3, retry_interval: 0.5,
30
30
  open_timeout: 3, timeout: 30)
31
31
  @url = url
32
- @retries = options[:retries]
33
- @retry_interval = options[:retry_interval]
32
+ @retries = options.delete(:retries)
33
+ @retry_interval = options.delete(:retry_interval)
34
34
 
35
- options[:builder] ||= Faraday::Builder.new do |b|
35
+ options[:builder] ||= Faraday::RackBuilder.new do |b|
36
36
  b.response :parse_json
37
37
  b.response :gzip
38
38
  b.request :retry,
@@ -46,9 +46,11 @@ module Berkshelf::APIClient
46
46
  b.adapter :net_http
47
47
  end
48
48
 
49
+ open_timeout = options.delete(:open_timeout)
50
+ timeout = options.delete(:timeout)
49
51
  super(self.url, options)
50
- @options[:open_timeout] = options[:open_timeout]
51
- @options[:timeout] = options[:timeout]
52
+ @options[:open_timeout] = open_timeout
53
+ @options[:timeout] = timeout
52
54
  end
53
55
 
54
56
  # Retrieves the entire universe of known cookbooks from the API source
@@ -1,5 +1,5 @@
1
1
  module Berkshelf
2
2
  module APIClient
3
- VERSION = "1.2.0.rc1"
3
+ VERSION = "1.2.0.rc2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: berkshelf-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.rc1
4
+ version: 1.2.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor