fog-google 1.20.0 → 1.21.0

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
  SHA256:
3
- metadata.gz: 3879073a8246e2c774c294319d35188c9d02136908c210dba73be0af1c006e7f
4
- data.tar.gz: 884bbac77765685255a31fd5effda59893d4765839958a55d0f4103ee818063a
3
+ metadata.gz: 07c4cba30cfe28ed3a3d9d1d0a73ba8b6402843dc3f80b3afe04d215adb04fc1
4
+ data.tar.gz: 11a0ffba522316d5c9b021033872aeb5effa3a64da135dd806d569144287c7ea
5
5
  SHA512:
6
- metadata.gz: 4fea43ddcf8fbcdeb1c3b72a8afab5ca8756fcb830372851bcb741eb8f4ae91414dd7e033f0aed247e5b7d803a5875f899f69e891876bcd90aae0b7256b76cd9
7
- data.tar.gz: 259986aa47641d39d9515b32bf6a00ea277a91964503e248ab87cdc1c99168f26dad51c164905626041170a7cd501076f5b94c0725fe1e0b2666eb21e9319699
6
+ metadata.gz: d8d710dc670d61790315bf5ba8be5e7f0c02c64d2ad7f89205ce1e77eb47dc121fbdd970de7a60f8655e7d92bf4941fb0adcceb1a6b9c190f36f6ef8b2feb545
7
+ data.tar.gz: 4b7914bf410d5c6f125abe0d026611bdb56a8cb54bf4ce957080de3e2f9b7dd79864178e0fd17f9c929b0a72b55cdf9f37e4dfebf035f2239216ccf393efa5e3
@@ -39,8 +39,6 @@ jobs:
39
39
  with:
40
40
  ruby-version: ${{ matrix.ruby-version }}
41
41
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42
- - name: Install dependencies
43
- run: bundle install
44
42
  - name: Run tests
45
43
  run: >-
46
44
  ./.github/scripts/setup_creds.sh &&
@@ -39,8 +39,6 @@ jobs:
39
39
  with:
40
40
  ruby-version: ${{ matrix.ruby-version }}
41
41
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42
- - name: Install dependencies
43
- run: bundle install
44
42
  - name: Run tests
45
43
  run: >-
46
44
  ./.github/scripts/setup_creds.sh &&
@@ -39,8 +39,6 @@ jobs:
39
39
  with:
40
40
  ruby-version: ${{ matrix.ruby-version }}
41
41
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42
- - name: Install dependencies
43
- run: bundle install
44
42
  - name: Run tests
45
43
  run: >-
46
44
  ./.github/scripts/setup_creds.sh &&
@@ -39,8 +39,6 @@ jobs:
39
39
  with:
40
40
  ruby-version: ${{ matrix.ruby-version }}
41
41
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42
- - name: Install dependencies
43
- run: bundle install
44
42
  - name: Run tests
45
43
  run: >-
46
44
  ./.github/scripts/setup_creds.sh &&
@@ -40,8 +40,6 @@ jobs:
40
40
  with:
41
41
  ruby-version: ${{ matrix.ruby-version }}
42
42
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
43
- - name: Install dependencies
44
- run: bundle install
45
43
  - name: Run tests
46
44
  run: >-
47
45
  ./.github/scripts/setup_creds.sh &&
@@ -40,8 +40,6 @@ jobs:
40
40
  with:
41
41
  ruby-version: ${{ matrix.ruby-version }}
42
42
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
43
- - name: Install dependencies
44
- run: bundle install
45
43
  - name: Run tests
46
44
  run: >-
47
45
  ./.github/scripts/setup_creds.sh &&
@@ -40,8 +40,6 @@ jobs:
40
40
  with:
41
41
  ruby-version: ${{ matrix.ruby-version }}
42
42
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
43
- - name: Install dependencies
44
- run: bundle install
45
43
  - name: Run tests
46
44
  run: >-
47
45
  ./.github/scripts/setup_creds.sh &&
@@ -41,8 +41,6 @@ jobs:
41
41
  with:
42
42
  ruby-version: ${{ matrix.ruby-version }}
43
43
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
44
- - name: Install dependencies
45
- run: bundle install
46
44
  - name: Run tests
47
45
  run: >-
48
46
  ./.github/scripts/setup_creds.sh &&
data/CHANGELOG.md CHANGED
@@ -6,6 +6,22 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
6
6
 
7
7
  ## Next
8
8
 
9
+ ## 1.21.0
10
+
11
+ ### User-facing
12
+
13
+ #### Fixed
14
+
15
+ - \#592 use Addressable for escaping paths when generating urls
16
+ - test workflow refinements
17
+
18
+ ### Development changes
19
+
20
+ #### Fixed
21
+
22
+ - bump actions/checkout from 2.4.0 to 3.1.0
23
+ - fixes and refinements for integration tests
24
+
9
25
  ## 1.20.0
10
26
 
11
27
  ### User-facing
data/fog-google.gemspec CHANGED
@@ -34,6 +34,8 @@ Gem::Specification.new do |spec|
34
34
 
35
35
  spec.add_dependency "google-cloud-env", "~> 1.2"
36
36
 
37
+ spec.add_dependency "addressable", ">= 2.7.0"
38
+
37
39
  # Debugger
38
40
  # Locked because pry-byebug is broken with 13+
39
41
  # see: https://github.com/deivid-rodriguez/pry-byebug/issues/343
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Google
3
- VERSION = "1.20.0".freeze
3
+ VERSION = "1.21.0".freeze
4
4
  end
5
5
  end
@@ -1,3 +1,5 @@
1
+ require 'addressable'
2
+
1
3
  module Fog
2
4
  module Storage
3
5
  class GoogleJSON
@@ -19,10 +21,7 @@ module Fog
19
21
 
20
22
  def host_path_query(params, expires)
21
23
  params[:headers]["Date"] = expires.to_i
22
- # implementation from CGI.escape, but without ' ' to '+' conversion
23
- params[:path] = params[:path].b.gsub(/([^a-zA-Z0-9_.\-~]+)/) { |m|
24
- '%' + m.unpack('H2' * m.bytesize).join('%').upcase
25
- }.gsub("%2F", "/")
24
+ params[:path] = ::Addressable::URI.encode_component(params[:path], ::Addressable::URI::CharacterClasses::PATH)
26
25
 
27
26
  query = []
28
27
 
@@ -49,4 +49,12 @@ class UnitTestJsonRequests < MiniTest::Test
49
49
  assert_match(/a\/b\/c/, url,
50
50
  "slashes should not be escaped with '%2F'")
51
51
  end
52
+
53
+ def test_unescaped_pluses_in_url
54
+ url = @client.get_object_https_url("bucket",
55
+ "a+c.ext",
56
+ Time.now + 2 * 60)
57
+ assert_match(/a\+c/, url,
58
+ "pluses should not be escaped with '%2B'")
59
+ end
52
60
  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: 1.20.0
4
+ version: 1.21.0
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: 2023-05-02 00:00:00.000000000 Z
12
+ date: 2023-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog-core
@@ -165,6 +165,20 @@ dependencies:
165
165
  - - "~>"
166
166
  - !ruby/object:Gem::Version
167
167
  version: '1.2'
168
+ - !ruby/object:Gem::Dependency
169
+ name: addressable
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: 2.7.0
175
+ type: :runtime
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: 2.7.0
168
182
  - !ruby/object:Gem::Dependency
169
183
  name: pry
170
184
  requirement: !ruby/object:Gem::Requirement
@@ -859,7 +873,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
859
873
  - !ruby/object:Gem::Version
860
874
  version: '0'
861
875
  requirements: []
862
- rubygems_version: 3.4.12
876
+ rubygems_version: 3.4.13
863
877
  signing_key:
864
878
  specification_version: 4
865
879
  summary: Module for the 'fog' gem to support Google.