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 +4 -4
- data/README.md +6 -0
- data/lib/slack_twitter_egosa/twitter_client.rb +4 -10
- data/lib/slack_twitter_egosa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f50f658be2f798701354d7c159463ce58dc608a16e5a136684710ce74b695db
|
4
|
+
data.tar.gz: f313c0cc4c0ea3d6aba44a2e7536173720e0d82ae4c89d0d187ba3e5b7ec6400
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2019-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|