tw 0.4.9 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a095bf61b2bf54db952118086cb877976ebca0fa
4
- data.tar.gz: 0fe9205a6a60d0916b53c204532c7c0f8e90b230
3
+ metadata.gz: fe3b077a86536aa8cd1cd6d7dfe5ab864d1ab2f0
4
+ data.tar.gz: 82693deb9ca828ca9e15748f6361a8967fb68b0b
5
5
  SHA512:
6
- metadata.gz: 0c22ec61f65d94cfed33628e8ec3aef0d834db1525a45adf6cf35fd5bdc470a5792d6d251d6b10601f53aaf2ad688e248c92671f25d33a692702aa52eef9c9ba
7
- data.tar.gz: b50bb9bb6e02eaed4d2cf9b5e5857b73eb922c9fcc4973ac5baee72ac155bb4286dc3379566b19e275aeeabb3741d46e6f3bb0eddd9eec425ae6bb59459f2cc0
6
+ metadata.gz: b273663d301b5465093abdced9b9b30c867b2d384170f720af2d53d7889d523302e04dcc0d8181439cf74fea27d1999031855c4b2f8d81f330114e7c35d21942
7
+ data.tar.gz: 8c18f674051f9fd38f03196d76de9aec089d342091e9065d249f2038a67481c401c4da7982f6beff05e17acd8e12bd02e39988e8a5a6a8f7a2ba90a69547d4f9
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.5.0 2013-08-26
2
+
3
+ * show RT/Fav count on % tw --id=1234552234
4
+
1
5
  === 0.4.9 2013-08-22
2
6
 
3
7
  * show tweet by status_id % tw --id=1234543234
@@ -88,7 +88,10 @@ module Tw
88
88
 
89
89
  def show_status(status_id)
90
90
  res = Twitter.status(status_id)
91
- puts CGI.unescapeHTML res.text
91
+ line = CGI.unescapeHTML res.text
92
+ line += " #{res.favorite_count}Fav" if res.favorite_count.to_i > 0
93
+ line += " #{res.retweet_count}RT" if res.retweet_count.to_i > 0
94
+ puts line.colorize(/@[a-zA-Z0-9_]+|\d+RT|\d+Fav/)
92
95
  puts "http://twitter.com/#{res.user.screen_name}/status/#{res.id}"
93
96
  puts res.created_at
94
97
  end
data/lib/tw/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tw
2
- VERSION = '0.4.9'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-21 00:00:00.000000000 Z
11
+ date: 2013-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter