Commit Graph

6 Commits

Author SHA1 Message Date
Caroline Artz 0bca9255a6
Changes to `Mash` initialization key string conversion. (#521) 2020-05-04 21:15:32 -04:00
Michael Herold 5a6ffc7e2d
Update Rubocop and address the addressable todos
This is a big step forward in our Rubocop setup. I addressed all of the todos
from the current version of Rubocop that made sense to. The only things that
remain are metrics and one cop that relies on the line length metric to work.

I made some judgment calls on disabling a few cops:

1. The `Layout/IndentHeredoc` cop wants you to either use the squiggly heredoc
   from Ruby 2.3 or introduce a library. Since we are a low-level library that
   is used as a transitive dependency, we cannot introduce another library as a
   dependence, so that option is out. Also, we support Rubies back to 2.0
   currently, so using the squiggly heredoc isn't an option. Once we remove
   support for Rubies older than 2.3, we can switch to the squiggly heredoc cop.
2. The `Naming/FileName` cop was reporting false positives for a few files in
   the repository, so I disabled it on those files.
3. The `Style/DoubleNegation` cop reports lints on a few cases where we use
   double negation. Given the very generic nature of Hashie, the double-negation
   is the easiest, clearest way to express that we want an item to be a Boolean.
   I disabled the cop because we exist in the gray area where this makes sense.
2018-06-17 11:04:56 -05:00
Vincent Esche 489309af7f Fix bug (#303) preventing use of deep_merge/stringify_keys/symbolize_keys on extended singleton objects. 2015-06-08 02:01:54 +02:00
Max Lincoln 0e40e63ebc Public utility methods for stringify/symbolize keys 2014-12-30 16:01:47 -05:00
Bartosz Kopiński ea2076ba6c Update key conversion extensions
Fixing collision with ActiveSupport

ActiveSupport implementation is not recursive
2014-12-08 17:54:49 -05:00
dblock c982c75fb6 Reorganized extensions, consolidated Hashie StringifyKeys implementation. 2014-04-30 21:00:01 -04:00