Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Time includes DateAndTime::Zones acts_like(:time) | betesh | 2014-11-09 | 1 | -0/+1 |
| | |||||
* | added example of hash#except, and removed extra whitespaces [ci skip] | Rishi Jain | 2014-11-07 | 2 | -5/+11 |
| | |||||
* | added example of squish!, remove, test case for multiple occurrence of | Rishi Jain | 2014-11-06 | 1 | -0/+9 |
| | | | | | | | | pattern removal added example for string#remove and test case for remove of multiple occurence of pattern removed extra whitespaces | ||||
* | fix typo [ci skip] | Vijay Dev | 2014-11-04 | 1 | -1/+1 |
| | |||||
* | fixed typo [ci skip] | Rishi Jain | 2014-11-04 | 1 | -1/+1 |
| | |||||
* | added example for hash slice method [ci skip] | Rishi Jain | 2014-11-04 | 1 | -2/+8 |
| | |||||
* | Merge pull request #17383 from rwz/string-remove | Rafael Mendonça França | 2014-11-03 | 1 | -6/+10 |
|\ | | | | | | | | | | | | | Make `String#remove` and `String#remove!` accept multiple arguments Conflicts: activesupport/CHANGELOG.md | ||||
| * | Make `String#remove` and `String#remove!` accept multiple arguments | Pavel Pravosud | 2014-10-25 | 1 | -6/+10 |
| | | |||||
* | | edit pass over all warnings | Xavier Noria | 2014-10-28 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch uniformizes warning messages. I used the most common style already present in the code base: * Capitalize the first word. * End the message with a full stop. * "Rails 5" instead of "Rails 5.0". * Backticks for method names and inline code. Also, converted a few long strings into the new heredoc convention. | ||||
* | | instance_eval is evil | Akira Matsuda | 2014-10-25 | 1 | -1/+1 |
| | | |||||
* | | Avoid creating range objects (take II) | Akira Matsuda | 2014-10-25 | 1 | -1/+5 |
| | | |||||
* | | Revert a change made to the example in 1ac4525 | Godfrey Chan | 2014-10-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | @carlosantoniodasilva pointed out that when `@person` is nil then this would blow up when you ended up calling `#first`on `nil`. > "there’s no way to break a try chain when you enter it :D" [ci skip] | ||||
* | | Include return value in examples added in #17378 [ci skip] | Zachary Scott | 2014-10-24 | 1 | -2/+2 |
| | | |||||
* | | Improved try documentation [ci skip] | Eugene Gilburg | 2014-10-24 | 1 | -8/+25 |
|/ | | | | | | | | | | - better `if` example - Added chaining example to the try method description - Documented the `respond_to?` check to the try method description - Clearer wording to explain that argument error is raised on argument mismatch to responding method, rather than to non-responding method (which is handled without exception by `try`) - `.any?` is more precise than `! .blank?` - Don't need to use `try` on `children` as (for regular associations) they will always be a collection or array that responds to `first` - Fix typos/grammar | ||||
* | DRY up try/try! | Ari Pollak | 2014-10-23 | 1 | -10/+6 |
| | |||||
* | Bring try! into parity with try. | Ari Pollak | 2014-10-22 | 1 | -1/+1 |
| | | | | Based on commit 5e51bdda. | ||||
* | [ci skip] Add Doc of with_options for the case when inherited default ↵ | Pramod Sharma | 2014-10-18 | 1 | -1/+15 |
| | | | | options and original options have same keys | ||||
* | atomic_write rescue also Errno::EACCES | Roberto Zanon | 2014-10-10 | 1 | -1/+1 |
| | | | atomic_write rescue also Errno::EACCES on changing file permission. It could be raised with some type of filesystem | ||||
* | doc added for `writer` method in `alias_method_chain`[ci skip] | Kuldeep Aggarwal | 2014-10-04 | 1 | -2/+2 |
| | |||||
* | Delegation works with reserved words passed to `:to` | Agis- | 2014-09-19 | 1 | -1/+9 |
| | | | | Fixes #16956. | ||||
* | [ci skip] ActiveSupport CHANGELOG fixes | Akshay Vishnoi | 2014-09-18 | 1 | -0/+1 |
| | | | | | | | 1. spacing issues 2. spelling correction 3. grammar correction 4. Add missing docs | ||||
* | As of Unicode 6.3, Mongolian Vowel Separator is not whitespace | Matthew Draper | 2014-09-15 | 1 | -1/+1 |
| | | | | | Ruby 2.2 knows this, and no longer matches it with [[:space:]], so it's not a good candidate for testing String#squish. | ||||
* | Time#change can now change nanoseconds (:nsec) | Agis- | 2014-09-14 | 1 | -6/+13 |
| | | | | Closes #16392. | ||||
* | Time#change throws exception with an out-of-range :usec | Agis- | 2014-09-04 | 1 | -0/+1 |
| | | | | | | | | | | https://github.com/rails/rails/commit/98b46bf5e201307cae56ee14bf41363a539779c5 did not properly handled out-of-range `:usec`s. Passing a `:usec` that's out of range now throws an `ArgumentError` as it should. Fixes #16759. | ||||
* | Methods are not duplicable. | Peter Jaros | 2014-09-03 | 1 | -0/+10 |
| | |||||
* | We tenderized the wrong method! Object#try already had the yield option, ↵ | David Heinemeier Hansson | 2014-08-29 | 2 | -15/+12 |
| | | | | just needed some tenderloving instance_eval to fit the bill | ||||
* | Use instance_eval on @tenderlove's suggestion :trollface: | David Heinemeier Hansson | 2014-08-29 | 1 | -4/+5 |
| | |||||
* | Update examples to show real worth | David Heinemeier Hansson | 2014-08-29 | 1 | -1/+1 |
| | |||||
* | Added yield to Object#presence | David Heinemeier Hansson | 2014-08-29 | 1 | -1/+12 |
| | |||||
* | Add documentation intro to example for `Object#itself`. | Zachary Scott | 2014-08-19 | 1 | -2/+5 |
| | | | | | Also moved comment for removal above `unless()` to not confuse RDoc with the documentation for this method. | ||||
* | Fix DateTime comparison with DateTime::Infinity object | Rafael Mendonça França | 2014-08-06 | 1 | -1/+3 |
| | | | | Fixes #16406 | ||||
* | Fix AS docs / changelog with wrong method [ci skip] | Carlos Antonio da Silva | 2014-08-05 | 1 | -1/+1 |
| | |||||
* | Update itself.rb [ci skip] | Jon Atack | 2014-08-05 | 1 | -1/+1 |
| | |||||
* | Only define Objetc#itself when it is not defined | Rafael Mendonça França | 2014-08-04 | 1 | -8/+10 |
| | | | | | | | Ruby 2.2 will include Kernel#itself so we don't need to define again. See https://github.com/ruby/ruby/commit/0a0160d6b659f6131a525fe1579e7c463d4c197e | ||||
* | Rename Object#self to Object#itself to have parity with matz sanctioned ↵ | David Heinemeier Hansson | 2014-08-01 | 2 | -3/+3 |
| | | | | method name for Ruby 2.2 | ||||
* | Added Object#self which returns the object itself | David Heinemeier Hansson | 2014-08-01 | 2 | -0/+11 |
| | |||||
* | Raise a descriptive error if non-positive integer passed to in_groups_of. | Xavier Shay | 2014-07-30 | 1 | -0/+5 |
| | | | | | | | | | | 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 implicit receiver support to `Object#with_options` | Pavel Pravosud | 2014-07-29 | 1 | -2/+15 |
| | |||||
* | Fixed a compatibility issue with the `Oj` gem | Godfrey Chan | 2014-07-29 | 1 | -3/+3 |
| | | | | | | | | | | | | | `Time#as_json`, `Date#as_json` and `DateTime#as_json` incorrectly depends on a delegation that is set up in `active_support/json/encoding`. We cannot simply require that file in `core_ext/object/json` because it would cause a circular dependency problem (see #12203 for background). We should instead rely on AS's autoload to load that file for us on-demand. To trigger autoload correctly, we need to reference the `AS::JSON::Encoding` constant instead of using the delegated version. Fixes #16131. | ||||
* | Merge pull request #15629 from akshay-vishnoi/test-to_param | Rafael Mendonça França | 2014-07-28 | 2 | -66/+59 |
|\ | | | | | 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 | -66/+59 |
| | | |||||
* | | Merge pull request #16190 from oss92/word_truncation | Matthew Draper | 2014-07-17 | 1 | -0/+24 |
|\ \ | | | | | | | | | | Word truncation | ||||
| * | | Added truncate_words method to activesupport strings | root | 2014-07-16 | 1 | -0/+21 |
|/ / | |||||
* | | Move uuid_v5 and uuid_v3 to Digest::UUID | Rafael Mendonça França | 2014-07-15 | 2 | -47/+51 |
| | | | | | | | | | | These methods are not random so they should not belings to SecureRandom module. | ||||
* | | Deprecate reporting methods for silencing output as they aren't thread safe | Tom Meier | 2014-07-15 | 1 | -0/+10 |
| | | |||||
* | | Return an Enumerator if no block is given | Erik Michaels-Ober | 2014-07-12 | 2 | -1/+5 |
| | | |||||
* | | Don't construct a Proc if no block is given | Erik Michaels-Ober | 2014-07-12 | 1 | -1/+1 |
| | | |||||
* | | The hex escape sequence can be of any length | Godfrey Chan | 2014-07-02 | 1 | -1/+1 |
| | | |||||
* | | Fix escape_once double-escaping hex-encoded entities | John F. Douthat | 2014-07-02 | 1 | -1/+1 |
| | | | | | | | | (This is a manual merge of #9102) | ||||
* | | `DateTime#to_f` now preserves fractional seconds. | John Paul Ashenfelter | 2014-07-02 | 1 | -2/+2 |
| | | | | | | | | | | | | | | Previously this method always returns `.0` in the fractional part. This commit changes it to preserve the fractional seconds instead. Fixes #15994. |