badged_ids 1.0.0 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d4e44d20b4fe1ff726d0311f0d9d528d4622c8fa1e0bdd4397bdaf217b43a94
4
- data.tar.gz: b53e26dad7bb2cd5e822c7df83ea837e6cc2ce28368fefb66160ac395d3bf291
3
+ metadata.gz: 2223c7ae411a6bdd0bc6fca974e4c67217d780c1d99bf43ceab56e9f9fad3123
4
+ data.tar.gz: 6714057a2a6b3dcd940a6df21c5b729e8a4ebb6421f73a82e937528b948d98e0
5
5
  SHA512:
6
- metadata.gz: e2c1b8beca316c503319691e34cdbb60f1751ed2eec83eefe552b26c9a317cfe9c4ad60cb94a8d45d5d966df34ef4966e9316236b6f149d9e5ad780db93d83cb
7
- data.tar.gz: 5b56ff1d8efb74cb2cdc9e132a0eb36be059553fa3d5410bfd0a80893d4c4f1f63e7def719ea4382a0657db6fdee6f26b860cfc32c98f1b11384bf7c62104443
6
+ metadata.gz: d10a2e75f502b10f460fe7cdd32893d6820da71cfe4e7dfeee23894cf6b6bb096601bb9b78c8dfb651ed72083f77be1e5b76969d97df59e887eb46aed99f999f
7
+ data.tar.gz: d19f638864f88689d7eb1956e84bc37a1e32791ef0196e8596890268b48d3954c7a1ae74c8ea5e959148da5548f32ec3079c07256e517a031e0613c231b35686
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Badged IDs
2
2
 
3
3
  ### Descriptive and Secure IDs for your Rails Models
4
- [![Build Status](https://github.com/fabian12943/badged_ids/workflows/CI/badge.svg)](https://github.com/fabian12943/badged_ids/actions)
4
+ [![Build Status](https://github.com/fabian12943/badged_ids/workflows/CI/badge.svg?cache-control=no-cache)](https://github.com/fabian12943/badged_ids/actions)
5
5
 
6
6
  Badged IDs makes it simple to create descriptive and secure identifiers for your Rails
7
7
  models.
@@ -124,7 +124,7 @@ in your Rails application.
124
124
 
125
125
  ```ruby
126
126
  # config/initializers/badged_ids.rb
127
- BadgedIds.configure do |config|
127
+ BadgedIds.config do |config|
128
128
  config.alphabet = "abc123"
129
129
  config.delimiter = "-"
130
130
  config.minimum_length = 20
@@ -216,4 +216,4 @@ whatever reason, cannot be adjusted. In such cases, verifying the uniqueness of
216
216
  before saving and retrying in the event of a collision becomes necessary.
217
217
 
218
218
  For most use cases, especially when not creating thousands of records at once,
219
- the performance impact is negligible, regardless of the `skip_uniqueness_check` config.
219
+ the performance impact is negligible, regardless of the `skip_uniqueness_check` config.
@@ -5,7 +5,7 @@ module BadgedIds
5
5
  class << self
6
6
  def register(badge, model)
7
7
  badge = badge.to_s
8
- if models.key?(badge) && models[badge] != model
8
+ if models.key?(badge) && models[badge].to_s != model.to_s
9
9
  raise RegistryError, "Badge `#{badge}` is already assigned to `#{models[badge]}`."
10
10
  end
11
11
 
@@ -1,3 +1,3 @@
1
1
  module BadgedIds
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: badged_ids
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabian Schwarz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-05 00:00:00.000000000 Z
11
+ date: 2025-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails