t 4.1.1 → 4.2.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/LICENSE.md +1 -1
- data/README.md +3 -3
- data/bin/t +1 -2
- data/lib/t/cli.rb +1 -1
- data/lib/t/version.rb +2 -2
- data/t.gemspec +14 -3
- metadata +13 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c2ad952d1c71f23db5eae3d3080c2abe8454ecc3ad750070fd8ce5d77125e13
|
4
|
+
data.tar.gz: bada22e353cd6325f714cf0cd3b59f04b0035002edaa3075852b2570575690eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7301a0d681202ec90135953e567ca1d98ff4016de0af8ec0b9bae705663d73aec8bf875bdd959d4015b49eb658f6d0e6c81e4219eedb3be054a8ac9270d5b165
|
7
|
+
data.tar.gz: e1b224918de6cf369a4d7554b618a02ef4a0e4d2d5c164833462d0b8c61449029b7f1f1b29cbc54838d665965f768c8ba8ad3014905e2fdd918a3fc01b86192f
|
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -26,7 +26,7 @@ First, make sure you have Ruby installed.
|
|
26
26
|
|
27
27
|
If the output looks something like this, you're in good shape:
|
28
28
|
|
29
|
-
ruby
|
29
|
+
ruby 3.4.3 (2025-04-14 revision d0b7e5b6a0) +PRISM [arm64-darwin24]
|
30
30
|
|
31
31
|
If the output looks more like this, you need to [install Ruby][ruby]:
|
32
32
|
|
@@ -288,9 +288,9 @@ the original code.
|
|
288
288
|
This library aims to support and is [tested against][travis] the following Ruby
|
289
289
|
implementations:
|
290
290
|
|
291
|
-
* Ruby 3.1
|
292
291
|
* Ruby 3.2
|
293
292
|
* Ruby 3.3
|
293
|
+
* Ruby 3.4
|
294
294
|
|
295
295
|
If something doesn't work on one of these Ruby versions, it's a bug.
|
296
296
|
|
@@ -311,7 +311,7 @@ If you are running t on a remote computer you can use the flag --display-uri dur
|
|
311
311
|
t authorize --display-uri
|
312
312
|
|
313
313
|
## Copyright
|
314
|
-
Copyright (c) 2011-
|
314
|
+
Copyright (c) 2011-2025 Erik Berlin. See [LICENSE][] for details.
|
315
315
|
Application icon by [@nvk][nvk].
|
316
316
|
|
317
317
|
[license]: https://github.com/sferik/t/blob/master/LICENSE.md
|
data/bin/t
CHANGED
@@ -27,8 +27,7 @@ rescue Twitter::Error::TooManyRequests => e
|
|
27
27
|
rescue Twitter::Error::BadRequest => e
|
28
28
|
pute e.message, "Run `t authorize` to authorize."
|
29
29
|
rescue Twitter::Error::Forbidden, Twitter::Error::Unauthorized => e
|
30
|
-
if
|
31
|
-
e.message == "This application is not allowed to access or delete your direct messages"
|
30
|
+
if ["Error processing your OAuth request: Read-only application cannot POST", "This application is not allowed to access or delete your direct messages"].include?(e.message)
|
32
31
|
warn(%q(Make sure to set your Twitter application's Access Level to "Read, Write and Access direct messages".))
|
33
32
|
require "thor"
|
34
33
|
Thor::Shell::Basic.new.ask "Press [Enter] to open the Twitter Developer site."
|
data/lib/t/cli.rb
CHANGED
@@ -910,7 +910,7 @@ module T
|
|
910
910
|
array << ["Since", "#{ls_formatted_time(user, :created_at, false)} (#{time_ago_in_words(user.created_at)} ago)"]
|
911
911
|
array << ["Last update", "#{decode_full_text(user.status, options['decode_uris']).gsub(/\n+/, ' ')} (#{time_ago_in_words(user.status.created_at)} ago)"] unless user.status.nil?
|
912
912
|
array << ["Screen name", "@#{user.screen_name}"]
|
913
|
-
array << [user.verified? ? "Name (Verified)" : "Name", user.name] unless user.name.nil?
|
913
|
+
array << [user.verified? ? "Name (Verified)" : "Name", user.name] unless user.name.nil?
|
914
914
|
array << ["Tweets", number_with_delimiter(user.statuses_count)]
|
915
915
|
array << ["Favorites", number_with_delimiter(user.favorites_count)]
|
916
916
|
array << ["Listed", number_with_delimiter(user.listed_count)]
|
data/lib/t/version.rb
CHANGED
data/t.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.add_dependency "oauth", "~> 1.1"
|
12
12
|
spec.add_dependency "retryable", "~> 3.0"
|
13
13
|
spec.add_dependency "thor", "~> 1.3"
|
14
|
-
spec.add_dependency "twitter", "~> 8.
|
14
|
+
spec.add_dependency "twitter", "~> 8.2"
|
15
15
|
spec.author = "Erik Berlin"
|
16
16
|
spec.description = "A command-line power tool for Twitter."
|
17
17
|
spec.email = "sferik@gmail.com"
|
@@ -19,10 +19,21 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.files = %w[CONTRIBUTING.md LICENSE.md README.md t.gemspec] + Dir["bin/*"] + Dir["lib/**/*.rb"]
|
20
20
|
spec.homepage = "http://sferik.github.com/t/"
|
21
21
|
spec.licenses = %w[MIT]
|
22
|
-
|
22
|
+
|
23
|
+
spec.metadata = {
|
24
|
+
"allowed_push_host" => "https://rubygems.org",
|
25
|
+
"bug_tracker_uri" => "https://github.com/sferik/t-ruby/issues",
|
26
|
+
"changelog_uri" => "https://github.com/sferik/t-ruby/blob/master/CHANGELOG.md",
|
27
|
+
"documentation_uri" => "https://rubydoc.info/gems/t/",
|
28
|
+
"funding_uri" => "https://github.com/sponsors/sferik/",
|
29
|
+
"homepage_uri" => spec.homepage,
|
30
|
+
"rubygems_mfa_required" => "true",
|
31
|
+
"source_code_uri" => "https://github.com/sferik/t-ruby",
|
32
|
+
}
|
33
|
+
|
23
34
|
spec.name = "t"
|
24
35
|
spec.require_paths = %w[lib]
|
25
|
-
spec.required_ruby_version = ">= 3.
|
36
|
+
spec.required_ruby_version = ">= 3.2"
|
26
37
|
spec.summary = "CLI for Twitter"
|
27
38
|
spec.version = T::Version
|
28
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: t
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Berlin
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: geokit
|
@@ -100,14 +99,14 @@ dependencies:
|
|
100
99
|
requirements:
|
101
100
|
- - "~>"
|
102
101
|
- !ruby/object:Gem::Version
|
103
|
-
version: '8.
|
102
|
+
version: '8.2'
|
104
103
|
type: :runtime
|
105
104
|
prerelease: false
|
106
105
|
version_requirements: !ruby/object:Gem::Requirement
|
107
106
|
requirements:
|
108
107
|
- - "~>"
|
109
108
|
- !ruby/object:Gem::Version
|
110
|
-
version: '8.
|
109
|
+
version: '8.2'
|
111
110
|
description: A command-line power tool for Twitter.
|
112
111
|
email: sferik@gmail.com
|
113
112
|
executables:
|
@@ -141,8 +140,14 @@ homepage: http://sferik.github.com/t/
|
|
141
140
|
licenses:
|
142
141
|
- MIT
|
143
142
|
metadata:
|
143
|
+
allowed_push_host: https://rubygems.org
|
144
|
+
bug_tracker_uri: https://github.com/sferik/t-ruby/issues
|
145
|
+
changelog_uri: https://github.com/sferik/t-ruby/blob/master/CHANGELOG.md
|
146
|
+
documentation_uri: https://rubydoc.info/gems/t/
|
147
|
+
funding_uri: https://github.com/sponsors/sferik/
|
148
|
+
homepage_uri: http://sferik.github.com/t/
|
144
149
|
rubygems_mfa_required: 'true'
|
145
|
-
|
150
|
+
source_code_uri: https://github.com/sferik/t-ruby
|
146
151
|
rdoc_options: []
|
147
152
|
require_paths:
|
148
153
|
- lib
|
@@ -150,15 +155,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
155
|
requirements:
|
151
156
|
- - ">="
|
152
157
|
- !ruby/object:Gem::Version
|
153
|
-
version: 3.
|
158
|
+
version: '3.2'
|
154
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
160
|
requirements:
|
156
161
|
- - ">="
|
157
162
|
- !ruby/object:Gem::Version
|
158
163
|
version: '0'
|
159
164
|
requirements: []
|
160
|
-
rubygems_version: 3.
|
161
|
-
signing_key:
|
165
|
+
rubygems_version: 3.6.8
|
162
166
|
specification_version: 4
|
163
167
|
summary: CLI for Twitter
|
164
168
|
test_files: []
|