resizing 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/resizing/carrier_wave/storage/file.rb +2 -2
- data/lib/resizing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce4e2a0408f940809b3e79bb04f914a4ef94422b21bad9fa5ba1d4a2d6ede4b0
|
4
|
+
data.tar.gz: 57e968dbe1f44b6167d564139455e245e09ad8c9fd317e669defed1215984d5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d359605f82bc68305a227926942e3b7358d2950223121d4dcdcfdc4ac43d6f249cc4b9480751718487d31179c5727ccb824b49887820f5728a0b362d007f274
|
7
|
+
data.tar.gz: 3dcfaa7598dfc4a604ec2fe0a6fd194742c661b09f7a90cfe0775e06024b27fa47ab0acab179ff42478d3d44127336f94405fb646b5a9d19004c91477109ac1e
|
@@ -34,12 +34,12 @@ module Resizing
|
|
34
34
|
image_id = separted[:image_id]
|
35
35
|
resp = client.delete(image_id)
|
36
36
|
if resp['error'] == 'ActiveRecord::RecordNotFound' # 404 not found
|
37
|
-
model.send :write_attribute, serialization_column, nil
|
37
|
+
model.send :write_attribute, serialization_column, nil unless model.destroyed?
|
38
38
|
return
|
39
39
|
end
|
40
40
|
|
41
41
|
if public_id == resp['public_id']
|
42
|
-
model.send :write_attribute, serialization_column, nil
|
42
|
+
model.send :write_attribute, serialization_column, nil unless model.destroyed?
|
43
43
|
return
|
44
44
|
end
|
45
45
|
|
data/lib/resizing/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resizing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Junichiro Kasuya
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|