summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Regenerated gemspec for version 0.4.0v0.4.0Michael Bleigh2010-08-311-2/+2
|
* Version bump to 0.4.0Michael Bleigh2010-08-311-1/+1
|
* Merge branch 'master' of github.com:intridea/hashieMichael Bleigh2010-08-312-2/+26
|\
| * initialze_reader and convert_value should respect subclassing by using ↵tcocca2010-08-312-2/+26
| | | | | | | | self.class instead of Hashie::Mash
* | call `super` in Dash.inherited methodMislav Marohnić2010-08-292-0/+11
| | | | | | | | | | One should always call `super` when defining the `inherited` method to support possible implementations in superclasses.
* | Mash: add `shallow_update` and `shallow_merge` methodsMislav Marohnić2010-08-262-31/+70
| | | | | | | | | | Now that `update` and `merge` are consistently recursive by default, it's useful to have methods that mimic the old (shallow) behavior.
* | fix broken Trash spec exampleMislav Marohnić2010-08-261-2/+1
| | | | | | | | | | | | Simply check that an already defined property is present, and use symbol keys for properties. Redefining the test class is a bad idea in spec examples, so don't do that.
* | add missing requires to Hash and MashMislav Marohnić2010-08-262-0/+4
| | | | | | | | | | | | | | | | | | If the user required the main files with autoloads, these requires are not needed, but it's good to have them in case the user never requires the main file, but goes straight to one of the sub-files: gem 'hashie' require 'hashie/mash'
* | heavily rework Dash for bugfixes and performanceMislav Marohnić2010-08-262-112/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - optimize `properties` and `defaults` so they don't do a full ancestry lookup each time a property is accessed - API change: `properties` is now a Set of symbols (was Array of strings) - API change: `defaults` is a Hash with symbol keys and doesn't include properties without defaults - optimize generated accessors to skip lookup if a property exists - fixed accessing the dash with square brackets - change keys to be stored internally as strings instead of symbols - change initialization so it doesn't initialize properties without defaults to nil - allow creating a dash with a block that defines default values as fallback (regular Hash behavior) - allow redefining a property in descendants in order to set a new default value or clear the existing one - rewritten test suite to be more concise and better focused on what's important
* | Mash: fix deep_merge/deep_update and make `merge` deep by defaultMislav Marohnić2010-08-262-8/+44
|/ | | | | | | | `deep_update` was broken because it wasn't recursive at all. Also, since `merge` wasn't implemented in Mash it was also broken as a consequence of not normalizing the keys. This makes `merge` deep by default to be consistent with `update` and `merge!` which were deep before.
* Regenerated gemspec for version 0.3.1v0.3.1Michael Bleigh2010-08-191-2/+2
|
* Version bump to 0.3.1Michael Bleigh2010-08-191-1/+1
|
* Do not convert child mashes, retain their class.Michael Bleigh2010-08-195-9/+22
|
* Regenerated gemspec for version 0.3.0v0.3.0Michael Bleigh2010-08-101-2/+5
|
* Version bump to 0.3.0Michael Bleigh2010-08-101-1/+1
|
* Update README to add Trash.Michael Bleigh2010-08-101-0/+14
|
* Query methods now return false if the key has been set to nil or false. ↵Michael Bleigh2010-08-103-1/+12
| | | | Closes #4
* Initializing Dash with a nilLes Hill and Robert Pitts2010-08-102-1/+8
|
* CleanupLes Hill and Robert Pitts2010-08-102-22/+21
|
* Add Trash (translated hash)Les Hill and Paul Elliott2010-08-103-1/+131
|
* Regenerated gemspec for version 0.2.2v0.2.2Michael Bleigh2010-07-281-4/+4
|
* Version bump to 0.2.2Michael Bleigh2010-07-281-1/+1
|
* Changed up spec_helper a bit, added respond_to? on MashMichael Bleigh2010-07-287-31/+47
|
* Regenerated gemspec for version 0.2.1v0.2.1Michael Bleigh2010-06-221-6/+41
|
* Add Jeweler back in.Michael Bleigh2010-06-221-0/+17
|
* Version bump to 0.2.1Michael Bleigh2010-06-221-1/+1
|
* Allow for arguments in to_jsonDaniel Neighman2010-06-221-2/+2
|
* add the gemfilesDaniel Neighman2010-06-222-0/+36
|
* Adds a fix for json generationDaniel Neighman2010-06-227-87/+59
|
* Regenerated gemspec for version 0.2.0v0.2.0Michael Bleigh2010-03-051-4/+7
|
* Version bump to 0.2.0Michael Bleigh2010-03-051-1/+1
|
* Adds Clash to the mix.Michael Bleigh2010-03-054-9/+158
|
* Regenerated gemspec for version 0.1.8v0.1.8Michael Bleigh2010-01-141-1/+1
|
* Version bump to 0.1.8Michael Bleigh2010-01-141-1/+1
|
* Merge branch 'master' of github.com:intridea/hashieMichael Bleigh2010-01-142-6/+26
|\
| * Swapped out class variables to scale the ancestors tree. This allows for the ↵Ben Schwarz2010-01-152-6/+26
| | | | | | | | super class to not receive properties set on subclasses.
* | Regenerated gemspec for version 0.1.7Michael Bleigh2010-01-141-2/+2
| |
* | Version bump to 0.1.7Michael Bleigh2010-01-141-1/+1
|/
* Regenerated gemspec for version 0.1.6v0.1.6Michael Bleigh2010-01-131-2/+2
|
* Version bump to 0.1.6Michael Bleigh2010-01-131-1/+1
|
* should not convert the type of Hashie::Mashes childs to Hashie::Mashandrehjr2010-01-142-1/+10
|
* Added a spec to cover defaults inheritance Ben Schwarz2010-01-141-0/+4
|
* Storing dash properties in a class variable to allow for subclassing (#Issue 2)Ben Schwarz2010-01-142-4/+17
|
* Regenerated gemspec for version 0.1.5v0.1.5Michael Bleigh2009-11-161-2/+2
|
* Version bump to 0.1.5Michael Bleigh2009-11-161-1/+1
|
* Dashes now raises NoMethodError when reading a non-existent propertyAndré Luis Leal Cardoso Junior2009-11-162-7/+19
|
* Fixing inspect for DashesAndré Luis Leal Cardoso Junior2009-11-162-1/+7
|
* Regenerated gemspec for version 0.1.4v0.1.4Michael Bleigh2009-11-131-2/+2
|
* Version bump to 0.1.4Michael Bleigh2009-11-131-1/+1
|
* Updates to the mash for ensuring that nil values aren't overwrittenDaniel Neighman2009-11-131-2/+3
|