File rubygem-activerecord-2_1.spec of Package rubygem-activerecord-2_1
#
# spec file for package rubygem-activerecord-2_1 (Version 2.1.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: rubygem-activerecord-2_1
Version: 2.1.1
Release: 2
%define mod_name activerecord
#
Group: Development/Languages/Ruby
License: X11/MIT
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: rubygems_with_buildroot_patch
Requires: rubygems > 0.9.4
Provides: rubygem-%{mod_name} = %{version}-%{release}
# Obsoletes: rubygem-%{mod_name} < %{version}
BuildRequires: rubygem-activesupport-2_1 = 2.1.1
Requires: rubygem-activesupport-2_1 = 2.1.1
#
Url: http://rubyforge.org/projects/activerecord/
Source: http://rubyforge.org/frs/download.php/42603/activerecord-2.1.1.gem
#
Summary: Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM
%description
Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties
database tables and classes together for business objects, like
Customer or Subscription, that can find, save, and destroy themselves
without resorting to manual SQL.
Authors:
--------
rails development team
%prep
%build
%install
gem install --local --build-root=%{buildroot} %{S:0}
%{__rm} -v %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/lib/active_record/vendor/mysql.rb
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_name}-%{version}.gem
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_name}-%{version}.gemspec
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/
%changelog
* Fri Sep 12 2008 mrueckert@suse.de
- update to version 2.1.1:
* Set config.active_record.timestamped_migrations = false to have
migrations with numeric prefix instead of UTC timestamp.
[#446]. [Andrew Stone, Nik Wakelin]
* Fixed that create database statements would always include
"DEFAULT NULL" (Nick Sieger) [#334]
* change_column_default preserves the not-null constraint.
[#617] [Tarmo Tänav]
* Add :tokenizer option to validates_length_of to specify
how to split up the attribute string. #507. [David Lowenfels]
* Always treat integer :limit as byte length.
[#420] [Tarmo Tänav]
* Partial updates don't update lock_version if nothing changed.
[#426] [Daniel Morrison]
* Fix column collision with named_scope and :joins.
[#46] [Duncan Beevers, Mark Catley]
* db:migrate:down and :up update schema_migrations.
[#369] [Michael Raidel, RaceCondition]
* PostgreSQL: support :conditions => [':foo::integer',
{ :foo => 1 }] without treating the ::integer typecast as a
bind variable. [Tarmo Tänav]
* MySQL: rename_column preserves column defaults.
[#466] [Diego Algorta]
* Add :from option to calculations. #397 [Ben Munat]
* Add :validate option to associations to enable/disable the
automatic validation of associated models. Resolves #301.
[Jan De Poorter]
* PostgreSQL: use 'INSERT ... RETURNING id' for 8.2 and later.
[Jeremy Kemper]
* Added SQL escaping for :limit and :offset in MySQL
[Jonathan Wiess]
* Wed Jun 04 2008 mrueckert@suse.de
- update to version 2.1.0:
- better support for interleaved migrations
- many fixes for has many through
- named scopes
for all changes see
/usr/lib*/ruby/gems/1.8/gems/activerecord-2.1.0/CHANGELOG
- branched package from 2.0 package
* Thu Feb 21 2008 mrueckert@suse.de
- do not obsolete the old name as it leads to trouble on upgrade.
this will handled by the wrapper package.
* Thu Jan 17 2008 mrueckert@suse.de
- update to version 2.0.2:
the next major step in the rails development. for all changes see
/usr/lib*/ruby/gems/1.8/gems/activerecord-2.0.2/CHANGELOG
- branch off a package for the rails 2.0 branch
* Thu Jan 17 2008 mrueckert@suse.de
- update to version 1.15.6:
- Allow association redefinition in subclasses. #9346 [wildchild]
- Fix has_many :through delete with custom foreign keys.
[#6466] [naffis]
- Fix regression where the association would not construct new
finder SQL on save causing bogus queries for
"WHERE owner_id = NULL" even after owner was saved.
[#8713] [Bryan Helmkamp]
- additional changes from 1.15.(45):
- Depend on Action Pack 1.4.4
- Fix #count on a has_many :through association so that it
recognizes the :uniq option. Closes #8801 [lifofifo]
- Don't clobber includes passed to has_many.count [danger]
- Make sure has_many uses :include when counting [danger]
- Save associated records only if the association is already
loaded. #8713 [blaine]
- Changing the :default Date format doesn't break date quoting.
[#6312] [bshand, Elias]
- Allow nil serialized attributes with a set class constraint.
[#7293] [sandofsky]
- belongs_to assignment creates a new proxy rather than modifying
its target in-place. #8412 [mmangino@elevatedrails.com]
- Fix column type detection while loading fixtures. Closes #7987
[roderickvd]
- Document deep eager includes. #6267 [Josh Susser, Dan Manges]
- Oracle: extract column length for CHAR also. #7866 [ymendel]
- Small additions and fixes for ActiveRecord documentation.
Closes #7342 [jeremymcanally]
- SQLite: binary escaping works with $KCODE='u'. #7862 [tsuka]
- Improved cloning performance by relying less on exception
raising #8159 [Blaine]
- branch a rubygem-activerecord-1_15 to allow parallel installation
of multiple branches
* Mon May 14 2007 mrueckert@suse.de
- update to version 1.15.3:
* Allow a polymorphic :source for has_many :through associations.
Closes #7143 [protocool]
* Consistently quote primary key column names.
[#7763] [toolmantim]
* Fixtures: fix YAML ordered map support.
[#2665] [Manuel Holtgrewe, nfbuckley]
* Fix has_many :through << with custom foreign keys.
[#6466], #7153 [naffis, Rich Collins]
- additional changes from version 1.15.2:
* Pass a range in :conditions to use the SQL BETWEEN operator.
[#6974] [dcmanges]
Student.find(:all, :conditions => { :grade => 9..12 })
* Don't create instance writer methods for class attributes.
[Rick]
* When dealing with SQLite3, use the table_info pragma helper,
so that the bindings can do some translation for when sqlite3
breaks incompatibly between point releases. [Jamis Buck]
* SQLServer: don't choke on strings containing 'null'.
[#7083] [Jakob S]
* Consistently use LOWER() for uniqueness validations
(rather than mixing with UPPER()) so the database can always
use a functional index on the lowercased column. #6495 [Si]
* MySQL: SET SQL_AUTO_IS_NULL=0 so 'where id is null' doesn't
select the last inserted id. #6778 [Jonathan Viney, timc]
* Fixtures use the table name and connection from
set_fixture_class. #7330 [Anthony Eden]
* SQLServer: quote table name in indexes query.
[#2928] [keithm@infused.org]
* Wed Jan 24 2007 mrueckert@suse.de
- update to 1.15.1:
update for rails 1.2.1. Too many changes to mention them here.
See /usr/lib*/ruby/gems/1.8/gems/activerecord-1.15.1/CHANGELOG .
* Thu Aug 10 2006 mrueckert@suse.de
- update to version 1.14.4:
* Add warning about the proper way to validate the presence of
a foreign key. (rails:#4147)
[Francois Beausoleil <francois.beausoleil@gmail.com>]
* Fix syntax error in documentation.
(rails:#4679) [mislav@nippur.irb.hr]
* Update inconsistent migrations documentation. (rails:#4683)
[machomagna@gmail.com]
* Sat Jul 01 2006 mrueckert@suse.de
- update to version 1.14.3:
* Properly quote index names in migrations
(closes #4764) [John Long]
* Ensure that Associations#include_eager_conditions?
checks both scoped and explicit conditions [Rick]
* Associations#select_limited_ids_list adds the ORDER BY columns
to the SELECT DISTINCT List for postgresql. [Rick]
* Wed Jun 21 2006 mrueckert@suse.de
- use rubygems_with_buildroot_patch instead of the versioned
buildrequires
* Mon Jun 19 2006 mrueckert@suse.de
- Initial package version 1.14.2