fog-google 1.7.0 → 1.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: c6cd15c3ff3e7cf034e00dd6d7ff6b1180a9f4ec900cd33ea668df67fd76e054
4
- data.tar.gz: f6023c601325a7657682515525d7f2152742514298a96a8a66cd4253f5d6da7d
2
+ SHA1:
3
+ metadata.gz: 4ef0c77cc212c88e05b3b2ba96a93a50b4e7ec6a
4
+ data.tar.gz: 3d052f7c4ae45331d3284fe06ab4b5c6387a2505
5
5
  SHA512:
6
- metadata.gz: faf730e43186059835223e61f6ee7280d62de27bb9aeb40eb08e5b15c868633c0a9ce24db072857fd271a47e447b84171f5069334a37ed125a13709e5c626dbf
7
- data.tar.gz: 70ffe56c87f88d4a65027115a2e22428a0db607b94651de2c72bc81789ecf21094b6b94f63cdd7789ec201190d358bd59492f87bfd94238b0e2c4f70260cde77
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
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Google
3
- VERSION = "1.7.0".freeze
3
+ VERSION = "1.7.1".freeze
4
4
  end
5
5
  end
@@ -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
- https_url(options.merge(:headers => {},
10
- :host => @host,
11
- :method => "GET",
12
- :path => "#{bucket_name}/#{object_name}"),
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.0
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-19 00:00:00.000000000 Z
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.7.7
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.