encoded_id-rails 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of encoded_id-rails might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/encoded_id/rails/version.rb +1 -1
- data/lib/generators/encoded_id/rails/USAGE +1 -1
- data/lib/generators/encoded_id/rails/install_generator.rb +1 -1
- data/lib/generators/encoded_id/rails/templates/encoded_id.rb +2 -2
- data/sig/encoded_id/rails.rbs +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb93a60976be5fd3bacb21a78802c5f8388cf8d4e523adc8f1310c8cc71b77dd
|
4
|
+
data.tar.gz: c8422d86707acd57d862f403a7e5784e68b5834d2368e708c5af0a20cfa4c467
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c578b5a9d22e2eba3be0e32ff5ae0a95d5dd0769f4ab65f50ebed76ba47b0510b0fa97291b5e62ff5ff72df348a38b244ed361404809d2e065e0c2baadff747e
|
7
|
+
data.tar.gz: 6a40b3988b20bc14deee6e1b89b20c1c7be74bb2586b5af9aa2f479367cbd0dbeb9861341c4f8dda4ee80f3f96ac499a5fe380c5cbfa6fd1e2fb83b2e5ea4cbf
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ require "rails/generators/base"
|
|
5
5
|
module EncodedId
|
6
6
|
module Rails
|
7
7
|
module Generators
|
8
|
-
# The Install generator `encoded_id
|
8
|
+
# The Install generator `encoded_id:rails:install`
|
9
9
|
class InstallGenerator < ::Rails::Generators::Base
|
10
10
|
source_root File.expand_path(__dir__)
|
11
11
|
|
@@ -5,7 +5,7 @@ EncodedId::Rails.configure do |config|
|
|
5
5
|
# a different encoded ID. You must configure one and it must be longer that 4 characters. It can be configured on a
|
6
6
|
# model by model basis too.
|
7
7
|
#
|
8
|
-
# config.salt = "
|
8
|
+
# config.salt = "<%= SecureRandom.hex(24) %>"
|
9
9
|
|
10
10
|
# The number of characters of the encoded ID that are grouped before the hyphen separator is inserted.
|
11
11
|
# `nil` disables grouping.
|
@@ -23,7 +23,7 @@ EncodedId::Rails.configure do |config|
|
|
23
23
|
#
|
24
24
|
# Default: a reduced character set Crockford alphabet and split groups, see https://www.crockford.com/wrmg/base32.html
|
25
25
|
#
|
26
|
-
# config.alphabet = "
|
26
|
+
# config.alphabet = ::EncodedId::Alphabet.new("0123456789abcdef")
|
27
27
|
|
28
28
|
# The minimum length of the encoded ID. Note that this is not a hard limit, the actual length may be longer as hash IDs
|
29
29
|
# may expand the length as needed to encode the full input. However encoded IDs will never be shorter than this.
|
data/sig/encoded_id/rails.rbs
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: encoded_id-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Ierodiaconou
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.4'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.4'
|
55
55
|
description: Write a longer description or delete this line.
|
56
56
|
email:
|
57
57
|
- stevegeek@gmail.com
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
|
-
rubygems_version: 3.3.
|
102
|
+
rubygems_version: 3.3.26
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: Use EncodedIds with ActiveRecord models
|