google-cloud-storage 1.15.0 → 1.16.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: e598fdd23bab0f17c14744298b77e1519458f52a7e0b0e9d66c3986ca3da10cc
4
- data.tar.gz: 7c1d3ec1f9a93e032f8f40a81eb4adfa725fc90970293f1dce573ded20bc0f49
3
+ metadata.gz: 49f8e8d016fa4aab87babc4c20e8f471eb9923c3263625668aa2eb7fe029dc0a
4
+ data.tar.gz: bf4bbdd4b7570a58a8d63184ef5869c9b7d0ca0870d7044f64158ff6dcd8af9e
5
5
  SHA512:
6
- metadata.gz: c47223d54f4bbac666083252a49b3a1853afeca995640e8ee54bf8b1f53e36231efb67e3ed57ea06a7da63328df829161b3eade1913bf7c374117f99400108c0
7
- data.tar.gz: a68d2d5325c0414c5e0c4d9179ff1321b03f970d72c36544541a33e9458bf4c659e3d2be0c2f1eeb181a76001196f5cb76c132065dbbf64308a6035c53431ff6
6
+ metadata.gz: 413d832b96b41b17733db3f50ae67e1d79322da88161bb8857c1eff5caf8e6ddc26fea2833090e261b00883d294b398f587c25f86cead52cbb13c37cce2dd4a8
7
+ data.tar.gz: 94926a277a7c7f296b6789cbbd4022a96a6ee34b4ac00041b4bb68f87af3c1ad448211b7627266a9cce557bd7d2d2e464a2156866de8938f5f8855a59877f43a
@@ -1,5 +1,16 @@
1
1
  # Release History
2
2
 
3
+ ### 1.16.0 / 2019-02-01
4
+
5
+ * Make use of Credentials#project_id
6
+ * Use Credentials#project_id
7
+ If a project_id is not provided, use the value on the Credentials object.
8
+ This value was added in googleauth 0.7.0.
9
+ * Loosen googleauth dependency
10
+ Allow for new releases up to 0.10.
11
+ The googleauth devs have committed to maintanining the current API
12
+ and will not make backwards compatible changes before 0.10.
13
+
3
14
  ### 1.15.0 / 2018-10-03
4
15
 
5
16
  * Add Bucket retention policy
@@ -75,18 +75,22 @@ module Google
75
75
  #
76
76
  def self.new project_id: nil, credentials: nil, scope: nil, retries: nil,
77
77
  timeout: nil, project: nil, keyfile: nil
78
- project_id ||= (project || default_project_id)
79
- project_id = project_id.to_s # Always cast to a string
80
- raise ArgumentError, "project_id is missing" if project_id.empty?
81
-
82
- scope ||= configure.scope
83
- retries ||= configure.retries
84
- timeout ||= configure.timeout
78
+ project_id ||= (project || default_project_id)
79
+ scope ||= configure.scope
80
+ retries ||= configure.retries
81
+ timeout ||= configure.timeout
85
82
  credentials ||= (keyfile || default_credentials(scope: scope))
83
+
86
84
  unless credentials.is_a? Google::Auth::Credentials
87
85
  credentials = Storage::Credentials.new credentials, scope: scope
88
86
  end
89
87
 
88
+ if credentials.respond_to? :project_id
89
+ project_id ||= credentials.project_id
90
+ end
91
+ project_id = project_id.to_s # Always cast to a string
92
+ raise ArgumentError, "project_id is missing" if project_id.empty?
93
+
90
94
  Storage::Project.new(
91
95
  Storage::Service.new(
92
96
  project_id, credentials, retries: retries, timeout: timeout
@@ -1720,6 +1720,8 @@ module Google
1720
1720
  [dest_bucket, dest_path]
1721
1721
  end
1722
1722
 
1723
+ # rubocop:disable Style/MultipleComparison
1724
+
1723
1725
  def verify_file! file, verify = :md5
1724
1726
  verify_md5 = verify == :md5 || verify == :all
1725
1727
  verify_crc32c = verify == :crc32c || verify == :all
@@ -1728,6 +1730,8 @@ module Google
1728
1730
  file
1729
1731
  end
1730
1732
 
1733
+ # rubocop:enable Style/MultipleComparison
1734
+
1731
1735
  # @return [IO] Returns an IO object representing the file data. This
1732
1736
  # will either be a `::File` object referencing the local file
1733
1737
  # system or a StringIO instance.
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Storage
19
- VERSION = "1.15.0".freeze
19
+ VERSION = "1.16.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-10-03 00:00:00.000000000 Z
12
+ date: 2019-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -43,16 +43,22 @@ dependencies:
43
43
  name: googleauth
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: 0.6.2
49
+ - - "<"
50
+ - !ruby/object:Gem::Version
51
+ version: 0.10.0
49
52
  type: :runtime
50
53
  prerelease: false
51
54
  version_requirements: !ruby/object:Gem::Requirement
52
55
  requirements:
53
- - - "~>"
56
+ - - ">="
54
57
  - !ruby/object:Gem::Version
55
58
  version: 0.6.2
59
+ - - "<"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.10.0
56
62
  - !ruby/object:Gem::Dependency
57
63
  name: digest-crc
58
64
  requirement: !ruby/object:Gem::Requirement
@@ -157,14 +163,14 @@ dependencies:
157
163
  requirements:
158
164
  - - "~>"
159
165
  - !ruby/object:Gem::Version
160
- version: 0.50.0
166
+ version: 0.61.0
161
167
  type: :development
162
168
  prerelease: false
163
169
  version_requirements: !ruby/object:Gem::Requirement
164
170
  requirements:
165
171
  - - "~>"
166
172
  - !ruby/object:Gem::Version
167
- version: 0.50.0
173
+ version: 0.61.0
168
174
  - !ruby/object:Gem::Dependency
169
175
  name: simplecov
170
176
  requirement: !ruby/object:Gem::Requirement
@@ -265,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
271
  version: '0'
266
272
  requirements: []
267
273
  rubyforge_project:
268
- rubygems_version: 2.7.7
274
+ rubygems_version: 2.7.6
269
275
  signing_key:
270
276
  specification_version: 4
271
277
  summary: API Client library for Google Cloud Storage