fog-google 1.17.0 → 1.18.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: abd0506ef51980b23273cfda4ef059113f220a1b9d2480a5433a3fbaf6d7d985
4
- data.tar.gz: 6f8c866d492ac0292df89d9c532da795ab91d4eec7ec1caec9fe259cfabd8dc7
3
+ metadata.gz: e0eab03e604eac8b6bdf3137112182390b85bb30d852c08b5b1eff9fdba7e6af
4
+ data.tar.gz: d7542b6ccf45457e634fb2857922d449d79394aad3b007702dce1a4030a9d507
5
5
  SHA512:
6
- metadata.gz: 3a93c4dcb1669954f3ec1b18e04f8c96a2bcca16c1d7946691b0c1158515342ca1213628576a1486d5b45d57ba77484b12f20eb2087e50f2a0e37de083613dcf
7
- data.tar.gz: 623b43065a6218ffb6ef2dcdcd5ef4e7f51164af507d8677f543a25c9bc40e283cf5b7815dc43f78ff9d5276ff67512e578d1c7aa0f7c86e63d86e4523f39df1
6
+ metadata.gz: dd91f0458fa5834c7d01e9e8daa3709bf16006c4254b14b1c72809336a1bc952a05bfcd4873ca73cb1e2a2940409b915818be3bf449d39a43985218792d97915
7
+ data.tar.gz: 7e6bcb9b9737bd2ba5c7a074000cae77fb50d3ff92a5c3a8d5ab2cfccbbd6bfba025776874fd5e0862d4ef7489cd81826b7b443bf0f33dcda1d808c87b096a9d
data/CHANGELOG.md CHANGED
@@ -6,6 +6,16 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
6
6
 
7
7
  ## Next
8
8
 
9
+ ## 1.18.0
10
+
11
+ ### User-facing
12
+
13
+ #### Fixed
14
+
15
+ - \#556 Correct conflicting Ruby version info in readme [gdubicki]
16
+ - \#557 Update current images projects list [gdubicki]
17
+ - \#558 Fix page iteration when using #files with block [jgigault]
18
+ - \#562 Loosen fog-core dependency
9
19
 
10
20
  ## 1.17.0
11
21
 
data/README.md CHANGED
@@ -8,7 +8,7 @@ The main maintainers for the Google sections are @icco, @Temikus and @plribeiro3
8
8
 
9
9
  - As of **v1.0.0**, fog-google includes google-api-client as a dependency, there is no need to include it separately anymore.
10
10
 
11
- - Fog-google is currently supported on Ruby 2.4+ See [supported ruby versions](#supported-ruby-versions) for more info.
11
+ - Fog-google is currently supported on Ruby 2.6+ See [supported ruby versions](#supported-ruby-versions) for more info.
12
12
 
13
13
  See **[MIGRATING.md](MIGRATING.md)** for migration between major versions.
14
14
 
data/fog-google.gemspec CHANGED
@@ -20,8 +20,7 @@ Gem::Specification.new do |spec|
20
20
  # As of 0.1.1
21
21
  spec.required_ruby_version = ">= 2.0"
22
22
 
23
- # Locked until https://github.com/fog/fog-google/issues/417 is resolved
24
- spec.add_dependency "fog-core", "<= 2.1.0"
23
+ spec.add_dependency "fog-core", "< 2.3"
25
24
  spec.add_dependency "fog-json", "~> 1.2"
26
25
  spec.add_dependency "fog-xml", "~> 0.1.0"
27
26
 
@@ -11,16 +11,17 @@ module Fog
11
11
  GLOBAL_PROJECTS = %w(
12
12
  centos-cloud
13
13
  cos-cloud
14
- coreos-cloud
15
14
  debian-cloud
15
+ fedora-coreos-cloud
16
16
  rhel-cloud
17
17
  rhel-sap-cloud
18
+ rocky-linux-cloud
18
19
  suse-cloud
19
20
  suse-sap-cloud
20
21
  ubuntu-os-cloud
22
+ ubuntu-os-pro-cloud
21
23
  windows-cloud
22
24
  windows-sql-cloud
23
- opensuse-cloud
24
25
  ).freeze
25
26
 
26
27
  def all
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Google
3
- VERSION = "1.17.0".freeze
3
+ VERSION = "1.18.0".freeze
4
4
  end
5
5
  end
@@ -13,11 +13,13 @@ module Fog
13
13
  attribute :page_token, :aliases => %w(pageToken page_token)
14
14
  attribute :max_results, :aliases => ["MaxKeys", "max-keys"]
15
15
  attribute :prefix, :aliases => "Prefix"
16
+ attribute :next_page_token
16
17
 
17
18
  def all(options = {})
18
19
  requires :directory
19
- data = service.list_objects(directory.key, attributes.merge(options))
20
- .to_h[:items] || []
20
+ parent = service.list_objects(directory.key, attributes.merge(options))
21
+ attributes[:next_page_token] = parent.next_page_token
22
+ data = parent.to_h[:items] || []
21
23
  load(data)
22
24
  end
23
25
 
@@ -27,6 +29,10 @@ module Fog
27
29
  subset = dup.all
28
30
 
29
31
  subset.each_file_this_page { |f| yield f }
32
+ while subset.next_page_token
33
+ subset = subset.all(:page_token => subset.next_page_token)
34
+ subset.each_file_this_page { |f| yield f }
35
+ end
30
36
  end
31
37
  self
32
38
  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.17.0
4
+ version: 1.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Welch
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-11-07 00:00:00.000000000 Z
12
+ date: 2022-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog-core
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "<="
18
+ - - "<"
19
19
  - !ruby/object:Gem::Version
20
- version: 2.1.0
20
+ version: '2.3'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "<="
25
+ - - "<"
26
26
  - !ruby/object:Gem::Version
27
- version: 2.1.0
27
+ version: '2.3'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: fog-json
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -852,7 +852,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
852
852
  - !ruby/object:Gem::Version
853
853
  version: '0'
854
854
  requirements: []
855
- rubygems_version: 3.1.6
855
+ rubygems_version: 3.3.5
856
856
  signing_key:
857
857
  specification_version: 4
858
858
  summary: Module for the 'fog' gem to support Google.