tw 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.2.2 2012-10-06
2
+
3
+ * unescape HTML
4
+
1
5
  === 0.2.1 2012-10-05
2
6
 
3
7
  * auto re-connect stream
data/Rakefile CHANGED
@@ -12,6 +12,7 @@ Hoe.plugin :newgem
12
12
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
13
13
  $hoe = Hoe.spec 'tw' do
14
14
  self.developer 'Sho Hashimoto', 'hashimoto@shokai.org'
15
+ self.post_install_message = "!! Installed \"tw\" command. => http://shokai.github.com/tw"
15
16
  self.rubyforge_name = self.name # TODO this is default value
16
17
  self.extra_deps = [['oauth','>= 0.4.7', '< 1.0.0'],
17
18
  ['twitter', '>= 4.0.0', '< 5.0.0'],
data/lib/tw.rb CHANGED
@@ -7,6 +7,7 @@ require 'time'
7
7
  require 'user_stream'
8
8
  require 'yaml'
9
9
  require 'time'
10
+ require 'cgi'
10
11
  require 'args_parser'
11
12
  require 'rainbow'
12
13
  require 'tw/conf'
@@ -16,7 +17,7 @@ require 'tw/client/stream'
16
17
  require 'tw/client/error'
17
18
 
18
19
  module Tw
19
- VERSION = '0.2.1'
20
+ VERSION = '0.2.2'
20
21
  class Conf
21
22
  REQUIRE_VERSION = '0.1.0'
22
23
  end
data/lib/tw/app/main.rb CHANGED
@@ -69,6 +69,9 @@ module Tw::App
69
69
  end
70
70
 
71
71
  if @parser.has_option? :help
72
+ STDERR.puts "Tw - Twitter client on Ruby v#{Tw::VERSION}"
73
+ STDERR.puts " http://shokai.github.com/tw"
74
+ STDERR.puts
72
75
  STDERR.puts @parser.help
73
76
  STDERR.puts
74
77
  STDERR.puts "e.g."
data/lib/tw/app/render.rb CHANGED
@@ -13,7 +13,7 @@ module Tw::App
13
13
  a[:id] <=> b[:id]
14
14
  }.uniq.each{|m|
15
15
  user = m[:user].kind_of?(Hash) ? "@#{m[:user][:from]} > @#{m[:user][:to]}" : "@#{m[:user]}"
16
- line = "#{m[:time].strftime '[%m/%d %a] (%H:%M:%S)'} #{user} : #{m[:text]}"
16
+ line = "#{m[:time].strftime '[%m/%d %a] (%H:%M:%S)'} #{user} : #{CGI.unescapeHTML m[:text]}"
17
17
  puts line.colorize(/@[a-zA-Z0-9_]+/)
18
18
  }
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-04 00:00:00.000000000 Z
12
+ date: 2012-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth
@@ -200,7 +200,7 @@ files:
200
200
  - .gemtest
201
201
  homepage: http://shokai.github.com/tw
202
202
  licenses: []
203
- post_install_message:
203
+ post_install_message: ! '!! Installed "tw" command. => http://shokai.github.com/tw'
204
204
  rdoc_options:
205
205
  - --main
206
206
  - README.rdoc
@@ -214,7 +214,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  segments:
216
216
  - 0
217
- hash: 1461823182617870021
217
+ hash: -2296586545685509471
218
218
  required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  none: false
220
220
  requirements: