encoded_id-rails 1.0.0.rc6 → 1.0.0.rc7
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 +24 -4
- data/README.md +44 -33
- data/context/encoded_id-rails.md +298 -80
- data/context/encoded_id.md +229 -75
- data/lib/encoded_id/rails/active_record_finders.rb +4 -2
- data/lib/encoded_id/rails/annotated_id.rb +11 -14
- data/lib/encoded_id/rails/annotated_id_parser.rb +1 -0
- data/lib/encoded_id/rails/coder.rb +45 -18
- data/lib/encoded_id/rails/composite_id_base.rb +39 -0
- data/lib/encoded_id/rails/configuration.rb +28 -12
- data/lib/encoded_id/rails/encoder_methods.rb +24 -9
- data/lib/encoded_id/rails/finder_methods.rb +1 -0
- data/lib/encoded_id/rails/model.rb +35 -5
- data/lib/encoded_id/rails/path_param.rb +1 -0
- data/lib/encoded_id/rails/persists.rb +7 -5
- data/lib/encoded_id/rails/query_methods.rb +1 -0
- data/lib/encoded_id/rails/salt.rb +1 -0
- data/lib/encoded_id/rails/slugged_id.rb +11 -14
- data/lib/encoded_id/rails/slugged_id_parser.rb +1 -0
- data/lib/encoded_id/rails/slugged_path_param.rb +1 -0
- data/lib/encoded_id/rails.rb +2 -0
- data/lib/generators/encoded_id/rails/install_generator.rb +36 -2
- data/lib/generators/encoded_id/rails/templates/hashids_encoded_id.rb +122 -0
- data/lib/generators/encoded_id/rails/templates/{encoded_id.rb → sqids_encoded_id.rb} +29 -11
- metadata +7 -5
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: encoded_id-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.0.
|
|
4
|
+
version: 1.0.0.rc7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen Ierodiaconou
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-11-
|
|
10
|
+
date: 2025-11-20 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: activesupport
|
|
@@ -55,14 +55,14 @@ dependencies:
|
|
|
55
55
|
requirements:
|
|
56
56
|
- - '='
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
|
-
version: 1.0.0.
|
|
58
|
+
version: 1.0.0.rc7
|
|
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.0.0.
|
|
65
|
+
version: 1.0.0.rc7
|
|
66
66
|
description: ActiveRecord concern to use EncodedID to turn IDs into reversible and
|
|
67
67
|
human friendly obfuscated strings.
|
|
68
68
|
email:
|
|
@@ -81,6 +81,7 @@ files:
|
|
|
81
81
|
- lib/encoded_id/rails/annotated_id.rb
|
|
82
82
|
- lib/encoded_id/rails/annotated_id_parser.rb
|
|
83
83
|
- lib/encoded_id/rails/coder.rb
|
|
84
|
+
- lib/encoded_id/rails/composite_id_base.rb
|
|
84
85
|
- lib/encoded_id/rails/configuration.rb
|
|
85
86
|
- lib/encoded_id/rails/encoder_methods.rb
|
|
86
87
|
- lib/encoded_id/rails/finder_methods.rb
|
|
@@ -97,7 +98,8 @@ files:
|
|
|
97
98
|
- lib/generators/encoded_id/rails/add_columns_generator.rb
|
|
98
99
|
- lib/generators/encoded_id/rails/install_generator.rb
|
|
99
100
|
- lib/generators/encoded_id/rails/templates/add_encoded_id_columns_migration.rb.erb
|
|
100
|
-
- lib/generators/encoded_id/rails/templates/
|
|
101
|
+
- lib/generators/encoded_id/rails/templates/hashids_encoded_id.rb
|
|
102
|
+
- lib/generators/encoded_id/rails/templates/sqids_encoded_id.rb
|
|
101
103
|
homepage: https://github.com/stevegeek/encoded_id
|
|
102
104
|
licenses:
|
|
103
105
|
- MIT
|