termtter 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ Termtter::Client.register_hook(
18
18
  if !statuses.empty? && event == :update_friends_timeline
19
19
  Thread.start do
20
20
  statuses.reverse.each do |s|
21
- req = achar.speak("#{s[:screen_name]}: #{s[:post_text]}".tosjis)
21
+ req = achar.speak("#{s[:screen_name]}: #{s[:text]}".tosjis)
22
22
  sleep 1
23
23
  WIN32OLE_EVENT.message_loop
24
24
  achar.stop(req)
@@ -8,7 +8,7 @@ Termtter::Client.register_hook(
8
8
  max = 10
9
9
 
10
10
  text = statuses.take(max).map {|s|
11
- status_text = CGI.escapeHTML(s[:post_text])
11
+ status_text = CGI.escapeHTML(s[:text])
12
12
  status_text.gsub!(%r{https?://[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+},'<a href="\0">\0</a>')
13
13
  "<b>#{s[:screen_name]}:</b> <span font=\"9.0\">#{status_text}</span>"
14
14
  }.join("\n")
data/lib/plugins/say.rb CHANGED
@@ -15,7 +15,7 @@ module Termtter::Client
15
15
  :points => [:post_filter],
16
16
  :exec_proc => lambda {|statuses, event|
17
17
  statuses.reverse.each do |s|
18
- text_without_uri = s[:post_text].gsub(%r|https?://[^\s]+|, 'U.R.I.')
18
+ text_without_uri = s[:text].gsub(%r|https?://[^\s]+|, 'U.R.I.')
19
19
  say s[:screen_name], text_without_uri
20
20
  end
21
21
  }
@@ -8,7 +8,7 @@ module Termtter::Client
8
8
  :points => [:post_filter],
9
9
  :exec_proc => lambda {|statuses, event|
10
10
  statuses.each do |s|
11
- public_storage[:uris] += s[:post_text].scan(%r|https?://[^\s]+|)
11
+ public_storage[:uris] += s[:text].scan(%r|https?://[^\s]+|)
12
12
  end
13
13
  }
14
14
  )
@@ -1,4 +1,4 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  module Termtter
3
- VERSION = '1.0.5'
3
+ VERSION = '1.0.6'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: termtter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - jugyo