summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add exception handling and coerce_value testsMax Lincoln2014-08-081-1/+41
| |
| * core type coercionMax Lincoln2014-08-071-5/+58
| |
| * Skip for coercables as wellMax Lincoln2014-08-061-0/+7
| |
| * Coerce only when necessaryMax Lincoln2014-08-061-0/+16
| |
* | Merge pull request #195 from michaelherold/indifferent_access_weirdnessDaniel Doubrovkine (dB.) @dblockdotorg2014-08-181-0/+48
|\ \ | | | | | | Fix #178 and #180 by injecting in place
| * | Stop rubocop from complainingjustfalter2014-07-231-2/+2
| | |
| * | Add specs to demonstrate expected behavior (#178)justfalter2014-07-231-0/+48
| |/
* | Allow #fetch access in RashJeremy Rodi2014-08-171-0/+27
| |
* | Hashie::Trash transforms can be inherited.FoboCasteR2014-08-111-0/+22
|/
* dont convert keys on initializationgregory2014-07-222-10/+20
|
* Added Mash#load with YAML file support.gregory2014-07-141-0/+92
|
* Fixed stack overflow when coercing mashes that contain ↵Morgan Jones2014-07-092-0/+209
| | | | ActiveSupport::HashWithIndifferentAccess values.
* Fixed StringifyKeys#stringify_keys! to recursively stringify keys of ↵dB2014-07-091-2/+2
| | | | embedded ::Hash types.
* Add failing spec + fix itgregory2014-07-081-0/+17
| | | | | | fixed update changelog
* Bump up Rubocop to 0.24.1Peter M. Goldstein2014-07-061-1/+1
|
* Allow Ranges on Rash to match _all_ NumericsJeremy Rodi2014-07-061-0/+6
| | | | | | | | Previously, it checked only for Integers; unfortunately, that left Floats out, so passing in a float would cause it to look it up normally. This also changes the range checking to `cover?` instead of `include?`. Also adds a line to a test to check for float availability.
* Merge pull request #177 from gregory/issues_176_coercing_collectionDaniel Doubrovkine (dB.) @dblockdotorg2014-06-301-0/+42
|\ | | | | Porposition for Issues 176 - coerce collections
| * Added support for coercing enumerables and collectionsgregory2014-06-261-0/+42
| |
* | Fix Hashie::Mash#values_at.Tom Hulihan2014-06-271-0/+23
|/ | | | | This method now converts the keys before trying to access them from the Mash.
* Include Trash and Dash class name when raising NoMethodError.gregory2014-06-201-11/+19
|
* Fixed from and transform_with Trash features when IndifferentAccess is ↵gregory2014-06-191-0/+16
| | | | included, related to #167.
* Auto include Dash::IndifferentAccess when Extensions::IndiferentAccess is ↵gregory2014-06-192-0/+24
| | | | included in Dash.
* Added Dash and Trash#update_attributes.gregory2014-06-191-0/+51
|
* call to_hash on object that respond to to_hash + specsgregory2014-06-121-0/+26
| | | | | | | | | | rename test class, wrap the tests on its own describe update changelog add spaces around hash better changelog description
* Remove active record specific extensions as they are moved to hashie_railsMaxim Filimonov2014-06-031-10/+0
|
* Upgraded to RSpec 3.0.dblock2014-06-035-31/+30
|
* Removing unused and deprecated spec.optsBartosz Kopiński2014-05-231-3/+0
| | | | spec.opts is deprecated since Rspec 2 according to: https://github.com/rspec/rspec-core/blob/master/features/Upgrade.md#rake-task
* Allow IgnoreUndeclared and DeepMerge to be used with undeclared properties.Rainer Sai2014-05-191-6/+6
|
* Add test for missing key on deep fetchStephen Aument2014-05-151-0/+13
|
* Handle nil intermediate object on deep fetchStephen Aument2014-05-151-0/+14
|
* Added Hashie::Extensions::Dash::IndifferentAccess for backward-compatible ↵dblock2014-05-051-0/+58
| | | | behavior.
* Do not automatically stringify keys in Hashie::Hash#to_hash, pass ↵dblock2014-05-022-3/+9
| | | | :stringify_keys.
* Do not convert keys to strings in Dash and Trash.dblock2014-05-023-19/+67
|
* Corrected Rubocop violation.dblock2014-05-021-1/+1
|
* Spec for issue #149.dblock2014-05-011-13/+36
|
* Replaced respond_to with respond_to_missing in Mash and ActiveModel.dblock2014-05-011-6/+15
|
* Upgraded Rubocop, removed broken platforms from Travis.dblock2014-04-302-3/+3
|
* Reorganized extensions, consolidated Hashie StringifyKeys implementation.dblock2014-04-302-0/+14
|
* Added Hashie::Extensions::Mash::ActiveModel for compatibility with Rails 4 ↵dblock2014-04-301-3/+8
| | | | Strong Parameters.
* Fix Rubocop issues.Michael Bleigh2014-04-111-3/+3
|
* Check arity of #to_hash before calling. Closes #144Michael Bleigh2014-04-111-0/+12
|
* Fix Rubocop violation introduced by transpecPeter M. Goldstein2014-04-061-3/+2
|
* Convert specs to RSpec 2.14.7 syntax with TranspecPeter M. Goldstein2014-04-0614-338/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This conversion is done by Transpec 1.10.4 with the following command: transpec * 278 conversions from: obj.should to: expect(obj).to * 32 conversions from: obj.should_not to: expect(obj).not_to * 14 conversions from: lambda { }.should to: expect { }.to * 3 conversions from: its(:attr) { } to: describe '#attr' do subject { super().attr }; it { } end * 3 conversions from: lambda { }.should_not to: expect { }.not_to * 1 conversion from: obj.stub!(:message) to: allow(obj).to receive(:message) * 1 conversion from: obj.should_receive(:message) to: expect(obj).to receive(:message)
* Bump version, preparing for release.v2.1.0dblock2014-04-061-0/+7
|
* Present tense for specs.dblock2014-04-0614-280/+281
|
* Added IgnoreUndeclared, an extension to silently ignore undeclared ↵Michael Righi2014-04-061-0/+23
| | | | properties at hash intialization.
* Added Hashie::Rash.epitron2014-04-061-0/+48
|
* Added Trash#permitted_input_keys and inverse_translations.Artem Baguinski2014-04-061-1/+18
|
* Trash#translations correctly maps original to translated names.Artem Baguinski2014-04-061-4/+26
|
* Merge pull request #134 from tylerdooling/traverseDaniel Doubrovkine (dB.) @dblockdotorg2014-04-061-0/+70
|\ | | | | Adds deep_fetch extension for nested access.