uploadcare-rails 3.4.0 → 3.4.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: 88ea791d5c14c9fc7ac61a6599bd3276dd8ad0a663b05734de131055a5a585e3
4
- data.tar.gz: 33df2e2e0047b05335533407de9cc2ce017a601fb4edf29782f0ff5ec5f19d54
3
+ metadata.gz: 42f38071f219c61600d1f80cfc2577f2d4e08ea77dd62ab6691fe8492ff142de
4
+ data.tar.gz: 45c834cc297e6591b4320dce94a47b4a9dc82e7d62f574b79755c81467813135
5
5
  SHA512:
6
- metadata.gz: 93f273c141ece91307c45fe5e8ea6c02d5d3cfa2f7497ac5e8b97745f47a1e90dfd991d28036ff26605c5624cae4ad0487026496f579b4544110c1ffb56f5154
7
- data.tar.gz: 81980a67b96a2f2aed8d2ec2f6ee2ba0691a77175476da55746dcd63db6104ed3f0376cbf7077fee43b4d0cffff9ed09a9e3bc925bbfd704cf5e0a3ea54f4d5d
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 usefull methods to the attribute.
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 prevously uploaded Uploadcare file:
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/.freeze
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Uploadcare
4
4
  module Rails
5
- VERSION = '3.4.0'
5
+ VERSION = '3.4.1'
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.4.0
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-05 00:00:00.000000000 Z
12
+ date: 2024-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails