tw 0.4.9 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/lib/tw/client/request.rb +4 -1
- data/lib/tw/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe3b077a86536aa8cd1cd6d7dfe5ab864d1ab2f0
|
4
|
+
data.tar.gz: 82693deb9ca828ca9e15748f6361a8967fb68b0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b273663d301b5465093abdced9b9b30c867b2d384170f720af2d53d7889d523302e04dcc0d8181439cf74fea27d1999031855c4b2f8d81f330114e7c35d21942
|
7
|
+
data.tar.gz: 8c18f674051f9fd38f03196d76de9aec089d342091e9065d249f2038a67481c401c4da7982f6beff05e17acd8e12bd02e39988e8a5a6a8f7a2ba90a69547d4f9
|
data/History.txt
CHANGED
data/lib/tw/client/request.rb
CHANGED
@@ -88,7 +88,10 @@ module Tw
|
|
88
88
|
|
89
89
|
def show_status(status_id)
|
90
90
|
res = Twitter.status(status_id)
|
91
|
-
|
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
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
|
+
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-
|
11
|
+
date: 2013-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twitter
|