uploadcare-rails 3.4.0 → 3.4.1
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +2 -2
- data/lib/uploadcare/rails/active_record/mount_uploadcare_file_group.rb +1 -1
- data/lib/uploadcare/rails/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: 42f38071f219c61600d1f80cfc2577f2d4e08ea77dd62ab6691fe8492ff142de
|
|
4
|
+
data.tar.gz: 45c834cc297e6591b4320dce94a47b4a9dc82e7d62f574b79755c81467813135
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 708637c228b3c206425a922c6a3860be8338c962089eee67d77931eaa851cdf3728a66ea8a631080de7444d62cc7abf6e2997c6d22d2af55d06e2b2d2ee726db
|
|
7
|
+
data.tar.gz: 4dcaea0885b02e82ec07bb7a20085a1e35945cf4bd87979c30362ac3c0f2415f73222fb84e60425bcbfcb0ec553c208176ad0abead7fefda85d745ff08e7bac4
|
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.4.1 — 2024-03-24
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
* Fixed invalid group id error when >= 10 files are uploaded when using `mount_uploadcare_file_group`.
|
|
12
|
+
|
|
7
13
|
## 3.4.0 — 2024-03-05
|
|
8
14
|
|
|
9
15
|
### Fixed
|
data/README.md
CHANGED
|
@@ -287,7 +287,7 @@ The helper is detecting the value of the `multiple` property based on the mount
|
|
|
287
287
|
### File and Group wrappers
|
|
288
288
|
|
|
289
289
|
When you mount either Uploadcare File or Group to an attribute, this attribute is getting wrapped with
|
|
290
|
-
a Uploadcare object. This feature adds some
|
|
290
|
+
a Uploadcare object. This feature adds some useful methods to the attribute.
|
|
291
291
|
|
|
292
292
|
#### Uploadcare File
|
|
293
293
|
|
|
@@ -300,7 +300,7 @@ class Post < ApplicationRecord
|
|
|
300
300
|
end
|
|
301
301
|
```
|
|
302
302
|
|
|
303
|
-
And then you create a new Post object specifying a CDN-url for your
|
|
303
|
+
And then you create a new Post object specifying a CDN-url for your previously uploaded Uploadcare file:
|
|
304
304
|
|
|
305
305
|
```console
|
|
306
306
|
$ post = Post.create(picture: "https://ucarecdn.com/2d33999d-c74a-4ff9-99ea-abc23496b052/")
|
|
@@ -13,7 +13,7 @@ module Uploadcare
|
|
|
13
13
|
module MountUploadcareFileGroup
|
|
14
14
|
extend ActiveSupport::Concern
|
|
15
15
|
|
|
16
|
-
GROUP_ID_REGEX = /\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b~\d
|
|
16
|
+
GROUP_ID_REGEX = /\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b~\d+/.freeze
|
|
17
17
|
|
|
18
18
|
def build_uploadcare_file_group(attribute)
|
|
19
19
|
cdn_url = attributes[attribute.to_s].to_s
|
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.4.
|
|
4
|
+
version: 3.4.1
|
|
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: 2024-03-
|
|
12
|
+
date: 2024-03-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|