based_uuid 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/based_uuid/version.rb +1 -1
- data/lib/based_uuid.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5efa8c1cc0d82b116e8e4bfd6a5170bb83fd01258f19eb35b32aa28a0bc39804
|
4
|
+
data.tar.gz: 15e4f3a03f286ec1bbc40f3fd1da6d19c2d5b0b17db9718762d4a632966484ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a94e6cf70c7cc5954f97c2720032885ad7bee008f30e41dd6af341c67ad04756940d4e5a8d865d33135abf737a0ed4c9170812d7135e711e848e68d23442b9ec
|
7
|
+
data.tar.gz: f7eba4f45b4deaadd65d4ac731411bc86a15b47197972bb9ee4c2f0f5ede773a99d79a6b3f50a3a30cc5b47c845f564cc89d628e18d9a28fce67b055b0d6b801
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# BasedUUID: URL-friendly UUIDs for Rails models
|
2
2
|
|
3
|
-
[![Build Status](https://github.com/pch/based_uuid/workflows/Tests/badge.svg)](https://github.com/pch/based_uuid/actions)
|
4
|
-
|
3
|
+
[![Build Status](https://github.com/pch/based_uuid/workflows/Tests/badge.svg)](https://github.com/pch/based_uuid/actions)
|
5
4
|
|
6
5
|
Generate “double-clickable”, URL-friendly UUIDs with (optional) prefixes:
|
7
6
|
|
@@ -98,6 +97,7 @@ end
|
|
98
97
|
BasedUUID can be used outside ActiveRecord, too. You can encode any UUID with it:
|
99
98
|
|
100
99
|
```ruby
|
100
|
+
BasedUUID.encode(uuid: "226d037c-3b35-40f3-a30b-0ebb78779d9b")
|
101
101
|
BasedUUID.encode(uuid: "226d037c-3b35-40f3-a30b-0ebb78779d9b", prefix: :bpo)
|
102
102
|
BasedUUID.decode("bpo_12dm1qresn83st62reqdw7f7cv")
|
103
103
|
```
|
data/lib/based_uuid/version.rb
CHANGED
data/lib/based_uuid.rb
CHANGED