earthquake 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -58,6 +58,10 @@ Commands
58
58
  ⚡ :recent
59
59
  ⚡ :recent jugyo
60
60
 
61
+ ### Lists
62
+
63
+ ⚡ :recent yugui/ruby-committers
64
+
61
65
  ### Search
62
66
 
63
67
  ⚡ :search #ruby
@@ -78,6 +82,10 @@ Commands
78
82
 
79
83
  ⚡ :restart
80
84
 
85
+ ### Threads
86
+
87
+ ⚡ :thread $xx
88
+
81
89
  And there are more commands!
82
90
 
83
91
  Configuration
@@ -197,4 +205,4 @@ TODO
197
205
  Copyright
198
206
  ----
199
207
 
200
- Copyright (c) 2011 jugyo. See LICENSE.txt for further details.
208
+ Copyright (c) 2011 jugyo. See LICENSE.txt for further details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
data/earthquake.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{earthquake}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jugyo"]
@@ -60,10 +60,16 @@ module Earthquake
60
60
  puts_items twitter.home_timeline
61
61
  end
62
62
 
63
- command :recent do |m|
63
+ # :recent jugyo
64
+ command %r|^:recent\s+([^\/\s]+)\s*$|, :as => :recent do |m|
64
65
  puts_items twitter.user_timeline(:screen_name => m[1])
65
66
  end
66
67
 
68
+ # :recent yugui/ruby-committers
69
+ command %r|^:recent\s+([^\s]+)\/([^\s]+)\s*$|, :as => :recent do |m|
70
+ puts_items twitter.list_statuses(m[1], m[2])
71
+ end
72
+
67
73
  command :user do |m|
68
74
  ap twitter.show(m[1]).slice(*%w(id screen_name name profile_image_url description url location time_zone lang protected))
69
75
  end
@@ -152,5 +158,16 @@ module Earthquake
152
158
  command :reconnect do
153
159
  reconnect
154
160
  end
161
+
162
+ command :thread do |m|
163
+ thread = []
164
+ thread << twitter.status(m[1])
165
+ i = 0
166
+ while thread[i]['in_reply_to_status_id'] != nil
167
+ thread << twitter.status(thread[i]['in_reply_to_status_id'].to_s)
168
+ i += 1
169
+ end
170
+ puts_items thread
171
+ end
155
172
  end
156
173
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: earthquake
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.2
5
+ version: 0.5.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - jugyo