Skip to content

Commit fd29584

Browse files
committed
Bump version to lock activesupport dependency, update tests to not use old APIs
1 parent 1585300 commit fd29584

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.8.7
2+
* Lock activesupport version to < 5.0
3+
14
# 0.8.6
25
* Use discovered 'rootUrl' as base URI for services
36
* Respect discovered methods with colons in path

google-api-client.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
3232
s.add_runtime_dependency 'extlib', '~> 0.9'
3333
s.add_runtime_dependency 'launchy', '~> 2.4'
3434
s.add_runtime_dependency 'retriable', '~> 1.4'
35-
s.add_runtime_dependency 'activesupport', '>= 3.2'
35+
s.add_runtime_dependency 'activesupport', '>= 3.2', '< 5.0'
3636

3737
s.add_development_dependency 'rake', '~> 10.0'
3838
s.add_development_dependency 'yard', '~> 0.8'

lib/google/api_client/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class APIClient
1818
module VERSION
1919
MAJOR = 0
2020
MINOR = 8
21-
TINY = 6
21+
TINY = 7
2222
PATCH = nil
2323
STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
2424
end

spec/google/api_client/discovery_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@
644644
describe 'with the Drive API' do
645645
before do
646646
CLIENT.authorization = nil
647-
@drive = CLIENT.discovered_api('drive', 'v1')
647+
@drive = CLIENT.discovered_api('drive', 'v2')
648648
end
649649

650650
it 'should include media upload info methods' do

spec/google/api_client/media_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
end
115115

116116
before do
117-
@drive = CLIENT.discovered_api('drive', 'v1')
117+
@drive = CLIENT.discovered_api('drive', 'v2')
118118
@file = File.expand_path('files/sample.txt', fixtures_path)
119119
@media = Google::APIClient::UploadIO.new(@file, 'text/plain')
120120
@uploader = Google::APIClient::ResumableUpload.new(

spec/google/api_client/service_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,14 @@
227227

228228
it 'should make a valid call with an object body and media upload' do
229229
conn = stub_connection do |stub|
230-
stub.post('/upload/drive/v1/files?uploadType=multipart') do |env|
230+
stub.post('/upload/drive/v2/files?uploadType=multipart') do |env|
231231
expect(env.body).to be_a Faraday::CompositeReadIO
232232
[200, {}, '{}']
233233
end
234234
end
235235
drive = Google::APIClient::Service.new(
236236
'drive',
237-
'v1',
237+
'v2',
238238
{
239239
:application_name => APPLICATION_NAME,
240240
:authenticated => false,
@@ -248,7 +248,7 @@
248248

249249
describe 'with no connection' do
250250
before do
251-
@drive = Google::APIClient::Service.new('drive', 'v1',
251+
@drive = Google::APIClient::Service.new('drive', 'v2',
252252
{:application_name => APPLICATION_NAME, :cache_store => nil})
253253
end
254254

0 commit comments

Comments
 (0)