Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | Use Module#prepend instead of alias_method_chain | Kir Shatrov | 2015-03-20 | 2 | -20/+22 | |
| | | | | | | | | | | | | | | | | | | | | | Thanks @fbernier for suggestion! <3 At this moment we can use Module#prepend in all all cases except of Range because of the bug [1] in MRI 2.2 [1] https://bugs.ruby-lang.org/issues/10847 | |||||
* | | | Doc fixes [ci skip] | Islam Wazery | 2015-03-07 | 4 | -4/+4 | |
| | | | ||||||
* | | | Doc fix [ci skip] | Islam Wazery | 2015-03-07 | 1 | -7/+7 | |
| | | | ||||||
* | | | [ci skip] Update documentation for Time#seconds_since_midnight | Anton Davydov | 2015-03-06 | 1 | -1/+5 | |
| | | | ||||||
* | | | Some documentation edits [ci skip] | Robin Dupret | 2015-03-05 | 1 | -3/+3 | |
| | | | | | | | | | | | | | | | | | | * Fix a few typos * Wrap some lines around 80 chars * Rephrase some statements | |||||
* | | | Move Array#without from Grouping to Access concern and add dedicated test ↵ | David Heinemeier Hansson | 2015-03-02 | 2 | -12/+12 | |
| | | | | | | | | | | | | (relates to #19157) | |||||
* | | | Use include? instead of in? for Enumerable#without. | Juanito Fatas | 2015-03-02 | 1 | -1/+1 | |
| | | | | | | | | | | | | [egilburg] | |||||
* | | | Add Enumerable#without | Todd Bealmear | 2015-03-01 | 2 | -0/+23 | |
|/ / | ||||||
* | | Merge pull request #19131 from ↵ | Yves Senn | 2015-02-28 | 1 | -1/+1 | |
|\ \ | | | | | | | | | | | | | tgxworld/reduce_allocated_memory_in_module_delegate Reduce allocated memory for Module#delegate. | |||||
| * | | Reduce allocated memory for Module#delegate. | Guo Xiang Tan | 2015-03-01 | 1 | -1/+1 | |
| | | | ||||||
* | | | [ci skip] Add code examples for Module#anonymous? documentation | Anton Davydov | 2015-02-28 | 1 | -0/+7 | |
| | | | ||||||
* | | | [ci skip] Update documentation for Range#to_formatted_s | Anton Davydov | 2015-02-28 | 1 | -2/+17 | |
|/ / | ||||||
* | | [skip ci] Add documentation for String#is_utf8? method | Anton Davydov | 2015-02-28 | 1 | -0/+7 | |
| | | ||||||
* | | Merge pull request #19121 from davydovanton/update-doc-for-remove | Yves Senn | 2015-02-28 | 1 | -2/+3 | |
|\ \ | | | | | | | | | | Update documentation examples for String#remove [skip ci] | |||||
| * | | Update documentation examples for String#remove [skip ci] | Anton Davydov | 2015-02-28 | 1 | -6/+7 | |
|/ / | ||||||
* | | Fix a backtracking problem in String#truncate_words | Henrik Nygren | 2015-02-25 | 1 | -1/+1 | |
| | | | | | | | | Fixes #19070. | |||||
* | | s/around_filter/around_action/ | Akira Matsuda | 2015-02-21 | 1 | -1/+1 | |
| | | ||||||
* | | Properly dump primitive-like AS::SafeBuffer strings as YAML | Godfrey Chan | 2015-02-11 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `coder.represent_scalar` means something along the lines of "Here is a quoted string, you can just add it to the output", which is not the case here. It only works for simple strings that can appear unquoted in YAML, but causes problems for e.g. primitive-like strings ("1", "true"). `coder.represent_object` on the other hand, means that "This is the Ruby-object representation for this thing suitable for use in YAML dumping", which is what we want here. Before: YAML.load ActiveSupport::SafeBuffer.new("Hello").to_yaml # => "Hello" YAML.load ActiveSupport::SafeBuffer.new("true").to_yaml # => true YAML.load ActiveSupport::SafeBuffer.new("false").to_yaml # => false YAML.load ActiveSupport::SafeBuffer.new("1").to_yaml # => 1 YAML.load ActiveSupport::SafeBuffer.new("1.1").to_yaml # => 1.1 After: YAML.load ActiveSupport::SafeBuffer.new("Hello").to_yaml # => "Hello" YAML.load ActiveSupport::SafeBuffer.new("true").to_yaml # => "true" YAML.load ActiveSupport::SafeBuffer.new("false").to_yaml # => "false" YAML.load ActiveSupport::SafeBuffer.new("1").to_yaml # => "1" YAML.load ActiveSupport::SafeBuffer.new("1.1").to_yaml # => "1.1" If we ever want Ruby to behave more like PHP or JavaScript though, this is an excellent trick to use ;) | |||||
* | | Revert 88d08f2ec9f89ba431cba8d0c06ac9ebc204bbbb | Rafael Mendonça França | 2015-02-11 | 1 | -12/+24 | |
| | | | | | | | | | | | | | | This caused a performance regression since we were decided to do the nil check in run time not in the load time. See https://github.com/rails/rails/pull/15187#issuecomment-71760058 | |||||
* | | NameError#missing_name? can jsut use NameError#name if the arg is a Symbol | Yuki Nishijima | 2015-02-07 | 1 | -2/+1 | |
| | | | | | | | | | | | | NameError#name returns a missing name as a symbol, so if the given name is a symbol, it doesn't have to use #missing_name to get the last constant name in the error message. | |||||
* | | Merge pull request #14028 from uberllama/json_escape_comments | Rafael Mendonça França | 2015-02-06 | 1 | -0/+5 | |
|\ \ | | | | | | | Amended json_escape comments | |||||
| * | | Amended json_escape comment to clarify that user-generated content must ↵ | Yuval Kordov | 2014-02-12 | 1 | -0/+5 | |
| | | | | | | | | | | | | still be html_escaped if being inserted ingot he DOM via JQuery's html() method. | |||||
* | | | Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 ↵ | Vipul A M | 2015-02-03 | 1 | -1/+0 | |
| | | | | | | | | | | | | onwards. | |||||
* | | | Fix typo in Time#change docs | John Duff | 2015-02-02 | 1 | -1/+1 | |
| | | | ||||||
* | | | Return value of yielded block in File.atomic_write | Ian Ker-Seymer | 2015-01-28 | 1 | -1/+4 | |
| | | | | | | | | | | | | | | | | | | Staying true to Ruby convention, we now return the value of the yielded block from `File.atomic_write {...}`. This mimics the behavior of MRI's `File.open {...}`. | |||||
* | | | Merge pull request #18450 from tonytonyjan/patch-1 | Rafael Mendonça França | 2015-01-19 | 1 | -0/+2 | |
|\ \ \ | | | | | | | | | fix dependency | |||||
| * | | | fix dependency | Jian Weihang | 2015-01-12 | 1 | -0/+2 | |
| | | | | ||||||
* | | | | A little performance improvement using 'take' method over 'first' | Santosh Wadghule | 2015-01-16 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | No need of requiring `rbconfig`, it is by-default loaded | Kuldeep Aggarwal | 2015-01-10 | 1 | -1/+0 | |
|/ / / | ||||||
* | | | Add missing require | Guillermo Iguaran | 2015-01-09 | 1 | -0/+2 | |
| | | | ||||||
* | | | Add SecureRandom.base58 | Guillermo Iguaran | 2015-01-09 | 1 | -0/+21 | |
| | | | ||||||
* | | | Use Ruby's #include? to avoid relying on AS extension | Carlos Antonio da Silva | 2015-01-06 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | The build has failed when running the date/time ext tests in isolation due to the missing extension, so better than adding a require is using just Ruby in this case. https://travis-ci.org/rails/rails/jobs/46107954#L1077 | |||||
* | | | Add #prev_day and #next_day as counterparts to #yesterday and #tomorrow for ↵ | George Claghorn | 2015-01-06 | 1 | -6/+16 | |
| | | | | | | | | | | | | Date, Time, and DateTime | |||||
* | | | Add same_time option to #prev_week and #next_week for Date, Time, and DateTime | George Claghorn | 2015-01-06 | 1 | -17/+22 | |
| | | | ||||||
* | | | Add #on_weekend?, #next_weekday, and #prev_weekday methods to Date, Time, ↵ | George Claghorn | 2015-01-06 | 1 | -0/+25 | |
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | and DateTime `#on_weekend?` returns true if the receiving date/time falls on a Saturday or Sunday. `#next_weekday` returns a new date/time representing the next day that does not fall on a Saturday or Sunday. `#prev_weekday` returns a new date/time representing the previous day that does not fall on a Saturday or Sunday. | |||||
* | | adding documentation for 'remove_possible_method' and 'redefine_method' [ci ↵ | George Millo | 2015-01-05 | 1 | -0/+3 | |
| | | | | | | | | skip] | |||||
* | | Remove extra class_eval for Ruby 1.9 | Carlos Antonio da Silva | 2015-01-04 | 1 | -5/+2 | |
| | | ||||||
* | | Remove Struct#to_h backport | Rafael Mendonça França | 2015-01-04 | 1 | -6/+3 | |
| | | ||||||
* | | singleton_class? is already pressent at Ruby 2.2 | Rafael Mendonça França | 2015-01-04 | 1 | -8/+0 | |
| | | ||||||
* | | Remove unneeded Time patch to support Ruby 1.9 | Rafael Mendonça França | 2015-01-04 | 2 | -30/+2 | |
| | | ||||||
* | | Remove some comments about Ruby 1.9 behaviors | Rafael Mendonça França | 2015-01-04 | 2 | -4/+4 | |
| | | ||||||
* | | Remove debugger support | Rafael Mendonça França | 2015-01-04 | 2 | -11/+3 | |
| | | | | | | | | | | bebugger doesn't work with Ruby 2.2 so we don't need to support it anymore | |||||
* | | Remove hack to support BigDecimal in Ruby 1.9 | claudiob | 2015-01-04 | 1 | -11/+2 | |
| | | | | | | | | | | Now that Rails requires Ruby >= 2.0, there is no need to check whether `BigDecimal` exists or not. | |||||
* | | remove files which is dependent on ruby1.9 as we do not support Ruby1.9 | Kuldeep Aggarwal | 2015-01-04 | 1 | -11/+3 | |
| | | | | | | | | | | Conflicts: activerecord/lib/active_record/attribute_methods/read.rb | |||||
* | | Remove deprecated `ActiveSupport::SafeBuffer#prepend` | Rafael Mendonça França | 2015-01-04 | 1 | -6/+0 | |
| | | ||||||
* | | Remove deprecated methods at `Kernel`. | Rafael Mendonça França | 2015-01-04 | 1 | -80/+0 | |
| | | | | | | | | `silence_stderr`, `silence_stream`, `capture` and `quietly`. | |||||
* | | Remove deprecated core_ext/big_decimal/yaml_conversions file | Rafael Mendonça França | 2015-01-04 | 1 | -14/+0 | |
| | | ||||||
* | | Fix a few typos [ci skip] | Robin Dupret | 2015-01-03 | 1 | -1/+1 | |
| | | ||||||
* | | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2015-01-03 | 2 | -3/+23 | |
|\ \ | ||||||
| * | | Better docs for NameError | claudiob | 2014-12-25 | 1 | -0/+14 | |
| | | | | | | | | | | | | | | | | | | Add examples for missing_name, missing_name? [ci skip] |