fog-google 1.25.0 → 1.26.0
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 +4 -4
- data/.github/workflows/integration-compute-core.yml +2 -2
- data/.github/workflows/integration-compute-instance_groups.yml +2 -2
- data/.github/workflows/integration-compute-loadbalancing.yml +2 -2
- data/.github/workflows/integration-compute-networking.yml +2 -2
- data/.github/workflows/integration-monitoring.yml +2 -2
- data/.github/workflows/integration-pubsub.yml +2 -2
- data/.github/workflows/integration-sql.yml +2 -2
- data/.github/workflows/integration-storage.yml +2 -2
- data/.github/workflows/unit.yml +2 -2
- data/CHANGELOG.md +46 -27
- data/SECURITY.md +3 -14
- data/fog-google.gemspec +2 -3
- data/lib/fog/google/compute/models/server.rb +1 -1
- data/lib/fog/google/storage/storage_json/real.rb +4 -2
- data/lib/fog/google/storage/storage_json/utils.rb +4 -2
- data/lib/fog/google/storage/storage_xml/real.rb +4 -2
- data/lib/fog/google/storage/storage_xml/requests/get_bucket.rb +1 -1
- data/lib/fog/google/storage/storage_xml/utils.rb +4 -2
- data/lib/fog/google/version.rb +1 -1
- metadata +5 -198
- data/.github/workflows/stale.yml +0 -23
- data/test/helpers/client_helper.rb +0 -63
- data/test/helpers/integration_test_helper.rb +0 -108
- data/test/helpers/test_collection.rb +0 -60
- data/test/helpers/test_helper.rb +0 -28
- data/test/integration/compute/core_compute/test_client_options.rb +0 -12
- data/test/integration/compute/core_compute/test_coverage.rb +0 -6
- data/test/integration/compute/core_compute/test_disk_types.rb +0 -43
- data/test/integration/compute/core_compute/test_disks.rb +0 -53
- data/test/integration/compute/core_compute/test_images.rb +0 -32
- data/test/integration/compute/core_compute/test_machine_types.rb +0 -55
- data/test/integration/compute/core_compute/test_operations.rb +0 -45
- data/test/integration/compute/core_compute/test_projects.rb +0 -19
- data/test/integration/compute/core_compute/test_regions.rb +0 -33
- data/test/integration/compute/core_compute/test_servers.rb +0 -235
- data/test/integration/compute/core_compute/test_snapshots.rb +0 -21
- data/test/integration/compute/core_compute/test_zones.rb +0 -35
- data/test/integration/compute/core_networking/test_addresses.rb +0 -107
- data/test/integration/compute/core_networking/test_coverage.rb +0 -6
- data/test/integration/compute/core_networking/test_firewalls.rb +0 -11
- data/test/integration/compute/core_networking/test_networks.rb +0 -30
- data/test/integration/compute/core_networking/test_routes.rb +0 -26
- data/test/integration/compute/core_networking/test_subnetworks.rb +0 -11
- data/test/integration/compute/instance_groups/test_coverage.rb +0 -6
- data/test/integration/compute/instance_groups/test_instance_group_managers.rb +0 -11
- data/test/integration/compute/instance_groups/test_instance_groups.rb +0 -11
- data/test/integration/compute/instance_groups/test_instance_templates.rb +0 -11
- data/test/integration/compute/loadbalancing/test_backend_services.rb +0 -11
- data/test/integration/compute/loadbalancing/test_coverage.rb +0 -6
- data/test/integration/compute/loadbalancing/test_forwarding_rules.rb +0 -11
- data/test/integration/compute/loadbalancing/test_global_addresses.rb +0 -11
- data/test/integration/compute/loadbalancing/test_global_forwarding_rules.rb +0 -11
- data/test/integration/compute/loadbalancing/test_http_health_checks.rb +0 -11
- data/test/integration/compute/loadbalancing/test_ssl_certificates.rb +0 -11
- data/test/integration/compute/loadbalancing/test_target_http_proxies.rb +0 -11
- data/test/integration/compute/loadbalancing/test_target_https_proxies.rb +0 -11
- data/test/integration/compute/loadbalancing/test_target_instances.rb +0 -11
- data/test/integration/compute/loadbalancing/test_target_pools.rb +0 -55
- data/test/integration/compute/loadbalancing/test_url_maps.rb +0 -11
- data/test/integration/factories/addresses_factory.rb +0 -20
- data/test/integration/factories/backend_services_factory.rb +0 -19
- data/test/integration/factories/collection_factory.rb +0 -52
- data/test/integration/factories/disks_factory.rb +0 -22
- data/test/integration/factories/firewalls_factory.rb +0 -13
- data/test/integration/factories/forwarding_rules_factory.rb +0 -25
- data/test/integration/factories/global_addresses_factory.rb +0 -15
- data/test/integration/factories/global_forwarding_rules_factory.rb +0 -20
- data/test/integration/factories/http_health_checks_factory.rb +0 -11
- data/test/integration/factories/images_factory.rb +0 -16
- data/test/integration/factories/instance_group_manager_factory.rb +0 -30
- data/test/integration/factories/instance_groups_factory.rb +0 -20
- data/test/integration/factories/instance_template_factory.rb +0 -24
- data/test/integration/factories/networks_factory.rb +0 -14
- data/test/integration/factories/servers_factory.rb +0 -30
- data/test/integration/factories/sql_certs_factory.rb +0 -20
- data/test/integration/factories/sql_instances_factory.rb +0 -19
- data/test/integration/factories/sql_users_factory.rb +0 -23
- data/test/integration/factories/ssl_certificates_factory.rb +0 -13
- data/test/integration/factories/subnetworks_factory.rb +0 -26
- data/test/integration/factories/target_http_proxies_factory.rb +0 -19
- data/test/integration/factories/target_https_proxies_factory.rb +0 -26
- data/test/integration/factories/target_instances_factory.rb +0 -24
- data/test/integration/factories/target_pools_factory.rb +0 -28
- data/test/integration/factories/url_maps_factory.rb +0 -19
- data/test/integration/monitoring/test_coverage.rb +0 -6
- data/test/integration/monitoring/test_metric_descriptors.rb +0 -131
- data/test/integration/monitoring/test_monitored_resource_descriptors.rb +0 -37
- data/test/integration/monitoring/test_timeseries.rb +0 -253
- data/test/integration/pubsub/pubsub_shared.rb +0 -75
- data/test/integration/pubsub/test_coverage.rb +0 -6
- data/test/integration/pubsub/test_pubsub_models.rb +0 -135
- data/test/integration/pubsub/test_pubsub_requests.rb +0 -105
- data/test/integration/sql/test_certs.rb +0 -50
- data/test/integration/sql/test_common_flags.rb +0 -31
- data/test/integration/sql/test_common_tiers.rb +0 -26
- data/test/integration/sql/test_coverage.rb +0 -6
- data/test/integration/sql/test_instances.rb +0 -101
- data/test/integration/sql/test_users.rb +0 -37
- data/test/integration/storage/storage_shared.rb +0 -101
- data/test/integration/storage/test_buckets.rb +0 -112
- data/test/integration/storage/test_coverage.rb +0 -6
- data/test/integration/storage/test_directories.rb +0 -67
- data/test/integration/storage/test_files.rb +0 -168
- data/test/integration/storage/test_objects.rb +0 -226
- data/test/integration/test_authentication.rb +0 -38
- data/test/unit/compute/test_common_collections.rb +0 -42
- data/test/unit/compute/test_common_models.rb +0 -35
- data/test/unit/compute/test_disk.rb +0 -26
- data/test/unit/compute/test_server.rb +0 -29
- data/test/unit/dns/test_common_collections.rb +0 -43
- data/test/unit/monitoring/test_comon_collections.rb +0 -44
- data/test/unit/pubsub/test_common_collections.rb +0 -35
- data/test/unit/sql/test_common_collections.rb +0 -46
- data/test/unit/storage/test_common_json_collections.rb +0 -38
- data/test/unit/storage/test_common_xml_collections.rb +0 -50
- data/test/unit/storage/test_json_requests.rb +0 -60
- data/test/unit/storage/test_xml_requests.rb +0 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5f068b5166ef1e1c12d9bef6ae6da15c489df03929d86047709ef19c3dd70e9
|
4
|
+
data.tar.gz: 4e94f5cfb3be3fec06535efd74368720b42c37537ea8ffcf2c42888b68bcf283
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fed398133b6232a92ada212c143d65228dbb3a0d6c49b1842256ef79b1fea2a2bf9add46947459d2afb4b3df4f69fb74b49bfe14f0a6459cceab7adb4518ae1
|
7
|
+
data.tar.gz: 53397624bfcdb357853bba55725c9c60336c734fe0ecb81f812cabed0945cb9009b93b2d3b6ff04e3673082ebee82d1fdda647f55631dced3f27673a8f6f1430
|
@@ -36,13 +36,13 @@ jobs:
|
|
36
36
|
runs-on: fog-arc-runner
|
37
37
|
strategy:
|
38
38
|
matrix:
|
39
|
-
ruby-version: [ '3.0', '3.1', '3.2' ]
|
39
|
+
ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4' ]
|
40
40
|
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
41
41
|
# TODO(fog-google#626): remove this once cleanup is fixed
|
42
42
|
max-parallel: 1
|
43
43
|
|
44
44
|
steps:
|
45
|
-
- uses: actions/checkout@
|
45
|
+
- uses: actions/checkout@v5
|
46
46
|
- name: Set up Ruby
|
47
47
|
uses: ruby/setup-ruby@v1
|
48
48
|
with:
|
@@ -37,12 +37,12 @@ jobs:
|
|
37
37
|
runs-on: fog-arc-runner
|
38
38
|
strategy:
|
39
39
|
matrix:
|
40
|
-
ruby-version: [ '3.0', '3.1', '3.2' ]
|
40
|
+
ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4' ]
|
41
41
|
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
42
42
|
max-parallel: 1
|
43
43
|
|
44
44
|
steps:
|
45
|
-
- uses: actions/checkout@
|
45
|
+
- uses: actions/checkout@v5
|
46
46
|
- name: Set up Ruby
|
47
47
|
uses: ruby/setup-ruby@v1
|
48
48
|
with:
|
@@ -37,12 +37,12 @@ jobs:
|
|
37
37
|
runs-on: fog-arc-runner
|
38
38
|
strategy:
|
39
39
|
matrix:
|
40
|
-
ruby-version: [ '3.0', '3.1', '3.2' ]
|
40
|
+
ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4' ]
|
41
41
|
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
42
42
|
max-parallel: 1
|
43
43
|
|
44
44
|
steps:
|
45
|
-
- uses: actions/checkout@
|
45
|
+
- uses: actions/checkout@v5
|
46
46
|
- name: Set up Ruby
|
47
47
|
uses: ruby/setup-ruby@v1
|
48
48
|
with:
|
@@ -36,12 +36,12 @@ jobs:
|
|
36
36
|
runs-on: fog-arc-runner
|
37
37
|
strategy:
|
38
38
|
matrix:
|
39
|
-
ruby-version: [ '3.0', '3.1', '3.2' ]
|
39
|
+
ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4' ]
|
40
40
|
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
41
41
|
max-parallel: 1
|
42
42
|
|
43
43
|
steps:
|
44
|
-
- uses: actions/checkout@
|
44
|
+
- uses: actions/checkout@v5
|
45
45
|
- name: Set up Ruby
|
46
46
|
uses: ruby/setup-ruby@v1
|
47
47
|
with:
|
@@ -37,12 +37,12 @@ jobs:
|
|
37
37
|
runs-on: fog-arc-runner
|
38
38
|
strategy:
|
39
39
|
matrix:
|
40
|
-
ruby-version: [ '3.0', '3.1', '3.2' ]
|
40
|
+
ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4' ]
|
41
41
|
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
42
42
|
max-parallel: 1
|
43
43
|
|
44
44
|
steps:
|
45
|
-
- uses: actions/checkout@
|
45
|
+
- uses: actions/checkout@v5
|
46
46
|
- name: Set up Ruby
|
47
47
|
uses: ruby/setup-ruby@v1
|
48
48
|
with:
|
@@ -37,12 +37,12 @@ jobs:
|
|
37
37
|
runs-on: fog-arc-runner
|
38
38
|
strategy:
|
39
39
|
matrix:
|
40
|
-
ruby-version: [ '3.0', '3.1', '3.2' ]
|
40
|
+
ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4' ]
|
41
41
|
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
42
42
|
max-parallel: 1
|
43
43
|
|
44
44
|
steps:
|
45
|
-
- uses: actions/checkout@
|
45
|
+
- uses: actions/checkout@v5
|
46
46
|
- name: Set up Ruby
|
47
47
|
uses: ruby/setup-ruby@v1
|
48
48
|
with:
|
@@ -37,12 +37,12 @@ jobs:
|
|
37
37
|
runs-on: fog-arc-runner
|
38
38
|
strategy:
|
39
39
|
matrix:
|
40
|
-
ruby-version: [ '3.0', '3.1', '3.2' ]
|
40
|
+
ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4' ]
|
41
41
|
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
42
42
|
max-parallel: 1
|
43
43
|
|
44
44
|
steps:
|
45
|
-
- uses: actions/checkout@
|
45
|
+
- uses: actions/checkout@v5
|
46
46
|
- name: Set up Ruby
|
47
47
|
uses: ruby/setup-ruby@v1
|
48
48
|
with:
|
@@ -38,12 +38,12 @@ jobs:
|
|
38
38
|
runs-on: fog-arc-runner
|
39
39
|
strategy:
|
40
40
|
matrix:
|
41
|
-
ruby-version: [ '3.0', '3.1', '3.2' ]
|
41
|
+
ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4' ]
|
42
42
|
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
43
43
|
max-parallel: 1
|
44
44
|
|
45
45
|
steps:
|
46
|
-
- uses: actions/checkout@
|
46
|
+
- uses: actions/checkout@v5
|
47
47
|
- name: Set up Ruby
|
48
48
|
uses: ruby/setup-ruby@v1
|
49
49
|
with:
|
data/.github/workflows/unit.yml
CHANGED
@@ -16,10 +16,10 @@ jobs:
|
|
16
16
|
runs-on: ubuntu-latest
|
17
17
|
strategy:
|
18
18
|
matrix:
|
19
|
-
ruby-version: [ '3.0', '3.1', '3.2', 'head', 'truffleruby-head']
|
19
|
+
ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4', 'head', 'truffleruby-head']
|
20
20
|
|
21
21
|
steps:
|
22
|
-
- uses: actions/checkout@
|
22
|
+
- uses: actions/checkout@v5
|
23
23
|
- name: Set up Ruby
|
24
24
|
uses: ruby/setup-ruby@v1
|
25
25
|
with:
|
data/CHANGELOG.md
CHANGED
@@ -4,10 +4,29 @@ The format is loosely based on [Keep a Changelog](http://keepachangelog.com/en/1
|
|
4
4
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
##
|
7
|
+
## 1.26.0
|
8
8
|
|
9
9
|
### User-facing
|
10
10
|
|
11
|
+
#### Fixed
|
12
|
+
|
13
|
+
- #632 remove unused files from package [temikus]
|
14
|
+
- #643 update disk attachment method to use new attached_disk_obj method [geemus]
|
15
|
+
- #644 improve mock bucket name regex validation [geemus]
|
16
|
+
- #646 fix frozen string literal warnings in storage [krororo]
|
17
|
+
|
18
|
+
### Development changes
|
19
|
+
|
20
|
+
#### Added
|
21
|
+
|
22
|
+
- #645 add ruby 3.3 and 3.4 to CI test matrix [krororo]
|
23
|
+
|
24
|
+
#### Fixed
|
25
|
+
|
26
|
+
- #641 Updated actions/checkout from 4 to 5 [dependabot]
|
27
|
+
- #642 Updated actions/stale from 9 to 10 [dependabot]
|
28
|
+
- remove stale workflow [geemus]
|
29
|
+
|
11
30
|
## 1.25.0
|
12
31
|
|
13
32
|
### User-facing
|
@@ -335,7 +354,7 @@ Drop travis usage
|
|
335
354
|
|
336
355
|
#### Fixed
|
337
356
|
|
338
|
-
- \#448 Add `:google_application_default` as recognized argument in
|
357
|
+
- \#448 Add `:google_application_default` as recognized argument in
|
339
358
|
Fog::Compute::Google client [mavin]
|
340
359
|
|
341
360
|
### Development changes
|
@@ -351,14 +370,14 @@ Drop travis usage
|
|
351
370
|
#### Added
|
352
371
|
|
353
372
|
- \#442 Add support for Application Default credentials [mavin]
|
354
|
-
- This change allows the use of Application Default Credentials so that end
|
373
|
+
- This change allows the use of Application Default Credentials so that end
|
355
374
|
users can authenticate without a service account for development, testing,
|
356
|
-
and one-off interactions by using `:google_application_default`client
|
375
|
+
and one-off interactions by using `:google_application_default`client
|
357
376
|
option. See README for more details.
|
358
377
|
|
359
378
|
### Fixed
|
360
379
|
|
361
|
-
- \#444 Remove deprecated `google_client_email` option from client parameters
|
380
|
+
- \#444 Remove deprecated `google_client_email` option from client parameters
|
362
381
|
[temikus]
|
363
382
|
- \#446 Updating service parameters to avoid "unrecognised parameter" warnings
|
364
383
|
when initializing Fog client with application default auth [temikus]
|
@@ -383,7 +402,7 @@ Drop travis usage
|
|
383
402
|
|
384
403
|
#### Fixed
|
385
404
|
|
386
|
-
- \#433 Allow the api to close Tempfiles inline, improving disk utilization.
|
405
|
+
- \#433 Allow the api to close Tempfiles inline, improving disk utilization.
|
387
406
|
[itopalov]
|
388
407
|
|
389
408
|
### Development changes
|
@@ -425,12 +444,12 @@ Drop travis usage
|
|
425
444
|
- \#419 Locked down fog upstream dependencies to alleviate deprecation warnings
|
426
445
|
until they can be properly dealt with. [temikus]
|
427
446
|
- \#400 Small `%Collection%.get` and `%Collection%.all` behaviour fixes [temikus]
|
428
|
-
- `Fog::Google::SQL::Instances.get(nil)` no longer returns an invalid
|
447
|
+
- `Fog::Google::SQL::Instances.get(nil)` no longer returns an invalid
|
429
448
|
`sql#instancesList` object.
|
430
|
-
- `Fog::Compute::Google::InstanceGroups.get` and `.all` methods now support
|
449
|
+
- `Fog::Compute::Google::InstanceGroups.get` and `.all` methods now support
|
431
450
|
more than just `:filter` option, fixed `.all` output without `zone` option.
|
432
451
|
- Fix a typo causing `Operations.get(region:REGION)` to fail.
|
433
|
-
- `Fog::Compute::Google::Images.get(IMAGE, PROJECT)`, now returns `nil` if
|
452
|
+
- `Fog::Compute::Google::Images.get(IMAGE, PROJECT)`, now returns `nil` if
|
434
453
|
image is not found rather than throwing `Google::Apis::ClientError`.
|
435
454
|
|
436
455
|
### Development changes
|
@@ -438,13 +457,13 @@ Drop travis usage
|
|
438
457
|
#### Added
|
439
458
|
|
440
459
|
- \#400 Additional test coverage [temikus]
|
441
|
-
- Expanded tests for `%Collection%.get` behavior - scoped requests
|
442
|
-
(e.g. `get(zone:ZONE)`) and their corresponding code paths are now also
|
460
|
+
- Expanded tests for `%Collection%.get` behavior - scoped requests
|
461
|
+
(e.g. `get(zone:ZONE)`) and their corresponding code paths are now also
|
443
462
|
properly tested.
|
444
463
|
- Increase `Fog::Compute::Google::Images` integration test coverage.
|
445
464
|
- Unit tests now work without a `~/.fog` config file set up.
|
446
465
|
- Expanded unit test coverage.
|
447
|
-
- \#424 Add simple integration tests to check client proxy options being
|
466
|
+
- \#424 Add simple integration tests to check client proxy options being
|
448
467
|
applied.
|
449
468
|
|
450
469
|
#### Changed
|
@@ -461,7 +480,7 @@ Drop travis usage
|
|
461
480
|
|
462
481
|
#### Fixed
|
463
482
|
|
464
|
-
- \#412 Fixed `Fog::Storage::GoogleXML::GetObjectHttpUrl#get_object_http_url`
|
483
|
+
- \#412 Fixed `Fog::Storage::GoogleXML::GetObjectHttpUrl#get_object_http_url`
|
465
484
|
request
|
466
485
|
|
467
486
|
## 1.7.0
|
@@ -478,8 +497,8 @@ Drop travis usage
|
|
478
497
|
|
479
498
|
#### Changed
|
480
499
|
|
481
|
-
- \#394 `save/update/destroy` and other operations now wait until they are in a
|
482
|
-
DONE state, instead of !PENDING. This should be a no-op for users but should
|
500
|
+
- \#394 `save/update/destroy` and other operations now wait until they are in a
|
501
|
+
DONE state, instead of !PENDING. This should be a no-op for users but should
|
483
502
|
safeguard from issues in the future. [temikus]
|
484
503
|
- \#383 `Fog::Compute::Google::Address` resources are now created synchronously
|
485
504
|
by default. [temikus]
|
@@ -497,7 +516,7 @@ Drop travis usage
|
|
497
516
|
- \#376 Add doc coverage tracking. [temikus]
|
498
517
|
- \#383 Increase integration test coverage further. [temikus]
|
499
518
|
- Add collection tests and factories (when mutable) for following resources:
|
500
|
-
- Addresses
|
519
|
+
- Addresses
|
501
520
|
- Disks
|
502
521
|
- Projects
|
503
522
|
- Routes
|
@@ -521,7 +540,7 @@ Drop travis usage
|
|
521
540
|
|
522
541
|
#### Changed
|
523
542
|
|
524
|
-
- \#338 `Fog::Google::SQL` resources are now created and destroyed synchronously by default.
|
543
|
+
- \#338 `Fog::Google::SQL` resources are now created and destroyed synchronously by default.
|
525
544
|
You can override it in a standard manner by passing a parameter to async method, e.g.:
|
526
545
|
`Fog::Google::SQL::Instance.create(true)` [temikus]
|
527
546
|
- \#367 `Fog::Compute::Google::Server.bootstrap` changes [temikus]
|
@@ -590,30 +609,30 @@ You can override it in a standard manner by passing a parameter to async method,
|
|
590
609
|
#### Added
|
591
610
|
|
592
611
|
- \#336 `Fog::Compute::Google::Server.set_metadata` is now working properly and adopted a simpler format, e.g. `{'foo' => 'bar', 'baz'=>'foo'}`
|
593
|
-
- \#334 Added a new helper method: `Fog::Compute::Google::Server.public_ip_address` [temikus]
|
594
|
-
- \#314 Added `Fog::Compute::Google::InstanceGroup.add_instance` method back [temikus]
|
612
|
+
- \#334 Added a new helper method: `Fog::Compute::Google::Server.public_ip_address` [temikus]
|
613
|
+
- \#314 Added `Fog::Compute::Google::InstanceGroup.add_instance` method back [temikus]
|
595
614
|
- \#326 Added support for using predefined ACLs, refactor valid ACLs [vimutter]
|
596
615
|
- \#318 Added fog_public support in Storage JSON API [jayhsu21]
|
597
616
|
|
598
617
|
#### Fixed
|
599
618
|
|
600
|
-
- \#354 Bump Google API client to 0.23 [temikus]
|
601
|
-
- \#346 Fixed get_health when called with an instance name [bpaquet]
|
602
|
-
- \#317 Fixed source_image selection to get the image from name if the format is not compatible with new Google API Client [temikus]
|
603
|
-
- \#321 Fix string key instead of symbol for subnetworks listing [tumido]
|
604
|
-
- \#351 Fixed trailing spaces and added data presence check to `Fog::Storage::GoogleJSON.put_object` [vimutter]
|
619
|
+
- \#354 Bump Google API client to 0.23 [temikus]
|
620
|
+
- \#346 Fixed get_health when called with an instance name [bpaquet]
|
621
|
+
- \#317 Fixed source_image selection to get the image from name if the format is not compatible with new Google API Client [temikus]
|
622
|
+
- \#321 Fix string key instead of symbol for subnetworks listing [tumido]
|
623
|
+
- \#351 Fixed trailing spaces and added data presence check to `Fog::Storage::GoogleJSON.put_object` [vimutter]
|
605
624
|
|
606
625
|
### Development changes
|
607
626
|
|
608
627
|
#### Added
|
609
628
|
|
610
|
-
- \#353 Added collection/model unit tests to be run by Travis CI [temikus]
|
611
|
-
- \#347 Added target pool tests [temikus]
|
629
|
+
- \#353 Added collection/model unit tests to be run by Travis CI [temikus]
|
630
|
+
- \#347 Added target pool tests [temikus]
|
612
631
|
|
613
632
|
#### Fixed
|
614
633
|
|
615
634
|
- \#322 Fixed all broken integration tests, all tests now pass in CI [temikus]
|
616
|
-
- \#344 Updated CI pipeline to run in parallel, broke out test tasks [temikus]
|
635
|
+
- \#344 Updated CI pipeline to run in parallel, broke out test tasks [temikus]
|
617
636
|
|
618
637
|
## 1.0.1
|
619
638
|
|
data/SECURITY.md
CHANGED
@@ -1,16 +1,5 @@
|
|
1
|
-
# Security
|
1
|
+
# Security contact information
|
2
2
|
|
3
|
-
|
3
|
+
To report a security vulnerability, please contact [Tidelift security](https://tidelift.com/security).
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
Versions with :white_check_mark: are supported. All other versions need to be upgraded.
|
8
|
-
|
9
|
-
| Version | Supported |
|
10
|
-
| ------- | ------------------ |
|
11
|
-
| 1.9.x | :white_check_mark: |
|
12
|
-
| 0.1.x | :white_check_mark: until July 1st, 2019 |
|
13
|
-
|
14
|
-
## Reporting a Vulnerability
|
15
|
-
|
16
|
-
Please file an issue here to report a vulnerability. For immediate escalations, please email nat@natwelch.com and temikus@google.com with the subject `[Fog-Google Security Issue] Description`.
|
5
|
+
Tidelift will coordinate the fix and disclosure.
|
data/fog-google.gemspec
CHANGED
@@ -12,9 +12,8 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = "https://github.com/fog/fog-google"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
|
-
spec.files = `git ls-files -z`.split("\x0")
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.start_with?("test/") }
|
16
16
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
17
|
spec.require_paths = ["lib"]
|
19
18
|
|
20
19
|
# As of 0.1.1
|
@@ -39,7 +38,7 @@ Gem::Specification.new do |spec|
|
|
39
38
|
# Debugger
|
40
39
|
# Locked because pry-byebug is broken with 13+
|
41
40
|
# see: https://github.com/deivid-rodriguez/pry-byebug/issues/343
|
42
|
-
spec.add_development_dependency "pry", "= 0.
|
41
|
+
spec.add_development_dependency "pry", "= 0.15.2"
|
43
42
|
|
44
43
|
# Testing gems
|
45
44
|
spec.add_development_dependency "retriable"
|
@@ -277,7 +277,7 @@ module Fog
|
|
277
277
|
requires :identity, :zone
|
278
278
|
|
279
279
|
if disk.is_a? Disk
|
280
|
-
disk_obj = disk.
|
280
|
+
disk_obj = disk.attached_disk_obj(**attached_disk_options)
|
281
281
|
elsif disk.is_a? String
|
282
282
|
disk_obj = service.disks.attached_disk_obj(disk, **attached_disk_options)
|
283
283
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Google
|
3
5
|
class StorageJSON
|
@@ -34,7 +36,7 @@ module Fog
|
|
34
36
|
DATA
|
35
37
|
|
36
38
|
google_headers = {}
|
37
|
-
canonical_google_headers = ""
|
39
|
+
canonical_google_headers = +""
|
38
40
|
params[:headers].each do |key, value|
|
39
41
|
google_headers[key] = value if key[0..6] == "x-goog-"
|
40
42
|
end
|
@@ -45,7 +47,7 @@ DATA
|
|
45
47
|
end
|
46
48
|
string_to_sign << canonical_google_headers.to_s
|
47
49
|
|
48
|
-
canonical_resource = "/"
|
50
|
+
canonical_resource = +"/"
|
49
51
|
if subdomain = params.delete(:subdomain)
|
50
52
|
canonical_resource << "#{CGI.escape(subdomain).downcase}/"
|
51
53
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "addressable"
|
2
4
|
|
3
5
|
module Fog
|
@@ -5,11 +7,11 @@ module Fog
|
|
5
7
|
class StorageJSON
|
6
8
|
module Utils
|
7
9
|
def http_url(params, expires)
|
8
|
-
"http
|
10
|
+
"http://#{host_path_query(params, expires)}"
|
9
11
|
end
|
10
12
|
|
11
13
|
def https_url(params, expires)
|
12
|
-
"https
|
14
|
+
"https://#{host_path_query(params, expires)}"
|
13
15
|
end
|
14
16
|
|
15
17
|
def url(params, expires)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Google
|
3
5
|
class StorageXML
|
@@ -46,7 +48,7 @@ module Fog
|
|
46
48
|
DATA
|
47
49
|
|
48
50
|
google_headers = {}
|
49
|
-
canonical_google_headers = ""
|
51
|
+
canonical_google_headers = +""
|
50
52
|
params[:headers].each do |key, value|
|
51
53
|
google_headers[key] = value if key[0..6] == "x-goog-"
|
52
54
|
end
|
@@ -57,7 +59,7 @@ DATA
|
|
57
59
|
end
|
58
60
|
string_to_sign << canonical_google_headers.to_s
|
59
61
|
|
60
|
-
canonical_resource = "/"
|
62
|
+
canonical_resource = +"/"
|
61
63
|
if subdomain = params.delete(:subdomain)
|
62
64
|
canonical_resource << "#{CGI.escape(subdomain).downcase}/"
|
63
65
|
end
|
@@ -49,7 +49,7 @@ module Fog
|
|
49
49
|
def get_bucket(bucket_name, options = {})
|
50
50
|
raise ArgumentError.new("bucket_name is required") unless bucket_name
|
51
51
|
response = Excon::Response.new
|
52
|
-
name = /(
|
52
|
+
name = /([a-zA-Z0-9][a-zA-Z0-9\-_.]+[a-zA-Z0-9])/.match(bucket_name)
|
53
53
|
if bucket_name == name.to_s
|
54
54
|
if bucket = data[:buckets][bucket_name]
|
55
55
|
contents = bucket[:objects].values.sort_by { |a| a["Key"] }.reject do |object|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Google
|
3
5
|
class StorageXML
|
@@ -14,11 +16,11 @@ module Fog
|
|
14
16
|
).freeze
|
15
17
|
|
16
18
|
def http_url(params, expires)
|
17
|
-
"http
|
19
|
+
"http://#{host_path_query(params, expires)}"
|
18
20
|
end
|
19
21
|
|
20
22
|
def https_url(params, expires)
|
21
|
-
"https
|
23
|
+
"https://#{host_path_query(params, expires)}"
|
22
24
|
end
|
23
25
|
|
24
26
|
def url(params, expires)
|
data/lib/fog/google/version.rb
CHANGED