Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 18, 2012
  1. Eric Oestrich Vijay Dev

    Update Time#change docs to reflect the options it uses

    oestrich authored vijaydev committed
    [ci skip]
Commits on Feb 5, 2012
  1. Toshinori Kajihara
Commits on Jan 25, 2012
  1. Vijay Dev

    Merge pull request #4673 from carlosantoniodasilva/validation-guides-…

    vijaydev authored
    …update-3-2
    
    Validation guides update 3 2
  2. Carlos Antonio da Silva

    Change ActiveRecord::Errors to ActiveModel::Errors in guides

    carlosantoniodasilva authored
    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.
Commits on Jan 24, 2012
  1. Aaron Patterson

    Merge pull request #4514 from brainopia/update_timezone_offets

    tenderlove authored
    Update time zone offset information
Commits on Jan 15, 2012
  1. Semyon Perepelitsa

    Pass a symbol instead of a block. This is faster and more concise.

    semaperepelitsa authored
    At least Ruby 1.8.7 is required which is ok since 3.2.
    
    Benchmark:
    
    ```ruby
    require "benchmark"
    
    enum = 1..10_000
    N = 100
    Benchmark.bm do |x|
      x.report "inject block" do
        N.times do
          enum.inject { |sum, n| sum + n }
        end
      end
    
      x.report "inject symbol" do
        N.times do
          enum.inject(:+)
        end
      end
    end
    ```
    
    Result:
    
    ```
           user     system      total        real
    inject block   0.160000   0.000000   0.160000 (  0.179723)
    inject symbol  0.090000   0.000000   0.090000 (  0.095667)
    ```
Commits on Jan 12, 2012
  1. Vijay Dev

    fixes in api docs

    vijaydev authored
Commits on Jan 3, 2012
  1. Aaron Patterson

    Merge pull request #4283 from lest/fix-singleton-checking

    tenderlove authored
    use correct variant of checking whether class is a singleton
Commits on Dec 30, 2011
  1. Xavier Noria
  2. Sergey Nartimov Xavier Noria

    refactor Range#include? to handle ranges with floats

    lest authored fxn committed
    Conflicts:
    
    	activesupport/lib/active_support/core_ext/range/include_range.rb
Commits on Dec 28, 2011
  1. Jon Leighton

    Revert "Further simplify singleton_class checking in class_attribute"

    jonleighton authored
    This reverts commit 520918a.
    
    Reason: build failure
  2. James Miller Aaron Patterson
Commits on Dec 24, 2011
  1. Aaron Patterson
Commits on Dec 22, 2011
  1. Aaron Patterson

    Revert "Added Enumerable#pluck to wrap the common pattern of collect(…

    tenderlove authored
    …&:method) *DHH*"
    
    This reverts commit 4d20de8.
Commits on Dec 11, 2011
  1. Jeremy Kemper
  2. Jeremy Kemper

    Use 1.9 native XML escaping to speed up html_escape and shush regexp …

    jeremy authored
    …warnings
    
            length      user     system      total        real
    before  6      0.010000   0.000000   0.010000 (  0.012378)
    after   6      0.010000   0.000000   0.010000 (  0.012866)
    before  60     0.040000   0.000000   0.040000 (  0.046273)
    after   60     0.040000   0.000000   0.040000 (  0.036421)
    before  600    0.390000   0.000000   0.390000 (  0.390670)
    after   600    0.210000   0.000000   0.210000 (  0.209094)
    before  6000   3.750000   0.000000   3.750000 (  3.751008)
    after   6000   1.860000   0.000000   1.860000 (  1.857901)
Commits on Dec 8, 2011
  1. Vijay Dev

    fix nodocs

    vijaydev authored
Commits on Dec 3, 2011
  1. Jon Jensen José Valim

    Restore performance of ERB::Util.html_escape

    jenseng authored josevalim committed
    Revert html_escape to do a single gsub again, but add the "n" flag (no
    language, i.e. not multi-byte) to protect against XSS via invalid utf8
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Dec 2, 2011
  1. David Heinemeier Hansson
Commits on Nov 29, 2011
  1. Aaron Patterson

    Module#synchronize is deprecated with no replacement. Please use `mon…

    tenderlove authored
    …itor` from ruby's standard library.
Commits on Nov 27, 2011
  1. Yehuda Katz

    Merge pull request #3767 from tadast/object_in

    wycats authored
    Object#in? also accepts multiple parameters
Commits on Nov 26, 2011
  1. Object#in? also accepts multiple parameters

    Tadas Tamošauskas authored
  2. Vijay Dev

    Adds Time#sunday method

    vijaydev authored
  3. Vijay Dev

    Convert aliases monday and sunday to methods

    vijaydev authored
    A recent change to beginning_of_week and end_of_week added an argument
    that can be used to specify the week's starting day as a symbol. Now
    these methods were aliased as monday and sunday respectively which as a
    consequence of the argument addition, made calls like obj.monday(:sunday)
    possible. This commit makes them methods on their own.
  4. Vijay Dev

    minor doc changes

    vijaydev authored
Commits on Nov 25, 2011
  1. Xavier Noria
  2. Innokenty Mikhailov Xavier Noria

    API docstrings updated with default value info

    gregolsen authored fxn committed
  3. Innokenty Mikhailov Xavier Noria

    beginning_of_week extended in both Time and Date so that to return we…

    gregolsen authored fxn committed
    …ek start based on start day that is monday by default
Commits on Nov 23, 2011
  1. José Valim
Commits on Nov 22, 2011
  1. Yehuda Katz

    Merge pull request #3725 from marcandre/twz_eql

    wycats authored
    Fix inconsistencies with Time{WithZone}#{hash,eql?}
  2. Marc-André Lafortune
Commits on Nov 17, 2011
  1. Innokenty Mikhailov
Commits on Oct 30, 2011
  1. Xavier Noria
  2. Xavier Noria

    defines Module#qualified_const_(defined?|get|set) and String#deconsta…

    fxn authored
    …ntize
    
    This commit also implements a faster version of #demodulize I was unable
    to isolate with git add --patch.
    
    Not a big fan of the name #deconstantize. It complements #demodulize
    getting rid of the rightmost constant, hence the name, but it is
    unrelated to the well-known #constantize. So unsure. Could not come
    with anything better, please feel free to rename.
Commits on Oct 20, 2011
  1. Vijay Dev
Something went wrong with that request. Please try again.