aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecation from AS::Deprecation behavior, some minor cleanupsCarlos Antonio da Silva2012-03-161-7/+9
| | | | | | | | | * Refactor log subscriber, use select! to avoid a new object * Remove deprecation messages related to AS::Deprecation behavior This was added about 2 years ago for Rails 3: https://github.com/rails/rails/commit/d4c7d3fd94e5a885a6366eaeb3b908bb58ffd4db * Remove some not used requires * Refactor delegate to avoid string conversions and if statements inside each block
* refactor Hash#slice and Hash#extract!Vasiliy Ermolovich2012-03-061-8/+4
|
* Stop SafeBuffer#clone_empty from issuing warningsCarlos Antonio da Silva2012-03-021-3/+1
| | | | | | | | | | | | Logic in clone_empty method was dealing with old @dirty variable, which has changed by @html_safe in this commit: https://github.com/rails/rails/commit/139963c99a955520db6373343662e55f4d16dcd1 This was issuing a "not initialized variable" warning - related to: https://github.com/rails/rails/pull/5237 The logic applied by this method is already handled by the [] override, so there is no need to reset the variable here.
* Merge branch 'master-security'Aaron Patterson2012-03-011-16/+22
|\ | | | | | | | | | | | | | | | | | | | | | | * master-security: Ensure [] respects the status of the buffer. delete vulnerable AS::SafeBuffer#[] use AS::SafeBuffer#clone_empty for flushing the output_buffer add AS::SafeBuffer#clone_empty fix output safety issue with select options Conflicts: actionpack/lib/action_view/helpers/tags/base.rb
| * Ensure [] respects the status of the buffer.José Valim2012-02-291-12/+18
| |
| * delete vulnerable AS::SafeBuffer#[]Akira Matsuda2012-02-201-6/+0
| |
| * add AS::SafeBuffer#clone_emptyAkira Matsuda2012-02-201-0/+6
| |
* | Merge pull request #4284 from mattdbridges/time_calculation_aliasesXavier Noria2012-02-282-0/+10
|\ \ | | | | | | Added aliases for prev_year, prev_month, and prev_week in Time and Date calculations
| * | Adding :last_week, :last_month, and :last_year aliases to Time and DateMatt Bridges2012-02-212-0/+10
| | | | | | | | | | | | core extensions
* | | call binmode on the tempfile for Ruby 1.8 compatibilityAaron Patterson2012-02-271-1/+2
| | |
* | | Merge pull request #5179 from RalphShnelvar/Binary_mode_Window_bugAaron Patterson2012-02-271-1/+1
| |/ |/| | | | | Binary mode window bug
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-02-181-1/+1
|\ \
| * | Update Time#change docs to reflect the options it usesEric Oestrich2012-02-171-1/+1
| | | | | | | | | [ci skip]
* | | remove unnecessary require core_ext/string/encodingSergey Nartimov2012-02-142-2/+0
| | |
* | | make Range#overlaps? accept Range of TimeShigeya Suzuki2012-02-091-1/+1
|/ /
* | Merge pull request #4878 from vijaydev/ordinal-2072Xavier Noria2012-02-071-0/+14
|\ \ | | | | | | PR #2072 with docs
| * | Add ActiveSupport::Inflector.ordinal and Integer#ordinalTim Gildea2012-02-041-0/+14
| | |
* | | Optional start_day argument for Time#all_week.kennyj2012-02-061-3/+3
|/ / | | | | | | Closes #4883
* | revise docs [ci skip]Vijay Dev2012-02-011-1/+1
| |
* | Move escaping regexps to constantsCarlos Antonio da Silva2012-02-011-2/+4
| |
* | Move escape_once logic to ERB::Util, where it belongs toCarlos Antonio da Silva2012-02-011-0/+15
| | | | | | | | | | | | All the logic is based on the HTML_ESCAPE constant available in ERB::Util, so it seems more logic to have the entire method there and just delegate the helper to use it.
* | Deprecate DateTime.local_offsetbrainopia2012-01-252-2/+16
| |
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-01-261-2/+2
|\ \
| * | Change ActiveRecord::Errors to ActiveModel::Errors in guidesCarlos Antonio da Silva2012-01-251-2/+2
| | | | | | | | | | | | | | | | | | | | | Use ActiveModel::Errors in inflection example docs as well. Also fixes wrong information and link to locale file related to Errors#full_messages in I18n guide.
* | | Merge pull request #4524 from nashby/datetime-18-codeJosé Valim2012-01-251-15/+0
|\ \ \ | | | | | | | | remove ruby 1.8 related code
| * | | remove ruby 1.8 related codeVasiliy Ermolovich2012-01-181-15/+0
| | | |
* | | | Merge pull request #4514 from brainopia/update_timezone_offetsAaron Patterson2012-01-241-1/+1
|\ \ \ \ | |_|/ / |/| | | Update time zone offset information
| * | | Update time zone offset informationbrainopia2012-01-181-1/+1
| |/ /
* | | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-01-211-19/+19
|\ \ \
| * | | Fix indentation in code example of DelegationTomasz Zurkowski2012-01-201-19/+19
| |/ /
* / / Convert URI.parser.parse to URI.parse, and remove ruby 1.8.x code.kennyj2012-01-191-1/+1
|/ /
* | to_date, to_time, and to_datetime Time methods present in ruby 1.9Sergey Nartimov2012-01-131-28/+0
| |
* | deprecates Module#local_constant_namesXavier Noria2012-01-121-2/+12
| |
* | fixes in api docsVijay Dev2012-01-131-1/+1
|/
* Symbol#[] method presents in Ruby 1.9Sergey Nartimov2012-01-071-1/+1
|
* revert "fixing some tests on ruby 1.9.3 SHA 33f222b"Vishnu Atrai2012-01-071-23/+0
|
* Merge pull request #4304 from lest/refactor-truncateAaron Patterson2012-01-051-6/+5
|\ | | | | refactor String#truncate not to use mb_chars
| * refactor String#truncate not to use mb_charsSergey Nartimov2012-01-041-6/+5
| |
* | Merge pull request #4316 from wrozka/time_advance_nsecAaron Patterson2012-01-051-1/+1
|\ \ | |/ |/| Time advance nsec bug
| * Nano seconds fraction of time is copied properly in Time#advancePawel Pierzchala2012-01-051-1/+1
| | | | | | | | | | | | When day, month or year was passed, advance created a new time ignoring previous nsec fraction. Now nsec is passed through usec as a Rational number.
* | simplify Class#descendants using singleton_class methodSergey Nartimov2012-01-041-1/+1
| |
* | No need to override the to_yaml method in ActiveSupporte::SafeBufferRafael Mendonça França2012-01-041-5/+0
| |
* | No need to override the to_yaml method in BigDecimalRafael Mendonça França2012-01-041-15/+0
| |
* | No need to use rescue block to require psychRafael Mendonça França2012-01-041-6/+1
| |
* | No need to check if YAML::ENGINE is defined since ruby 1.9 does thatRafael Mendonça França2012-01-042-2/+2
|/
* use correct variant of checking whether class is a singletonSergey Nartimov2012-01-031-1/+1
|
* rename ruby-debug to ruby-debug19Vishnu Atrai2012-01-011-1/+1
|
* remove condition since to_time always available in ruby19 DateTimeVishnu Atrai2011-12-311-1/+1
|
* adds a comments that clarifies why Range#include? chooses the comparison ↵Xavier Noria2011-12-301-0/+1
| | | | operator
* refactor Range#include? to handle ranges with floatsSergey Nartimov2011-12-291-1/+2
|