fog-google 1.7.0 → 1.7.1
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4ef0c77cc212c88e05b3b2ba96a93a50b4e7ec6a
|
4
|
+
data.tar.gz: 3d052f7c4ae45331d3284fe06ab4b5c6387a2505
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b769db3c40da12eb211331bf3c00f73b7a938aeea5f09a1672cc142c68044b05303e79919b4dc611bce66684b6bf8b4255d3532e615c412357e58b80ca95fc9f
|
7
|
+
data.tar.gz: 775be1007e7030acbb089441297345e78d9afa106659be6d47d4017ad86f3db36c4ca9ab96eec0bb4a181d1bb8aebaef431cd730a0e6ccdee9b3ec8c90c7d546
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,15 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
The format is loosely based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
4
4
|
|
5
|
+
## 1.7.1
|
6
|
+
|
7
|
+
### User-facing
|
8
|
+
|
9
|
+
#### Fixed
|
10
|
+
|
11
|
+
- \#412 Fixed `Fog::Storage::GoogleXML::GetObjectHttpUrl#get_object_http_url`
|
12
|
+
request
|
13
|
+
|
5
14
|
## 1.7.0
|
6
15
|
|
7
16
|
### User-facing
|
data/lib/fog/google/version.rb
CHANGED
@@ -6,12 +6,11 @@ module Fog
|
|
6
6
|
raise ArgumentError.new("bucket_name is required") unless bucket_name
|
7
7
|
raise ArgumentError.new("object_name is required") unless object_name
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
http_url(options.merge(:headers => {},
|
10
|
+
:host => @host,
|
11
|
+
:method => "GET",
|
12
|
+
:path => "#{bucket_name}/#{object_name}"),
|
13
13
|
expires)
|
14
|
-
http_url(url_options, expires)
|
15
14
|
end
|
16
15
|
end
|
17
16
|
|
@@ -2,7 +2,7 @@ module Fog
|
|
2
2
|
module Storage
|
3
3
|
class GoogleXML
|
4
4
|
module GetObjectHttpsUrl
|
5
|
-
def get_object_https_url(bucket_name, object_name, expires, options)
|
5
|
+
def get_object_https_url(bucket_name, object_name, expires, options = {})
|
6
6
|
raise ArgumentError.new("bucket_name is required") unless bucket_name
|
7
7
|
raise ArgumentError.new("object_name is required") unless object_name
|
8
8
|
|
@@ -12,6 +12,22 @@ class UnitTestXMLRequests < MiniTest::Test
|
|
12
12
|
Fog.unmock!
|
13
13
|
end
|
14
14
|
|
15
|
+
def test_get_http_url
|
16
|
+
url = @client.get_object_http_url("bucket",
|
17
|
+
"just some file.json",
|
18
|
+
Time.now + 2 * 60)
|
19
|
+
assert_match(/^http:\/\//, url,
|
20
|
+
"URL starts with HTTP")
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_get_https_url
|
24
|
+
url = @client.get_object_https_url("bucket",
|
25
|
+
"just some file.json",
|
26
|
+
Time.now + 2 * 60)
|
27
|
+
assert_match(/^https:\/\//, url,
|
28
|
+
"URL starts with HTTPS")
|
29
|
+
end
|
30
|
+
|
15
31
|
def test_get_url_path_has_query_params
|
16
32
|
url = @client.get_object_url("bucket",
|
17
33
|
"just some file.json",
|
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: 1.7.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nat Welch
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-08-
|
12
|
+
date: 2018-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog-core
|
@@ -778,7 +778,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
778
778
|
version: '0'
|
779
779
|
requirements: []
|
780
780
|
rubyforge_project:
|
781
|
-
rubygems_version: 2.
|
781
|
+
rubygems_version: 2.5.1
|
782
782
|
signing_key:
|
783
783
|
specification_version: 4
|
784
784
|
summary: Module for the 'fog' gem to support Google.
|