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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e539e9e9dd98be681d769ee35e195c2521953f88
4
- data.tar.gz: 00565e222da28955c9a003da10cd3c1eb32ef437
3
+ metadata.gz: ddd1d1b2cf0a00f1ab6ea870bf5c2dc61d499e88
4
+ data.tar.gz: 46426e7ecb98ffc765a5ed321afee4d4c2cdb439
5
5
  SHA512:
6
- metadata.gz: a591ef1455f940ef94d2bfa2cb67bffe4fc9b746d12542b325cfd62fad072689e798a49f7449f4b0e0d081d9c8438b6ca12ca0a2c2cf14c5f067e3bcde9f6243
7
- data.tar.gz: f1dd8a14cd8313c0c8e1bb89a6633cbcb35f7a7caddf4b98e34f3a6957d85a2f02ce0c7003408248de44e0203aaa94ed33030b8dc0bf60949ab8e255ca1ae088
6
+ metadata.gz: 43b4770c44d00d738ebdb45722fff23fc12f9cad8fffb1f8ea1bb7227c96d857ea404dd9c209d88a7eedab686e328633e72f315435daf0ab53bafcc9a6400bca
7
+ data.tar.gz: ce019095b94ec0ae8eac10b2705740969912a67055d58dae77c4108b415a0bf9d860f87bf33c0c8156be7adb38bbc53dfd67347f7948e966367e6086646a884a
@@ -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)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Esa
2
- VERSION = '1.13.0'
2
+ VERSION = '1.13.1'
3
3
  end
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday