akane 0.4.0 → 0.4.2

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: 9eb63675c2d34bca45cf1a084e2cb1d2383dd57f
4
- data.tar.gz: 0aaa3ad0e12340ebffd567ac2b805722fc7f57e4
3
+ metadata.gz: 9121655a6544578e0128be2cb76caca158138f2e
4
+ data.tar.gz: '08c7694d392754018502adeee4c4cf34a528b812'
5
5
  SHA512:
6
- metadata.gz: 557db9f3bd65cf55a32f9fced460f584f89af5ce9499be9a36f87965f1f54c97c106d395d6518d5227a9c721322386599ace35c05f9e2f0684f3387bff8dec5d
7
- data.tar.gz: 49633ba74f99864a73308fd63d4cb9aae0e6ec5a57e0e8ff36f4afebfc84ff82a5c76edc321b67c017e531e87cc7ac3800c44ea81fbdf405074e6bc5686878f6
6
+ metadata.gz: 7b512d3d218a65d90cf1d90fd49a6de6f32fe55e749e7890b3adff6b0c6d4650a081d9fde11a6ebcc823bc810f2d4076c4a8b9795437ddc375354b02f8e071e7
7
+ data.tar.gz: 6736352337a95f406157ad57f4c840498966ad9672884e0fb1e75948d6c05696ece7b6f40f8a09169716e1b64987762d26de5adbd92fc57bca79c1bcdb0d61ba
@@ -83,9 +83,9 @@ module Akane
83
83
  # reconnecting https://dev.twitter.com/streaming/overview/connecting
84
84
  case e
85
85
  when Twitter::Error::EnhanceYourCalm # 420
86
- interval = 5 ** @retry_count
86
+ interval = 60 * (2 ** (@retry_count - 1))
87
87
  when Twitter::Error
88
- interval = [320, 5 ** @retry_count].min
88
+ interval = [320, 5 * (2 ** (@retry_count - 1))].min
89
89
  else
90
90
  interval = [16, 0.25 * @retry_count].min
91
91
  end
@@ -1,3 +1,3 @@
1
1
  module Akane
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Fukumori (sora_h)