Skip to content
Snippets Groups Projects
Unverified Commit 63628366 authored by Peter Boling's avatar Peter Boling :ping_pong:
Browse files

:bookmark: Prepare release 2.0

parent 65845bb8
No related branches found
Tags v2.0.0
No related merge requests found
Pipeline #625333083 passed
......@@ -12,6 +12,18 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.
## [Unreleased]
## [2.0.0] - 2022-08-29
### Changed
- **BREAKING**: `SnakeHash::Snake` is now a mixin, now with support for symbol or string keys
```ruby
class MySnakedHash < Hashie::Mash
include SnakyHash::Snake.new(key_type: :string) # or :symbol
end
```
### Added
- `SnakyHash::StringKeyed`: a Hashie::Mash class with snake-cased String keys
- `SnakyHash::SymbolKeyed`: a Hashie::Mash class with snake-cased Symbol keys
## [1.0.1] - 2022-08-26
### Added
- Missing LICENSE.txt file to release
......
PATH
remote: .
specs:
snaky_hash (1.0.1)
snaky_hash (2.0.0)
hashie
version_gem (~> 1.1)
......
......@@ -35,7 +35,7 @@ snake['very_fine_hat'] # => 'Feathers'
Note above that you can access the values via the string, or symbol.
The `key_type` determines how the key is actually stored, but the hash acts as "indifferent".
Note also that keys that do not respond to `to_sym`, because they don't have a natural conversion to a Symbol,
Note also that keys which do not respond to `to_sym`, because they don't have a natural conversion to a Symbol,
are left as-is.
### Stranger Things
......
......@@ -2,6 +2,6 @@
module SnakyHash
module Version
VERSION = "1.0.1".freeze
VERSION = "2.0.0".freeze
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment