snaky_hash 2.0.1 → 2.0.3

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.
data/README.md CHANGED
@@ -1,13 +1,133 @@
1
- # SnakyHash
1
+ # 🐍 SnakyHash
2
2
 
3
- This gem is used by the `oauth` and `oauth2` gems, and others, to normalize hash keys and lookups,
3
+ [![Version][👽versioni]][👽version] [![License: MIT][📄license-img]][📄license-ref] [![Downloads Rank][👽dl-ranki]][👽dl-rank] [![Open Source Helpers][👽oss-helpi]][👽oss-help] [![Depfu][🔑depfui♻️]][🔑depfu] [![Coveralls Test Coverage][🔑coveralls-img]][🔑coveralls] [![QLTY Test Coverage][🔑qlty-covi♻️]][🔑qlty-cov] [![QLTY Maintainability][🔑qlty-mnti♻️]][🔑qlty-mnt] [![CI Heads][🚎3-hd-wfi]][🚎3-hd-wf] [![CI Runtime Dependencies @ HEAD][🚎12-crh-wfi]][🚎12-crh-wf] [![CI Current][🚎11-c-wfi]][🚎11-c-wf] [![CI Truffle Ruby][🚎9-t-wfi]][🚎9-t-wf] [![CI JRuby][🚎10-j-wfi]][🚎10-j-wf] [![CI Supported][🚎6-s-wfi]][🚎6-s-wf] [![CI Legacy][🚎4-lg-wfi]][🚎4-lg-wf] [![CI Unsupported][🚎7-us-wfi]][🚎7-us-wf] [![CI Ancient][🚎1-an-wfi]][🚎1-an-wf] [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf] [![CI Style][🚎5-st-wfi]][🚎5-st-wf] [![CodeQL][🖐codeQL-img]][🖐codeQL]
4
+
5
+ ---
6
+
7
+ [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate on Polar][🖇polar-img]][🖇polar] [![Donate to my FLOSS or refugee efforts at ko-fi.com][🖇kofi-img]][🖇kofi] [![Donate to my FLOSS or refugee efforts using Patreon][🖇patreon-img]][🖇patreon]
8
+
9
+ This library is similar in purpose to the HashWithIndifferentAccess that is famously used in Rails, but does a lot more.
10
+
11
+ This gem is used by `oauth` and `oauth2` gems to normalize hash keys to `snake_case` and lookups,
4
12
  and provide a nice psuedo-object interface.
5
13
 
6
- It has its roots in the `Rash` (specifically the [`rash_alt`](https://github.com/shishi/rash_alt) flavor), which is a special `Mash`, made popular by the `hashie` gem.
14
+ It can be thought of as a mashup of:
15
+
16
+ * `Rash` (specifically the [`rash_alt`](https://github.com/shishi/rash_alt) flavor), which is a special `Mash`, made popular by the `hashie` gem, and
17
+ * `serialized_hashie` [gem by krystal](https://github.com/krystal/serialized-hashie), rewritten, with some behavior changes
18
+
19
+ Classes that `include SnakyHash::Snake.new` should inherit from `Hashie::Mash`.
20
+
21
+ ## New for v2.0.2: Serialization Support
22
+
23
+ The serialization support is set to `false` by default, for backwards compatibility, but may be switched to `true` in the next major release, which will be v3. Example:
24
+
25
+ ```ruby
26
+ # This class has `dump` and `load` abilities!
27
+ class MyStringKeyedHash < Hashie::Mash
28
+ include SnakyHash::Snake.new(
29
+ key_type: :string,
30
+ serializer: true,
31
+ )
32
+ end
33
+ ```
34
+
35
+ ✨ Also new dump & load plugin extensions to control the way your data is dumped and loaded.
36
+
37
+ ### Note for use with oauth2 gem
38
+
39
+ The serializer is being introduced as a disabled option for backwards compatibility.
40
+ In snaky_hash v3 it will default to `true`.
41
+ If you want to start using the serializer immediately, reopen the `SnakyHash::StringKeyed` class and add the `SnakyHash::Serializer` module like this:
42
+
43
+ ```ruby
44
+ SnakyHash::StringKeyed.class_eval do
45
+ extend SnakyHash::Serializer
46
+ end
47
+ ```
48
+
49
+ or you can create a custom class
50
+
51
+ ```ruby
52
+ class MyHash < Hashie::Mash
53
+ include SnakyHash::Snake.new(key_type: :string, serializer: true)
54
+ # Which is the same as:
55
+ # include SnakyHash::Snake.new(key_type: :string)
56
+ # extend SnakyHash::Serializer
57
+ end
58
+ ```
59
+
60
+ You can then add serialization extensions as needed. See [serialization](#serialization) and [extensions](#extensions) for more.
61
+
62
+ | Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI | Discussions |
63
+ |-----------------------------------------------|-------------------------------------------------------------------|---------------------------|--------------------------|---------------------------|--------------------------|------------------------------|
64
+ | 🧪 [oauth-xx/snaky_hash on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜wiki] | 🏀 Tiny Matrix | ➖ |
65
+ | 🧊 [oauth-xx/snaky_hash on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | ➖ | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix | ➖ |
66
+ | 🐙 [oauth-xx/snaky_hash on GitHub][📜src-gh] | A Dirty Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | ➖ | 💯 Full Matrix | ➖ |
67
+ | 🤼 [OAuth Ruby Google Group][⛳gg-discussions] | "Active" | ➖ | ➖ | ➖ | ➖ | [💚][⛳gg-discussions] |
68
+ | 🎮️ [Discord Server][✉️discord-invite] | [![Live Chat on Discord][✉️discord-invite-img]][✉️discord-invite] | [Let's][✉️discord-invite] | [talk][✉️discord-invite] | [about][✉️discord-invite] | [this][✉️discord-invite] | [library!][✉️discord-invite] |
69
+
70
+ ## Upgrading Runtime Gem Dependencies
71
+
72
+ Due to oauth and oauth2 gems depending on this gem,
73
+ this project sits underneath a large portion of the authorization systems on the internet.
74
+
75
+ That means it is painful for the Ruby community when this gem forces updates to its runtime dependencies.
76
+
77
+ As a result, great care, and a lot of time, have been invested to ensure this gem is working with all the
78
+ leading versions per each minor version of Ruby of all the runtime dependencies it can install with.
79
+
80
+ What does that mean specifically for the runtime dependencies?
81
+
82
+ We have 100% test coverage of lines and branches, and this test suite runs across a large matrix
83
+ covering the latest patch for each of the following minor versions:
7
84
 
8
- Classes that include `SnakyHash::Snake` should inherit from `Hashie::Mash`.
85
+ * MRI Ruby @ v2.3, v2.4, v2.5, v2.6, v2.7, v3.0, v3.1, v3.2, v3.3, v3.4, HEAD
86
+ * NOTE: This gem will still install on ruby v2.2, but vanilla GitHub Actions no longer supports testing against it, so YMMV.
87
+ * JRuby @ v9.2, v9.3, v9.4, v10.0, HEAD
88
+ * TruffleRuby @ v23.1, v23.2, HEAD
89
+ * gem `hashie` @ v0, v1, v2, v3, v4, v5, HEAD ⏩️ [hashie/hashie](https://github.com/hashie/hashie)
90
+ * gem `version_gem` - @v1, HEAD ⏩️ [oauth-xx/version_gem](https://gitlab.com/oauth-xx/version_gem)
9
91
 
10
- ## Installation
92
+ NOTE: `version_gem`, and this library, were both extracted from the ouaht2 gem. They are part of the `oauth-xx` org,
93
+ and are developed in tight collaboration with the oauth and oauth2 gems.
94
+
95
+ ### You should upgrade this gem with confidence\*.
96
+
97
+ - This gem follows a _strict & correct_ (according to the maintainer of SemVer; [more info][sv-pub-api]) interpretation of SemVer.
98
+ - Dropping support for **any** of the runtime dependency versions above will be a major version bump.
99
+ - If you aren't on one of the minor versions above, make getting there a priority.
100
+ - You should upgrade the dependencies of this gem with confidence\*.
101
+ - Please do upgrade, and then, when it goes smooth as butter [please sponsor me][🖇sponsor]. Thanks!
102
+
103
+ [sv-pub-api]: #-is-platform-support-part-of-the-public-api
104
+
105
+ \* MIT license; I am unable to make guarantees.
106
+
107
+ | 🚚 Test matrix brought to you by | 🔎 appraisal++ |
108
+ |----------------------------------|-------------------------------------------------------------------------|
109
+ | Adds back support for old Rubies | ✨ [appraisal PR #250](https://github.com/thoughtbot/appraisal/pull/250) |
110
+ | Adds support for `eval_gemfile` | ✨ [appraisal PR #248](https://github.com/thoughtbot/appraisal/pull/248) |
111
+ | Please review | my PRs! |
112
+
113
+ ## 💡 Info you can shake a stick at
114
+
115
+ | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
116
+ |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
117
+ | Works with JRuby | [![JRuby 9.2 Compat][💎jruby-9.2i]][🚎10-j-wf] [![JRuby 9.3 Compat][💎jruby-9.3i]][🚎10-j-wf] [![JRuby 9.4 Compat][💎jruby-9.4i]][🚎10-j-wf] [![JRuby 10.0 Compat][💎jruby-c-i]][🚎11-c-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf] |
118
+ | Works with Truffle Ruby | [![Truffle Ruby 23.1 Compat][💎truby-23.1i]][🚎9-t-wf] [![Truffle Ruby 24.1 Compat][💎truby-c-i]][🚎11-c-wf] [![Truffle Ruby HEAD Compat][💎truby-headi]][🚎3-hd-wf] |
119
+ | Works with MRI Ruby 3 | [![Ruby 3.0 Compat][💎ruby-3.0i]][🚎4-lg-wf] [![Ruby 3.1 Compat][💎ruby-3.1i]][🚎6-s-wf] [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎6-s-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎6-s-wf] [![Ruby 3.4 Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf] |
120
+ | Works with MRI Ruby 2 | [![Ruby 2.3 Compat][💎ruby-2.3i]][🚎1-an-wf] [![Ruby 2.4 Compat][💎ruby-2.4i]][🚎1-an-wf] [![Ruby 2.5 Compat][💎ruby-2.5i]][🚎1-an-wf] [![Ruby 2.6 Compat][💎ruby-2.6i]][🚎7-us-wf] [![Ruby 2.7 Compat][💎ruby-2.7i]][🚎7-us-wf] |
121
+ | Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on CodeBerg.org][📜src-cb-img]][📜src-cb] [![Source on Github.com][📜src-gh-img]][📜src-gh] [![The best SHA: dQw4w9WgXcQ!][🧮kloc-img]][🧮kloc] |
122
+ | Documentation | [![Discussion][⛳gg-discussions-img]][⛳gg-discussions] [![Current release on RubyDoc.info][📜docs-cr-rd-img]][🚎yard-current] [![HEAD on RubyDoc.info][📜docs-head-rd-img]][🚎yard-head] [![BDFL Blog][🚂bdfl-blog-img]][🚂bdfl-blog] [![Wiki][📜wiki-img]][📜wiki] |
123
+ | Compliance | [![License: MIT][📄license-img]][📄license-ref] [![📄ilo-declaration-img]][📄ilo-declaration] [![Security Policy][🔐security-img]][🔐security] [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct] [![SemVer 2.0.0][📌semver-img]][📌semver] |
124
+ | Style | [![Enforced Code Style Linter][💎rlts-img]][💎rlts] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] [![Gitmoji Commits][📌gitmoji-img]][📌gitmoji] |
125
+ | Support | [![Live Chat on Discord][✉️discord-invite-img]][✉️discord-invite] [![Get help from me on Upwork][👨🏼‍🏫expsup-upwork-img]][👨🏼‍🏫expsup-upwork] [![Get help from me on Codementor][👨🏼‍🏫expsup-codementor-img]][👨🏼‍🏫expsup-codementor] |
126
+ | Enterprise Support | [![Get help from me on Tidelift][🏙️entsup-tidelift-img]][🏙️entsup-tidelift]<br/>💡Subscribe for support guarantees covering _all_ FLOSS dependencies!<br/>💡Tidelift is part of [Sonar][🏙️entsup-tidelift-sonar]!<br/>💡Tidelift pays maintainers to maintain the software you depend on!<br/>📊`@`Pointy Haired Boss: An [enterprise support][🏙️entsup-tidelift] subscription is "[never gonna let you down][🧮kloc]", and *supports* open source maintainers! |
127
+ | Comrade BDFL 🎖️ | [![Follow Me on LinkedIn][💖🖇linkedin-img]][💖🖇linkedin] [![Follow Me on Ruby.Social][💖🐘ruby-mast-img]][💖🐘ruby-mast] [![Follow Me on Bluesky][💖🦋bluesky-img]][💖🦋bluesky] [![Contact BDFL][🚂bdfl-contact-img]][🚂bdfl-contact] [![My technical writing][💖💁🏼‍♂️devto-img]][💖💁🏼‍♂️devto] |
128
+ | `...` 💖 | [![Find Me on WellFound:][💖✌️wellfound-img]][💖✌️wellfound] [![Find Me on CrunchBase][💖💲crunchbase-img]][💖💲crunchbase] [![My LinkTree][💖🌳linktree-img]][💖🌳linktree] [![More About Me][💖💁🏼‍♂️aboutme-img]][💖💁🏼‍♂️aboutme] [🧊][💖🧊berg] [🐙][💖🐙hub] [🛖][💖🛖hut] [🧪][💖🧪lab] |
129
+
130
+ ## ✨ Installation
11
131
 
12
132
  Install the gem and add to the application's Gemfile by executing:
13
133
 
@@ -17,17 +137,48 @@ If bundler is not being used to manage dependencies, install the gem by executin
17
137
 
18
138
  $ gem install snaky_hash
19
139
 
20
- ## Usage
140
+ ### 🔒 Secure Installation
141
+
142
+ `snaky_hash` is cryptographically signed, and has verifiable [SHA-256 and SHA-512][💎SHA_checksums] checksums by
143
+ [stone_checksums][💎stone_checksums]. Be sure the gem you install hasn’t been tampered with
144
+ by following the instructions below.
145
+
146
+ Add my public key (if you haven’t already, expires 2045-04-29) as a trusted certificate:
147
+
148
+ ```shell
149
+ gem cert --add <(curl -Ls https://raw.github.com/oauth-xx/snaky_hash/main/certs/pboling.pem)
150
+ ```
151
+
152
+ You only need to do that once. Then proceed to install with:
153
+
154
+ ```shell
155
+ gem install snaky_hash -P MediumSecurity
156
+ ```
157
+
158
+ The `MediumSecurity` trust profile will verify signed gems, but allow the installation of unsigned dependencies.
159
+
160
+ This is necessary because not all of `snaky_hash`’s dependencies are signed, so we cannot use `HighSecurity`.
161
+
162
+ If you want to up your security game full-time:
163
+
164
+ ```shell
165
+ bundle config set --global trust-policy MediumSecurity
166
+ ```
167
+
168
+ NOTE: Be prepared to track down certs for signed gems and add them the same way you added mine.
169
+
170
+ ## 🔧 Basic Usage
21
171
 
22
172
  ```ruby
23
173
  class MySnakedHash < Hashie::Mash
24
174
  include SnakyHash::Snake.new(key_type: :string) # or :symbol
25
175
  end
26
176
 
27
- snake = MySnakedHash.new(a: "a", "b" => "b", 2 => 2, "VeryFineHat" => "Feathers")
177
+ snake = MySnakedHash.new(:a => "a", "b" => "b", 2 => 2, "VeryFineHat" => "Feathers")
28
178
  snake.a # => 'a'
29
179
  snake.b # => 'b'
30
- snake[2] # 2
180
+ snake[2] # => 2
181
+ snake["2"] # => nil, note that this gem only affects string / symbol keys.
31
182
  snake.very_fine_hat # => 'Feathers'
32
183
  snake[:very_fine_hat] # => 'Feathers'
33
184
  snake["very_fine_hat"] # => 'Feathers'
@@ -38,19 +189,129 @@ The `key_type` determines how the key is actually stored, but the hash acts as "
38
189
  Note also that keys which do not respond to `to_sym`, because they don't have a natural conversion to a Symbol,
39
190
  are left as-is.
40
191
 
41
- ### Stranger Things
192
+ ### Serialization
193
+
194
+ ```ruby
195
+ class MySerializedSnakedHash < Hashie::Mash
196
+ include SnakyHash::Snake.new(
197
+ key_type: :symbol, # default :string
198
+ serializer: true, # default: false
199
+ )
200
+ end
201
+
202
+ snake = MySerializedSnakedHash.new(:a => "a", "b" => "b", 2 => 2, "VeryFineHat" => "Feathers") # => {a: "a", b: "b", 2 => 2, very_fine_hat: "Feathers"}
203
+ dump = MySerializedSnakedHash.dump(snake) # => "{\"a\":\"a\",\"b\":\"b\",\"2\":2,\"very_fine_hat\":\"Feathers\"}"
204
+ hydrated = MySerializedSnakedHash.load(dump) # => {a: "a", b: "b", "2": 2, very_fine_hat: "Feathers"}
205
+ hydrated.class # => MySerializedSnakedHash
206
+ hydrated.a # => 'a'
207
+ hydrated.b # => 'b'
208
+ hydrated[2] # => nil # NOTE: this is the opposite of snake[2] => 2
209
+ hydrated["2"] # => 2 # NOTE: this is the opposite of snake["2"] => nil
210
+ hydrated.very_fine_hat # => 'Feathers'
211
+ hydrated[:very_fine_hat] # => 'Feathers'
212
+ hydrated["very_fine_hat"] # => 'Feathers'
213
+ ```
214
+
215
+ Note that the key `VeryFineHat` changed to `very_fine_hat`.
216
+ That is indeed the point of this library, so not a bug.
217
+
218
+ Note that the key `2` changed to `"2"` (because JSON keys are strings).
219
+ When the JSON dump was reloaded it did not know to restore it as `2` instead of `"2"`.
220
+ This is also not a bug, though if you need different behavior, there is a solution in the [next section](#extensions).
221
+
222
+ ### Extensions
223
+
224
+ You can write your own arbitrary extensions:
225
+
226
+ * "Hash Load" extensions operate on the hash and nested hashes
227
+ * use `::load_hash_extensions.add(:extension_name) { |hash| }`
228
+ * since v2.0.2, bugs fixed in v2.0.3
229
+ * "Value Load" extensions operate on the values, and nested hashes' values, if any
230
+ * use `::load_value_extensions.add(:extension_name) { |value| }`
231
+ * since v2.0.2, bugs fixed in v2.0.3
232
+ * "Hash Dump" extensions operate on the hash and nested hashes
233
+ * use `::dump_hash_extensions.add(:extension_name) { |value| }`
234
+ * since v2.0.3
235
+ * "Value Dump" extensions operate on the values, and nested hashes' values, if any
236
+ * use `::dump_value_extensions.add(:extension_name) { |value| }`
237
+ * since v2.0.2, bugs fixed in v2.0.3
238
+
239
+ #### Example
240
+
241
+ Let's say I want to really smash up my hash and make it more food-like.
242
+
243
+ ```ruby
244
+ class MyExtSnakedHash < Hashie::Mash
245
+ include SnakyHash::Snake.new(
246
+ key_type: :symbol, # default :string
247
+ serializer: true, # default: false
248
+ )
249
+ end
250
+
251
+ # We could swap all values with indexed apples (obliteraating nested data!)
252
+ MyExtSnakedHash.dump_hash_extensions.add(:to_apple) do |value|
253
+ num = 0
254
+ value.transform_values do |_key|
255
+ key = "apple-#{num}"
256
+ num += 1
257
+ key
258
+ end
259
+ end
260
+
261
+ # And then when loading the dump we could convert the yum to pear
262
+ MyExtSnakedHash.load_hash_extensions.add(:apple_to_pear) do |value|
263
+ value.transform_keys do |key|
264
+ key.to_s.sub("yum", "pear")
265
+ end
266
+ end
267
+
268
+ # We could swap all index numbers "beet-<number>"
269
+ MyExtSnakedHash.dump_value_extensions.add(:to_beet) do |value|
270
+ value.to_s.sub(/(\d+)/) { |match| "beet-#{match[0]}" }
271
+ end
272
+
273
+ # And then when loading the dump we could convert beet to corn
274
+ MyExtSnakedHash.load_value_extensions.add(:beet_to_corn) do |value|
275
+ value.to_s.sub("beet", "corn")
276
+ end
277
+
278
+ snake = MyExtSnakedHash.new({"YumBread" => "b", "YumCake" => {"b" => "b"}, "YumBoba" => [1, 2, 3]})
279
+ snake # => {yum_bread: "b", yum_cake: {b: "b"}, yum_boba: [1, 2, 3]}
280
+ snake.yum_bread # => "b"
281
+ snake.yum_cake # => {b: "b"}
282
+ snake.yum_boba # => [1, 2, 3]
283
+ dump = snake.dump
284
+ dump # => "{\"yum_bread\":\"apple-beet-0\",\"yum_cake\":\"apple-beet-1\",\"yum_boba\":\"apple-beet-2\"}"
285
+ hydrated = MyExtSnakedHash.load(dump)
286
+ hydrated # => {pear_bread: "apple-corn-0", pear_cake: "apple-corn-1", pear_boba: "apple-corn-2"}
287
+ ```
288
+
289
+ See the specs for more examples.
290
+
291
+ ### Bad Ideas
42
292
 
43
293
  I don't recommend using these features... but they exist (for now).
294
+
295
+ <details>
296
+ <summary>Show me what I should *not* do!</summary>
297
+
44
298
  You can still access the original un-snaked camel keys.
45
299
  And through them you can even use un-snaked camel methods.
300
+ But don't.
46
301
 
47
302
  ```ruby
303
+ snake = SnakyHash::StringKeyed["VeryFineHat" => "Feathers"]
48
304
  snake.key?("VeryFineHat") # => true
49
305
  snake["VeryFineHat"] # => 'Feathers'
50
306
  snake.VeryFineHat # => 'Feathers', PLEASE don't do this!!!
51
307
  snake["VeryFineHat"] = "pop" # Please don't do this... you'll get a warning, and it works (for now), but no guarantees.
52
308
  # WARN -- : You are setting a key that conflicts with a built-in method MySnakedHash#VeryFineHat defined in MySnakedHash. This can cause unexpected behavior when accessing the key as a property. You can still access the key via the #[] method.
53
309
  # => "pop"
310
+ ```
311
+
312
+ Since you are reading this, here's what to do instead.
313
+
314
+ ```ruby
54
315
  snake.very_fine_hat = "pop" # => 'pop', do this instead!!!
55
316
  snake.very_fine_hat # => 'pop'
56
317
  snake[:very_fine_hat] = "moose" # => 'moose', or do this instead!!!
@@ -59,20 +320,302 @@ snake["very_fine_hat"] = "cheese" # => 'cheese', or do this instead!!!
59
320
  snake.very_fine_hat # => 'cheese'
60
321
  ```
61
322
 
62
- ## Development
323
+ </details>
324
+
325
+ ### 🚀 Release Instructions
326
+
327
+ See [CONTRIBUTING.md][🤝contributing].
328
+
329
+ ## 🔐 Security
330
+
331
+ See [SECURITY.md][🔐security].
332
+
333
+ ## 🤝 Contributing
334
+
335
+ If you need some ideas of where to help, you could work on adding more code coverage,
336
+ or if it is already 💯 (see [below](#code-coverage)) check [issues][🤝gh-issues], or [PRs][🤝gh-pulls],
337
+ or use the gem and think about how it could be better.
338
+
339
+ We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
340
+
341
+ See [CONTRIBUTING.md][🤝contributing] for more detailed instructions.
342
+
343
+ ### Code Coverage
344
+
345
+ [![Coveralls Test Coverage][🔑coveralls-img]][🔑coveralls]
346
+ [![QLTY Test Coverage][🔑qlty-covi♻️]][🔑qlty-cov]
347
+
348
+ ### 🪇 Code of Conduct
349
+
350
+ Everyone interacting in this project's codebases, issue trackers,
351
+ chat rooms and mailing lists is expected to follow the [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct].
352
+
353
+ ## 🌈 Contributors
354
+
355
+ [![Contributors][🖐contributors-img]][🖐contributors]
356
+
357
+ Made with [contributors-img][🖐contrib-rocks].
358
+
359
+ Also see GitLab Contributors: [https://gitlab.com/oauth-xx/snaky_hash/-/graphs/main][🚎contributors-gl]
360
+
361
+ ## ⭐️ Star History
362
+
363
+ <a href="https://star-history.com/#oauth-xx/snaky_hash&Date">
364
+ <picture>
365
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=oauth-xx/snaky_hash&type=Date&theme=dark" />
366
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=oauth-xx/snaky_hash&type=Date" />
367
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=oauth-xx/snaky_hash&type=Date" />
368
+ </picture>
369
+ </a>
370
+
371
+ ## 📌 Versioning
372
+
373
+ This Library adheres to [![Semantic Versioning 2.0.0][📌semver-img]][📌semver].
374
+ Violations of this scheme should be reported as bugs.
375
+ Specifically, if a minor or patch version is released that breaks backward compatibility,
376
+ a new version should be immediately released that restores compatibility.
377
+ Breaking changes to the public API will only be introduced with new major versions.
378
+
379
+ ### 📌 Is "Platform Support" part of the public API?
380
+
381
+ Yes. But I'm obligated to include notes...
382
+
383
+ SemVer should, but doesn't explicitly, say that dropping support for specific Platforms
384
+ is a *breaking change* to an API.
385
+ It is obvious to many, but not all, and since the spec is silent, the bike shedding is endless.
386
+
387
+ > dropping support for a platform is both obviously and objectively a breaking change
388
+
389
+ - Jordan Harband (@ljharb, maintainer of SemVer) [in SemVer issue 716][📌semver-breaking]
390
+
391
+ To get a better understanding of how SemVer is intended to work over a project's lifetime,
392
+ read this article from the creator of SemVer:
393
+
394
+ - ["Major Version Numbers are Not Sacred"][📌major-versions-not-sacred]
395
+
396
+ As a result of this policy, and the interpretive lens used by the maintainer,
397
+ you can (and should) specify a dependency on these libraries using
398
+ the [Pessimistic Version Constraint][📌pvc] with two digits of precision.
399
+
400
+ For example:
401
+
402
+ ```ruby
403
+ spec.add_dependency("snaky_hash", "~> 2.0")
404
+ ```
405
+
406
+ See [CHANGELOG.md][📌changelog] for list of releases.
407
+
408
+ ## 📄 License
409
+
410
+ The gem is available as open source under the terms of
411
+ the [MIT License][📄license] [![License: MIT][📄license-img]][📄license-ref].
412
+ See [LICENSE.txt][📄license] for the official [Copyright Notice][📄copyright-notice-explainer].
413
+
414
+ ### © Copyright
415
+
416
+ <ul>
417
+ <li>
418
+ 2022, 2025 Peter H. Boling, of
419
+ <a href="https://railsbling.com">
420
+ RailsBling.com
421
+ <picture>
422
+ <img alt="Rails Bling" height="20" src="https://railsbling.com/images/logos/RailsBling-TrainLogo.svg" />
423
+ </picture>
424
+ </a>, and snaky_hash contributors
425
+ </li>
426
+ </ul>
427
+
428
+ ## 🤑 One more thing
429
+
430
+ You made it to the bottom of the page,
431
+ so perhaps you'll indulge me for another 20 seconds.
432
+ I maintain many dozens of gems, including this one,
433
+ because I want Ruby to be a great place for people to solve problems, big and small.
434
+ Please consider supporting my efforts via the giant yellow link below,
435
+ or one of the others at the head of this README.
63
436
 
64
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
437
+ [![Buy me a latte][🖇buyme-img]][🖇buyme]
65
438
 
66
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
439
+ [⛳gg-discussions]: https://groups.google.com/g/oauth-ruby
440
+ [⛳gg-discussions-img]: https://img.shields.io/badge/google-group-0093D0.svg?style=for-the-badge&logo=google&logoColor=orange
67
441
 
68
- ## Contributing
442
+ [✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
443
+ [⛳️gem-namespace]: https://github.com/oauth-xx/snaky_hash
444
+ [⛳️namespace-img]: https://img.shields.io/badge/namespace-OAuth2-brightgreen.svg?style=flat&logo=ruby&logoColor=white
445
+ [⛳️gem-name]: https://rubygems.org/gems/snaky_hash
446
+ [⛳️name-img]: https://img.shields.io/badge/name-snaky_hash-brightgreen.svg?style=flat&logo=rubygems&logoColor=red
447
+ [🚂bdfl-blog]: http://www.railsbling.com/tags/snaky_hash
448
+ [🚂bdfl-blog-img]: https://img.shields.io/badge/blog-railsbling-0093D0.svg?style=for-the-badge&logo=rubyonrails&logoColor=orange
449
+ [🚂bdfl-contact]: http://www.railsbling.com/contact
450
+ [🚂bdfl-contact-img]: https://img.shields.io/badge/Contact-BDFL-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
451
+ [💖🖇linkedin]: http://www.linkedin.com/in/peterboling
452
+ [💖🖇linkedin-img]: https://img.shields.io/badge/PeterBoling-LinkedIn-0B66C2?style=flat&logo=newjapanprowrestling
453
+ [💖✌️wellfound]: https://angel.co/u/peter-boling
454
+ [💖✌️wellfound-img]: https://img.shields.io/badge/peter--boling-orange?style=flat&logo=wellfound
455
+ [💖💲crunchbase]: https://www.crunchbase.com/person/peter-boling
456
+ [💖💲crunchbase-img]: https://img.shields.io/badge/peter--boling-purple?style=flat&logo=crunchbase
457
+ [💖🐘ruby-mast]: https://ruby.social/@galtzo
458
+ [💖🐘ruby-mast-img]: https://img.shields.io/mastodon/follow/109447111526622197?domain=https%3A%2F%2Fruby.social&style=flat&logo=mastodon&label=Ruby%20%40galtzo
459
+ [💖🦋bluesky]: https://bsky.app/profile/galtzo.com
460
+ [💖🦋bluesky-img]: https://img.shields.io/badge/@galtzo.com-0285FF?style=flat&logo=bluesky&logoColor=white
461
+ [💖🌳linktree]: https://linktr.ee/galtzo
462
+ [💖🌳linktree-img]: https://img.shields.io/badge/galtzo-purple?style=flat&logo=linktree
463
+ [💖💁🏼‍♂️devto]: https://dev.to/galtzo
464
+ [💖💁🏼‍♂️devto-img]: https://img.shields.io/badge/dev.to-0A0A0A?style=flat&logo=devdotto&logoColor=white
465
+ [💖💁🏼‍♂️aboutme]: https://about.me/peter.boling
466
+ [💖💁🏼‍♂️aboutme-img]: https://img.shields.io/badge/about.me-0A0A0A?style=flat&logo=aboutme&logoColor=white
467
+ [💖🧊berg]: https://codeberg.org/pboling
468
+ [💖🐙hub]: https://github.org/pboling
469
+ [💖🛖hut]: https://sr.ht/~galtzo/
470
+ [💖🧪lab]: https://gitlab.com/pboling
471
+ [👨🏼‍🏫expsup-upwork]: https://www.upwork.com/freelancers/~014942e9b056abdf86?mp_source=share
472
+ [👨🏼‍🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
473
+ [👨🏼‍🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
474
+ [👨🏼‍🏫expsup-codementor-img]: https://img.shields.io/badge/CodeMentor-Get_Help-1abc9c?style=for-the-badge&logo=CodeMentor&logoColor=white
475
+ [🏙️entsup-tidelift]: https://tidelift.com/subscription
476
+ [🏙️entsup-tidelift-img]: https://img.shields.io/badge/Tidelift_and_Sonar-Enterprise_Support-FD3456?style=for-the-badge&logo=sonar&logoColor=white
477
+ [🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
478
+ [💁🏼‍♂️peterboling]: http://www.peterboling.com
479
+ [🚂railsbling]: http://www.railsbling.com
480
+ [📜src-gl-img]: https://img.shields.io/badge/GitLab-FBA326?style=for-the-badge&logo=Gitlab&logoColor=orange
481
+ [📜src-gl]: https://gitlab.com/oauth-xx/snaky_hash/
482
+ [📜src-cb-img]: https://img.shields.io/badge/CodeBerg-4893CC?style=for-the-badge&logo=CodeBerg&logoColor=blue
483
+ [📜src-cb]: https://codeberg.org/oauth-xx/snaky_hash
484
+ [📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=Github&logoColor=green
485
+ [📜src-gh]: https://github.com/oauth-xx/snaky_hash
486
+ [📜docs-cr-rd-img]: https://img.shields.io/badge/RubyDoc-Current_Release-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
487
+ [📜docs-head-rd-img]: https://img.shields.io/badge/YARD_on_Galtzo.com-HEAD-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
488
+ [📜wiki]: https://gitlab.com/oauth-xx/snaky_hash/-/wikis/home
489
+ [📜wiki-img]: https://img.shields.io/badge/wiki-examples-943CD2.svg?style=for-the-badge&logo=Wiki&logoColor=white
490
+ [👽dl-rank]: https://rubygems.org/gems/snaky_hash
491
+ [👽dl-ranki]: https://img.shields.io/gem/rd/snaky_hash.svg
492
+ [👽oss-help]: https://www.codetriage.com/oauth-xx/snaky_hash
493
+ [👽oss-helpi]: https://www.codetriage.com/oauth-xx/snaky_hash/badges/users.svg
494
+ [👽version]: https://rubygems.org/gems/snaky_hash
495
+ [👽versioni]: https://img.shields.io/gem/v/snaky_hash.svg
496
+ [🔑qlty-mnt]: https://qlty.sh/gh/oauth-xx/projects/snaky_hash
497
+ [🔑qlty-mnti♻️]: https://qlty.sh/badges/84e960b2-4ed2-4b47-9913-02c32680ec98/maintainability.svg
498
+ [🔑qlty-cov]: https://qlty.sh/gh/oauth-xx/projects/snaky_hash
499
+ [🔑qlty-covi♻️]: https://qlty.sh/badges/84e960b2-4ed2-4b47-9913-02c32680ec98/test_coverage.svg
500
+ [🔑codecov]: https://codecov.io/gh/oauth-xx/snaky_hash
501
+ [🔑codecovi♻️]: https://codecov.io/gh/oauth-xx/snaky_hash/graph/badge.svg?token=XqaZixl4ss
502
+ [🔑coveralls]: https://coveralls.io/github/oauth-xx/snaky_hash?branch=main
503
+ [🔑coveralls-img]: https://coveralls.io/repos/github/oauth-xx/snaky_hash/badge.svg?branch=main
504
+ [🔑depfu]: https://depfu.com/github/oauth-xx/snaky_hash?project_id=63073
505
+ [🔑depfui♻️]: https://badges.depfu.com/badges/7019dcf43672ba8c0e77e7fdd1063398/count.svg
506
+ [🖐codeQL]: https://github.com/oauth-xx/snaky_hash/security/code-scanning
507
+ [🖐codeQL-img]: https://github.com/oauth-xx/snaky_hash/actions/workflows/codeql-analysis.yml/badge.svg
508
+ [🚎1-an-wf]: https://github.com/oauth-xx/snaky_hash/actions/workflows/ancient.yml
509
+ [🚎1-an-wfi]: https://github.com/oauth-xx/snaky_hash/actions/workflows/ancient.yml/badge.svg
510
+ [🚎2-cov-wf]: https://github.com/oauth-xx/snaky_hash/actions/workflows/coverage.yml
511
+ [🚎2-cov-wfi]: https://github.com/oauth-xx/snaky_hash/actions/workflows/coverage.yml/badge.svg
512
+ [🚎3-hd-wf]: https://github.com/oauth-xx/snaky_hash/actions/workflows/heads.yml
513
+ [🚎3-hd-wfi]: https://github.com/oauth-xx/snaky_hash/actions/workflows/heads.yml/badge.svg
514
+ [🚎4-lg-wf]: https://github.com/oauth-xx/snaky_hash/actions/workflows/legacy.yml
515
+ [🚎4-lg-wfi]: https://github.com/oauth-xx/snaky_hash/actions/workflows/legacy.yml/badge.svg
516
+ [🚎5-st-wf]: https://github.com/oauth-xx/snaky_hash/actions/workflows/style.yml
517
+ [🚎5-st-wfi]: https://github.com/oauth-xx/snaky_hash/actions/workflows/style.yml/badge.svg
518
+ [🚎6-s-wf]: https://github.com/oauth-xx/snaky_hash/actions/workflows/supported.yml
519
+ [🚎6-s-wfi]: https://github.com/oauth-xx/snaky_hash/actions/workflows/supported.yml/badge.svg
520
+ [🚎7-us-wf]: https://github.com/oauth-xx/snaky_hash/actions/workflows/unsupported.yml
521
+ [🚎7-us-wfi]: https://github.com/oauth-xx/snaky_hash/actions/workflows/unsupported.yml/badge.svg
522
+ [🚎8-ho-wf]: https://github.com/oauth-xx/snaky_hash/actions/workflows/hoary.yml
523
+ [🚎8-ho-wfi]: https://github.com/oauth-xx/snaky_hash/actions/workflows/hoary.yml/badge.svg
524
+ [🚎9-t-wf]: https://github.com/oauth-xx/snaky_hash/actions/workflows/truffle.yml
525
+ [🚎9-t-wfi]: https://github.com/oauth-xx/snaky_hash/actions/workflows/truffle.yml/badge.svg
526
+ [🚎10-j-wf]: https://github.com/oauth-xx/snaky_hash/actions/workflows/jruby.yml
527
+ [🚎10-j-wfi]: https://github.com/oauth-xx/snaky_hash/actions/workflows/jruby.yml/badge.svg
528
+ [🚎11-c-wf]: https://github.com/oauth-xx/snaky_hash/actions/workflows/current.yml
529
+ [🚎11-c-wfi]: https://github.com/oauth-xx/snaky_hash/actions/workflows/current.yml/badge.svg
530
+ [🚎12-crh-wf]: https://github.com/oauth-xx/snaky_hash/actions/workflows/current-runtime-heads.yml
531
+ [🚎12-crh-wfi]: https://github.com/oauth-xx/snaky_hash/actions/workflows/current-runtime-heads.yml/badge.svg
532
+ [⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay
533
+ [⛳liberapay]: https://liberapay.com/pboling/donate
534
+ [🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
535
+ [🖇sponsor]: https://github.com/sponsors/pboling
536
+ [🖇polar-img]: https://img.shields.io/badge/polar-donate-yellow.svg
537
+ [🖇polar]: https://polar.sh/pboling
538
+ [🖇kofi-img]: https://img.shields.io/badge/a_more_different_coffee-✓-yellow.svg
539
+ [🖇kofi]: https://ko-fi.com/O5O86SNP4
540
+ [🖇patreon-img]: https://img.shields.io/badge/patreon-donate-yellow.svg
541
+ [🖇patreon]: https://patreon.com/galtzo
542
+ [🖇buyme-img]: https://img.buymeacoffee.com/button-api/?text=Buy%20me%20a%20latte&emoji=&slug=pboling&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff
543
+ [🖇buyme]: https://www.buymeacoffee.com/pboling
544
+ [🖇buyme-small-img]: https://img.shields.io/badge/buy_me_a_coffee-✓-yellow.svg?style=flat
545
+ [💎ruby-2.3i]: https://img.shields.io/badge/Ruby-2.3-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
546
+ [💎ruby-2.4i]: https://img.shields.io/badge/Ruby-2.4-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
547
+ [💎ruby-2.5i]: https://img.shields.io/badge/Ruby-2.5-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
548
+ [💎ruby-2.6i]: https://img.shields.io/badge/Ruby-2.6-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
549
+ [💎ruby-2.7i]: https://img.shields.io/badge/Ruby-2.7-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
550
+ [💎ruby-3.0i]: https://img.shields.io/badge/Ruby-3.0-CC342D?style=for-the-badge&logo=ruby&logoColor=white
551
+ [💎ruby-3.1i]: https://img.shields.io/badge/Ruby-3.1-CC342D?style=for-the-badge&logo=ruby&logoColor=white
552
+ [💎ruby-3.2i]: https://img.shields.io/badge/Ruby-3.2-CC342D?style=for-the-badge&logo=ruby&logoColor=white
553
+ [💎ruby-3.3i]: https://img.shields.io/badge/Ruby-3.3-CC342D?style=for-the-badge&logo=ruby&logoColor=white
554
+ [💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
555
+ [💎ruby-headi]: https://img.shields.io/badge/Ruby-HEAD-CC342D?style=for-the-badge&logo=ruby&logoColor=blue
556
+ [💎truby-22.3i]: https://img.shields.io/badge/Truffle_Ruby-22.3-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
557
+ [💎truby-23.0i]: https://img.shields.io/badge/Truffle_Ruby-23.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
558
+ [💎truby-23.1i]: https://img.shields.io/badge/Truffle_Ruby-23.1-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
559
+ [💎truby-c-i]: https://img.shields.io/badge/Truffle_Ruby-current-34BCB1?style=for-the-badge&logo=ruby&logoColor=green
560
+ [💎truby-headi]: https://img.shields.io/badge/Truffle_Ruby-HEAD-34BCB1?style=for-the-badge&logo=ruby&logoColor=blue
561
+ [💎jruby-9.1i]: https://img.shields.io/badge/JRuby-9.1-FBE742?style=for-the-badge&logo=ruby&logoColor=red
562
+ [💎jruby-9.2i]: https://img.shields.io/badge/JRuby-9.2-FBE742?style=for-the-badge&logo=ruby&logoColor=red
563
+ [💎jruby-9.3i]: https://img.shields.io/badge/JRuby-9.3-FBE742?style=for-the-badge&logo=ruby&logoColor=red
564
+ [💎jruby-9.4i]: https://img.shields.io/badge/JRuby-9.4-FBE742?style=for-the-badge&logo=ruby&logoColor=red
565
+ [💎jruby-c-i]: https://img.shields.io/badge/JRuby-current-FBE742?style=for-the-badge&logo=ruby&logoColor=green
566
+ [💎jruby-headi]: https://img.shields.io/badge/JRuby-HEAD-FBE742?style=for-the-badge&logo=ruby&logoColor=blue
567
+ [🤝gh-issues]: https://github.com/oauth-xx/snaky_hash/issues
568
+ [🤝gh-pulls]: https://github.com/oauth-xx/snaky_hash/pulls
569
+ [🤝gl-issues]: https://gitlab.com/oauth-xx/snaky_hash/-/issues
570
+ [🤝gl-pulls]: https://gitlab.com/oauth-xx/snaky_hash/-/merge_requests
571
+ [🤝cb-issues]: https://codeberg.org/oauth-xx/snaky_hash/issues
572
+ [🤝cb-pulls]: https://codeberg.org/oauth-xx/snaky_hash/pulls
573
+ [🤝cb-donate]: https://donate.codeberg.org/
574
+ [🤝contributing]: CONTRIBUTING.md
575
+ [🔑codecov-g♻️]: https://codecov.io/gh/oauth-xx/snaky_hash/graphs/tree.svg?token=XqaZixl4ss
576
+ [🖐contrib-rocks]: https://contrib.rocks
577
+ [🖐contributors]: https://github.com/oauth-xx/snaky_hash/graphs/contributors
578
+ [🖐contributors-img]: https://contrib.rocks/image?repo=oauth-xx/snaky_hash
579
+ [🚎contributors-gl]: https://gitlab.com/oauth-xx/snaky_hash/-/graphs/main
580
+ [🪇conduct]: CODE_OF_CONDUCT.md
581
+ [🪇conduct-img]: https://img.shields.io/badge/Contributor_Covenant-2.1-259D6C.svg
582
+ [📌pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
583
+ [📌semver]: https://semver.org/spec/v2.0.0.html
584
+ [📌semver-img]: https://img.shields.io/badge/semver-2.0.0-259D6C.svg?style=flat
585
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
586
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
587
+ [📌changelog]: CHANGELOG.md
588
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
589
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-34495e.svg?style=flat
590
+ [📌gitmoji]:https://gitmoji.dev
591
+ [📌gitmoji-img]:https://img.shields.io/badge/gitmoji_commits-%20😜%20😍-34495e.svg?style=flat-square
592
+ [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
593
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.132-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
594
+ [🔐security]: SECURITY.md
595
+ [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
596
+ [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
597
+ [📄license]: LICENSE.txt
598
+ [📄license-ref]: https://opensource.org/licenses/MIT
599
+ [📄license-img]: https://img.shields.io/badge/License-MIT-259D6C.svg
600
+ [📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
601
+ [📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-259D6C.svg?style=flat
602
+ [🚎yard-current]: http://rubydoc.info/gems/snaky_hash
603
+ [🚎yard-head]: https://snaky_hash.galtzo.com
604
+ [💎stone_checksums]: https://github.com/pboling/stone_checksums
605
+ [💎SHA_checksums]: https://gitlab.com/oauth-xx/snaky_hash/-/tree/main/checksums
606
+ [💎rlts]: https://github.com/rubocop-lts/rubocop-lts
607
+ [💎rlts-img]: https://img.shields.io/badge/code_style_%26_linting-rubocop--lts-34495e.svg?plastic&logo=ruby&logoColor=white
608
+ [💎d-in-dvcs]: https://railsbling.com/posts/dvcs/put_the_d_in_dvcs/
609
+ [✉️discord-invite]: https://discord.gg/3qme4XHNKN
610
+ [✉️discord-invite-img]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge
69
611
 
70
- Bug reports and pull requests are welcome on GitHub at https://gitlab.com/oauth-xx/snaky_hash. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://gitlab.com/oauth-xx/snaky_hash/-/blob/main/CODE_OF_CONDUCT.md).
612
+ <details>
613
+ <summary>Deprecated Badges</summary>
71
614
 
72
- ## License
615
+ CodeCov currently fails to parse the coverage upload.
73
616
 
74
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
617
+ [![CodeCov Test Coverage][🔑codecovi♻️]][🔑codecov]
75
618
 
76
- ## Code of Conduct
619
+ [![Coverage Graph][🔑codecov-g♻️]][🔑codecov]
77
620
 
78
- Everyone interacting in the SnakyHash project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://gitlab.com/oauth-xx/snaky_hash/-/blob/main/CODE_OF_CONDUCT.md).
621
+ </details>