Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Initial pass at removing dead 1.8.x code from Active Support. | José Valim | 2011-12-20 | 1 | -37/+0 |
| | | | | | | There are a bunch of other implicit branches that adds 1.8.x specific code that still needs to be removed. Pull requests for those cases are welcome. | ||||
* | Added Enumerable#pluck to wrap the common pattern of collect(&:method) *DHH* | David Heinemeier Hansson | 2011-12-02 | 1 | -0/+7 |
| | |||||
* | docs formatting changes | Vijay Dev | 2011-09-01 | 1 | -2/+2 |
| | |||||
* | Trivial optimization for Enumerable#each_with_object | Marc-Andre Lafortune | 2011-07-23 | 1 | -2/+2 |
| | |||||
* | Insure that Enumerable#index_by, group_by, ... return Enumerators | Marc-Andre Lafortune | 2011-07-23 | 1 | -0/+3 |
| | |||||
* | Make Enumerable#many? iterate only over what is necessary | Marc-Andre Lafortune | 2011-07-23 | 1 | -3/+10 |
| | |||||
* | Make Enumerable#many? not rely on #size | Marc-Andre Lafortune | 2011-07-23 | 1 | -2/+2 |
| | |||||
* | #many? uses count instead of select - a bit faster | Julius Markūnas | 2011-07-11 | 1 | -1/+1 |
| | |||||
* | Clarify comment by removing french reference ('a la'). Should improve ↵ | Ben Orenstein | 2011-03-05 | 1 | -1/+1 |
| | | | | readability for non-native english speakers. | ||||
* | speed up index_by by removing a lolinject | Aaron Patterson | 2010-10-01 | 1 | -4/+1 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -4/+4 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | edit pass to apply API guideline wrt the use of "# =>" in example code | Xavier Noria | 2010-07-30 | 1 | -1/+2 |
| | |||||
* | Add Enumerable#exclude? to bring parity to Enumerable#include? and avoid if ↵ | David Heinemeier Hansson | 2009-12-14 | 1 | -0/+5 |
| | | | | !x.include?/else calls [DHH] | ||||
* | Enumerable#none? is not needed for Ruby >= 1.8.7 | Xavier Noria | 2009-11-09 | 1 | -9/+0 |
| | |||||
* | Remove unnecessary &block from Range#sum and add tests for (num..float).sum | Pratik Naik | 2009-08-09 | 1 | -1/+1 |
| | |||||
* | Optimize Range#sum only for integers [#2489] | José Valim | 2009-08-09 | 1 | -2/+3 |
| | |||||
* | Optimize Range#sum to use arithmetic progression when a block is not given ↵ | José Valim | 2009-08-09 | 1 | -0/+9 |
| | | | | | | [#2489]. Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Enumerable#sum now works will all enumerables, even if they don't respond to ↵ | Marc-Andre Lafortune | 2009-08-08 | 1 | -4/+2 |
| | | | | | | | | :size [#2489 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Merge docrails | Pratik Naik | 2009-07-25 | 1 | -1/+1 |
| | |||||
* | Simplify Enumerable#each_with_object | Jeremy Kemper | 2009-03-21 | 1 | -4/+3 |
| | |||||
* | Enumerable#none? conforms to Ruby 1.8.7 behavior | Jeremy Kemper | 2008-11-19 | 1 | -3/+3 |
| | |||||
* | Update doc to make more sense | David Heinemeier Hansson | 2008-11-19 | 1 | -1/+1 |
| | |||||
* | Added Enumerable#none? to check that none of the elements match the block ↵ | Damian Janowski | 2008-11-19 | 1 | -0/+9 |
| | | | | | | [#1408 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | Don't shadow arg with block var | Jeremy Kemper | 2008-09-08 | 1 | -2/+2 |
| | |||||
* | Add each_with_object from 1.9 for a more convenient alternative to inject. | Adam Keys | 2008-09-03 | 1 | -1/+21 |
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#962 state:committed] | ||||
* | Added block-handling to Enumerable#many? (Damian Janowski) [#452 state:resolved] | David Heinemeier Hansson | 2008-06-20 | 1 | -1/+3 |
| | |||||
* | Change Enumberal#several? to Enumberal#many? | David Heinemeier Hansson | 2008-06-13 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of git@github.com:rails/rails | David Heinemeier Hansson | 2008-06-12 | 1 | -3/+14 |
|\ | |||||
| * | Rubinious: work around h[k] ||= v returning []= result instead of v | Jeremy Kemper | 2008-06-10 | 1 | -3/+14 |
| | | |||||
* | | Added Enumberable#several? to encapsulate collection.size > 1 [DHH] | David Heinemeier Hansson | 2008-06-12 | 1 | -0/+5 |
|/ | |||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -10/+11 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Ruby 1.8.7 compat: override unordered Enumerable#group_by | Jeremy Kemper | 2008-04-20 | 1 | -1/+4 |
| | |||||
* | Improve documentation. | Pratik Naik | 2008-03-26 | 1 | -5/+8 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Enumerable#group_by uses ActiveSupport::OrderedHash | Jeremy Kemper | 2008-01-23 | 1 | -15/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix up Enumerable#group_by | Jeremy Kemper | 2008-01-09 | 1 | -7/+14 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8604 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Changed the implementation of Enumerable#group_by to use a double array ↵ | David Heinemeier Hansson | 2007-12-31 | 1 | -2/+7 |
| | | | | | | approach instead of a hash such that the insert order is honored [DHH/Marcel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8516 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Some 1.9 forward compatibility | Jeremy Kemper | 2007-09-14 | 1 | -0/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Expose methods added to Enumerable in the documentation, such as group_by. ↵ | Marcel Molina | 2006-10-22 | 1 | -2/+2 |
| | | | | | | Closes #6170. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Optional identity for Enumerable#sum defaults to zero. Closes #5657. | Jeremy Kemper | 2006-07-09 | 1 | -1/+8 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4599 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Enumerable#sum without blocks. Closes #5505. Don't assume 0 identity for sum. | Jeremy Kemper | 2006-06-25 | 1 | -5/+12 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4495 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add Enumerable#index_by | Nicholas Seckar | 2006-06-24 | 1 | -0/+15 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4491 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Cant use separate module [DHH] | David Heinemeier Hansson | 2006-06-24 | 1 | -2/+0 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4490 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added Enumerable#sum for calculating a sum from the elements [DHH] | David Heinemeier Hansson | 2006-06-24 | 1 | -1/+13 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4489 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Remove Enumerable#first_match in favor of using break(result_for_each) | Nicholas Seckar | 2006-05-21 | 1 | -8/+0 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Make Enumerable#group_by return a Hash (sacrificing the preservation of ↵ | Marcel Molina | 2006-03-01 | 1 | -8/+3 |
| | | | | | | ordering) so that it is more compatible with the version that is in Ruby 1.9 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3727 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add Enumerable#group_by and Array#in_groups_of | Marcel Molina | 2006-03-01 | 1 | -1/+28 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Dont include unnecessary active support classes in docs | David Heinemeier Hansson | 2005-10-16 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added Enumerable#first_match | Nicholas Seckar | 2005-10-14 | 1 | -0/+9 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2578 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |