Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
snaky_hash
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
oauth-xx
snaky_hash
Commits
63628366
Unverified
Commit
63628366
authored
2 years ago
by
Peter Boling
Browse files
Options
Downloads
Patches
Plain Diff
Prepare release 2.0
parent
65845bb8
No related branches found
Branches containing commit
Tags
v2.0.0
Tags containing commit
No related merge requests found
Pipeline
#625333083
passed
2 years ago
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.md
+12
-0
12 additions, 0 deletions
CHANGELOG.md
Gemfile.lock
+1
-1
1 addition, 1 deletion
Gemfile.lock
README.md
+1
-1
1 addition, 1 deletion
README.md
lib/snaky_hash/version.rb
+1
-1
1 addition, 1 deletion
lib/snaky_hash/version.rb
with
15 additions
and
3 deletions
CHANGELOG.md
+
12
−
0
View file @
63628366
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Gemfile.lock
+
1
−
1
View file @
63628366
PATH
remote: .
specs:
snaky_hash (
1
.0.
1
)
snaky_hash (
2
.0.
0
)
hashie
version_gem (~> 1.1)
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
63628366
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
lib/snaky_hash/version.rb
+
1
−
1
View file @
63628366
...
...
@@ -2,6 +2,6 @@
module
SnakyHash
module
Version
VERSION
=
"
1
.0.
1
"
.
freeze
VERSION
=
"
2
.0.
0
"
.
freeze
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment