pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/ruby-sequel Update databases/ruby-sequel to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/634b3205be73
branches:  trunk
changeset: 542014:634b3205be73
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Apr 29 18:39:02 2008 +0000

description:
Update databases/ruby-sequel to 1.5.0.  Changes from version 1.4.0 include:

* No longer depend on the assistance gem, merge the Inflector and
  Validations code

* Make the validation errors API compatible with Merb
* Add validates_uniqueness_of, for protecting against duplicate entries
  in the database

* Use reciprocal associations for all types of associations in the
  getter/setter/add_/remove_ methods
* Fix many_to_one associations to cache negative lookups
* Add eager loading of associations via new sequel_core object graphing
* Fix many_to_many associations with classes inside modules without an
  explicit join table

* Add the eager! and eager_graph! mutation methods to model datasets
* Add Model.def_dataset_method, for defining methods on the model that
  reference methods on the dataset
* Change Model#=== to always be false if the primary key is nil
* Add Model#hash, which should be unique for a given class and primary
  key (or values if primary key is nil)
* Make Model#reload clear any cached associations
* Fix Model#destroy so that it returns self, not the result of after_destroy
* Make Model#initialize, Model#set, and Model#update_with_params
  invulnerable to memory exhaustion
* Add Model.str_columns, which gives a list of columns as frozen strings

diffstat:

 databases/ruby-sequel/Makefile         |  12 +++---------
 databases/ruby-sequel/PLIST            |   7 +++++--
 databases/ruby-sequel/distinfo         |   8 ++++----
 databases/ruby-sequel/patches/patch-aa |  20 --------------------
 databases/ruby-sequel/patches/patch-ab |  18 ------------------
 5 files changed, 12 insertions(+), 53 deletions(-)

diffs (119 lines):

diff -r c589697e5b25 -r 634b3205be73 databases/ruby-sequel/Makefile
--- a/databases/ruby-sequel/Makefile    Tue Apr 29 18:02:43 2008 +0000
+++ b/databases/ruby-sequel/Makefile    Tue Apr 29 18:39:02 2008 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2008/04/13 06:56:30 jlam Exp $
+# $NetBSD: Makefile,v 1.3 2008/04/29 18:39:02 jlam Exp $
 
-DISTNAME=      sequel-1.4.0
+DISTNAME=      sequel-1.5.0
 PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME}
 CATEGORIES=    databases
 
@@ -8,13 +8,7 @@
 HOMEPAGE=      http://sequel.rubyforge.org/
 COMMENT=       Model classes for the Sequel Database Toolkit
 
-BUILD_DEPENDS+=        ${RUBY_PKGPREFIX}-rspec>=1.1.3:../../devel/ruby-rspec
-DEPENDS+=      ${RUBY_PKGPREFIX}-assistance>=0.1.2:../../devel/ruby-assistance
-DEPENDS+=      ${RUBY_PKGPREFIX}-sequel-core>=1.4.0:../../databases/ruby-sequel-core
-
-# Remove originals of patched files so they aren't included in the gem.
-pre-build:
-       find ${WRKSRC} -name "*.orig" | xargs rm -f
+DEPENDS+=      ${RUBY_PKGPREFIX}-sequel-core>=1.5.0:../../databases/ruby-sequel-core
 
 .include "../../misc/rubygems/rubygem.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r c589697e5b25 -r 634b3205be73 databases/ruby-sequel/PLIST
--- a/databases/ruby-sequel/PLIST       Tue Apr 29 18:02:43 2008 +0000
+++ b/databases/ruby-sequel/PLIST       Tue Apr 29 18:39:02 2008 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2008/04/13 06:56:30 jlam Exp $
+@comment $NetBSD: PLIST,v 1.3 2008/04/29 18:39:02 jlam Exp $
 ${GEM_HOME}/cache/sequel-${PKGVERSION}.gem
 ${GEM_LIBDIR}/CHANGELOG
 ${GEM_LIBDIR}/COPYING
@@ -9,10 +9,12 @@
 ${GEM_LIBDIR}/lib/sequel_model/associations.rb
 ${GEM_LIBDIR}/lib/sequel_model/base.rb
 ${GEM_LIBDIR}/lib/sequel_model/caching.rb
+${GEM_LIBDIR}/lib/sequel_model/deprecated.rb
 ${GEM_LIBDIR}/lib/sequel_model/eager_loading.rb
 ${GEM_LIBDIR}/lib/sequel_model/hooks.rb
+${GEM_LIBDIR}/lib/sequel_model/inflections.rb
+${GEM_LIBDIR}/lib/sequel_model/inflector.rb
 ${GEM_LIBDIR}/lib/sequel_model/plugins.rb
-${GEM_LIBDIR}/lib/sequel_model/pretty_table.rb
 ${GEM_LIBDIR}/lib/sequel_model/record.rb
 ${GEM_LIBDIR}/lib/sequel_model/schema.rb
 ${GEM_LIBDIR}/lib/sequel_model/validations.rb
@@ -22,6 +24,7 @@
 ${GEM_LIBDIR}/spec/deprecated_relations_spec.rb
 ${GEM_LIBDIR}/spec/eager_loading_spec.rb
 ${GEM_LIBDIR}/spec/hooks_spec.rb
+${GEM_LIBDIR}/spec/inflector_spec.rb
 ${GEM_LIBDIR}/spec/model_spec.rb
 ${GEM_LIBDIR}/spec/plugins_spec.rb
 ${GEM_LIBDIR}/spec/rcov.opts
diff -r c589697e5b25 -r 634b3205be73 databases/ruby-sequel/distinfo
--- a/databases/ruby-sequel/distinfo    Tue Apr 29 18:02:43 2008 +0000
+++ b/databases/ruby-sequel/distinfo    Tue Apr 29 18:39:02 2008 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2008/04/13 06:56:30 jlam Exp $
+$NetBSD: distinfo,v 1.3 2008/04/29 18:39:02 jlam Exp $
 
-SHA1 (sequel-1.4.0.gem) = d217f621460ae290399f196fe27403bc2154e07c
-RMD160 (sequel-1.4.0.gem) = 774fd51b86c5a92615ee315ee8cff9dfa69b23d8
-Size (sequel-1.4.0.gem) = 38912 bytes
+SHA1 (sequel-1.5.0.gem) = 2b4e7594ef3f3e01c34e10a9446d9302cd5ec02c
+RMD160 (sequel-1.5.0.gem) = 817751f46b2b5bee88cb3fdad160a4ae551a6b3c
+Size (sequel-1.5.0.gem) = 53248 bytes
 SHA1 (patch-aa) = d7c6dabee5fdb77570dac24499867293111bc646
 SHA1 (patch-ab) = b49325eb73bfe37af49010b0650a78f5bfe1b9d0
diff -r c589697e5b25 -r 634b3205be73 databases/ruby-sequel/patches/patch-aa
--- a/databases/ruby-sequel/patches/patch-aa    Tue Apr 29 18:02:43 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2008/04/14 21:46:11 jlam Exp $
-
---- lib/sequel_model/caching.rb.orig   2008-04-13 02:33:44.000000000 -0400
-+++ lib/sequel_model/caching.rb
-@@ -19,7 +19,7 @@ module Sequel
-       end
-       
-       class_def(:set) {|v| store.delete(cache_key); super}
--      class_def(:save) {store.delete(cache_key); super}
-+      class_def(:save) {store.delete(cache_key) unless new?; super}
-       class_def(:delete) {store.delete(cache_key); super}
-     end
-     
-@@ -39,4 +39,4 @@ module Sequel
-       "#{self}:#{values.join(',')}"
-     end
-   end
--end
-\ No newline at end of file
-+end
diff -r c589697e5b25 -r 634b3205be73 databases/ruby-sequel/patches/patch-ab
--- a/databases/ruby-sequel/patches/patch-ab    Tue Apr 29 18:02:43 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2008/04/14 21:46:11 jlam Exp $
-
---- spec/caching_spec.rb.orig  2008-04-13 02:33:44.000000000 -0400
-+++ spec/caching_spec.rb
-@@ -87,7 +87,12 @@ describe Sequel::Model, "caching" do
-     m.values[:id] = 1
-     proc {m.cache_key}.should_not raise_error(Sequel::Error)
-   end
--  
-+ 
-+  it "should not raise error if trying to save a new record" do
-+    proc {@c.new(:name=>'blah').save}.should_not raise_error
-+    proc {@c.create(:name=>'blah')}.should_not raise_error
-+  end
-+
-   it "should set the cache when reading from the database" do
-     $sqls.should == []
-     @cache.should be_empty



Home | Main Index | Thread Index | Old Index