+# 0.8.7
+* Lock activesupport version to < 5.0
+
# 0.8.6
* Use discovered 'rootUrl' as base URI for services
* Respect discovered methods with colons in path
s.add_runtime_dependency 'extlib', '~> 0.9'
s.add_runtime_dependency 'launchy', '~> 2.4'
s.add_runtime_dependency 'retriable', '~> 1.4'
- s.add_runtime_dependency 'activesupport', '>= 3.2'
+ s.add_runtime_dependency 'activesupport', '>= 3.2', '< 5.0'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'yard', '~> 0.8'
module VERSION
MAJOR = 0
MINOR = 8
- TINY = 6
+ TINY = 7
PATCH = nil
STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
end
describe 'with the Drive API' do
before do
CLIENT.authorization = nil
- @drive = CLIENT.discovered_api('drive', 'v1')
+ @drive = CLIENT.discovered_api('drive', 'v2')
end
it 'should include media upload info methods' do
end
before do
- @drive = CLIENT.discovered_api('drive', 'v1')
+ @drive = CLIENT.discovered_api('drive', 'v2')
@file = File.expand_path('files/sample.txt', fixtures_path)
@media = Google::APIClient::UploadIO.new(@file, 'text/plain')
@uploader = Google::APIClient::ResumableUpload.new(
it 'should make a valid call with an object body and media upload' do
conn = stub_connection do |stub|
- stub.post('/upload/drive/v1/files?uploadType=multipart') do |env|
+ stub.post('/upload/drive/v2/files?uploadType=multipart') do |env|
expect(env.body).to be_a Faraday::CompositeReadIO
[200, {}, '{}']
end
end
drive = Google::APIClient::Service.new(
'drive',
- 'v1',
+ 'v2',
{
:application_name => APPLICATION_NAME,
:authenticated => false,
describe 'with no connection' do
before do
- @drive = Google::APIClient::Service.new('drive', 'v1',
+ @drive = Google::APIClient::Service.new('drive', 'v2',
{:application_name => APPLICATION_NAME, :cache_store => nil})
end