fog-google 0.3.1 → 0.3.2

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: 5b3f8dd25cfad87266e88088be798d5395746018
4
- data.tar.gz: dc2d183f2b2a0a8a97cf2126ac346a1fa6ccd260
3
+ metadata.gz: b27707eb484f217aad6c9cc51dcbfeb831ed9fcd
4
+ data.tar.gz: af62778fe526e0d2b52e78b77cc7551e1a7357cf
5
5
  SHA512:
6
- metadata.gz: ecd07753f7391e55f983b2928285c012952f79f99feb22036aa655a6289d1eb3642f5dfbf5a8e4b8c7ad715126bde0a7a12d11e2e374c9f29c6181dbfd5240ab
7
- data.tar.gz: 69da3763bac5386c86d6a4c01f223cec51988740fb50dad29a6a5ac24f4fc8b0e5559d97fad83070db71bfc8ca3755a9324a0d59888c4dec21fc0597d8d43ecf
6
+ metadata.gz: 4efa40522165a909fe905fdf7c3a3026e07744b4b006c2ac7d07e7c32eec32f3b3db2fd86c621a15ac814ec5d3656e8e3ea70fbb391a2bf371c6c5e81dc0a1e4
7
+ data.tar.gz: 8eab5d7ca82a571d9622ec7ff24821bb1c6bb4e5fd8d5dcb6fb44c6540afad9a400ddf8c50ca522bc7fc89b03c186077d8aa6f3db3af60de5b4c3de25d28fecc
data/examples/storage.rb CHANGED
@@ -25,6 +25,18 @@ def test
25
25
  puts "---------------"
26
26
  connection.put_object("fog-smoke-test", "my file", "THISISATESTFILE")
27
27
 
28
+ puts "Get the test file..."
29
+ puts "---------------"
30
+ connection.get_object("fog-smoke-test", "my file")
31
+
32
+ puts "Head file..."
33
+ puts "---------------"
34
+ connection.head_object("fog-smoke-test", "my file")
35
+
36
+ puts "Get file ACL..."
37
+ puts "---------------"
38
+ connection.get_object_acl("fog-smoke-test", "my file")
39
+
28
40
  puts "Delete the test file..."
29
41
  puts "---------------"
30
42
  connection.delete_object("fog-smoke-test", "my file")
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Google
3
- VERSION = "0.3.1".freeze
3
+ VERSION = "0.3.2".freeze
4
4
  end
5
5
  end
@@ -63,7 +63,7 @@ DATA
63
63
  end
64
64
  canonical_resource << params[:path].to_s
65
65
  canonical_resource << "?"
66
- params.fetch(:query, {}).keys.each do |key|
66
+ (params[:query] || {}).keys.each do |key|
67
67
  if %w(acl cors location logging requestPayment torrent versions versioning).include?(key)
68
68
  canonical_resource << "#{key}&"
69
69
  end
@@ -46,7 +46,7 @@ module Fog
46
46
  :host => "#{bucket_name}.#{@host}",
47
47
  :idempotent => true,
48
48
  :method => "GET",
49
- :path => CGI.escape(object_name)))
49
+ :path => Fog::Google.escape(object_name)))
50
50
  end
51
51
  end
52
52
 
@@ -39,7 +39,7 @@ module Fog
39
39
  :idempotent => true,
40
40
  :method => "GET",
41
41
  :parser => Fog::Parsers::Storage::Google::AccessControlList.new,
42
- :path => CGI.escape(object_name),
42
+ :path => Fog::Google.escape(object_name),
43
43
  :query => query)
44
44
  end
45
45
  end
@@ -30,7 +30,7 @@ module Fog
30
30
  :host => "#{bucket_name}.#{@host}",
31
31
  :idempotent => true,
32
32
  :method => "GET",
33
- :path => CGI.escape(object_name),
33
+ :path => Fog::Google.escape(object_name),
34
34
  :query => { "torrent" => nil })
35
35
  end
36
36
  end
@@ -37,7 +37,7 @@ module Fog
37
37
  :headers => headers,
38
38
  :host => "#{bucket_name}.#{@host}",
39
39
  :method => "HEAD",
40
- :path => CGI.escape(object_name),
40
+ :path => Fog::Google.escape(object_name),
41
41
  :query => query)
42
42
  end
43
43
  end
@@ -41,7 +41,7 @@ DATA
41
41
  :host => "#{bucket_name}.#{@host}",
42
42
  :method => "PUT",
43
43
  :query => { "acl" => nil },
44
- :path => CGI.escape(object_name))
44
+ :path => Fog::Google.escape(object_name))
45
45
  end
46
46
  end
47
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Welch
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-05-15 00:00:00.000000000 Z
14
+ date: 2016-05-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: fog-core
@@ -720,7 +720,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
720
720
  version: '0'
721
721
  requirements: []
722
722
  rubyforge_project:
723
- rubygems_version: 2.4.8
723
+ rubygems_version: 2.2.5
724
724
  signing_key:
725
725
  specification_version: 4
726
726
  summary: Module for the 'fog' gem to support Google.