This project is archived and is in readonly mode.
Add Enumerable#uniq?
-
Bounga
Github fork / branch is available at https://github.com/Bounga/rails/commits/enumerable_uniq
-
Bounga
Same one with calculation cache
-
Bounga
Better test case for blocks
-
Ryan Orr
Took a look at the code in the last patch that you posted. I like the implementation but you were missing a test that checked a block that produced a result that wasn't unique. I added a test for this and cleaned up some whitespace errors that I was getting with your patch.
To avoid whitespacing errors in the future try the command:
git diff --check
This will tell you which files are producing whitespace errors if any.
