t 2.5.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/set_spec.rb CHANGED
@@ -49,7 +49,7 @@ describe T::Set do
49
49
  describe '#bio' do
50
50
  before do
51
51
  @set.options = @set.options.merge('profile' => fixture_path + '/.trc')
52
- stub_post('/1.1/account/update_profile.json').with(:body => {:description => 'Vagabond.'}).to_return(:body => fixture('sferik.json'))
52
+ stub_post('/1.1/account/update_profile.json').with(:body => {:description => 'Vagabond.'}).to_return(:body => fixture('sferik.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
53
53
  end
54
54
  it 'requests the correct resource' do
55
55
  @set.bio('Vagabond.')
@@ -64,7 +64,7 @@ describe T::Set do
64
64
  describe '#language' do
65
65
  before do
66
66
  @set.options = @set.options.merge('profile' => fixture_path + '/.trc')
67
- stub_post('/1.1/account/settings.json').with(:body => {:lang => 'en'}).to_return(:body => fixture('settings.json'))
67
+ stub_post('/1.1/account/settings.json').with(:body => {:lang => 'en'}).to_return(:body => fixture('settings.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
68
68
  end
69
69
  it 'requests the correct resource' do
70
70
  @set.language('en')
@@ -79,7 +79,7 @@ describe T::Set do
79
79
  describe '#location' do
80
80
  before do
81
81
  @set.options = @set.options.merge('profile' => fixture_path + '/.trc')
82
- stub_post('/1.1/account/update_profile.json').with(:body => {:location => 'San Francisco'}).to_return(:body => fixture('sferik.json'))
82
+ stub_post('/1.1/account/update_profile.json').with(:body => {:location => 'San Francisco'}).to_return(:body => fixture('sferik.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
83
83
  end
84
84
  it 'requests the correct resource' do
85
85
  @set.location('San Francisco')
@@ -94,7 +94,7 @@ describe T::Set do
94
94
  describe '#name' do
95
95
  before do
96
96
  @set.options = @set.options.merge('profile' => fixture_path + '/.trc')
97
- stub_post('/1.1/account/update_profile.json').with(:body => {:name => 'Erik Michaels-Ober'}).to_return(:body => fixture('sferik.json'))
97
+ stub_post('/1.1/account/update_profile.json').with(:body => {:name => 'Erik Michaels-Ober'}).to_return(:body => fixture('sferik.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
98
98
  end
99
99
  it 'requests the correct resource' do
100
100
  @set.name('Erik Michaels-Ober')
@@ -109,7 +109,7 @@ describe T::Set do
109
109
  describe '#profile_background_image' do
110
110
  before do
111
111
  @set.options = @set.options.merge('profile' => fixture_path + '/.trc')
112
- stub_post('/1.1/account/update_profile_background_image.json').to_return(:body => fixture('sferik.json'))
112
+ stub_post('/1.1/account/update_profile_background_image.json').to_return(:body => fixture('sferik.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
113
113
  end
114
114
  it 'requests the correct resource' do
115
115
  @set.profile_background_image(fixture_path + '/we_concept_bg2.png')
@@ -124,7 +124,7 @@ describe T::Set do
124
124
  describe '#profile_image' do
125
125
  before do
126
126
  @set.options = @set.options.merge('profile' => fixture_path + '/.trc')
127
- stub_post('/1.1/account/update_profile_image.json').to_return(:body => fixture('sferik.json'))
127
+ stub_post('/1.1/account/update_profile_image.json').to_return(:body => fixture('sferik.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
128
128
  end
129
129
  it 'requests the correct resource' do
130
130
  @set.profile_image(fixture_path + '/me.jpg')
@@ -139,7 +139,7 @@ describe T::Set do
139
139
  describe '#website' do
140
140
  before do
141
141
  @set.options = @set.options.merge('profile' => fixture_path + '/.trc')
142
- stub_post('/1.1/account/update_profile.json').with(:body => {:url => 'https://github.com/sferik'}).to_return(:body => fixture('sferik.json'))
142
+ stub_post('/1.1/account/update_profile.json').with(:body => {:url => 'https://github.com/sferik'}).to_return(:body => fixture('sferik.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
143
143
  end
144
144
  it 'requests the correct resource' do
145
145
  @set.website('https://github.com/sferik')
data/spec/stream_spec.rb CHANGED
@@ -73,7 +73,7 @@ describe T::Stream do
73
73
 
74
74
  describe '#list' do
75
75
  before do
76
- stub_get('/1.1/lists/members.json').with(:query => {:cursor => '-1', :owner_screen_name => 'testcli', :slug => 'presidents'}).to_return(:body => fixture('users_list.json'))
76
+ stub_get('/1.1/lists/members.json').with(:query => {:cursor => '-1', :owner_screen_name => 'testcli', :slug => 'presidents'}).to_return(:body => fixture('users_list.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
77
77
  end
78
78
  it 'prints the tweet status' do
79
79
  expect(@stream).to receive(:print_message)
@@ -130,7 +130,7 @@ describe T::Stream do
130
130
 
131
131
  describe '#matrix' do
132
132
  before do
133
- stub_get('/1.1/search/tweets.json').with(:query => {:q => 'lang:ja', :count => 100, :include_entities => 'false'}).to_return(:body => fixture('empty_cursor.json'))
133
+ stub_get('/1.1/search/tweets.json').with(:query => {:q => 'lang:ja', :count => 100, :include_entities => 'false'}).to_return(:body => fixture('empty_cursor.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
134
134
  end
135
135
  it 'outputs the tweet status' do
136
136
  allow(@streaming_client).to receive(:before_request).and_return
data/t.gemspec CHANGED
@@ -9,12 +9,12 @@ Gem::Specification.new do |spec|
9
9
  spec.add_dependency 'htmlentities', '~> 4.3'
10
10
  spec.add_dependency 'oauth', '~> 0.4.7'
11
11
  spec.add_dependency 'retryable', '~> 1.3'
12
- spec.add_dependency 'thor', ['>= 0.18.1', '< 2']
13
- spec.add_dependency 'twitter', '~> 5.8'
12
+ spec.add_dependency 'thor', ['>= 0.19.1', '< 2']
13
+ spec.add_dependency 'twitter', '~> 5.9'
14
14
  spec.add_development_dependency 'bundler', '~> 1.0'
15
15
  spec.author = 'Erik Michaels-Ober'
16
16
  spec.bindir = 'bin'
17
- spec.description = %q{A command-line power tool for Twitter.}
17
+ spec.description = %q(A command-line power tool for Twitter.)
18
18
  spec.email = 'sferik@gmail.com'
19
19
  spec.executables = %w[t]
20
20
  spec.files = %w[CONTRIBUTING.md LICENSE.md README.md Rakefile t.gemspec]
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.require_paths = %w[lib]
28
28
  spec.required_ruby_version = '>= 1.9.2'
29
29
  spec.required_rubygems_version = '>= 1.3.5'
30
- spec.summary = %q{CLI for Twitter}
30
+ spec.summary = %q(CLI for Twitter)
31
31
  spec.test_files = Dir.glob('spec/**/*')
32
32
  spec.version = T::Version
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: t
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Michaels-Ober
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-10 00:00:00.000000000 Z
11
+ date: 2014-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: launchy
@@ -92,7 +92,7 @@ dependencies:
92
92
  requirements:
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
- version: 0.18.1
95
+ version: 0.19.1
96
96
  - - "<"
97
97
  - !ruby/object:Gem::Version
98
98
  version: '2'
@@ -102,7 +102,7 @@ dependencies:
102
102
  requirements:
103
103
  - - ">="
104
104
  - !ruby/object:Gem::Version
105
- version: 0.18.1
105
+ version: 0.19.1
106
106
  - - "<"
107
107
  - !ruby/object:Gem::Version
108
108
  version: '2'
@@ -112,14 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '5.8'
115
+ version: '5.9'
116
116
  type: :runtime
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: '5.8'
122
+ version: '5.9'
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: bundler
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -185,6 +185,8 @@ files:
185
185
  - spec/fixtures/geo_no_city.json
186
186
  - spec/fixtures/geo_no_state.json
187
187
  - spec/fixtures/geoplugin.xml
188
+ - spec/fixtures/ids_list.json
189
+ - spec/fixtures/ids_list2.json
188
190
  - spec/fixtures/list.json
189
191
  - spec/fixtures/lists.json
190
192
  - spec/fixtures/locations.json
@@ -271,6 +273,8 @@ test_files:
271
273
  - spec/fixtures/geo_no_city.json
272
274
  - spec/fixtures/geo_no_state.json
273
275
  - spec/fixtures/geoplugin.xml
276
+ - spec/fixtures/ids_list.json
277
+ - spec/fixtures/ids_list2.json
274
278
  - spec/fixtures/list.json
275
279
  - spec/fixtures/lists.json
276
280
  - spec/fixtures/locations.json