jugyo-termtter 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/termtter/stdout.rb +1 -1
- data/lib/termtter.rb +5 -5
- metadata +1 -1
data/lib/termtter/stdout.rb
CHANGED
@@ -13,7 +13,7 @@ Termtter::Client.add_hook do |statuses, event|
|
|
13
13
|
text = s['text'].gsub("\n", '')
|
14
14
|
color_num = colors[s['user/screen_name'].hash % colors.size]
|
15
15
|
status = "#{s['user/screen_name']}: #{text}"
|
16
|
-
unless s['in_reply_to_status_id'].empty?
|
16
|
+
unless s['in_reply_to_status_id'] && s['in_reply_to_status_id'].empty?
|
17
17
|
status += " (reply to #{s['in_reply_to_status_id']})"
|
18
18
|
end
|
19
19
|
|
data/lib/termtter.rb
CHANGED
@@ -10,7 +10,7 @@ $:.unshift(File.dirname(__FILE__)) unless
|
|
10
10
|
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
11
11
|
|
12
12
|
module Termtter
|
13
|
-
VERSION = '0.
|
13
|
+
VERSION = '0.2.0'
|
14
14
|
|
15
15
|
class Client
|
16
16
|
|
@@ -183,13 +183,13 @@ module Termtter
|
|
183
183
|
puts <<-EOS
|
184
184
|
exit Exit
|
185
185
|
help Print this help message
|
186
|
-
list
|
186
|
+
list,l List the posts in your friends timeline
|
187
187
|
list USERNAME List the posts in the the given user's timeline
|
188
188
|
pause Pause updating
|
189
|
-
|
189
|
+
update,u TEXT Post a new message
|
190
190
|
resume Resume updating
|
191
|
-
replies
|
192
|
-
search TEXT
|
191
|
+
replies,r List the most recent @replies for the authenticating user
|
192
|
+
search,s TEXT Search for Twitter
|
193
193
|
show ID Show a single status
|
194
194
|
update TEXT Update friends timeline
|
195
195
|
EOS
|