slack_twitter_egosa 1.0.6 → 1.0.7

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
  SHA256:
3
- metadata.gz: 1aeb894d9c375f87138b5df774353570e9fb5a62d3a6c452ca1eac344b7d34dd
4
- data.tar.gz: a59bd58d2ce71f48c02951fab5d6bef8db968501d9d0f94e1333dc3b0a58def8
3
+ metadata.gz: 8f50f658be2f798701354d7c159463ce58dc608a16e5a136684710ce74b695db
4
+ data.tar.gz: f313c0cc4c0ea3d6aba44a2e7536173720e0d82ae4c89d0d187ba3e5b7ec6400
5
5
  SHA512:
6
- metadata.gz: bb88c0ce7ac29b88f4f7cb94da7484e6ad52ed886781d30c3412c9ff356b35acb8bd4dba9686984aa7cdbb8b17fa3120178a7490637b74cd9915d6be1c70e5fb
7
- data.tar.gz: 2b04f6451b6071f89317e4d37c37bc6de8192f594f01bf5af99cc41e4c39bcd66037d9858e33b055e4697c028177bab44c7e7977297c1b9e02739c76c92fa25b
6
+ metadata.gz: b07d1e6429e2b6f27e312dacac35ddef44dc3fbc81259d32d2bdf98ee66b3652576c999ceb04563fdab8f6ab23a1e17405b07a67bafdc8700718122d3cc16cf5
7
+ data.tar.gz: 80d07f379fc992c988fbb01c628e275a990d8af98d762f487d01b92eb29d40ec9246ecd032f57550afa3b6637d5ec27d3d18cc13e989b5ac5acbeedde184c05a
data/README.md CHANGED
@@ -63,6 +63,12 @@ docker run \
63
63
  * 2018/05/21: 1.0.0 ストリーミングAPIを使わないように変更(90秒に1回REST APIを叩く)
64
64
  * 検索用の環境変数を変更しました
65
65
  * 2018/05/22: 1.0.1 full_textを使用するように変更
66
+ * 2019/11/05: 例外が出たときに終了せず動きるづける問題を修正など
67
+ * bundle update
68
+ * リファクタリング
69
+ * HOME_TIMELINE_WORDS、SEARCH_WORDSのいずれかがない場合APIを叩かないように変更
70
+ * 一部の例外が出た場合は無視するように変更
71
+ * 2019/11/07: エラー出力を改善
66
72
 
67
73
  ## ライセンス
68
74
  MIT
@@ -25,11 +25,8 @@ class TwitterClient
25
25
  return [] if is_first_fetch
26
26
 
27
27
  statuses
28
- rescue Twitter::Error::TooManyRequests
29
- warn 'home_timeline: too many requests'
30
- []
31
- rescue HTTP::ConnectionError
32
- warn 'home_timeline: http connection error'
28
+ rescue Twitter::Error::TooManyRequests, HTTP::ConnectionError => e
29
+ warn "home_timeline: #{e.inspect}"
33
30
  []
34
31
  end
35
32
 
@@ -47,11 +44,8 @@ class TwitterClient
47
44
  return [] if is_first_fetch
48
45
 
49
46
  statuses
50
- rescue Twitter::Error::TooManyRequests
51
- warn 'search: too many requests'
52
- []
53
- rescue HTTP::ConnectionError
54
- warn 'search: http connection error'
47
+ rescue Twitter::Error::TooManyRequests, HTTP::ConnectionError => e
48
+ warn "search: #{e.inspect}"
55
49
  []
56
50
  end
57
51
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SlackTwitterEgosa
4
- VERSION = '1.0.6'
4
+ VERSION = '1.0.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_twitter_egosa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - abcang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-05 00:00:00.000000000 Z
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv