fog-google 1.21.1 → 1.22.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: 3a4758b3cdcbe50e9878a69a034becb30d68c6a5d1e1841b209a51d76683bba7
4
- data.tar.gz: 0471b66930238a16ed0090ac0fe892809e081139cdd717ec88d493a4acc2dce6
3
+ metadata.gz: 9e49aa08d9838df47172778f5e6564e4fe9c9c81d77d024815c4cb9152b3d1fa
4
+ data.tar.gz: 39ae0f71215fe16c34d92a01722eff57a299bbeb03f132aff7057515b25a54cc
5
5
  SHA512:
6
- metadata.gz: 76f2ebc2c2efa0ef8996fb09a57291f8a5d9128508051be7c01d5e5acab42eebf678f514bb889e8c14f7893dbb261cef15572d298086dc1751e577dd2562a2a3
7
- data.tar.gz: da6644adcceabfeda98adb15beea5d12f531869e918a07bdc87b86943982cf4de3b90fec0049729b30134cda4089a65fbe0e97566feab7e248e844b5f973d0ad
6
+ metadata.gz: 98c43a20f68c38596e455fea9c58fb2db26916a71c89da10773424d8a74a58819354e66e0a8f68f1eb7c571dd5cf6ae3f4e1cc6a2204504260451d7a12a3e43b
7
+ data.tar.gz: 6e1996d144177a3fca9e582d4eb113e54e60016af45483dc9e8be0bc48370ba0f786dd4d811f862cd07775ef08d248e65f8e7504c5dc763b96ed863a7ec2dfcc
@@ -10,7 +10,7 @@ jobs:
10
10
  runs-on: ubuntu-latest
11
11
 
12
12
  steps:
13
- - uses: actions/stale@v6
13
+ - uses: actions/stale@v7
14
14
  with:
15
15
  repo-token: ${{ secrets.GITHUB_TOKEN }}
16
16
  days-before-stale: 360
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: ['2.5', '2.6', '2.7', '3.0', '3.1', 'head', 'truffleruby-head']
14
+ ruby-version: ['2.7', '3.0', '3.1', 'head', 'truffleruby-head']
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v3
data/CHANGELOG.md CHANGED
@@ -6,6 +6,20 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
6
6
 
7
7
  ## Next
8
8
 
9
+ ## 1.22.0
10
+
11
+ ### User-facing
12
+
13
+ #### Added
14
+
15
+ - #600 - Add uniform attr to inserting file [cwjenkins]
16
+
17
+ ### Development changes
18
+
19
+ #### Fixed
20
+
21
+ - #601 Remove deprecated ruby versions from unit tests [temikus]
22
+
9
23
  ## 1.21.1
10
24
 
11
25
  ### User-facing
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Google
3
- VERSION = "1.21.1".freeze
3
+ VERSION = "1.22.0".freeze
4
4
  end
5
5
  end
@@ -5,6 +5,7 @@ module Fog
5
5
  identity :key, :aliases => ["Key", :name]
6
6
 
7
7
  attribute :acl
8
+ attribute :uniform
8
9
  attribute :predefined_acl, :aliases => ["predefinedAcl", :predefined_acl]
9
10
  attribute :cache_control, :aliases => ["cacheControl", :cache_control]
10
11
  attribute :content_disposition, :aliases => ["contentDisposition", :content_disposition]
@@ -37,6 +38,10 @@ module Fog
37
38
  "publicReadWrite"
38
39
  ].freeze
39
40
 
41
+ def uniform=(enable)
42
+ @uniform=enable
43
+ end
44
+
40
45
  def predefined_acl=(new_predefined_acl)
41
46
  unless VALID_PREDEFINED_ACLS.include?(new_predefined_acl)
42
47
  raise ArgumentError.new("acl must be one of [#{VALID_PREDEFINED_ACLS.join(', ')}]")
@@ -111,8 +116,8 @@ module Fog
111
116
  FILE_INSERTABLE_FIELDS.map { |k| [k, attributes[k]] }
112
117
  .reject { |pair| pair[1].nil? }
113
118
  ]
114
-
115
- options[:predefined_acl] ||= @predefined_acl
119
+
120
+ options[:predefined_acl] ||= @predefined_acl unless @uniform
116
121
 
117
122
  service.put_object(directory.key, key, body, **options)
118
123
  self.content_length = Fog::Storage.get_body_size(body)
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.21.1
4
+ version: 1.22.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-06-16 00:00:00.000000000 Z
12
+ date: 2023-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog-core
@@ -879,7 +879,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
879
879
  - !ruby/object:Gem::Version
880
880
  version: '0'
881
881
  requirements: []
882
- rubygems_version: 3.4.13
882
+ rubygems_version: 3.3.7
883
883
  signing_key:
884
884
  specification_version: 4
885
885
  summary: Module for the 'fog' gem to support Google.