uploadcare-rails 3.3.3 → 3.3.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4730dfdd1bbeee9718fa09b3b3ac30ede4ae7e67fbbd2cbc11523d9d9592251
4
- data.tar.gz: 508408a40d0506c56bda9979ec95aab8b689b9af9dfad170dcfe5099786b6994
3
+ metadata.gz: b0f6b9710ce35d170b0ce4c7a8e083c1cb662c46b4e8d4b2ddaeb56767e74dd3
4
+ data.tar.gz: 469741adc8edf0efff6cf58f07f144acb88ce0afbf319c5cf737ab7af741794a
5
5
  SHA512:
6
- metadata.gz: 7e39ed85580c904e02ec0c5bf62611224de9f55aeb3b6d9a802d78df88bf93c414c27942c9aa812b1c34ac3a765412322f4bb14a93d568d699c6fc89570339f0
7
- data.tar.gz: 05a91828bd6b02416009a52c2ea2b63dea78f2ab7ea3b4002ac4c44f69c2f0922d1de1ae503d946dad8611a9966ea4e886b7813dd057ff850bcf42185b5fbfd0
6
+ metadata.gz: 605c6039208f13dd6526d482076822e2d7974de6a6941579e0367916714ccbcbb91b610f9eddc2a58552260ce1834057bf24f267ff2b890d501f3d351ca4b30b
7
+ data.tar.gz: 4811376a758a82af318a1db3be6dda1453693b34e10808065741984ca7547f55366662b3f2dde7b809c3cab89f40d78e6067c94ed7d61b52be70319f3002cadb
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based now on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 3.3.4 — 2023-04-04
8
+
9
+ ### Changed
10
+
11
+ * Skipped network requests when the file attribute was unchanged (fixed https://github.com/uploadcare/uploadcare-rails/issues/127)
12
+
7
13
  ## 3.3.3 — 2023-03-27
8
14
 
9
15
  ### Changed
@@ -47,7 +47,10 @@ module Uploadcare
47
47
  Uploadcare::FileApi.delete_file(file_uuid)
48
48
  end
49
49
 
50
- after_save "uploadcare_store_#{attribute}!".to_sym unless Uploadcare::Rails.configuration.do_not_store
50
+ unless Uploadcare::Rails.configuration.do_not_store
51
+ after_save "uploadcare_store_#{attribute}!".to_sym, if: "will_save_change_to_#{attribute}?".to_sym
52
+ end
53
+
51
54
  return unless Uploadcare::Rails.configuration.delete_files_after_destroy
52
55
 
53
56
  after_destroy "uploadcare_delete_#{attribute}!".to_sym
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Uploadcare
4
4
  module Rails
5
- VERSION = '3.3.3'
5
+ VERSION = '3.3.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uploadcare-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - "@dmitrijivanchenko (Dmitrij Ivanchenko), @T0mbery (Andrey Aksenov)"
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-27 00:00:00.000000000 Z
12
+ date: 2023-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
- rubygems_version: 3.4.6
191
+ rubygems_version: 3.4.10
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: Rails gem for Uploadcare