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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb32d1508fefd67920f7aa1907bc96ee53efc82bedc2229e1e00c403b4754350
4
- data.tar.gz: 1e0a0064be4addee16b1bf802c8716aa7c28c4a8091f56e459fda5605a2787dd
3
+ metadata.gz: ce4e2a0408f940809b3e79bb04f914a4ef94422b21bad9fa5ba1d4a2d6ede4b0
4
+ data.tar.gz: 57e968dbe1f44b6167d564139455e245e09ad8c9fd317e669defed1215984d5a
5
5
  SHA512:
6
- metadata.gz: 0351e00f90c8373822c2087668df8c39469d2b1fc3b53ce573da0db16e8bbebf4dad806757e3ff61a2f6a6b93d9bbbf45755e0a1aee34d7ed94419134262d180
7
- data.tar.gz: 659d6bf48bbffbc6403e4a8550ae1f9b16104b6a72d8b32ecc5769233263cc2931dc4d77c21796d46c1d36e453bba1d23c8e108a0debcb69c8aace9b7cb3504b
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Resizing
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
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.0
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-08-12 00:00:00.000000000 Z
11
+ date: 2020-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday