encoded_id-rails 1.1.0 → 1.1.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 +14 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39e5cc226b484fc6c7571ab475d9e314eeaa6342b710f06aa4711f3736026181
|
|
4
|
+
data.tar.gz: 1222a0b8f8764f8348fdbb4425c68f2f6f306edff9ce362d7153ecc138562145
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '04715889437f0d1a35954ae2580bb992ede2f6234525b2de5f4616a6363d9bf9f18612ef57f6df0d6fecb127969ad1f21aee5d244b4858c7c3375161310051aa'
|
|
7
|
+
data.tar.gz: 2037bfb3af6f6c8e4e4fca34b210f3bf2f692f8e774c83c9f48fdb2689061b349888ff2ef41038a82d033de21405ed71c094b39049f244b91b1ff1f2a58e7a95
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
-
-
|
|
3
|
+
## [1.1.1] - 2026-10-07
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- The Sqids encoder now only decodes strings that are the canonical encoding of the decoded values, matching the Hashids encoder. Previously many strings that were never issued (e.g. `"42"`) decoded to an ID, which let arbitrary strings resolve to records via the Rails finders.
|
|
8
|
+
|
|
9
|
+
### Upgrade notes
|
|
10
|
+
|
|
11
|
+
- **Sqids IDs must now match your current configuration exactly.** Previously Sqids accepted near-miss strings, which meant old IDs kept working after some config changes. They no longer do (Hashids has always behaved this way). Before upgrading, check whether you changed any of these after IDs were issued:
|
|
12
|
+
- `id_length`: all IDs issued under the old length stop resolving.
|
|
13
|
+
- the blocklist, `blocklist_mode` or `blocklist_max_length`: IDs that the new settings would issue differently (those containing a newly blocked word) stop resolving.
|
|
14
|
+
- `downcase_on_decode` with an alphabet containing uppercase letters: IDs containing those letters stop resolving.
|
|
15
|
+
|
|
16
|
+
Changing the separator, group size or character mappings is unaffected.
|
|
4
17
|
|
|
5
18
|
## [1.1.0] - 2026-01-23
|
|
6
19
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: encoded_id-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen Ierodiaconou
|
|
@@ -55,14 +55,14 @@ dependencies:
|
|
|
55
55
|
requirements:
|
|
56
56
|
- - '='
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
|
-
version: 1.1.
|
|
58
|
+
version: 1.1.1
|
|
59
59
|
type: :runtime
|
|
60
60
|
prerelease: false
|
|
61
61
|
version_requirements: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
|
63
63
|
- - '='
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: 1.1.
|
|
65
|
+
version: 1.1.1
|
|
66
66
|
description: ActiveRecord concern to use EncodedID to turn IDs into reversible and
|
|
67
67
|
human friendly obfuscated strings.
|
|
68
68
|
email:
|
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
121
121
|
- !ruby/object:Gem::Version
|
|
122
122
|
version: '0'
|
|
123
123
|
requirements: []
|
|
124
|
-
rubygems_version:
|
|
124
|
+
rubygems_version: 4.0.3
|
|
125
125
|
specification_version: 4
|
|
126
126
|
summary: Use `encoded_id` with ActiveRecord models
|
|
127
127
|
test_files: []
|