remote_files 3.4.0 → 3.6.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/lib/remote_files/configuration.rb +1 -0
- data/lib/remote_files/file.rb +3 -2
- data/lib/remote_files/fog_store.rb +1 -1
- data/lib/remote_files/version.rb +1 -1
- 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: 59ec945098b2e44d854eefecff7a29217c09c7ea3fd81da6617f8e13ec940589
|
4
|
+
data.tar.gz: e3ff2aeb923049f688e34a851d951ecacfad9f057d3c3711d3b49cfa040593d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 406694b1d2d9abc40f261402f385c6b2e152a6aeb18c6408616883dca850a1852d5f02317d60278391f4121116ea2eb33ce288bc089f70f4d8679e00bac54514
|
7
|
+
data.tar.gz: fc1d0a961b56cc2acafcfa1e17c33b0a0d573a93c6cec814ff4fa23c9db7e604bc64e1eb6b8a8e8bbe14603929b219c8d147297ed365d0c010235a3640904283
|
data/lib/remote_files/file.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
module RemoteFiles
|
2
2
|
class File
|
3
|
-
attr_reader :content, :content_type, :identifier, :stored_in, :configuration, :populate_stored_in, :last_update_ts
|
3
|
+
attr_reader :content, :content_type, :identifier, :stored_in, :configuration, :populate_stored_in, :last_update_ts, :errors
|
4
4
|
|
5
5
|
def initialize(identifier, options = {})
|
6
|
-
known_keys = [:identifier, :stored_in, :content_type, :configuration, :content, :populate_stored_in, :last_update_ts]
|
6
|
+
known_keys = [:identifier, :stored_in, :content_type, :configuration, :content, :populate_stored_in, :last_update_ts, :errors]
|
7
7
|
known_keys.each do |key|
|
8
8
|
options[key] ||= options.delete(key.to_s)
|
9
9
|
end
|
@@ -16,6 +16,7 @@ module RemoteFiles
|
|
16
16
|
@configuration = RemoteFiles::CONFIGURATIONS[(options[:configuration] || :default).to_sym]
|
17
17
|
@logger = options[:logger]
|
18
18
|
@populate_stored_in = options[:populate_stored_in]
|
19
|
+
@errors = options[:errors]
|
19
20
|
@options = options
|
20
21
|
end
|
21
22
|
|
@@ -134,9 +134,9 @@ module RemoteFiles
|
|
134
134
|
:body => file.content,
|
135
135
|
:content_type => file.content_type,
|
136
136
|
:key => file.identifier,
|
137
|
-
:public => options[:public],
|
138
137
|
:encryption => options[:encryption]
|
139
138
|
}
|
139
|
+
store_options[:public] = options[:public] if options.key?(:public)
|
140
140
|
if file.options[:multipart_chunk_size]
|
141
141
|
raise RemoteFiles::Error.new("Only S3 supports the multipart_chunk_size option") unless options[:provider] == 'AWS'
|
142
142
|
chunk_size = file.options[:multipart_chunk_size]
|
data/lib/remote_files/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remote_files
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mick Staugaard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-aws
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
rubygems_version: 3.
|
79
|
+
rubygems_version: 3.5.9
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: The purpose of the library is to implement a simple interface for uploading
|