diff options
author | jlam <jlam> | 2008-04-14 21:46:11 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-04-14 21:46:11 +0000 |
commit | 7e8f642f11531dd4ea1e55e7ed5621919ec0c5dc (patch) | |
tree | 02564fcc78c3008ae743940e128970cfb5a02d15 /databases/ruby-sequel | |
parent | 5640ac188c2ebab4deea71435900162347f133bb (diff) | |
download | pkgsrc-7e8f642f11531dd4ea1e55e7ed5621919ec0c5dc.tar.gz |
Add patches missing from previous commit which updated ruby-sequel to
version 1.4.0.
Diffstat (limited to 'databases/ruby-sequel')
-rw-r--r-- | databases/ruby-sequel/patches/patch-aa | 20 | ||||
-rw-r--r-- | databases/ruby-sequel/patches/patch-ab | 18 |
2 files changed, 38 insertions, 0 deletions
diff --git a/databases/ruby-sequel/patches/patch-aa b/databases/ruby-sequel/patches/patch-aa new file mode 100644 index 00000000000..b40bc8c1b71 --- /dev/null +++ b/databases/ruby-sequel/patches/patch-aa @@ -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 --git a/databases/ruby-sequel/patches/patch-ab b/databases/ruby-sequel/patches/patch-ab new file mode 100644 index 00000000000..fabf1df66ef --- /dev/null +++ b/databases/ruby-sequel/patches/patch-ab @@ -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 |