ruboty-twitter_search 0.0.2 → 0.0.3

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: 69b81af34cb90291d697ade975632e2341fcf350
4
- data.tar.gz: 4826894a71a42285dc21a5cc6161510f82eb7364
3
+ metadata.gz: fafa0fe2abe924e210c6b8a109ec9aefb629c53e
4
+ data.tar.gz: c57faa3e0be70f9d9280d481e246ac999433d30b
5
5
  SHA512:
6
- metadata.gz: ef6ace1efb0cdeef6dd53ef3ce59076e553e52bf84a82a99668f06dc2f731330e3eb55a9201121ac59a060cb6fe7e32bc388718f7c5af5b084614e1737bd8de9
7
- data.tar.gz: bc720cfaaff1d0cfc9045537d0c8b39f1fb05e3408c170b2602dd6b06d8a632e4e1ba04c5b9b5991f0ddd315a52a7f4f5fbea5db9bffa9601a93d409f77bf176
6
+ metadata.gz: 994c0086908eeafac906f3ffae8e5631955dacca57495e616bde9081759f0ce45b7795202c0639c9f2d32b7c6aa4d69ad0102c06dc3bda25ebd2f68f9f69f657
7
+ data.tar.gz: abf012b4787c58e15cecda552d419f22e20d5a6e46d9b91e51857091eb407736c78e35e1881dbaf3adb32e14793f6d439ff26e536e7eefbe2801d14c83d72842
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.0.3
2
+ - Prevent running missing handlers on empty result
3
+
1
4
  ## 0.0.2
2
5
  - Rescue error from Twitter API
3
6
 
@@ -19,7 +19,7 @@ module Ruboty
19
19
  name: :search,
20
20
  )
21
21
 
22
- # @todo
22
+ # @return [true] to prevent running missing handlers.
23
23
  def search(message)
24
24
  statuses = client.search(message[:query], since_id: fetch_since_id_for(message[:query])).take(10)
25
25
  if statuses.any?
@@ -28,6 +28,8 @@ module Ruboty
28
28
  end
29
29
  rescue Twitter::Error => exception
30
30
  message.reply("#{exception.class}: #{exception}")
31
+ ensure
32
+ true
31
33
  end
32
34
 
33
35
  private
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module TwitterSearch
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura