esa 1.13.0 → 1.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -2
- data/lib/esa/client.rb +2 -1
- data/lib/esa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddd1d1b2cf0a00f1ab6ea870bf5c2dc61d499e88
|
4
|
+
data.tar.gz: 46426e7ecb98ffc765a5ed321afee4d4c2cdb439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43b4770c44d00d738ebdb45722fff23fc12f9cad8fffb1f8ea1bb7227c96d857ea404dd9c209d88a7eedab686e328633e72f315435daf0ab53bafcc9a6400bca
|
7
|
+
data.tar.gz: ce019095b94ec0ae8eac10b2705740969912a67055d58dae77c4108b415a0bf9d860f87bf33c0c8156be7adb38bbc53dfd67347f7948e966367e6086646a884a
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
+
## 1.13.1 (2017-11-02)
|
2
|
+
- fix: [Fix auto sleep by fukayatsu · Pull Request #32 · esaio/esa-ruby](https://github.com/esaio/esa-ruby/pull/32)
|
3
|
+
|
1
4
|
## 1.13.0 (2017-11-01)
|
2
|
-
- **changed**: [Retry on rate limit exceeded by default](https://github.com/esaio/esa-ruby/pull/31)
|
5
|
+
- **changed**: [Retry on rate limit exceeded by default by fukayatsu · Pull Request #31 · esaio/esa-ruby](https://github.com/esaio/esa-ruby/pull/31)
|
3
6
|
- Use `Esa::Client.new(retry_on_rate_limit_exceeded: false, ...)` for previous behavior.
|
4
|
-
- doc: [Fixed README typo](https://github.com/esaio/esa-ruby/pull/30)
|
7
|
+
- doc: [Fixed README typo by polidog · Pull Request #30 · esaio/esa-ruby](https://github.com/esaio/esa-ruby/pull/30)
|
5
8
|
|
6
9
|
## 1.12.0 (2017-10-03)
|
7
10
|
- add: [Support /api/v1/comments API by ppworks · Pull Request #29 · esaio/esa-ruby](https://github.com/esaio/esa-ruby/pull/29)
|
data/lib/esa/client.rb
CHANGED
@@ -47,7 +47,7 @@ module Esa
|
|
47
47
|
raise TooManyRequestError if retry_on_rate_limit_exceeded && response.status == 429 # too_many_requests
|
48
48
|
Esa::Response.new(response)
|
49
49
|
rescue TooManyRequestError
|
50
|
-
wait_sec = response.headers['retry-after'].to_i
|
50
|
+
wait_sec = response.headers['retry-after'].to_i + 5
|
51
51
|
puts "Rate limit exceeded: will retry after #{wait_sec} seconds."
|
52
52
|
wait_for(wait_sec)
|
53
53
|
retry
|
@@ -120,6 +120,7 @@ module Esa
|
|
120
120
|
print '.'
|
121
121
|
sleep 10
|
122
122
|
end
|
123
|
+
sleep wait_sec % 10
|
123
124
|
puts
|
124
125
|
end
|
125
126
|
end
|
data/lib/esa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fukayatsu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|