Automatic conversion of the NetBSD pkgsrc CVS module, use with care
Find a file
taca 768a62e79e Importing ruby-activerecord32 3.2.2.
## Rails 3.2.1 (January 26, 2012) ##

*   The threshold for auto EXPLAIN is ignored if there's no logger. *fxn*

*   Call `to_s` on the value passed to `table_name=`, in particular symbols
    are supported (regression). *Sergey Nartimov*

*   Fix possible race condition when two threads try to define attribute
    methods for the same class. *Jon Leighton*


## Rails 3.2.0 (January 20, 2012) ##

*   Added a `with_lock` method to ActiveRecord objects, which starts
    a transaction, locks the object (pessimistically) and yields to the block.
    The method takes one (optional) parameter and passes it to `lock!`.

    Before:

        class Order < ActiveRecord::Base
          def cancel!
            transaction do
              lock!
              # ... cancelling logic
            end
          end
        end

    After:

        class Order < ActiveRecord::Base
          def cancel!
            with_lock do
              # ... cancelling logic
            end
          end
        end

    *Olek Janiszewski*

*   'on' and 'ON' boolean columns values are type casted to true
    *Santiago Pastorino*

*   Added ability to run migrations only for given scope, which allows
    to run migrations only from one engine (for example to revert changes
    from engine that you want to remove).

    Example:
      rake db:migrate SCOPE=blog

    *Piotr Sarnacki*

*   Migrations copied from engines are now scoped with engine's name,
    for example 01_create_posts.blog.rb. *Piotr Sarnacki*

*   Implements `AR::Base.silence_auto_explain`. This method allows the user to
    selectively disable automatic EXPLAINs within a block. *fxn*

*   Implements automatic EXPLAIN logging for slow queries.

    A new configuration parameter `config.active_record.auto_explain_threshold_in_seconds`
    determines what's to be considered a slow query. Setting that to `nil` disables
    this feature. Defaults are 0.5 in development mode, and `nil` in test and production
    modes.

    As of this writing there's support for SQLite, MySQL (mysql2 adapter), and
    PostgreSQL.

    *fxn*

*   Implemented ActiveRecord::Relation#pluck method

    Method returns Array of column value from table under ActiveRecord model

        Client.pluck(:id)

    *Bogdan Gusiev*

*   Automatic closure of connections in threads is deprecated.  For example
    the following code is deprecated:

    Thread.new { Post.find(1) }.join

    It should be changed to close the database connection at the end of
    the thread:

    Thread.new {
      Post.find(1)
      Post.connection.close
    }.join

    Only people who spawn threads in their application code need to worry
    about this change.

*   Deprecated:

      * `set_table_name`
      * `set_inheritance_column`
      * `set_sequence_name`
      * `set_primary_key`
      * `set_locking_column`

    Use an assignment method instead. For example, instead of `set_table_name`, use `self.table_name=`:

         class Project < ActiveRecord::Base
           self.table_name = "project"
         end

    Or define your own `self.table_name` method:

         class Post < ActiveRecord::Base
           def self.table_name
             "special_" + super
           end
         end
         Post.table_name # => "special_posts"

    *Jon Leighton*

*   Generated association methods are created within a separate module to allow overriding and
    composition using `super`. For a class named `MyModel`, the module is named
    `MyModel::GeneratedFeatureMethods`. It is included into the model class immediately after
    the `generated_attributes_methods` module defined in ActiveModel, so association methods
    override attribute methods of the same name. *Josh Susser*

*   Implemented ActiveRecord::Relation#explain. *fxn*

*   Add ActiveRecord::Relation#uniq for generating unique queries.

    Before:

        Client.select('DISTINCT name')

    After:

        Client.select(:name).uniq

    This also allows you to revert the unqueness in a relation:

        Client.select(:name).uniq.uniq(false)

    *Jon Leighton*

*   Support index sort order in sqlite, mysql and postgres adapters. *Vlad Jebelev*

*   Allow the :class_name option for associations to take a symbol (:Client) in addition to
    a string ('Client').

    This is to avoid confusing newbies, and to be consistent with the fact that other options
    like :foreign_key already allow a symbol or a string.

    *Jon Leighton*

*   In development mode the db:drop task also drops the test database. For symmetry with
    the db:create task. *Dmitriy Kiriyenko*

*   Added ActiveRecord::Base.store for declaring simple single-column key/value stores *DHH*

        class User < ActiveRecord::Base
          store :settings, accessors: [ :color, :homepage ]
        end

        u = User.new(color: 'black', homepage: '37signals.com')
        u.color                          # Accessor stored attribute
        u.settings[:country] = 'Denmark' # Any attribute, even if not specified with an accessor


*   MySQL: case-insensitive uniqueness validation avoids calling LOWER when
    the column already uses a case-insensitive collation. Fixes #561.

    *Joseph Palermo*

*   Transactional fixtures enlist all active database connections. You can test
    models on different connections without disabling transactional fixtures.

    *Jeremy Kemper*

*   Add first_or_create, first_or_create!, first_or_initialize methods to Active Record. This is a
    better approach over the old find_or_create_by dynamic methods because it's clearer which
    arguments are used to find the record and which are used to create it:

        User.where(:first_name => "Scarlett").first_or_create!(:last_name => "Johansson")

    *Andrés Mejía*

*   Fix nested attributes bug where _destroy parameter is taken into account
    during :reject_if => :all_blank (fixes #2937)

    *Aaron Christy*

*   Add ActiveSupport::Cache::NullStore for use in development and testing.

    *Brian Durand*
2012-03-18 06:49:06 +00:00
archivers Fix the symlink creation (if GTAR_PROGRAM_PREFIX != "g") 2012-03-15 14:18:39 +00:00
audio Bump PKGREVISION from default python change to 2.7. 2012-03-16 04:31:14 +00:00
benchmarks No static linking on SunOS. Don't use non-standard u_intXX_t types. 2012-02-28 15:49:56 +00:00
biology More pcre PKGREVISION bumps. 2012-03-03 12:54:15 +00:00
bootstrap Minor corrections, from Snader_LB on FreeNode: 2012-01-11 01:15:17 +00:00
cad Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
chat Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
comms Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
converters Make Nm in man page match file name. Bump PKGREVISION. 2012-03-17 22:30:20 +00:00
cross PR/45924 --- update to 5.11 with minor changes 2012-02-07 00:21:48 +00:00
databases Importing ruby-activerecord32 3.2.2. 2012-03-18 06:49:06 +00:00
devel Importing ruby-activemodel32 version 3.2.2. 2012-03-18 06:46:44 +00:00
distfiles
doc Note update of databases/ruby-arel package to 3.0.2. 2012-03-18 05:55:48 +00:00
editors Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
emulators remove obsolated module support codes. 2012-03-17 06:43:54 +00:00
filesystems Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
finance Recursive bump for pcre-8.30* (shlib major change) 2012-03-03 00:11:51 +00:00
fonts Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
games Update to 2.1.2 and call it 2.12 to make it newer than the previous 2.06. 2012-03-16 17:32:40 +00:00
geography Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
graphics Update ruby-mini-magick to 3.4. 2012-03-17 15:46:24 +00:00
ham Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
inputmethod allow wnn4 option (now ja-freewnn-lib has shlib). 2012-03-10 15:24:50 +00:00
lang Add supports for Ruby on Rails 3.2, currently 3.2.2. 2012-03-18 06:43:54 +00:00
licenses Update skype license for net/skype1 to currently valid one. 2012-03-11 18:42:48 +00:00
mail Update ruby-actionmailer31 to 3.1.4. 2012-03-18 05:41:32 +00:00
math Set LICENSE. Quell a pkglint warning. 2012-03-16 00:20:51 +00:00
mbone Regenerate diffs for GNU patch. 2011-12-14 03:21:51 +00:00
meta-pkgs Drop gdk-pixbuf, gtk and vmware modules for suse. 2012-03-17 06:08:15 +00:00
misc Update ruby-sprockets to 2.3.1. 2012-03-17 16:42:41 +00:00
mk Drop gdk-pixbuf, gtk and vmware modules for suse. 2012-03-17 06:08:15 +00:00
multimedia Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
net Update to 0.99.20.1, a security bugfix release. 2012-03-18 01:14:07 +00:00
news Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
packages
parallel Add c99 support, fixes build on SunOS. 2012-03-13 12:36:25 +00:00
pkgtools Bug Hunting: 2012-03-14 14:34:39 +00:00
print put an empty line around comments. 2012-03-16 01:11:32 +00:00
regress Reset maintainer, developer lost his commit bit. 2010-03-21 16:29:38 +00:00
security Update ruby-net-ssh to 2.3.0. 2012-03-17 17:01:16 +00:00
shells Bump PKGREVISION for python default version change to 2.7. 2012-03-09 12:33:57 +00:00
sysutils Update ruby-fssm to 0.2.8.1. 2012-03-18 02:35:27 +00:00
templates Tell users to use "pkg_admin audit" instead of audit-packages. 2010-03-18 10:18:19 +00:00
textproc Update ruby-xslt to 0.9.9. 2012-03-18 02:48:30 +00:00
time Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
wm Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
www Importing ruby-actionpack32 version 3.2.2. 2012-03-18 06:47:54 +00:00
x11 Bump PKGREVISION from default python to 2.7. 2012-03-15 11:53:20 +00:00
Makefile
pkglocate Fix PR 39648: 2010-11-11 19:56:34 +00:00
README

$NetBSD: README,v 1.18 2005/05/07 22:18:28 wiz Exp $

Please see doc/pkgsrc.txt for information.