t 2.2.1 → 2.3.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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +2 -2
- data/bin/t +2 -2
- data/lib/t/cli.rb +211 -129
- data/lib/t/delete.rb +6 -6
- data/lib/t/list.rb +16 -15
- data/lib/t/printable.rb +11 -11
- data/lib/t/rcfile.rb +1 -1
- data/lib/t/requestable.rb +1 -1
- data/lib/t/search.rb +35 -28
- data/lib/t/set.rb +1 -1
- data/lib/t/stream.rb +15 -15
- data/lib/t/utils.rb +7 -3
- data/lib/t/version.rb +2 -2
- data/spec/cli_spec.rb +742 -206
- data/spec/delete_spec.rb +3 -3
- data/spec/helper.rb +1 -1
- data/t.gemspec +1 -1
- metadata +5 -6
- metadata.gz.sig +0 -0
data/spec/delete_spec.rb
CHANGED
@@ -29,7 +29,7 @@ describe T::Delete do
|
|
29
29
|
end
|
30
30
|
it 'has the correct output' do
|
31
31
|
@delete.block('sferik')
|
32
|
-
expect($stdout.string).to match
|
32
|
+
expect($stdout.string).to match(/^@testcli unblocked 1 user\.$/)
|
33
33
|
end
|
34
34
|
context '--id' do
|
35
35
|
before do
|
@@ -105,7 +105,7 @@ describe T::Delete do
|
|
105
105
|
expect($stdout).to receive(:print).with("Are you sure you want to remove @sferik's status: \"The problem with your code is that it's doing exactly what you told it to do.\" from your favorites? [y/N] ")
|
106
106
|
expect($stdin).to receive(:gets).and_return('yes')
|
107
107
|
@delete.favorite('28439861609')
|
108
|
-
expect($stdout.string).to match
|
108
|
+
expect($stdout.string).to match(/^@testcli unfavorited @sferik's status: "The problem with your code is that it's doing exactly what you told it to do\."$/)
|
109
109
|
end
|
110
110
|
end
|
111
111
|
context 'no' do
|
@@ -126,7 +126,7 @@ describe T::Delete do
|
|
126
126
|
end
|
127
127
|
it 'has the correct output' do
|
128
128
|
@delete.favorite('28439861609')
|
129
|
-
expect($stdout.string).to match
|
129
|
+
expect($stdout.string).to match(/^@testcli unfavorited @sferik's status: "The problem with your code is that it's doing exactly what you told it to do\."$/)
|
130
130
|
end
|
131
131
|
end
|
132
132
|
end
|
data/spec/helper.rb
CHANGED
data/t.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.add_dependency 'oauth', '~> 0.4.7'
|
11
11
|
spec.add_dependency 'retryable', '~> 1.3'
|
12
12
|
spec.add_dependency 'thor', ['>= 0.18.1', '< 2']
|
13
|
-
spec.add_dependency 'twitter', '~> 5.
|
13
|
+
spec.add_dependency 'twitter', '~> 5.6'
|
14
14
|
spec.add_development_dependency 'bundler', '~> 1.0'
|
15
15
|
spec.author = 'Erik Michaels-Ober'
|
16
16
|
spec.bindir = 'bin'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: t
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Michaels-Ober
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
Sf3lVKpBCWgRpGTvy45XVpB+59y33PJmEuQ1PTEOYvQyao9UKMAAaAN/7qWQtjl0
|
30
30
|
hlw=
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2014-01-
|
32
|
+
date: 2014-01-26 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: launchy
|
@@ -133,14 +133,14 @@ dependencies:
|
|
133
133
|
requirements:
|
134
134
|
- - "~>"
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version: '5.
|
136
|
+
version: '5.6'
|
137
137
|
type: :runtime
|
138
138
|
prerelease: false
|
139
139
|
version_requirements: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
141
|
- - "~>"
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: '5.
|
143
|
+
version: '5.6'
|
144
144
|
- !ruby/object:Gem::Dependency
|
145
145
|
name: bundler
|
146
146
|
requirement: !ruby/object:Gem::Requirement
|
@@ -263,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
263
|
version: 1.3.5
|
264
264
|
requirements: []
|
265
265
|
rubyforge_project:
|
266
|
-
rubygems_version: 2.2.
|
266
|
+
rubygems_version: 2.2.1
|
267
267
|
signing_key:
|
268
268
|
specification_version: 4
|
269
269
|
summary: CLI for Twitter
|
@@ -327,4 +327,3 @@ test_files:
|
|
327
327
|
- spec/set_spec.rb
|
328
328
|
- spec/stream_spec.rb
|
329
329
|
- spec/utils_spec.rb
|
330
|
-
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|