Skip to content
This repository

Jul 27, 2012

  1. John Firebaugh

    Don't test language-level exception messages

    Ruby implementations should be free to produce exception
    messages that are not identical to MRI. For example,
    Rubinius produces 'Expected an even number, got 5'.
    authored July 27, 2012
  2. David Heinemeier Hansson

    Add Object#try! with the old NoMethodError raising behavior

    authored July 27, 2012
  3. David Heinemeier Hansson

    will now return nil instead of raise a NoMethodError if the receivin…

    …g object does not implement the method
    authored July 27, 2012

Jul 26, 2012

  1. Anatoli Makarevich

    fix typo in documentation

    authored July 26, 2012

Jul 21, 2012

  1. Francesco Rodríguez

    fixing :nodoc:s in AS::JSON::Encoding

    authored July 21, 2012
  2. Rafael Mendonça França

    +"foo"+ doesn't generate code tag [ci skip]

    authored July 21, 2012
  3. Rafael Mendonça França

    Lets be consistent with whitespaces at documentation

    authored July 21, 2012
  4. Xavier Noria

    makes a pass over the API of ActiveSupport::HashWithIndifferentAccess

    authored July 21, 2012
  5. Xavier Noria

    Hash#fetch(fetch) is not the same as doing hash[key]

    authored July 21, 2012

Jul 20, 2012

  1. Piotr Niełacny

    Use join without default separator

    Use lstrip method
    authored July 19, 2012

Jul 18, 2012

  1. Aaron Patterson

    Revert "Merge pull request #7084 from LTe/logger_default_separator"

    This reverts commit c08f30f, reversing
    changes made to e243a8a.
    authored July 18, 2012
  2. Piotr Niełacny

    Don't use default separator

    When the default separator is set logger will create incorrect output
    authored July 18, 2012

Jul 17, 2012

  1. Toshinori Kajihara

    Fix class_eval without __FILE__ and __LINE__.

    authored July 18, 2012

Jul 15, 2012

  1. Vijay Dev

    Merge branch 'master' of github.com:lifo/docrails

    authored July 15, 2012

Jul 14, 2012

  1. Xavier Noria

    adds a missing require [fixes #6896]

    This file uses Time.zone, which is defined in
    active_support/core_ext/time/zones.rb.
    authored July 15, 2012
  2. Aaron Cruz

    Added time related req files to AS core_ext #6896

    This way you can `require 'active_record/core_ext/time'` for example
    I see these libs are available through `active_record/time` but not
    individually

Jul 10, 2012

  1. Kuba Kuźma

    use 'use_zone' method in example, instead of reimplementing it

    authored July 10, 2012

Jul 09, 2012

  1. Aaron Patterson

    deprecate `describe` without a block.

    minitest/spec provides `describe`, so deprecate the rails version and
    have people use the superclass version
    authored July 09, 2012

Jul 08, 2012

  1. Aaron Patterson

    we still need `describe` as the implementation differs from minitest

    authored July 08, 2012
  2. Aaron Patterson

    minitest provides "it" and "describe"

    Remove rails implementation of describe, alias "test" to "it"
    authored July 08, 2012
  3. Aaron Patterson

    minitest is a gem dep, so remove this conditional

    authored July 08, 2012

Jul 04, 2012

  1. Aaron Patterson

    activesupport gem dependencies should reflect the versions we actuall…

    …y use
    authored July 04, 2012
  2. Carlos Antonio da Silva

    Kill not used constant since removal of runner method

    Runner method was removed in ada571b.

Jul 03, 2012

  1. Aaron Patterson

    remove duplicate requires of mocha.

    Mocha is already required by AS::TestCase, so remove the duplicate
    requires.
    authored July 03, 2012
  2. Aaron Patterson

    remove the runner method copied from minitest

    authored July 03, 2012
  3. Aaron Patterson

    hook mocha in through m/t before_setup, after_teardown hooks

    authored July 03, 2012
  4. Carlos Antonio da Silva

    Update 4.0 Release Notes with changelogs [ci skip]

    Also fix some wrong formatting.
    
    Related discussion:
    ab72040#commitcomment-1525256

Jul 02, 2012

  1. Xavier Noria

    explains why the file update checker ignores mtimes in the future, pl…

    …us a little refactor for the same price
    authored July 02, 2012
  2. Andrew White

    Improve performance of DateTime#seconds_since_unix_epoch

    Calculate the seconds since the UNIX epoch using the difference in
    Julian day numbers from the epoch date. By reducing the Rational math
    to just the offset component this gives a significant improvement.
    
    Benchmark:
    
    Calculating --------------------------------------------
           new     27733 i/100ms
       current     15031 i/100ms
           new     27737 i/100ms
       current     15549 i/100ms
    --------------------------------------------------------
           new   548182.1 (±0.9%) i/s - 2745567 in 5.008943s
       current   216380.9 (±1.6%) i/s - 1082232 in 5.002781s
           new   510281.9 (±1.2%) i/s - 2551804 in 5.001525s
       current   219858.3 (±1.8%) i/s - 1103979 in 5.023039s
    authored July 02, 2012

Jul 01, 2012

  1. Andrew White

    Revert "Use strftime to convert DateTime to numeric"

    There appears to be a bug with DateTime#strftime("%s") on 32-bit platforms.
    Bug report: http://bugs.ruby-lang.org/issues/6683
    
    This reverts commit 210cd75.
    authored July 01, 2012
  2. Andrew White

    Make Time#change work with offsets other than UTC or local

    Use Time.new to create times where the current offset is not zero or
    not in the local time zone - closes #4847 and #6651.
    authored July 01, 2012
  3. Andrew White

    Remove rescue clause from ActiveSupport::TimeZone#to_f

    Time#at no longer raises an error for large values so we can remove
    the rescue clause from ActiveSupport::TimeZone#to_f.
    authored July 01, 2012
  4. Andrew White

    Remove DateTime#to_time override

    Currently if the offset is not zero then to_time returns self which
    can lead to errors where a developer assumes that the value is a
    Time. To solve this we can use the native implementation of
    DateTime#to_time in Ruby 1.9.3 as it handles offsets properly and
    is faster than our override.
    authored July 01, 2012
  5. Andrew White

    Use strftime to convert DateTime to numeric

    The native implementation of the seconds since the UNIX epoch in
    strftime is significantly faster than our method.
    
    Benchmark:
    ----------
    require 'benchmark/ips'
    require 'date'
    require 'time'
    
    date = DateTime.civil(1253,7,6,20,4,0)
    
    Benchmark.ips do |x|
      x.report("strftime.to_i") { date.strftime('%s').to_i }
      x.report("ssue.to_i") { ((date - DateTime.civil(1970)) * 86400).to_i }
    
      x.report("strftime.to_f") { date.strftime('%s').to_f }
      x.report("ssue.to_f") { ((date - DateTime.civil(1970)) * 86400).to_f }
    end
    
    Output:
    -------
    Calculating -------------------------------------
           strftime.to_i     26480 i/100ms
               ssue.to_i     13818 i/100ms
           strftime.to_f     26561 i/100ms
               ssue.to_f     14479 i/100ms
    -------------------------------------------------
           strftime.to_i   616937.3 (±2.4%) i/s - 3098160 in 5.024749s
               ssue.to_i   200108.8 (±6.9%) i/s -  994896 in 4.999278s
           strftime.to_f   553581.3 (±2.2%) i/s - 2788905 in 5.040397s
               ssue.to_f   204260.3 (±4.3%) i/s - 1028009 in 5.043072s
    authored July 01, 2012

Jun 30, 2012

  1. Vijay Dev

    Merge branch 'master' of github.com:lifo/docrails

    Conflicts:
    	activemodel/lib/active_model/errors.rb
    authored June 30, 2012
Something went wrong with that request. Please try again.