prefixed_ids 1.0.0 → 1.0.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: 59a5bd4a556be1cc707fbfc22826ff52c2c7ace6f69c9328eb4ec9e8552a939d
4
- data.tar.gz: 13d03f6fa3ef80f5527750456fe16ca5262db9c2278f187d49a46f3cd229b113
3
+ metadata.gz: ab4ea5b61773281d37a10dc9f1dc429f0da2d0f7ed10240c4ae4a17fe3219df9
4
+ data.tar.gz: 4a37b8721a3e34cdf4446b5a83ab8a899c2d6f0bf20c6b72b9d37fa884d04e35
5
5
  SHA512:
6
- metadata.gz: 97ed861903460640f0e836602aa17015e391600b900437edac0c321707b95bc47aa1ee4ac86b9a303b3531e6e5fbb13ae7195c13ee19bcfe688b57702a0eb1a8
7
- data.tar.gz: 7d6712c197f5278fc2841033f5d52e17ade941639f6a84b99e428838ae404eb97ea4699587338abb88aaae7bb0aca2e368fb4b961c154990ee27c69ad0f6e9d9
6
+ metadata.gz: ce60408ac4ea95916a8915f82b11ecf52ad51e01f9af1cbc626891457e3318fcf006eca7bb87bc02d36804b1b20e4d1fbbfa2d761a4ec1a073f75c8c4a29a0d3
7
+ data.tar.gz: '06825f2e2d69c3576b842235ef1faf584b7f371fa75b7e82638d7d9ced3d649b3b0f1bd96b56126d13170a1f46ec410576ba5370e23df871ae3af17796d56a29'
data/README.md CHANGED
@@ -13,11 +13,13 @@ user_12345abcd
13
13
  acct_23lksjdg3
14
14
  ```
15
15
 
16
+ Inspired by [Stripe's prefixed IDs](https://stripe.com/docs/api) in their API.
17
+
16
18
  ## 🚀 Installation
17
19
  Add this line to your application's Gemfile:
18
20
 
19
21
  ```ruby
20
- bundle add 'prefixed_ids'
22
+ gem 'prefixed_ids'
21
23
  ```
22
24
 
23
25
  ## 📝 Usage
data/lib/prefixed_ids.rb CHANGED
@@ -4,6 +4,8 @@ require "prefixed_ids/engine"
4
4
  module PrefixedIds
5
5
  MINIMUM_TOKEN_LENGTH = 24
6
6
 
7
+ class MinimumLengthError < StandardError; end
8
+
7
9
  module Attribute
8
10
  extend ActiveSupport::Concern
9
11
 
@@ -1,3 +1,3 @@
1
1
  module PrefixedIds
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prefixed_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
  - Chris Oliver