Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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] | |||||
| * | | Add docs for `Object.nil!` | claudiob | 2014-12-22 | 1 | -3/+9 | |
| | | | | | | | | | | | | | | | | | | Also add doc examples for `Object.nil`. [ci skip] | |||||
* | | | Deprecate `MissingSourceFile` in favor of `LoadError`. | Rafael Mendonça França | 2015-01-02 | 1 | -1/+3 | |
| | | | | | | | | | | | | | | | `MissingSourceFile` was just an alias to `LoadError` and was not being raised inside the framework. | |||||
* | | | Remove thread variables backport | Rafael Mendonça França | 2015-01-02 | 1 | -86/+0 | |
| | | | | | | | | | | | | They are already present on Ruby 2.2 | |||||
* | | | Do not check only for the Rails constant | Rafael Mendonça França | 2015-01-02 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | This constant may be define for auxiliar gems like rails-html-sanitizer and these methods call will fail. | |||||
* | | | Fix comment typo in debugger.rb | mntj | 2014-12-30 | 1 | -1/+1 | |
| | | | ||||||
* | | | Removed Object#itself as it's implemented in ruby 2.2 | Cristian Bica | 2014-12-29 | 2 | -16/+0 | |
| | | | ||||||
* | | | Just check if the buffer exists before changing it | Rafael Mendonça França | 2014-12-29 | 1 | -1/+3 | |
| | | | ||||||
* | | | When trying to access a character on a string buffer object via `:[]`, if ↵ | Vipul A M | 2014-12-29 | 1 | -1/+3 | |
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the object being accessed currently returns `html_safe?` as true, we used to set `@html_safe` variable as true on new object created. When doing something like x = 'Hello'.html_safe x[/a/, 1] would throw an error on ruby 2.2, since when nothign gets matched nil is returned by the code and it tries to set `@html_safe` value to true, which would error since starting 2.2 nil is frozen. This change adds a safety net to avoid setting `@html_safe = true` on frozen objects. Fixes #18235 | |||||
* | | Add docs for Numeric time-related methods | claudiob | 2014-12-17 | 1 | -0/+18 | |
| | | | | | | | | | | | | | | Add docs for `minutes`, `hours`, `days`, `weeks` and `fortnights`. Fix docs for `in_milliseconds`. [ci skip] | |||||
* | | Replace `#=>` with `# =>` [ci skip] | claudiob | 2014-12-17 | 6 | -21/+21 | |
| | | | | | | | | | | | | | | | | @rafaelfranca suggested in f7c7bcd9 that code examples should display the result after `# =>` and not after `#=>`. This commit replaces *all* the occurrences of `#=>` in the code documentation (mostly added by me :sob:) with the suggested `# =>`. | |||||
* | | Add docs for Numeric#*_bytes methods | claudiob | 2014-12-17 | 1 | -0/+20 | |
| | | | | | | | | | | | | | | Add docs for `kilobytes`, `megabytes`, `gigabytes`, `terabytes`, `petabytes` and `exabytes`. Fix docs for `bytes`. [ci skip] | |||||
* | | Add docs for Time#find_zone | claudiob | 2014-12-17 | 1 | -1/+16 | |
| | | | | | | | | | | | | Also improves docs for `Time#find_zone!` [ci skip] | |||||
* | | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2014-12-15 | 1 | -1/+5 | |
|\ \ | ||||||
| * | | Better doc for AS::DateTime#seconds_since_midnight | claudiob | 2014-12-04 | 1 | -1/+5 | |
| | | | | | | | | | | | | | | | Adds examples and keeps coherent with the documentation of the similar method `seconds_until_end_of_day`. [ci skip] | |||||
* | | | English fix [ci skip] | George Millo | 2014-12-12 | 1 | -1/+1 | |
|/ / | ||||||
* | | Pass symbol as an argument instead of a block | Erik Michaels-Ober | 2014-11-29 | 5 | -8/+8 | |
| | | ||||||
* | | Prevent Numeric#to_s from allocating an array | Jean Boussier | 2014-11-28 | 2 | -16/+25 | |
| | | ||||||
* | | Document `String#html_safe` [ci skip] | Sean Griffin | 2014-11-24 | 1 | -0/+5 | |
| | | | | | | | | | | | | It should be part of the documented public API, since we have an entire section of the guides dedicated to it. Documented in a way that addresses the concerns which kept it undocumented in the past. | |||||
* | | Time includes DateAndTime::Zones acts_like(:time) | betesh | 2014-11-09 | 1 | -0/+1 | |
| | |