Skip to content
Commits on May 29, 2012
  1. @drogus

    `cat Gemfile.lock` after installing gems on travis

    drogus committed
    It may be useful to view Gemfile.lock. If the build fails we can inspect
    it locally with exactly the same environment.
  2. @josevalim

    Merge pull request #6525 from freerange/minitest-passthrough-exceptions

    josevalim committed
    Exceptions like Interrupt & NoMemoryError should not be rescued in tests.
  3. @floehopper
  4. @josevalim

    Merge pull request #6528 from frodsan/update_hash_syntax_gemfile_temp…

    josevalim committed
    update Gemfile template to 1.9 hash syntax
  5. update Gemfile template to 1.9 hash syntax

    Francesco Rodriguez committed
  6. @carlosantoniodasilva

    Merge pull request #6526 from appfolio/decoupling_activesupport_from_…

    carlosantoniodasilva committed
    Decoupling ActiveSupport from ActionView
  7. @amutz
  8. @carlosantoniodasilva

    Merge pull request #6527 from frodsan/add_test_to_delete_by_fixnum_or…

    carlosantoniodasilva committed
    Add tests to delete by fixnum or string id with has many through associations
  9. Add tests to delete by fixnum or string id with has many through asso…

    Francesco Rodriguez committed
  10. @carlosantoniodasilva
  11. @carlosantoniodasilva
  12. @carlosantoniodasilva

    Review requires from number helper

    carlosantoniodasilva committed
    Some of these requires are now only necessary in
    ActiveSupport::NumberHelper. Add hash/keys require due to symbolize_keys
    usage in number helpers. Also remove some whitespaces.
    Closes #6414
  13. @carlosantoniodasilva

    Yield only one argument instead of splatting.

    carlosantoniodasilva committed
    Add Changelog entry. Closes #4003
  14. @chrisfinne @carlosantoniodasilva
  15. @carlosantoniodasilva

    Merge pull request #6511 from frodsan/add_fixnum_string_support_for_d…

    carlosantoniodasilva committed
    Add support for CollectionAssociation#delete by Fixnum or String
  16. @carlosantoniodasilva

    Parse float value only once in number helpers

    carlosantoniodasilva committed
    Refactor number helpers output with safety handling to call float
    parsing only once. Also remove 'erb' require.
  17. Add support for CollectionAssociation#delete by Fixnum or String

    Francesco Rodriguez committed
    I found the next issue between CollectionAssociation `delete`
    and `destroy`.
        class Person < ActiveRecord::Base
          has_many :pets
        # => OK, returns the destroyed object
        # => OK, returns the destroyed object
        # => ActiveRecord::AssociationTypeMismatch
        # => ActiveRecord::AssociationTypeMismatch
    Adding support for deleting with a fixnum or string like
    `destroy` method.
Commits on May 28, 2012
  1. @floehopper

    Exceptions like Interrupt should not be rescued.

    floehopper committed
    Neither Test::Unit nor MiniTest rescue exceptions like Interrupt or
    NoMemoryError, but ActiveSupport::Testing::SetupAndTeardown#run which
    overrides MiniTest::Unit::TestCase#run rescues them.
    Rescuing an Interrupt exception is annoying, because it means when you
    are running a lot of tests e.g. when running one of the rake test tasks,
    you cannot break out using ctrl-C.
    Rescuing exceptions like NoMemoryError is foolish, because the most
    sensible thing to happen is for the process to terminate as soon as
    This solution probably needs some finessing e.g. I'm not clear whether
    the assumption is that only MiniTest is supported. Also early versions
    of MiniTest did not have this behaviour. However, hopefully it's a
    Integrating with Test::Unit & MiniTest has always been a pain. It would
    be great if both of them provided sensible extension points for the kind
    of things that both Rails and Mocha want to do.
  2. @josevalim

    Merge pull request #6522 from lest/patch-1

    josevalim committed
    ActiveSupport require and dependencies
  3. @lest

    make AS::Multibyte::Chars work w/o multibyte core ext

    lest committed
    Use instead of String#mb_chars.
    It allows to use ActiveSupport::Multibyte::Chars without requiring
    String multibyte core extension.
  4. @lest

    remove unnecessary require

    lest committed
    AS::Multibyte are no longer required by access and filters string
    core extensions.
  5. @josevalim

    Merge pull request #6517 from purcell/validates-false-value

    josevalim committed
    Don't enable validations when passing false hash values to ActiveModel.validates
  6. @purcell

    Don't enable validations when passing false hash values to ActiveMode…

    purcell committed
    Passing a falsey option value for a validator currently causes that validator to
    be enabled, just like "true":
        ActiveModel.validates :foo, :presence => false
    This is rather counterintuitive, and makes it inconvenient to wrap `validates` in
    methods which may conditionally enable different validators.
    As an example, one is currently forced to write:
          def has_slug(source_field, options={:unique => true})
            slugger = { |r| r[:slug] = self.class.sluggify(r[source_field]) if r[:slug].blank? }
            before_validation slugger
            validations = { :presence => true, :slug => true }
            if options[:unique]
              validations[:uniqueness] = true
            validates :slug, validations
    because the following reasonable-looking alternative fails to work as expected:
          def has_slug(source_field, options={:unique => true})
            slugger = { |r| r[:slug] = self.class.sluggify(r[source_field]) if r[:slug].blank? }
            before_validation slugger
            validates :slug, :presence => true, :slug => true, :uniqueness => options[:unique]
    (This commit includes a test, and all activemodel and activerecord tests pass as before.)
  7. @josevalim

    Merge pull request #6512 from jaredbeck/fix_number_to_currency_neg_fo…

    josevalim committed
    Fix handling of negative zero in number_to_currency
  8. @jaredbeck
  9. @josevalim

    Merge pull request #6315 from appfolio/moving_number_helper_methods_t…

    josevalim committed
    Moving number helper from ActionView to Active Support
  10. @drogus

    Fix sorting of helpers from different paths

    drogus committed
    When more than one directory for helpers is provided to a controller, it
    should preserver the order of directories. Given 2 paths:
        MyController.helpers_paths = ["dir1/helpers", "dir2/helpers"]
    helpers from dir1 should be loaded first. Before this commit, all
    helpers were mixed and then sorted alphabetically, which essentially
    would require to rename helpers to get desired order.
    This is a problem especially for engines, where you would like to be
    able to predict accurately which engine helpers will load first.
    (closes #6496)
  11. @amutz
Commits on May 27, 2012
  1. @vijaydev
  2. @vijaydev

    copy edits [ci skip]

    vijaydev committed
  3. @drogus

    Fix railties_order when application object is passed

    drogus committed
    railites_order method, introduced in 40b19e0, had a bug that was causing
    loading application instance twice in initializers if railties_order
    already included application instance. So for example
        railties_order = [Foo::Engine, :main_app, Bar::Engine]
    would result in such railties array:
        [MyApp::Application, Foo::Engine, MyAppApplication, Bar::Engine]
    In order to fix it, we need to check for existence of application in
    both railties_order and railties arrays.
  4. update Module#mattr_accessor documentation [ci skip]

    Francesco Rodriguez committed
  5. add CollectionProxy#uniq documentation

    Francesco Rodriguez committed
  6. update Hash documentation with 1.9 syntax [ci skip]

    Francesco Rodriguez committed
Something went wrong with that request. Please try again.