remote_files 3.4.0 → 3.5.1

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: 2c031b3f95c929678e3ab56a3cc98c6aea47db1c294bfbd7b20a4390e90d06b6
4
- data.tar.gz: c0665d4387cb9e15fca35e89387e6ac687b8b3c616d4d004892c6787596efe89
3
+ metadata.gz: 0dc59069135d643087eb46b64aa5f8435d633838e36a14976e77b1e7914e02df
4
+ data.tar.gz: 6e79ada2746c02bc3e6befd796b684b6bf3919b408e2ca72eeeec1c677465f08
5
5
  SHA512:
6
- metadata.gz: 646ff0467bf953702039d0240ca72fe56c0989d5639caa21778079ff4d5ae84014e85e9a191b48095b22dcafe70ba65819e52d771acb5da040fe418b6865b482
7
- data.tar.gz: 45cdccb5afa27109216a3c4b56ba220de6410935dddcfde320b61a0642ffea945c3722f179c22b40fd8c8427098534fc93a06f7fc4042a8e2224fcf1d0707ad1
6
+ metadata.gz: e12d3e011b369ae5d56f51744ce7ccc59e53a0080d127b632e90377717280bed60b5d3f5273c33f197ef85084aaa4bebb2c25593c15a769045be496080da198d
7
+ data.tar.gz: 49ce21479bd8f931bb2acf02cdb70589319db00e7a3d87cb27983663696d5c3c3cf3cc468765738db9f8c073d62f3180671415273f405090a9650f7115ab1bb9
@@ -103,6 +103,7 @@ module RemoteFiles
103
103
  break
104
104
  rescue ::RemoteFiles::Error => e
105
105
  file.logger.info(e) if file.logger
106
+ file.errors.push(e) if file.errors
106
107
  exception = e
107
108
  end
108
109
  end
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module RemoteFiles
2
- VERSION = '3.4.0'
2
+ VERSION = '3.5.1'
3
3
  end
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.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mick Staugaard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-31 00:00:00.000000000 Z
11
+ date: 2022-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-aws