NetBSD Problem Report #43441

From www@NetBSD.org  Wed Jun  9 15:15:53 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id DAE3563B90A
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  9 Jun 2010 15:15:53 +0000 (UTC)
Message-Id: <20100609151553.8B52463B908@www.NetBSD.org>
Date: Wed,  9 Jun 2010 15:15:53 +0000 (UTC)
From: wenheping@gmail.com
Reply-To: wenheping@gmail.com
To: gnats-bugs@NetBSD.org
Subject: [databases/ruby-activerecord] Update to 2.3.8
X-Send-Pr-Version: www-1.0

>Number:         43441
>Category:       pkg
>Synopsis:       [databases/ruby-activerecord] Update to 2.3.8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    minskim
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 09 15:20:00 +0000 2010
>Closed-Date:    Wed Jun 09 16:30:05 +0000 2010
>Last-Modified:  Wed Jun 09 16:35:03 +0000 2010
>Originator:     Wen Heping
>Release:        NetBSD-5.0.2
>Organization:
Private
>Environment:
NetBSD nb502.wenjing.com 5.0.2 NetBSD 5.0.2 (GENERIC) #0: Sat Feb  6 17:53:27 UTC 2010  builds@b7.netbsd.org:/home/builds/ab/netbsd-5-0-2-RELEASE/i386/201002061851Z-obj/home/builds/ab/netbsd-5-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
*2.3.8 (May 24, 2010)*

* Version bump.


*2.3.7 (May 24, 2010)*

* Version bump.

*2.3.6 (May 23, 2010)*

* Add index length support for MySQL. #1852 [Emili Parreno, Pratik Naik]

  Example:

    add_index(:accounts, :name, :name => 'by_name', :length => 10)
    => CREATE INDEX by_name ON accounts(name(10))

    add_index(:accounts, [:name, :surname], :name => 'by_name_surname', :length
=> {:name => 10, :surname => 15})
    => CREATE INDEX by_name_surname ON accounts(name(10), surname(15))

* find_or_create_by_attr(value, ...) works when attr is protected.  #4457 [Santiago Pastorino, Marc-Andr\xc3\xa9 Lafortune]

* JSON supports a custom root option: to_json(:root => 'custom')  #4515 [Jatinder Singh]

* Destroy uses optimistic locking. If lock_version on the record you're destroying doesn't match lock_version in the database, a StaleObjectError is raised.  #1966 [Curtis Hawthorne]

* To prefix the table names of all models in a module, define self.table_name_pr
efix on the module.  #4032 [Andrew White]

* Association inverses for belongs_to, has_one, and has_many. Optimization to re
duce database queries.  #3533 [Murray Steele]

    # post.comments sets each comment's post without needing to :include
    class Post < ActiveRecord::Base
      has_many :comments, :inverse_of => :post
    end

* MySQL: add_ and change_column support positioning.  #3286 [Ben Marini]

* Reset your Active Record counter caches with the reset_counter_cache class method.  #1211 [Mike Breen, Gabe da Silveira]


>How-To-Repeat:

>Fix:
--- Makefile.orig       2010-06-10 04:29:30.000000000 +0800
+++ Makefile    2010-06-10 04:32:34.000000000 +0800
@@ -1,6 +1,6 @@
 # $NetBSD: Makefile,v 1.17 2009/12/01 23:24:24 minskim Exp $

-DISTNAME=      activerecord-2.3.5
+DISTNAME=      activerecord-2.3.8
 PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME}
 CATEGORIES=    databases

@@ -8,7 +8,7 @@
 HOMEPAGE=      http://rubyforge.org/projects/activerecord/
 COMMENT=       Object-relation mapping put on rails

-DEPENDS+=      ${RUBY_PKGPREFIX}-activesupport>=2.3.5:../../devel/ruby-activesupport
+DEPENDS+=      ${RUBY_PKGPREFIX}-activesupport>=2.3.8:../../devel/ruby-activesupport

 .include "../../misc/rubygems/rubygem.mk"
 .include "../../mk/bsd.pkg.mk"
--- distinfo.orig       2010-06-10 04:29:37.000000000 +0800
+++ distinfo    2010-06-10 04:30:49.000000000 +0800
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.17 2009/12/01 23:24:24 minskim Exp $

-SHA1 (activerecord-2.3.5.gem) = f411a1ad8aeef78a464b00663eecdc22e0e4266c
-RMD160 (activerecord-2.3.5.gem) = be3bee034c5d56128a7a6c10470b92fdb167e569
-Size (activerecord-2.3.5.gem) = 546304 bytes
+SHA1 (activerecord-2.3.8.gem) = 3c51faccced0bd3a1bad86dee382092e888613b6
+RMD160 (activerecord-2.3.8.gem) = 1831618e803c102599cbf71d555a168317b2208c
+Size (activerecord-2.3.8.gem) = 965120 bytes
--- PLIST.orig  2010-06-10 04:29:43.000000000 +0800
+++ PLIST       2010-06-10 05:42:59.000000000 +0800
@@ -6,6 +6,7 @@
 ${GEM_LIBDIR}/Rakefile
 ${GEM_LIBDIR}/examples/associations.png
 ${GEM_LIBDIR}/examples/performance.rb
+${GEM_LIBDIR}/examples/performance.sql
 ${GEM_LIBDIR}/install.rb
 ${GEM_LIBDIR}/lib/active_record.rb
 ${GEM_LIBDIR}/lib/active_record/aggregations.rb
@@ -28,6 +29,7 @@
 ${GEM_LIBDIR}/lib/active_record/callbacks.rb
 ${GEM_LIBDIR}/lib/active_record/connection_adapters/abstract/connection_pool.rb
 ${GEM_LIBDIR}/lib/active_record/connection_adapters/abstract/connection_specification.rb
+${GEM_LIBDIR}/lib/active_record/connection_adapters/abstract/database_limits.rb
 ${GEM_LIBDIR}/lib/active_record/connection_adapters/abstract/database_statements.rb
 ${GEM_LIBDIR}/lib/active_record/connection_adapters/abstract/query_cache.rb
 ${GEM_LIBDIR}/lib/active_record/connection_adapters/abstract/quoting.rb
@@ -42,7 +44,6 @@
 ${GEM_LIBDIR}/lib/active_record/dynamic_finder_match.rb
 ${GEM_LIBDIR}/lib/active_record/dynamic_scope_match.rb
 ${GEM_LIBDIR}/lib/active_record/fixtures.rb
-${GEM_LIBDIR}/lib/active_record/i18n_interpolation_deprecation.rb
 ${GEM_LIBDIR}/lib/active_record/locale/en.yml
 ${GEM_LIBDIR}/lib/active_record/locking/optimistic.rb
 ${GEM_LIBDIR}/lib/active_record/locking/pessimistic.rb
@@ -87,6 +88,7 @@
 ${GEM_LIBDIR}/test/cases/associations/has_one_associations_test.rb
 ${GEM_LIBDIR}/test/cases/associations/has_one_through_associations_test.rb
 ${GEM_LIBDIR}/test/cases/associations/inner_join_association_test.rb
+${GEM_LIBDIR}/test/cases/associations/inverse_associations_test.rb
 ${GEM_LIBDIR}/test/cases/associations/join_model_test.rb
 ${GEM_LIBDIR}/test/cases/associations_test.rb
 ${GEM_LIBDIR}/test/cases/attribute_methods_test.rb
@@ -111,6 +113,7 @@
 ${GEM_LIBDIR}/test/cases/defaults_test.rb
 ${GEM_LIBDIR}/test/cases/deprecated_finder_test.rb
 ${GEM_LIBDIR}/test/cases/dirty_test.rb
+${GEM_LIBDIR}/test/cases/encoding_test.rb
 ${GEM_LIBDIR}/test/cases/finder_respond_to_test.rb
 ${GEM_LIBDIR}/test/cases/finder_test.rb
 ${GEM_LIBDIR}/test/cases/fixtures_test.rb
@@ -149,6 +152,7 @@
 ${GEM_LIBDIR}/test/cases/validations_i18n_test.rb
 ${GEM_LIBDIR}/test/cases/validations_test.rb
 ${GEM_LIBDIR}/test/cases/xml_serialization_test.rb
+${GEM_LIBDIR}/test/cases/yaml_serialization_test.rb
 ${GEM_LIBDIR}/test/config.rb
 ${GEM_LIBDIR}/test/connections/jdbc_jdbcderby/connection.rb
 ${GEM_LIBDIR}/test/connections/jdbc_jdbch2/connection.rb
@@ -192,6 +196,7 @@
 ${GEM_LIBDIR}/test/fixtures/developers_projects.yml
 ${GEM_LIBDIR}/test/fixtures/edges.yml
 ${GEM_LIBDIR}/test/fixtures/entrants.yml
+${GEM_LIBDIR}/test/fixtures/faces.yml
 ${GEM_LIBDIR}/test/fixtures/fixture_database.sqlite
 ${GEM_LIBDIR}/test/fixtures/fixture_database.sqlite3
 ${GEM_LIBDIR}/test/fixtures/fixture_database_2.sqlite
@@ -199,6 +204,7 @@
 ${GEM_LIBDIR}/test/fixtures/fk_test_has_fk.yml
 ${GEM_LIBDIR}/test/fixtures/fk_test_has_pk.yml
 ${GEM_LIBDIR}/test/fixtures/funny_jokes.yml
+${GEM_LIBDIR}/test/fixtures/interests.yml
 ${GEM_LIBDIR}/test/fixtures/items.yml
 ${GEM_LIBDIR}/test/fixtures/jobs.yml
 ${GEM_LIBDIR}/test/fixtures/legacy_things.yml
@@ -206,6 +212,7 @@
 ${GEM_LIBDIR}/test/fixtures/member_types.yml
 ${GEM_LIBDIR}/test/fixtures/members.yml
 ${GEM_LIBDIR}/test/fixtures/memberships.yml
+${GEM_LIBDIR}/test/fixtures/men.yml
 ${GEM_LIBDIR}/test/fixtures/minimalistics.yml
 ${GEM_LIBDIR}/test/fixtures/mixed_case_monkeys.yml
 ${GEM_LIBDIR}/test/fixtures/mixins.yml
@@ -243,6 +250,7 @@
 ${GEM_LIBDIR}/test/fixtures/treasures.yml
 ${GEM_LIBDIR}/test/fixtures/vertices.yml
 ${GEM_LIBDIR}/test/fixtures/warehouse-things.yml
+${GEM_LIBDIR}/test/fixtures/zines.yml
 ${GEM_LIBDIR}/test/migrations/broken/100_migration_that_raises_exception.rb
 ${GEM_LIBDIR}/test/migrations/decimal/1_give_me_big_numbers.rb
 ${GEM_LIBDIR}/test/migrations/duplicate/1_people_have_last_names.rb
@@ -288,12 +296,18 @@
 ${GEM_LIBDIR}/test/models/entrant.rb
 ${GEM_LIBDIR}/test/models/essay.rb
 ${GEM_LIBDIR}/test/models/event.rb
+${GEM_LIBDIR}/test/models/event_author.rb
+${GEM_LIBDIR}/test/models/face.rb
 ${GEM_LIBDIR}/test/models/guid.rb
+${GEM_LIBDIR}/test/models/interest.rb
+${GEM_LIBDIR}/test/models/invoice.rb
 ${GEM_LIBDIR}/test/models/item.rb
 ${GEM_LIBDIR}/test/models/job.rb
 ${GEM_LIBDIR}/test/models/joke.rb
 ${GEM_LIBDIR}/test/models/keyboard.rb
 ${GEM_LIBDIR}/test/models/legacy_thing.rb
+${GEM_LIBDIR}/test/models/line_item.rb
+${GEM_LIBDIR}/test/models/man.rb
 ${GEM_LIBDIR}/test/models/matey.rb
 ${GEM_LIBDIR}/test/models/member.rb
 ${GEM_LIBDIR}/test/models/member_detail.rb
@@ -329,6 +343,7 @@
 ${GEM_LIBDIR}/test/models/treasure.rb
 ${GEM_LIBDIR}/test/models/vertex.rb
 ${GEM_LIBDIR}/test/models/warehouse_thing.rb
+${GEM_LIBDIR}/test/models/zine.rb
 ${GEM_LIBDIR}/test/schema/mysql_specific_schema.rb
 ${GEM_LIBDIR}/test/schema/postgresql_specific_schema.rb
 ${GEM_LIBDIR}/test/schema/schema.rb

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->minskim
Responsible-Changed-By: minskim@NetBSD.org
Responsible-Changed-When: Wed, 09 Jun 2010 16:30:05 +0000
Responsible-Changed-Why:
I have updated the package.


State-Changed-From-To: open->closed
State-Changed-By: minskim@NetBSD.org
State-Changed-When: Wed, 09 Jun 2010 16:30:05 +0000
State-Changed-Why:
Updated.  Thank you for the patch!


From: Min Sik Kim <minskim@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43441 CVS commit: pkgsrc/databases/ruby-activerecord
Date: Wed, 9 Jun 2010 16:28:35 +0000

 Module Name:	pkgsrc
 Committed By:	minskim
 Date:		Wed Jun  9 16:28:35 UTC 2010

 Modified Files:
 	pkgsrc/databases/ruby-activerecord: Makefile PLIST distinfo

 Log Message:
 Update ruby-activerecord to 2.3.8.  Patch by Wen Heping in PR 43441.

 Changes:
 * Add index length support for MySQL. #1852 [Emili Parreno, Pratik Naik]
 * find_or_create_by_attr(value, ...) works when attr is protected.
   #4457 [Santiago Pastorino, Marc-Andr\xc3\xa9 Lafortune]
 * JSON supports a custom root option: to_json(:root => 'custom') #4515
   [Jatinder Singh]
 * Destroy uses optimistic locking. If lock_version on the record
   you're destroying doesn't match lock_version in the database, a
   StaleObjectError is raised.  #1966 [Curtis Hawthorne]
 * To prefix the table names of all models in a module, define
   self.table_name_pr efix on the module.  #4032 [Andrew White]
 * Association inverses for belongs_to, has_one, and
   has_many. Optimization to re duce database queries.  #3533 [Murray
   Steele]
 * MySQL: add_ and change_column support positioning.  #3286 [Ben Marini]
 * Reset your Active Record counter caches with the reset_counter_cache
   class method.  #1211 [Mike Breen, Gabe da Silveira]


 To generate a diff of this commit:
 cvs rdiff -u -r1.17 -r1.18 pkgsrc/databases/ruby-activerecord/Makefile \
     pkgsrc/databases/ruby-activerecord/distinfo
 cvs rdiff -u -r1.16 -r1.17 pkgsrc/databases/ruby-activerecord/PLIST

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.