jugyo-termtter 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/termtter.rb +1 -1
- data/lib/termtter/notify-send.rb +1 -1
- metadata +1 -1
data/lib/termtter.rb
CHANGED
data/lib/termtter/notify-send.rb
CHANGED
@@ -5,7 +5,7 @@ Termtter::Client.add_hook do |statuses, event|
|
|
5
5
|
text = statuses[0..(max - 1)].map{|s|
|
6
6
|
status_text = s.text.gsub(%r{https?://[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+},'<a href="\0">\0</a>')
|
7
7
|
status_text.gsub!("\n", '')
|
8
|
-
"<b>#{s.user_screen_name}
|
8
|
+
"<b>#{s.user_screen_name}:</b> <span font=\"9.0\">#{status_text}</span>"
|
9
9
|
}.join("\n")
|
10
10
|
|
11
11
|
text += "\n<a href=\"http://twitter.com/\">more…</a>" if statuses.size > max
|