| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This was always meant to be a temporary fix. Let's track actual releases
because GitHub Actions is choking on it.
|
|
|
|
|
| |
We want to make sure none of our popular downstream integrations break.
This ports our old Travis setup over to GitHub Actions.
|
|
|
|
|
|
|
|
|
| |
Using YAML lists over pseudo-JSON lists makes for easier diffs. Breaking
blocks apart with an empty line helps readability. Avoiding strings
delimeters when you don't need them helps with readability. The name of
the workflow should describe its purpose. Multithreading bundle installs
leads to faster builds. And we need to update the badge to our new CI
location.
|
|
|
|
|
| |
We don't really care about the metrics it gives and we can't access
configuration for it anymore for some reason, so let's end it.
|
| |
|
| |
|
|\
| |
| | |
No need to include Hashie::Extensions::PrettyInspect into Hashie::Mash
|
|/ |
|
|\
| |
| | |
Fix inconsistencies with Dash defaults
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The normal behavior of Dash with respect to property defaults differed
from the behavior of a Dash/Trash with IgnoreUndeclared mixed in. This
is because some situations called the defaults and some did not.
This change normalizes the behavior so that all situations where the
defaults should be used to override unset values behave consistently,
as well as all situations where the default should not override a `nil`
value.
|
|\ \
| |/
|/| |
* Run 2.7 tests once
|
| | |
|
| | |
|
|\ \
| |/
|/| |
Drop testing for JRuby 9.0
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
Per the [JRuby security policy][1], JRuby 9.2 is supported, but 9.0 is
not any longer.
JRuby 9.0 has been flaky on builds, so it's now causing a maintenance
burden.
This isn't a declaration that we won't support this version, but I
don't think it makes sense to test on them any more. In the next major
release, I would like to define a support policy.
[1]: https://github.com/jruby/jruby/blob/4fd5e619f9d1f36d7bbca8f0013bb55e4ad57e8f/SECURITY.md
|
|\
| |
| | |
Allow exporting a normal, not-indifferent Hash
|
|/
|
|
|
|
|
| |
Following the conventions in `activesupport` and the semantics of the
`#to_hash` method in Ruby's standard library, the `#to_hash` method for
a hash that has mixed in `IndifferentAccess` will now export the hash as
a normal, not-indifferent hash.
|
|\
| |
| | |
Fix typo in README for PredefinedValues
|
|/ |
|
|\
| |
| | |
require json at spec_helper to fix #532
|
|/ |
|
| |
|
|\
| |
| | |
Hashie::Extensions::Dash::PredefinedValues
|
|/
|
|
|
|
|
| |
Extends a Dash with the ability to
accept only predefined values on a property.
#61
|
|\
| |
| | |
Updated Copyright to 2020.
|
|/ |
|
|\
| |
| |
| | |
Small amendments for Hash#merge with IndifferentAccess
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
1. Use `indifferent_writer` in `convert!` so that when
`indifferent_writer`, `convert_key` or `indifferent_value` is
overridden in included class, `merge` can use those.
2. `convert!` was calling twice if `other` hash was lacking
indifference. `IndifferentAccess.inject!` already does conversion.
|
|\ \
| | |
| | | |
Test with Ruby 2.7
|
| | |
| | |
| | |
| | | |
Report success even before allowed_failures finish
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | | |
Also switch testing jruby-head from EOL Ubuntu to Travis default (xenial).
|
|/ /
| |
| |
| |
| | |
`sudo: false` is deprecated.
https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
|
|\ \
| | |
| | | |
Added TOC and upgraded danger-changelog to verify the keep-a-changelog formatted CHANGELOG.
|
|/ /
| |
| |
| | |
formatted CHANGELOG.
|
| | |
|
|/ |
|
| |
|
|\
| |
| | |
Correct link to PR in CHANGELOG.md
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Suppress a Ruby's warning when using Ruby 2.6.0+
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This PR suppresses the following warning that `deep_merge` method and
`deep_update` method are defined twice when using Ruby 2.6.0+.
```console
% bundle exec rake
(snip)
/Users/koic/src/github.com/hahie/hashie/lib/hashie/mash.rb:226: warning:
method redefined; discarding old deep_merge
/Users/koic/src/github.com/hahie/hashie/lib/hashie/mash.rb:212: warning:
previous definition of deep_merge was here
/Users/koic/src/github.com/hahie/hashie/lib/hashie/mash.rb:232: warning:
method redefined; discarding old deep_update
/Users/koic/src/github.com/hahie/hashie/lib/hashie/mash.rb:218: warning:
previous definition of deep_update was here
```
|
|\
| |
| |
| |
| | |
koic/suppress_integer_unification_warning_for_ruby_2_4_0
Suppress an integer unification warning for Ruby 2.4.0+
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This PR suppresss the following integer unification warning
for Ruby 2.4.0+
```console
% ruby -v
ruby 2.4.9p362 (2019-10-02 revision 67824) [x86_64-darwin17]
% bundle exec rspec spec/hashie/extensions/deep_merge_spec.rb
Hashie::Extensions::DeepMerge
/Users/koic/src/github.com/hahie/hashie/lib/hashie/utils.rb:38: warning:
constant ::Fixnum is deprecated
/Users/koic/src/github.com/hahie/hashie/lib/hashie/utils.rb:38: warning:
constant ::Bignum is deprecated
```
|