Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add three new rubocop rules | Rafael Mendonça França | 2016-08-16 | 2 | -5/+5 |
| | | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository. | ||||
* | applies remaining conventions across the project | Xavier Noria | 2016-08-06 | 1 | -2/+0 |
| | |||||
* | normalizes indentation and whitespace across the project | Xavier Noria | 2016-08-06 | 1 | -2/+2 |
| | |||||
* | remove redundant curlies from hash arguments | Xavier Noria | 2016-08-06 | 1 | -5/+5 |
| | |||||
* | modernizes hash syntax in activesupport | Xavier Noria | 2016-08-06 | 2 | -9/+9 |
| | |||||
* | applies new string literal convention in activesupport/test | Xavier Noria | 2016-08-06 | 11 | -88/+88 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Revert "Adds `not_in?` onto Object" | David Heinemeier Hansson | 2016-07-29 | 1 | -53/+0 |
| | |||||
* | Adds `not_in?` onto Object | Jon McCartie | 2016-07-21 | 1 | -0/+53 |
| | |||||
* | Support for unified Integer class in Ruby 2.4+ | Jeremy Daer | 2016-05-18 | 1 | -1/+1 |
| | | | | | | | | 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. | ||||
* | Fix some typos in comments. | Joe Rafaniello | 2016-05-04 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | :hocho: Typos | Akira Matsuda | 2015-09-21 | 1 | -1/+1 |
| | |||||
* | :scissors: empty line at the top of files | Akira Matsuda | 2015-09-21 | 1 | -1/+0 |
| | |||||
* | Expand coverage of JSON gem tests | Godfrey Chan | 2015-07-11 | 1 | -16/+30 |
| | |||||
* | Add tests to ensure we don't interfere with json gem's output | Godfrey Chan | 2015-07-11 | 1 | -0/+52 |
| | |||||
* | Small stylistic tweaks for `Delegator#try` patch | Godfrey Chan | 2015-05-19 | 1 | -15/+15 |
| | | | | | | * Rename `ActiveSupport::Try` => `ActiveSupport::Tryable` * Include the modules inline * `private` indentation | ||||
* | Patch `Delegator` to work with `#try` | Nate Smith | 2015-05-19 | 1 | -0/+64 |
| | | | | | | | | | | | | `Delegator` inherits from `BasicObject`, which means that it will not have `Object#try` defined. It will then delegate the call to the underlying object, which will not (necessarily) respond to the method defined in the enclosing `Delegator`. This patches `Delegator` with the `#try` method to work around the surprising behaviour. Fixes #5790 | ||||
* | Put the assertion arguments in the right order | Matthew Draper | 2015-05-05 | 1 | -1/+1 |
| | |||||
* | deep_dup method, remove old key from duplicated hash to avoid unnecessary pairs | Mehmet Emin İNAÇ | 2015-05-04 | 1 | -0/+6 |
| | |||||
* | Skip the failing tests on Rubinius for now | Robin Dupret | 2015-03-02 | 1 | -0/+3 |
| | |||||
* | Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 ↵ | Vipul A M | 2015-02-03 | 1 | -1/+0 |
| | | | | onwards. | ||||
* | Remove hack to support BigDecimal in Ruby 1.9 | claudiob | 2015-01-04 | 1 | -10/+1 |
| | | | | | Now that Rails requires Ruby >= 2.0, there is no need to check whether `BigDecimal` exists or not. | ||||
* | Removed Object#itself as it's implemented in ruby 2.2 | Cristian Bica | 2014-12-29 | 1 | -9/+0 |
| | |||||
* | Pass symbol as an argument instead of a block | Erik Michaels-Ober | 2014-11-29 | 1 | -2/+2 |
| | |||||
* | Bring try! into parity with try. | Ari Pollak | 2014-10-22 | 1 | -4/+8 |
| | | | | Based on commit 5e51bdda. | ||||
* | add implementation of respond_to? for ActiveSupport::Duration | lsylvester | 2014-09-15 | 1 | -1/+1 |
| | |||||
* | Methods are not duplicable. | Peter Jaros | 2014-09-03 | 1 | -1/+1 |
| | |||||
* | Bring back the test cases for `presence` | Godfrey Chan | 2014-08-29 | 1 | -0/+5 |
| | | | | This was removed by mistake in 5e51bdd | ||||
* | We tenderized the wrong method! Object#try already had the yield option, ↵ | David Heinemeier Hansson | 2014-08-29 | 2 | -10/+4 |
| | | | | just needed some tenderloving instance_eval to fit the bill | ||||
* | Clarify the origin of this great addition to Rails :trollface: :trollface ↵ | David Heinemeier Hansson | 2014-08-29 | 1 | -1/+1 |
| | | | | :trollface: | ||||
* | Use instance_eval on @tenderlove's suggestion :trollface: | David Heinemeier Hansson | 2014-08-29 | 1 | -2/+2 |
| | |||||
* | Added yield to Object#presence | David Heinemeier Hansson | 2014-08-29 | 1 | -0/+5 |
| | |||||
* | Rename tests too | Rafael Mendonça França | 2014-08-01 | 1 | -2/+2 |
| | |||||
* | Rename Object#self to Object#itself to have parity with matz sanctioned ↵ | David Heinemeier Hansson | 2014-08-01 | 1 | -1/+1 |
| | | | | method name for Ruby 2.2 | ||||
* | Added Object#self which returns the object itself | David Heinemeier Hansson | 2014-08-01 | 1 | -0/+9 |
| | |||||
* | Add missing test case for Array#to_sentence, collect all test cases for ↵ | Akshay Vishnoi | 2014-07-29 | 1 | -2/+8 |
| | | | | Object#to_param at one place and avoid repitition | ||||
* | Added failing test case for #16131 | Godfrey Chan | 2014-07-29 | 1 | -0/+42 |
| | |||||
* | Merge pull request #15629 from akshay-vishnoi/test-to_param | Rafael Mendonça França | 2014-07-28 | 2 | -0/+22 |
|\ | | | | | Define Hash#to_query and set Hash#to_param as alias to it; with test cases | ||||
| * | Move to_param to to_query, also Improve tests | Akshay Vishnoi | 2014-06-20 | 2 | -0/+22 |
| | | |||||
* | | Move object test files under object | Akshay Vishnoi | 2014-07-29 | 3 | -0/+155 |
| | | |||||
* | | missing activesupport test coverage | Eugene Gilburg | 2014-07-19 | 1 | -0/+4 |
| | | |||||
* | | Move test for blank.rb under object | Akshay Vishnoi | 2014-06-11 | 1 | -0/+36 |
| | | |||||
* | | Add test cases for #in? and #presence_in | Akshay Vishnoi | 2014-06-11 | 1 | -0/+4 |
|/ | |||||
* | Merge pull request #14949 from bogdan/empty-hash-array-parameterization | Rafael Mendonça França | 2014-05-04 | 1 | -3/+5 |
|\ | | | | | [Fixes #14948] Hash#to_query: right serialization for empty hash and array | ||||
| * | [Fixes #14948] Hash#to_query: Changed a way how empty hash and empty array ↵ | Bogdan Gusiev | 2014-05-03 | 1 | -3/+5 |
| | | | | | | | | | | | | | | | | | | | | | | are serialized Empty Hash or Array should not present in serialization result {a: []}.to_query # => "" {a: {}}.to_query # => "" For more info see #14948. | ||||
* | | Remove deprecated file(`active_support/core_ext/object/to_json.rb`) and its ↵ | Kuldeep Aggarwal | 2014-05-04 | 1 | -9/+0 |
|/ | | | | test case. | ||||
* | Object#duplicable? | Akshay Vishnoi | 2014-04-16 | 1 | -16/+9 |
| | | | | | | 1. Improve tests 2. Remove unnecessary constant 3. Add docs for BigDecimal#duplicable? | ||||
* | Move tests for deep_dup and duplicable to object directory | Akshay Vishnoi | 2014-04-13 | 2 | -0/+91 |
| | |||||
* | Go with #presence_in instead of #present_in -- it doesnt sound quite as ↵ | David Heinemeier Hansson | 2014-02-24 | 1 | -3/+3 |
| | | | | good, but the closer relationship to #presence over #present is ultimately worth it | ||||
* | Use assert_nil instead as its clearer about what the return is expected to be | David Heinemeier Hansson | 2014-02-18 | 1 | -1/+1 |
| | |||||
* | Added Object#present_in to simplify value whitelisting | David Heinemeier Hansson | 2014-02-18 | 1 | -0/+5 |
| |