fog-google 1.20.0 → 1.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/integration-compute-core.yml +0 -2
- data/.github/workflows/integration-compute-instance_groups.yml +0 -2
- data/.github/workflows/integration-compute-loadbalancing.yml +0 -2
- data/.github/workflows/integration-compute-networking.yml +0 -2
- data/.github/workflows/integration-monitoring.yml +0 -2
- data/.github/workflows/integration-pubsub.yml +0 -2
- data/.github/workflows/integration-sql.yml +0 -2
- data/.github/workflows/integration-storage.yml +0 -2
- data/CHANGELOG.md +31 -0
- data/fog-google.gemspec +3 -1
- data/lib/fog/google/version.rb +1 -1
- data/lib/fog/storage/google_json/utils.rb +3 -4
- data/test/unit/storage/test_json_requests.rb +8 -0
- metadata +27 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a4758b3cdcbe50e9878a69a034becb30d68c6a5d1e1841b209a51d76683bba7
|
4
|
+
data.tar.gz: 0471b66930238a16ed0090ac0fe892809e081139cdd717ec88d493a4acc2dce6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76f2ebc2c2efa0ef8996fb09a57291f8a5d9128508051be7c01d5e5acab42eebf678f514bb889e8c14f7893dbb261cef15572d298086dc1751e577dd2562a2a3
|
7
|
+
data.tar.gz: da6644adcceabfeda98adb15beea5d12f531869e918a07bdc87b86943982cf4de3b90fec0049729b30134cda4089a65fbe0e97566feab7e248e844b5f973d0ad
|
@@ -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,37 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
6
6
|
|
7
7
|
## Next
|
8
8
|
|
9
|
+
## 1.21.1
|
10
|
+
|
11
|
+
### User-facing
|
12
|
+
|
13
|
+
#### Fixed
|
14
|
+
|
15
|
+
- \#597 loosen dependencies to avoid conflict
|
16
|
+
|
17
|
+
### Development changes
|
18
|
+
|
19
|
+
#### Fixed
|
20
|
+
|
21
|
+
- bump actions/checkout from 2.4.0 to 3.1.0
|
22
|
+
- fixes and refinements for integration tests
|
23
|
+
|
24
|
+
## 1.21.0
|
25
|
+
|
26
|
+
### User-facing
|
27
|
+
|
28
|
+
#### Fixed
|
29
|
+
|
30
|
+
- \#592 use Addressable for escaping paths when generating urls
|
31
|
+
- test workflow refinements
|
32
|
+
|
33
|
+
### Development changes
|
34
|
+
|
35
|
+
#### Fixed
|
36
|
+
|
37
|
+
- bump actions/checkout from 2.4.0 to 3.1.0
|
38
|
+
- fixes and refinements for integration tests
|
39
|
+
|
9
40
|
## 1.20.0
|
10
41
|
|
11
42
|
### User-facing
|
data/fog-google.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_dependency "fog-json", "~> 1.2"
|
25
25
|
spec.add_dependency "fog-xml", "~> 0.1.0"
|
26
26
|
|
27
|
-
spec.add_dependency "google-apis-storage_v1", "
|
27
|
+
spec.add_dependency "google-apis-storage_v1", [">= 0.19", "< 1"]
|
28
28
|
spec.add_dependency "google-apis-iamcredentials_v1", "~> 0.15"
|
29
29
|
spec.add_dependency "google-apis-compute_v1", "~> 0.53"
|
30
30
|
spec.add_dependency "google-apis-monitoring_v3", "~> 0.37"
|
@@ -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
|
data/lib/fog/google/version.rb
CHANGED
@@ -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
|
-
|
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.
|
4
|
+
version: 1.21.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: 2023-
|
12
|
+
date: 2023-06-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog-core
|
@@ -57,16 +57,22 @@ dependencies:
|
|
57
57
|
name: google-apis-storage_v1
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '0.
|
62
|
+
version: '0.19'
|
63
|
+
- - "<"
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '1'
|
63
66
|
type: :runtime
|
64
67
|
prerelease: false
|
65
68
|
version_requirements: !ruby/object:Gem::Requirement
|
66
69
|
requirements:
|
67
|
-
- - "
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0.19'
|
73
|
+
- - "<"
|
68
74
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
75
|
+
version: '1'
|
70
76
|
- !ruby/object:Gem::Dependency
|
71
77
|
name: google-apis-iamcredentials_v1
|
72
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,6 +171,20 @@ dependencies:
|
|
165
171
|
- - "~>"
|
166
172
|
- !ruby/object:Gem::Version
|
167
173
|
version: '1.2'
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: addressable
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 2.7.0
|
181
|
+
type: :runtime
|
182
|
+
prerelease: false
|
183
|
+
version_requirements: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 2.7.0
|
168
188
|
- !ruby/object:Gem::Dependency
|
169
189
|
name: pry
|
170
190
|
requirement: !ruby/object:Gem::Requirement
|
@@ -859,7 +879,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
859
879
|
- !ruby/object:Gem::Version
|
860
880
|
version: '0'
|
861
881
|
requirements: []
|
862
|
-
rubygems_version: 3.4.
|
882
|
+
rubygems_version: 3.4.13
|
863
883
|
signing_key:
|
864
884
|
specification_version: 4
|
865
885
|
summary: Module for the 'fog' gem to support Google.
|