Commit Graph

15 Commits

Author SHA1 Message Date
Caroline Artz 0bca9255a6
Changes to `Mash` initialization key string conversion. (#521) 2020-05-04 21:15:32 -04:00
Bobby McDonald 2846ea63a9 Update github urls to hashie/hashie (#497)
* Update github urls to hashie/hashie

* Point omniauth in integration tests at master.

Until omniauth releases the changes merged from
https://github.com/omniauth/omniauth/pull/977 , we must point at
master branch.

* revert incorrect change of gem email

Co-Authored-By: Michael Herold <github@michaeljherold.com>

* Reference open issue for release
2019-11-17 11:35:30 -06:00
Bobby McDonald 3dfa27f119
Remove references to blacklists and whitelists 2019-10-25 20:27:26 -04:00
Bobby McDonald 1a30427c9d Allow mash error silencing (#488) 2019-10-14 14:14:47 -04:00
Bobby McDonald 9b3209c8d9
Upgrading to 4.0 2019-08-16 17:40:29 -04:00
Daniel Doubrovkine (dB.) @dblockdotorg 30ab2a3cb0 Allow options on Mash.load (#474)
`Mash.load` uses the Ruby standard library to load Yaml-serialized files
into a Mash. The original implementation used `YAML.load` for this
purpose. However, that method is inherently unsafe so we switched to
using `YAML.safe_load`.

Safely loading Yaml files has many different domain-specific
configuration flags that we did not, by default, expose. This change
introduces the ability to configure the safe loading of Yaml files so
that all types of Yaml can be loaded when necessary using the flags from
the standard library.

This implementation preserves the backwards-compatibility with the prior
implementation so that it should not require updates from users of the
current `Mash.load` behavior. For those who this change affects, we
included upgrading documentation to ease the transition.
2019-03-22 14:04:22 -05:00
Michael Herold b2f94a4866 Allow Mash subclasses to disable warnings
Since we are transitively used as a dependency in many projects, we
should have given the ability to toggle this behavior off. The logging
feature is more of a "help people get started with Mash" feature. If
you're using Hashie in a library, it's likely that you already know the
tradeoffs of attempting to override methods on the object.

To use this feature, you only have to subclass Mash and then call the
class method:

```ruby
class KeyStore < Hashie::Mash
  disable_warnings
end
```
2017-02-04 14:38:00 -06:00
sazor 453ae843d4 Evaluate procs default values in object initialization 2016-10-31 09:56:09 +03:00
Vladimir Kochnev 06e61eaae3 Make reverse_merge compatible with subclassing. 2015-11-15 17:22:52 +03:00
Zloy c2225e0d26 Methods such as abc? return true/false Hashie::Extensions::MethodReader. 2015-01-14 06:56:43 -05:00
Max Lincoln 404d52f4d7 doc updates 2014-08-17 12:32:27 -04:00
dblock 4a059050df Preparing for release, 3.0. 2014-06-03 09:42:56 -07:00
Maxim Filimonov 41e6c676e1 Documented hashie_rails. 2014-06-02 08:39:13 -07:00
Daniel Doubrovkine (dB.) @dblockdotorg 80a8f11a78 This will be version 3.0, not 2.2. 2014-05-24 14:32:08 -04:00
dblock 76ae2fd111 Added documentation for upgrading. 2014-05-05 08:57:31 -04:00