summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Another spec for #288.Max Lincoln2015-03-311-0/+12
|
* Fixed coercions in a subclass accumulating in the superclass.Martin Streicher2015-03-311-3/+9
|
* Add Hashie::Mash#reverse_merge. Increase Rubocop class length.Max Goldstein2015-02-251-0/+13
| | | | Fixes intridea/hashie#270
* Fix crash building a Mash w/ IndifferentAccess from HashWithIndifferentAccessBenny Weingarten-Gabbay2015-02-051-1/+13
| | | | When using an ActiveRecord::HashWithIndifferentAccess that is nested (i.e. {a: {b: 1}}) to create a Mash with the IndifferentAccess extension, an ArgumentException is raised. This is because the IndifferentAccess method `convert_value` overrides ActiveRecord::HashWithIndifferentAccess's method of the same name. Changing the method name in IndifferentAccess solves the issue.
* Added Hashie::Extensions::DeepLocateMichael Sievers2015-02-031-0/+124
|
* provide self as context when evaluating defaultgregory2015-02-011-0/+13
|
* add Hashie::Mash#extractable_options?Ryan Buckley2015-01-191-0/+12
|
* Methods such as abc? return true/false Hashie::Extensions::MethodReader.Zloy2015-01-141-0/+8
|
* Fix bug where Dash changes argument to `property`Douglas Willcocks2015-01-131-0/+12
|
* Upgraded RuboCop to 0.28.0.dblock2014-12-304-5/+0
|
* Public utility methods for stringify/symbolize keysMax Lincoln2014-12-302-80/+171
|
* Add block to Extensions::DeepMergeIlya Kamenko2014-12-301-8/+31
|
* Fix handling of default proc values in MashErol Fornoles2014-12-301-0/+32
|
* Inherit key coercions.Erol Fornoles2014-12-281-0/+15
|
* Support for conditionally required Dash propertiesChris Cashwell2014-12-111-0/+19
|
* Add block to indifferent access #fetchJan Graichen2014-12-091-0/+5
| | | | | | | | | | The #fetch method from IndifferentAccess did not pass a block to the underlying method which resulted in a KeyError on e.g. indifferent_hash.fetch(:key) {|key| 'default value' } This fix captures the block and passes it to the underlying fetch method that yields if the key cannot be found.
* SafeAssignment will now also protect hash-style assignments.Jonathan Rochkind2014-12-091-0/+7
|
* Update key conversion extensionsBartosz Kopiński2014-12-084-97/+133
| | | | | | Fixing collision with ActiveSupport ActiveSupport implementation is not recursive
* Code coverage reportingBartosz Kopiński2014-11-271-0/+5
|
* Added Hashie::Extensions::MethodAccessWithOverride to autoloads.Fritz Meissner2014-11-261-0/+24
|
* Custom error messages for required properties in Hashie::Dash subclassesPetr Balaban2014-10-071-0/+29
|
* add support for coercion for hash that inherit from Hashgregory2014-10-031-0/+20
|
* Extend YamlErbParser to understand __FILE__ when interpolating ERB.Julien Pervillé2014-09-161-0/+29
|
* Merge pull request #226 from michaelherold/update-some-configurationDaniel Doubrovkine (dB.) @dblockdotorg2014-09-081-5/+7
|\ | | | | Update some configuration
| * Add simple RSpec.configure block for expect syntaxMichael Herold2014-09-071-1/+7
| | | | | | | | | | | | | | | | | | Without the configure block, [mutant][mutant] was raising an error. I'm interested in mutation testing our test suite, so thought this would be the simplest thing to add to get that working. It also enforces the expect syntax, which is a nice side benefit. [mutant]: https://github.com/mbj/mutant
| * Don't require rubygems in spec_helperMichael Herold2014-09-061-1/+0
| |
| * Remove lines adding lib to the load pathMichael Herold2014-09-061-3/+0
| | | | | | | | RSpec does this automatically now.
* | Merging Hashie::Mash now correctly only calls the block on duplicate valuesAmy Sutedja2014-09-053-2/+8
|/
* Add spec from #112 for Trash subclassesMichael Herold2014-08-291-0/+14
|
* Add a test to prevent Mash from losing indifferent_access of nested hashKen Ip2014-08-271-0/+10
| | | | See discussion at https://github.com/intridea/hashie/pull/197
* Revert "dont convert keys on initialization"dblock2014-08-262-20/+10
| | | | | | | This reverts commit 33f73e0635fc4d2c9f4726c744b50667c82d7b39. Conflicts: CHANGELOG.md
* Merge pull request #213 from michaelherold/add-some-debugging-toolsDaniel Doubrovkine (dB.) @dblockdotorg2014-08-241-0/+1
|\ | | | | Add pry and pry-stack_explorer for debugging
| * Add pry and pry-stack_explorer for debuggingMichael Herold2014-08-241-0/+1
| |
* | Preserve backward-compatible translations when a single property is translated.dB2014-08-241-1/+5
| |
* | Fix #69: regression, multiple property assignments in Trash.dB2014-08-231-1/+1
| | | | | | | | Heavily inspired from https://github.com/intridea/hashie/commit/9a389853c98af876a80d1914acc0e24c4084ffb3.
* | Add failing spec for #69.Michael Herold2014-08-231-0/+19
| |
* | Address TODO about the Lambda style copMichael Herold2014-08-233-13/+13
|/
* Add Hashie::Extensions::DeepFindMichael Herold2014-08-221-0/+45
| | | | | | | | | | | | This extension adds a `#deep_find` (aliased as `#deep_detect`) and a `#deep_find_all` (aliased as `#deep_select`) method to any Hash-like object. These methods perform a depth-first search on the object and its values and return either the first occurrence (for `#deep_find`) or an array of all occurrences (for `#deep_find_all`) within the nested structure of the hash. They work for nested Hash-like objects and nested Enumerables. [Closes #156]
* Fixed inheritance of transformations in Trash.FoboCasteR2014-08-221-5/+19
|
* Fix #202 by stopping method redefinitionMichael Herold2014-08-201-3/+22
|
* Add Hashie::Extensions::Mash::SafeAssignmentMichael Herold2014-08-201-0/+17
| | | | This is part 3 of 3 of the to-do list determined in #198.
* Add Hashie::Extensions::MethodOverridingWriterMichael Herold2014-08-201-0/+55
| | | | This is part 2 of 3 of the to-do list determined in #198.
* Merge pull request #200 from maxlinc/core_typesDaniel Doubrovkine (dB.) @dblockdotorg2014-08-181-2/+267
|\ | | | | Improved coercion: primitives and error handling
| * Add proc test for #coerce_valueMax Lincoln2014-08-171-1/+19
| |
| * A bit of cleanupMax Lincoln2014-08-141-11/+3
| |
| * core type coercion may be done!Max Lincoln2014-08-141-28/+71
| |
| * Error handling, test showing SystemStackErrorMax Lincoln2014-08-141-2/+41
| |
| * Add support for coercion to Complex and RationalMax Lincoln2014-08-081-0/+8
| |
| * Remove built-in support for boolean, but all a procMax Lincoln2014-08-081-9/+21
| |
| * Updated tests because rbx TrueClass behavior is different than MRIMax Lincoln2014-08-081-3/+40
| |