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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7408540932588898e564b91fefa8603fca1378e
4
- data.tar.gz: 02cddbaa50219cc1e69a9e50f020918455cab8ef
3
+ metadata.gz: ea78fc750c376284814fe0fb104144d9815a115b
4
+ data.tar.gz: 25ea95f6f6c5aa5481a2edd48391a7e05cd0d4be
5
5
  SHA512:
6
- metadata.gz: c34945abf61611fd8ce5e751e8f3b4d1edbadde1b42b4e1c25ade6a65cbb5a1c250775ddcc8b9f32c40050109b4227418abc5af434ca269dd2993957c075b1c2
7
- data.tar.gz: b34cea86d30792bc6e91aadca0d3b38a2066433130c35a51d90d001027786c2c8d5cc975f6e6aeb0a013e6f34cba5be7ef766efd9207ac3ae85295ec05380547
6
+ metadata.gz: 796038a79d21bf2ff602b79c5f6fa15f905a51e80db9b3a28032f2918ef14b83d8b7041d2a0d502dc64936a3f4162f91b87b848ea96e2a3d4d29d7640bfd44cd
7
+ data.tar.gz: 0a45ed7db4210bb5485b59652f7b4bbff757e39e91a690a85bbbeac43d595b778dd9acea2942f127354351c9c74c6ecc661c911e3dec867678afd6a79b983a73
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Google APIs CHANGELOG
2
2
 
3
+ == Version 0.1.7 (July 16, 2015)
4
+
5
+ * Respecting (optionally) passed :content_type or :mime_type option when dealing with upload media
6
+
3
7
  == Version 0.1.6 (May 27, 2015)
4
8
 
5
9
  * Handling Google BigQuery NULL values correctly
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
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
- media = Google::APIClient::UploadIO.new(media, `file --mime -b #{media}`.split(";")[0])
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}
@@ -1,7 +1,7 @@
1
1
  module GoogleApis
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- TINY = 6
4
+ TINY = 7
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
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.6
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-05-27 00:00:00.000000000 Z
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