tw 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/History.txt +5 -0
- data/lib/tw/app/main.rb +1 -1
- data/lib/tw/client/request.rb +3 -3
- data/lib/tw/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f8ef139f86acc833cf8a4e18195b374ab94e57ec871b69f875b16c1ce56381c7
|
4
|
+
data.tar.gz: 9ed4acd0be4cfd5bd2b7a75b1234a446ec8554f001ef3e1c89b2350efde896b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d5bbac34ce1206be2e7e9c08052492651535281c5e75d427e15de347602cd527e35104363eb7ff18bb7b6794f654d764e27473055a20e0e5d243b18db73c308
|
7
|
+
data.tar.gz: 9898956892d3bdd16d2e49df57a0f3a908f58faddd48f185777521ae3e6146154c9c54e4442676eaed678390e9ea4e96d1435a5eb4515d246094fb3698003b5d
|
data/History.txt
CHANGED
data/lib/tw/app/main.rb
CHANGED
@@ -103,7 +103,7 @@ module Tw::App
|
|
103
103
|
STDERR.puts " tw --fav=334749349588377601"
|
104
104
|
STDERR.puts " tw --rt=334749349588377601"
|
105
105
|
STDERR.puts " tw --format=json"
|
106
|
-
STDERR.puts ' tw --format="@#{user} #{text} -
|
106
|
+
STDERR.puts ' tw --format="@#{user} #{text} - https://twitter.com/#{user}/#{id}"'
|
107
107
|
STDERR.puts "delete tw --del=334749349588377601"
|
108
108
|
on_exit
|
109
109
|
end
|
data/lib/tw/client/request.rb
CHANGED
@@ -76,14 +76,14 @@ module Tw
|
|
76
76
|
def tweet(message, opts={})
|
77
77
|
res = @rest_client.update message, opts
|
78
78
|
puts res.text
|
79
|
-
puts "
|
79
|
+
puts "https://twitter.com/#{res.user.screen_name}/status/#{res.id}"
|
80
80
|
puts res.created_at
|
81
81
|
end
|
82
82
|
|
83
83
|
def tweet_with_file(message, file, opts={})
|
84
84
|
res = @rest_client.update_with_media message, file, opts
|
85
85
|
puts res.text
|
86
|
-
puts "
|
86
|
+
puts "https://twitter.com/#{res.user.screen_name}/status/#{res.id}"
|
87
87
|
puts res.created_at
|
88
88
|
end
|
89
89
|
|
@@ -99,7 +99,7 @@ module Tw
|
|
99
99
|
line += " #{res.favorite_count}Fav" if res.favorite_count.to_i > 0
|
100
100
|
line += " #{res.retweet_count}RT" if res.retweet_count.to_i > 0
|
101
101
|
puts line.colorize(/@[a-zA-Z0-9_]+|\d+RT|\d+Fav/)
|
102
|
-
puts "
|
102
|
+
puts "https://twitter.com/#{res.user.screen_name}/status/#{res.id}"
|
103
103
|
puts res.created_at
|
104
104
|
end
|
105
105
|
|
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: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Hashimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twitter
|
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
209
|
rubyforge_project:
|
210
|
-
rubygems_version: 2.6
|
210
|
+
rubygems_version: 2.7.6
|
211
211
|
signing_key:
|
212
212
|
specification_version: 4
|
213
213
|
summary: CUI Twitter Client.
|