uploadcare-rails 3.3.2.1 → 3.3.4

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: 337ca39681c735dffe71dcc95c0a5a969290cb702f845cbb95691bd820f1ffec
4
- data.tar.gz: b2666c556bd0fa86a13c8892d47f7ca32a19e42ac3faccd9686d07035f5f2174
3
+ metadata.gz: b0f6b9710ce35d170b0ce4c7a8e083c1cb662c46b4e8d4b2ddaeb56767e74dd3
4
+ data.tar.gz: 469741adc8edf0efff6cf58f07f144acb88ce0afbf319c5cf737ab7af741794a
5
5
  SHA512:
6
- metadata.gz: 1ea70005621475a6892a155e0441f5ddddb7cfcc75b3b9b9968a27f0870adef177c3de763a6d885060a571a9f18881cb9b03eca6a5624ac7db452bcfd1a829f4
7
- data.tar.gz: 33f3b7cbb9bf9091fb7a0a0803f5eecd29593d3e618b541ec82051cb0f369c4011a9790e166fde573794ed6c5a8a3ea6cfcea96b7d77608f2e9beb8bee9ee763
6
+ metadata.gz: 605c6039208f13dd6526d482076822e2d7974de6a6941579e0367916714ccbcbb91b610f9eddc2a58552260ce1834057bf24f267ff2b890d501f3d351ca4b30b
7
+ data.tar.gz: 4811376a758a82af318a1db3be6dda1453693b34e10808065741984ca7547f55366662b3f2dde7b809c3cab89f40d78e6067c94ed7d61b52be70319f3002cadb
data/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ 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
+
13
+ ## 3.3.3 — 2023-03-27
14
+
15
+ ### Changed
16
+
17
+ * Improved readme to look better at ruby-doc
18
+
7
19
  ## 3.3.2.1 — 2023-03-26
8
20
 
9
21
  ### Changed
@@ -19,20 +31,22 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
19
31
 
20
32
  ## 3.3.1 — 2023-03-20
21
33
 
22
- * Update gem description
34
+ ### Changed
35
+
36
+ * Updated gem description
23
37
  * Respect data-multiple in helper options (https://github.com/uploadcare/uploadcare-rails/issues/119)
24
38
 
25
39
  ## 3.3.0 — 2023-03-16
26
40
 
27
- Guarantee support of maintainable versions of Ruby and Rails
41
+ Guarantee support of maintainable versions of Ruby and Rails.
28
42
 
29
43
  ### Breaking Сhanges
30
44
 
31
- Drop support of unmaintainable Ruby 2.4, 2.5, 2.6 and Rails before 6.0
45
+ Drop support of unmaintainable Ruby 2.4, 2.5, 2.6 and Rails before 6.0.
32
46
 
33
47
  ### Added
34
48
 
35
- Add support of Ruby 3.1 and 3.2 and Rails 7.0
49
+ Add support of Ruby 3.1 and 3.2 and Rails 7.0.
36
50
 
37
51
  ## 3.0.0 — 2022-12-29
38
52
 
data/README.md CHANGED
@@ -9,7 +9,9 @@
9
9
  A Ruby on Rails plugin for [Uploadcare](https://uploadcare.com) service.
10
10
  Based on [uploadcare-ruby](https://github.com/uploadcare/uploadcare-ruby) gem (general purpose wrapper for Uploadcare API)
11
11
 
12
- ### :heavy_exclamation_mark: *Note: the gem uploadcare-rails 2.x is not backward compatible with 1.x.*
12
+ :heavy_exclamation_mark: *Note: the gem uploadcare-rails 2.x is not backward compatible with 1.x.*
13
+
14
+ ## Table of Contents
13
15
 
14
16
  * [Requirements](#requirements)
15
17
  * [Installation](#installation)
@@ -144,7 +146,7 @@ Full list of available options is listed in the file itself. Just uncomment an o
144
146
  The fastest way to start using file uploading is to add the Uploadcare widget to the html-page.
145
147
  There is a view helper that can do it with two strings of code:
146
148
 
147
- Add this string to your <head> html-tag
149
+ Add this string to your `<head>` html-tag
148
150
 
149
151
  ```erb
150
152
  <!DOCTYPE html>
@@ -175,7 +177,7 @@ This helper uses a CDN-url for the widget bundle and supports three options:
175
177
  More info about bundles [here](https://uploadcare.com/docs/uploads/file-uploader/#bundles).
176
178
  - **min** — bool value detecting if the bundle must be minified.
177
179
 
178
- The <head> tag then also includes the <script> with widget global settings set in `config/initializers/uploadcare.rb`. You can override them later in an individual widget.
180
+ The `<head>` tag then also includes the `<script>` with widget global settings set in `config/initializers/uploadcare.rb`. You can override them later in an individual widget.
179
181
 
180
182
 
181
183
  #### Using asset pipeline.
@@ -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.2.1'
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.2.1
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-26 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