ruboty-twitter_search 0.0.1 → 0.0.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: 08bcd7c975c8a611a2cc3295b424eba738090cc9
4
- data.tar.gz: 01ca4f6850eb64711efda4c839500f0f1c14ebeb
3
+ metadata.gz: 69b81af34cb90291d697ade975632e2341fcf350
4
+ data.tar.gz: 4826894a71a42285dc21a5cc6161510f82eb7364
5
5
  SHA512:
6
- metadata.gz: 02374395b9941221bb4c1a230225b2d8fd35a77836be401dde6214d67c81849d33fc0b65427d39fbb4e88e68106afbed43d5b9afe07163a4532250b1d0763898
7
- data.tar.gz: b5715a0db4589e078209078356c2e534e420e3f9e60bf6076933e6860b6b8077fc1eccbdeace09571473f183f4c7aaaa5745075dbe15a1d560107de58b7c57c3
6
+ metadata.gz: ef6ace1efb0cdeef6dd53ef3ce59076e553e52bf84a82a99668f06dc2f731330e3eb55a9201121ac59a060cb6fe7e32bc388718f7c5af5b084614e1737bd8de9
7
+ data.tar.gz: bc720cfaaff1d0cfc9045537d0c8b39f1fb05e3408c170b2602dd6b06d8a632e4e1ba04c5b9b5991f0ddd315a52a7f4f5fbea5db9bffa9601a93d409f77bf176
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## 0.0.2
2
+ - Rescue error from Twitter API
3
+
4
+ ## 0.0.1
5
+ - 1st Release :tada:
data/README.md CHANGED
@@ -6,7 +6,32 @@
6
6
  @ruboty search twitter by <query>
7
7
  ```
8
8
 
9
+ ### Example
10
+ ```
11
+ $ bundle exec ruboty --dotenv
12
+ Type `exit` or `quit` to end the session.
13
+ > @ruboty search twitter by sushi
14
+ https://twitter.com/meshiumaa/status/573806861956214786
15
+ https://twitter.com/yijinglai/status/573806872169291777
16
+ https://twitter.com/bone_sushi/status/573806877340893184
17
+ https://twitter.com/namaakubi_/status/573806888015388672
18
+ https://twitter.com/NIGIRE_sushi/status/573806891211452416
19
+ https://twitter.com/Rymdensbarn/status/573806901722488832
20
+ https://twitter.com/SmaltimoreMD/status/573806917316968448
21
+ https://twitter.com/ornat/status/573806982852968448
22
+ https://twitter.com/kelZoom/status/573806985805754368
23
+ https://twitter.com/DT_Hanmer/status/573807032286973952
24
+ > @ruboty search twitter by sushi
25
+ https://twitter.com/Sushi_sweetegg/status/573807039224279040
26
+ > @ruboty search twitter by sushi
27
+ >
28
+ ```
29
+
9
30
  ## ENV
10
31
  ```
11
- TWITTER_DISABLE_SINCE_ID - Pass 1 to disable using since_id parameter (optional)
32
+ TWITTER_ACCESS_TOKEN - Twitter access token
33
+ TWITTER_ACCESS_TOKEN_SECRET - Twitter access token secret
34
+ TWITTER_CONSUMER_KEY - Twitter consumer key (a.k.a. API key)
35
+ TWITTER_CONSUMER_SECRET - Twitter consumer secret (a.k.a. API secret)
36
+ TWITTER_DISABLE_SINCE_ID - Pass 1 to disable using since_id parameter (optional)
12
37
  ```
@@ -26,6 +26,8 @@ module Ruboty
26
26
  message.reply(StatusesView.new(statuses).to_s)
27
27
  store_since_id(query: message[:query], since_id: statuses.first.id)
28
28
  end
29
+ rescue Twitter::Error => exception
30
+ message.reply("#{exception.class}: #{exception}")
29
31
  end
30
32
 
31
33
  private
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module TwitterSearch
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-twitter_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
@@ -74,6 +74,7 @@ extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
+ - CHANGELOG.md
77
78
  - Gemfile
78
79
  - LICENSE.txt
79
80
  - README.md