simple_google_drive 0.5.0 → 0.5.1
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/lib/simple_google_drive/session_base.rb +2 -2
- data/lib/simple_google_drive/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 043f719c51643316f069dffde19f464044685b1f
|
|
4
|
+
data.tar.gz: 38f873302251f62bf16b9cc847add64133bf0310
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c2120136213629b24e1356d4d5547123801ab80b6f2f078ff646df8662c116ac6b98370f7011b3d8772c72d2319e81ad002e35964b167dfe3710a468433b89ce
|
|
7
|
+
data.tar.gz: 316e115b7c7c990b5feb47253ee937a765a2de43bb1d9be50f229ef97646420ad79595381ae905c095f033c165fb5300351d62a1d6d52b9d58bb64124b233c05
|
|
@@ -14,7 +14,7 @@ module SimpleGoogleDrive
|
|
|
14
14
|
def build_request(url, method = 'get', body = nil, content_type = nil)
|
|
15
15
|
|
|
16
16
|
default_headers = {'User-Agent' => "Ruby/SimpleGoogleDrive/#{SimpleGoogleDrive::VERSION}", 'Authorization' => "Bearer #{@access_token}"}
|
|
17
|
-
|
|
17
|
+
content_type ||= 'application/json'
|
|
18
18
|
case method
|
|
19
19
|
when 'get'
|
|
20
20
|
req = Net::HTTP::Get.new(url, default_headers)
|
|
@@ -111,4 +111,4 @@ module SimpleGoogleDrive
|
|
|
111
111
|
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
-
end
|
|
114
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simple_google_drive
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Guilherme Vinicius Moreira
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-07-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
81
81
|
version: '0'
|
|
82
82
|
requirements: []
|
|
83
83
|
rubyforge_project:
|
|
84
|
-
rubygems_version: 2.2.
|
|
84
|
+
rubygems_version: 2.2.2
|
|
85
85
|
signing_key:
|
|
86
86
|
specification_version: 4
|
|
87
87
|
summary: A simple interface for Google Drive API
|