nationbuilder-rb 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/lib/nationbuilder/client.rb +3 -3
- data/nationbuilder-rb.gemspec +2 -2
- data/spec/nationbuilder_client_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dca9dd1e00384837fdbc518daae5b86c132caf28
|
4
|
+
data.tar.gz: 7ce361b2a3d47fd914fc535b067f174c79fb4975
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76daa929f2bc4e1aa76c18f02c439435e4489f9ea6a54c078ccd1d448becb7e8f05f37d366a81bc1aaf37e71050531f49875fea3a499a2cacae0447ec8c43e96
|
7
|
+
data.tar.gz: ce0c52c3f24b3081e77820334d34b63a96a69b23e5c428e43f98880a3126b85a791477f8e20865a40861bf55266828102e1eb77a055ee29ff8b6036de59ddf32
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.2
|
data/lib/nationbuilder/client.rb
CHANGED
@@ -7,8 +7,8 @@ class NationBuilder::Client
|
|
7
7
|
@base_url = opts[:base_url] || 'https://:nation_name.nationbuilder.com'
|
8
8
|
@retries = opts[:retries] || 8
|
9
9
|
|
10
|
-
if @retries <
|
11
|
-
raise '
|
10
|
+
if @retries < 0
|
11
|
+
raise 'Retries must be at least zero'
|
12
12
|
end
|
13
13
|
|
14
14
|
parsed_endpoints.each do |endpoint|
|
@@ -75,7 +75,7 @@ class NationBuilder::Client
|
|
75
75
|
raw_response = HTTPClient.send(method, url, request_args)
|
76
76
|
parsed_response = nil
|
77
77
|
|
78
|
-
@retries.times do |i|
|
78
|
+
(@retries + 1).times do |i|
|
79
79
|
begin
|
80
80
|
parsed_response = parse_response_body(raw_response)
|
81
81
|
rescue NationBuilder::RateLimitedError
|
data/nationbuilder-rb.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: nationbuilder-rb 1.2.
|
5
|
+
# stub: nationbuilder-rb 1.2.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "nationbuilder-rb"
|
9
|
-
s.version = "1.2.
|
9
|
+
s.version = "1.2.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|