carrierwave 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of carrierwave might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f12b8894846b8a7fdfecb1c537020481e3bb9c6c61d8169341b9cc8c2136f56
4
- data.tar.gz: 2ca2f58d5fbedacf2f355e84e3fe57980b51fa6c17dc0fde2cbd87a40460a7d4
3
+ metadata.gz: e7d9ca1331d473162430928f5819d657e9c601b5663965a75f37c2eacb5bd344
4
+ data.tar.gz: a78745cfdebaa9b1d3cf49cfc513ac248d83690a6f1bafd6384dab81acd3e150
5
5
  SHA512:
6
- metadata.gz: ee31d0127aa61484b2e9ddb8d9bd64e684d9a553e571487408f5a239837d3be369dfb64a81784239f76ea4355113a0f1b6098ddf28689eb5555b222e59596f2f
7
- data.tar.gz: 75ec8c867a5048a988b63b7b3cc78d2d0da943b48605c7f96ec48d0a04f113a022eb7c138230bff079a7d478140d1738b58c2f65f32a0ce132631877006c0ec9
6
+ metadata.gz: 51207e993ab7aaed4e68d338c7fdbfeee7f1334d914a403890c9364ad3d5aeadbd94206cc3b5fbb07bec7d7372abd346239e979a4d6c6f3c5278e92b4a823c94
7
+ data.tar.gz: fcc86123d64aabeb6de357cf81f632c3343b3951915d21f1b69e04c8bacb2e7e4c14c8efab9e4b0be33fac28efb228a0e7795615d19d913c33806eccb8adaedc
@@ -140,7 +140,6 @@ module CarrierWave
140
140
 
141
141
  def store!
142
142
  uploaders.each(&:store!)
143
- @added_uploaders += uploaders.reject(&:staged)
144
143
  end
145
144
 
146
145
  def write_identifier
@@ -154,6 +153,7 @@ module CarrierWave
154
153
  uploader.deduplicate(existing_identifiers)
155
154
  existing_identifiers << uploader.identifier
156
155
  end
156
+ @added_uploaders += additions
157
157
 
158
158
  record.write_uploader(serialization_column, identifier)
159
159
  end
@@ -44,9 +44,9 @@ module CarrierWave
44
44
  def initialize_dup(other)
45
45
  old_uploaders = _mounter(:"#{column}").uploaders
46
46
  @_mounters[:"#{column}"] = nil
47
+ super
47
48
  # The attribute needs to be cleared to prevent it from picked up as identifier
48
49
  write_attribute(:"#{column}", nil)
49
- super
50
50
  _mounter(:"#{column}").cache(old_uploaders)
51
51
  end
52
52
 
@@ -1,3 +1,3 @@
1
1
  module CarrierWave
2
- VERSION = "3.0.2".freeze
2
+ VERSION = "3.0.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Nicklas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-01 00:00:00.000000000 Z
11
+ date: 2023-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport