berkshelf-api-client 1.3.1 → 2.0.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 +4 -4
- data/.travis.yml +2 -1
- data/berkshelf-api-client.gemspec +1 -1
- data/lib/berkshelf/api_client/connection.rb +1 -2
- data/lib/berkshelf/api_client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65e8fbb9b9b83ddf158230cd0130c0e26984470f
|
|
4
|
+
data.tar.gz: d79b3b50a0929fab69b6877455a932baa7ae6ca6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 443b6da19e902be0291d6a17e1c6b82d27947b220c96ba3d0da42b04820f928515e6c6f5f34ad1bdd18c8af460940b51ae8c0e501c1397b6089d50b20fbc04cb
|
|
7
|
+
data.tar.gz: 9813542db10bf9afc0546152d6b290d8c7fd00c0cb3e8c2e17fa931689db6db14f98bddccccb035ef2a141178fd258f11137b584e7fa422c4266e24e1233c320
|
data/.travis.yml
CHANGED
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
spec.summary = spec.description
|
|
21
21
|
spec.homepage = "http://berkshelf.com"
|
|
22
22
|
spec.license = "Apache 2.0"
|
|
23
|
-
spec.required_ruby_version = ">=
|
|
23
|
+
spec.required_ruby_version = ">= 2.0.0"
|
|
24
24
|
|
|
25
25
|
spec.files = `git ls-files`.split($/)
|
|
26
26
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
@@ -26,8 +26,7 @@ module Berkshelf::APIClient
|
|
|
26
26
|
# @option options [Float] :retry_interval (0.5)
|
|
27
27
|
# how long to wait (in seconds) between each retry
|
|
28
28
|
def initialize(url, options = {})
|
|
29
|
-
options =
|
|
30
|
-
open_timeout: 30, timeout: 30)
|
|
29
|
+
options = {retries: 3, retry_interval: 0.5, open_timeout: 30, timeout: 30}.merge(options)
|
|
31
30
|
@url = url
|
|
32
31
|
@retries = options.delete(:retries)
|
|
33
32
|
@retry_interval = options.delete(:retry_interval)
|
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:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jamie Winsor
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2015-10-
|
|
13
|
+
date: 2015-10-07 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: faraday
|
|
@@ -163,7 +163,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
163
163
|
requirements:
|
|
164
164
|
- - ">="
|
|
165
165
|
- !ruby/object:Gem::Version
|
|
166
|
-
version:
|
|
166
|
+
version: 2.0.0
|
|
167
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
requirements:
|
|
169
169
|
- - ">="
|