pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/ruby-sequel/patches Add patches missing from...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/488c2dd0bbec
branches:  trunk
changeset: 541073:488c2dd0bbec
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Apr 14 21:46:11 2008 +0000

description:
Add patches missing from previous commit which updated ruby-sequel to
version 1.4.0.

diffstat:

 databases/ruby-sequel/patches/patch-aa |  20 ++++++++++++++++++++
 databases/ruby-sequel/patches/patch-ab |  18 ++++++++++++++++++
 2 files changed, 38 insertions(+), 0 deletions(-)

diffs (46 lines):

diff -r 029364477627 -r 488c2dd0bbec databases/ruby-sequel/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-sequel/patches/patch-aa    Mon Apr 14 21:46:11 2008 +0000
@@ -0,0 +1,20 @@
+$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 029364477627 -r 488c2dd0bbec databases/ruby-sequel/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-sequel/patches/patch-ab    Mon Apr 14 21:46:11 2008 +0000
@@ -0,0 +1,18 @@
+$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