Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment` | Koichi ITO | 2017-07-11 | 6 | -0/+6 |
| | |||||
* | Use frozen-string-literal in ActiveSupport | Kir Shatrov | 2017-07-09 | 6 | -0/+6 |
| | |||||
* | Expectation first | Akira Matsuda | 2017-07-02 | 1 | -1/+1 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 6 | -6/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 6 | -0/+6 |
| | |||||
* | Revert "Merge pull request #25811 from oss92/to_sentence_fallback_string" | Rafael Mendonça França | 2016-11-14 | 1 | -6/+1 |
| | | | | | | | | This reverts commit bad3a120f1690f393d8f6204b3ceee60f0ce707b, reversing changes made to 2384317465ccb1dfca456a2b7798714b99f32711. Reason: Adding a new option in the API for something that can be done with a `#presence` check could do. | ||||
* | Add more rubocop rules about whitespaces | Rafael Mendonça França | 2016-10-29 | 1 | -1/+1 |
| | |||||
* | Fixnum and Bignum are deprecated in Ruby trunk | Matthew Draper | 2016-10-08 | 1 | -2/+2 |
| | | | | https://bugs.ruby-lang.org/issues/12739 | ||||
* | improve error message when include assertions fail | Michael Grosser | 2016-09-16 | 1 | -23/+23 |
| | | | | | | assert [1, 3].includes?(2) fails with unhelpful "Asserting failed" message assert_includes [1, 3], 2 fails with "Expected [1, 3] to include 2" which makes it easier to debug and more obvious what went wrong | ||||
* | applies new string literal convention in activesupport/test | Xavier Noria | 2016-08-06 | 6 | -52/+52 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Added :fallback_string option to Array#to_sentence | oss92 | 2016-07-13 | 1 | -1/+6 |
| | |||||
* | Support for unified Integer class in Ruby 2.4+ | Jeremy Daer | 2016-05-18 | 2 | -5/+6 |
| | | | | | | | | Ruby 2.4 unifies Fixnum and Bignum into Integer: https://bugs.ruby-lang.org/issues/12005 * Forward compat with new unified Integer class in Ruby 2.4+. * Backward compat with separate Fixnum/Bignum in Ruby 2.2 & 2.3. * Drops needless Fixnum distinction in docs, preferring Integer. | ||||
* | Little perfomance fix for Array#split. | lvl0nax | 2016-04-26 | 1 | -0/+8 |
| | | | | | | | | | Calculating ------------------------------------- before 40.770k i/100ms after 58.464k i/100ms ------------------------------------------------- before 629.568k (± 5.0%) i/s - 3.180M after 1.159M (± 4.5%) i/s - 5.788M | ||||
* | rename to 'second_to_last' and 'third_to_last' | Brian Christian | 2016-02-10 | 1 | -2/+2 |
| | |||||
* | allow Array.penultimate and Array.antepenultiate access methods | Brian Christian | 2016-02-09 | 1 | -0/+2 |
| | |||||
* | Make sure Array#to_sentence always returns a String | David Cornu | 2015-03-23 | 1 | -0/+6 |
| | |||||
* | Move Array#without from Grouping to Access concern and add dedicated test ↵ | David Heinemeier Hansson | 2015-03-02 | 1 | -0/+4 |
| | | | | (relates to #19157) | ||||
* | Raise a descriptive error if non-positive integer passed to in_groups_of. | Xavier Shay | 2014-07-30 | 1 | -0/+6 |
| | | | | | | | | | | This is more consistent than the current behaviour of raising a `ZeroDivisionError: divided by 0` error when 0 is given, which can be non-obvious especially if `in_groups_of` is part of a longer chain of methods. The negative case was ok - "ArgumentError: invalid slice size" - but this error is clearer still. | ||||
* | Add missing test case for Array#to_sentence, collect all test cases for ↵ | Akshay Vishnoi | 2014-07-29 | 1 | -22/+8 |
| | | | | Object#to_param at one place and avoid repitition | ||||
* | Move array test files under array | Akshay Vishnoi | 2014-07-29 | 6 | -0/+495 |