based_uuid 0.6.3 → 0.6.4

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: 817a3f1cb146984cc60ce6b4d375c4aa99596a6625caa1634ffb4863a88c5fad
4
- data.tar.gz: 609ed318d030cec9f2a1e798306aec767fff1ff76e79027f8de29c4421c71ebc
3
+ metadata.gz: eb5193159372ea36936fc28de906883e38489072e9fd8547014c397b10890412
4
+ data.tar.gz: 7b0ea3665a0e98399a8a1ea879b0dc1a485d5a94c4fca0f1aecfb8937801ccc1
5
5
  SHA512:
6
- metadata.gz: 53b3687c2863bec696e6c01f72e7af31518039eb93d54b0cc19bc7f2eae08c73bcd64ddb62a17964dd51a8beba41e3b6adfc845af1d33ff736546f14344422f4
7
- data.tar.gz: 686192a5aaee839a19c12125cbe02739dd4aafadef884bb1afc34f10742090eac587688ee1907c0d764f17fea1bf9bda07994427a0ec0567e0204b509fdfec8d
6
+ metadata.gz: 3537ddcaf3b73febcf11f5d81d16cfcc6ee61161cd76cd0e1893f7ac959f5ef54321cf50a22b3b6d4de119401527c1a2f8ac69ec63df8014a055a0ae8ca166bf
7
+ data.tar.gz: 401d5c6184d1a07da28da11f884f2e9135afdba551210892cf55dcbf8496728ccb6f5059302a2e9aee9908a590d20fb0abd72483c17862738a4d49d5c9c0a04b
data/README.md CHANGED
@@ -33,6 +33,9 @@ end
33
33
  post = BlogPost.last
34
34
  post.based_uuid #=> bpo_12dm1qresn83st62reqdw7f7cv
35
35
  post.based_uuid(prefix: false) #=> 12dm1qresn83st62reqdw7f7cv
36
+
37
+ post.based_uuid_with_prefix
38
+ post.based_uuid_without_prefix
36
39
  ```
37
40
 
38
41
  ### Lookup
@@ -102,7 +105,7 @@ BasedUUID.encode(uuid: "226d037c-3b35-40f3-a30b-0ebb78779d9b", prefix: :bpo)
102
105
  BasedUUID.decode("bpo_12dm1qresn83st62reqdw7f7cv")
103
106
  ```
104
107
 
105
- * * *
108
+ ---
106
109
 
107
110
  ## Development
108
111
 
@@ -53,6 +53,14 @@ module BasedUUID
53
53
  BasedUUID.encode(uuid: _uuid_column_value, prefix: prefix ? self.class._based_uuid_prefix : nil)
54
54
  end
55
55
 
56
+ def based_uuid_with_prefix
57
+ based_uuid(prefix: true)
58
+ end
59
+
60
+ def based_uuid_without_prefix
61
+ based_uuid(prefix: false)
62
+ end
63
+
56
64
  private
57
65
 
58
66
  def _uuid_column_value
@@ -1,3 +1,3 @@
1
1
  module BasedUUID
2
- VERSION = "0.6.3".freeze
2
+ VERSION = "0.6.4".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: based_uuid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Chmolowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport