Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix OrderedHash#each* methods to return Enumerators when called without a ↵ | Gabriel Horner | 2011-02-03 | 1 | -0/+3 |
| | | | | | | block [#6366 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | OrderedHash#each* methods return self like Hash does [#6364 state:resolved] | Gabriel Horner | 2011-02-02 | 1 | -0/+3 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | load psych by default if possible | Aaron Patterson | 2011-01-28 | 1 | -0/+5 |
| | |||||
* | test that the custom ordered hash can be round-tripped | Aaron Patterson | 2011-01-04 | 1 | -5/+0 |
| | |||||
* | require Psych if possible, use Psych output when enabled | Aaron Patterson | 2011-01-04 | 1 | -1/+14 |
| | |||||
* | OrderedHash#select now preserves order [#5843 state:resolved] | James A. Rosen | 2010-11-07 | 1 | -0/+2 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Revert "refactor delete a little" | Aaron Patterson | 2010-10-15 | 1 | -1/+4 |
| | | | | This reverts commit f3f34bce8fc2895e05c4a06bb4105d6155fa423d. | ||||
* | Revert "speeding up flattened version of OrderedHash.[]" | Aaron Patterson | 2010-10-13 | 1 | -2/+3 |
| | | | | This reverts commit 9c53e82d66d0c34b8f35609b7972f28521d5794d. | ||||
* | speeding up flattened version of OrderedHash.[] | Aaron Patterson | 2010-10-13 | 1 | -3/+2 |
| | |||||
* | refactor delete a little | Aaron Patterson | 2010-10-13 | 1 | -4/+1 |
| | |||||
* | use unless instead of if ! | Aaron Patterson | 2010-10-13 | 1 | -1/+1 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -2/+2 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | commit review: say clearly that AS::OrderedHash is about insertion order, be ↵ | Xavier Noria | 2010-08-06 | 1 | -8/+10 |
| | | | | more neutral in wording, do not imply lack of ordering is a problem | ||||
* | adding documentation for OrderedHash and OrderedOptions | Neeraj Singh | 2010-08-06 | 1 | -1/+8 |
| | |||||
* | Add OrderedHash#invert to preserve order in ruby 1.8 [#4875] | chaitanyav | 2010-06-26 | 1 | -0/+4 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Alias ActiveSupport::OrderedHash#update to ActiveSupport::OrderedHash.merge! | Paul Mucur | 2010-06-25 | 1 | -0/+2 |
| | | | | | | | | This ensures that an OrderedHash's keys are set up appropriately when using update. [#4973 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | explains why AS::OrderedHash does not leverage inheritance | Xavier Noria | 2010-06-13 | 1 | -0/+11 |
| | |||||
* | Change implementation to do it without asking each time for block_given? | Santiago Pastorino | 2010-06-13 | 1 | -6/+4 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | revises implementation of AS::OrderedHash#merge! | Xavier Noria | 2010-06-13 | 1 | -4/+6 |
| | |||||
* | Revert "hash merging with a block ignores non-existing keys altogether" | Xavier Noria | 2010-06-13 | 1 | -1/+1 |
| | | | | | | This reverts commit 72f9fec607c4a72b2e88995d0cb32b16b96e9068. It is wrong, this feature is a little undocumented, doing some research. | ||||
* | hash merging with a block ignores non-existing keys altogether | Xavier Noria | 2010-06-13 | 1 | -1/+1 |
| | |||||
* | Support passing a block to ActiveSupport::OrderedHash's merge and merge! ↵ | Paul Mucur | 2010-06-13 | 1 | -3/+7 |
| | | | | | | | | [#4838 state:committed] For better consistency with Ruby's own Hash implementation. Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Refactor for readability | Jeremy Kemper | 2010-04-09 | 1 | -30/+24 |
| | |||||
* | active_support/ordered_hash now requires yaml | snusnu | 2010-01-27 | 1 | -0/+2 |
| | |||||
* | Adding custom yaml (de-)serialization for OrderedHash | Gregor Schmidt | 2010-01-27 | 1 | -1/+22 |
| | | | | | | [#3608 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fix OrderedHash#replace | Chris Hapgood | 2009-11-05 | 1 | -0/+7 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Fixed ActiveSupport::OrderedHash::[] work identically to ::Hash::[] in ruby ↵ | Brian Abreu | 2009-07-02 | 1 | -4/+18 |
| | | | | | | 1.8.7 [#2832 state:resolved] Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | ||||
* | ActiveSupport::OrderedHash[1,2,3,4] creates an OrderedHash instead of a Hash. | Douglas F Shearer | 2009-05-11 | 1 | -0/+10 |
| | | | | | | [#2615 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | ActiveSupport::OrderedHash#to_a method returns an ordered set of arrays. ↵ | Ken Collins | 2009-05-10 | 1 | -0/+4 |
| | | | | | | | Matches ruby1.9's Hash#to_a. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2629 state:committed] | ||||
* | Fix OrderedHash#inspect recursion | Jeremy Kemper | 2009-03-04 | 1 | -1/+1 |
| | |||||
* | Fix OrderedHash#to_hash to return self instead of a new hash with self as ↵ | Jeremy Kemper | 2009-03-03 | 1 | -1/+1 |
| | | | | default value | ||||
* | add an inspect method to OrderedHash to make it clear that it is not a ↵ | Greg Borenstein | 2009-01-26 | 1 | -0/+4 |
| | | | | | | | species of Array Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1782 state:committed] | ||||
* | Dup keys in OrderedHash to prevent them from being modified [#1676 ↵ | Brandon Keepers | 2009-01-16 | 1 | -9/+22 |
| | | | | | | state:resolved] Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com> | ||||
* | Make delete_if/reject faster and fix other mutators | Frederick Cheung | 2008-12-15 | 1 | -13/+24 |
| | | | | | | [#1559 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fixed ActiveSupport::OrderedHash #delete_if, #reject!, and #reject, which ↵ | Eloy Duran | 2008-12-11 | 1 | -0/+25 |
| | | | | | | | | did not sync the @keys after the operation. This probably holds true for other mutating methods as well. Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Rework ActiveSupport::OrderedHash to make lookups faster | Frederick Cheung | 2008-12-10 | 1 | -36/+23 |
| | | | | | | [#1352 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Added ActiveSupport::OrderedHash#each_key and ↵ | Christoffer Sawicki | 2008-11-26 | 1 | -0/+8 |
| | | | | | | ActiveSupport::OrderedHash#each_value [#1410 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Rubinious: work around h[k] ||= v returning []= result instead of v | Jeremy Kemper | 2008-06-10 | 1 | -0/+1 |
| | |||||
* | Add more standard Hash methods to ActiveSupport::OrderedHash [#314 ↵ | Steve Purcell | 2008-06-03 | 1 | -0/+14 |
| | | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Create a seperate file for ActiveSupport::OrderedHash. | Joshua Peek | 2008-05-14 | 1 | -0/+43 |