story_key 0.2.0 → 0.3.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/story_key/decoder.rb +1 -1
- data/lib/story_key/encoder.rb +1 -1
- data/lib/story_key/generator.rb +1 -1
- data/lib/story_key/version.rb +1 -1
- data/lib/story_key.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: 1233b236b5edf1cbec6d96eee8ace63be0c141402a9dadb6954c714b4311a8b0
|
|
4
|
+
data.tar.gz: b49c36a26550ca611bcbdb55ff7c7fbc37534a797fb6cad34d1112fa6f0d4480
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9022e3f8f6e2d19596ab98eaff22e229c8284a1a08a7069410b307711a6442cb242ed61ab4896245451db6670966b560e75bba9d224bcd96df462888152905ed
|
|
7
|
+
data.tar.gz: 4ce3e4d9445922acba618a1ae402439b02d9420e47578526581ab701aa45c35aa9c9c9483aee47279f6c577756e4e85261730e6dad359fbe86a084a21d7aa39e
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
| Gem Version | Locale | Lexicon SHA |
|
|
10
10
|
|-------------|--------|-------------|
|
|
11
|
-
| 0.
|
|
11
|
+
| 0.3.0 | Miami | 4eea29f |
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
# StoryKey
|
|
@@ -195,7 +195,7 @@ When editing the lexicon, be sure to:
|
|
|
195
195
|
2. Copy the lexicon SHA into `version.rb` as well as this README (if publishing)
|
|
196
196
|
3. Increment the semantic version of the gem (if publishing)
|
|
197
197
|
|
|
198
|
-
When incrementing the semantic version, be sure to:
|
|
198
|
+
When incrementing the semantic version post-1.0, be sure to:
|
|
199
199
|
1. Create a new `VERSION_SLUG`, adhering to the locale convention
|
|
200
200
|
2. Append a row to the version reference at the top of this README
|
|
201
201
|
|
data/lib/story_key/decoder.rb
CHANGED
data/lib/story_key/encoder.rb
CHANGED
data/lib/story_key/generator.rb
CHANGED
data/lib/story_key/version.rb
CHANGED
data/lib/story_key.rb
CHANGED
|
@@ -19,8 +19,8 @@ loader.setup
|
|
|
19
19
|
module StoryKey
|
|
20
20
|
BITS_PER_ENTRY = 10
|
|
21
21
|
DEFAULT_BITSIZE = 256
|
|
22
|
-
DEFAULT_FORMAT = :base58
|
|
23
22
|
FOOTER_BITSIZE = 4 # StoryKey::BITS_PER_ENTRY <= 2^StoryKey::FOOTER_BITSIZE
|
|
23
|
+
FORMATS = %i[base58 hex bin dec].freeze
|
|
24
24
|
GRAMMAR = {
|
|
25
25
|
4 => %i[adjective noun verb noun],
|
|
26
26
|
3 => %i[noun verb noun],
|