jugyo-termtter 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/termtter/notify-send.rb +1 -0
- data/lib/termtter.rb +1 -1
- metadata +1 -1
data/lib/termtter/notify-send.rb
CHANGED
@@ -4,6 +4,7 @@ Termtter::Client.add_hook do |statuses, event|
|
|
4
4
|
|
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
|
+
status_text.gsub!("\n", '')
|
7
8
|
"<b>#{s.user_screen_name}</b> <span font=\"9.0\">#{status_text}</span>"
|
8
9
|
}.join("\n")
|
9
10
|
|
data/lib/termtter.rb
CHANGED