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 +4 -4
- data/.github/workflows/stale.yml +1 -1
- data/.github/workflows/unit.yml +1 -1
- data/CHANGELOG.md +14 -0
- data/lib/fog/google/version.rb +1 -1
- data/lib/fog/storage/google_json/models/file.rb +7 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e49aa08d9838df47172778f5e6564e4fe9c9c81d77d024815c4cb9152b3d1fa
|
4
|
+
data.tar.gz: 39ae0f71215fe16c34d92a01722eff57a299bbeb03f132aff7057515b25a54cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98c43a20f68c38596e455fea9c58fb2db26916a71c89da10773424d8a74a58819354e66e0a8f68f1eb7c571dd5cf6ae3f4e1cc6a2204504260451d7a12a3e43b
|
7
|
+
data.tar.gz: 6e1996d144177a3fca9e582d4eb113e54e60016af45483dc9e8be0bc48370ba0f786dd4d811f862cd07775ef08d248e65f8e7504c5dc763b96ed863a7ec2dfcc
|
data/.github/workflows/stale.yml
CHANGED
data/.github/workflows/unit.yml
CHANGED
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
|
data/lib/fog/google/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|