google-apis 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +4 -0
- data/VERSION +1 -1
- data/lib/google_apis/connection.rb +3 -1
- data/lib/google_apis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea78fc750c376284814fe0fb104144d9815a115b
|
4
|
+
data.tar.gz: 25ea95f6f6c5aa5481a2edd48391a7e05cd0d4be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 796038a79d21bf2ff602b79c5f6fa15f905a51e80db9b3a28032f2918ef14b83d8b7041d2a0d502dc64936a3f4162f91b87b848ea96e2a3d4d29d7640bfd44cd
|
7
|
+
data.tar.gz: 0a45ed7db4210bb5485b59652f7b4bbff757e39e91a690a85bbbeac43d595b778dd9acea2942f127354351c9c74c6ecc661c911e3dec867678afd6a79b983a73
|
data/CHANGELOG.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
@@ -43,7 +43,9 @@ module GoogleApis
|
|
43
43
|
if directory = body_object.delete(:directory)
|
44
44
|
parameters[:name] = File.join(directory, parameters[:name])
|
45
45
|
end
|
46
|
-
|
46
|
+
content_type = options[:contentType] || options[:mimeType] if options
|
47
|
+
content_type ||= `file --mime -b #{media}`.split(";")[0]
|
48
|
+
media = Google::APIClient::UploadIO.new media, content_type
|
47
49
|
end
|
48
50
|
|
49
51
|
options = {:api_method => api_method}
|
data/lib/google_apis/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Engel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|