summaryrefslogtreecommitdiff
path: root/databases/ruby-sequel
diff options
context:
space:
mode:
authorwen <wen>2016-04-09 13:42:09 +0000
committerwen <wen>2016-04-09 13:42:09 +0000
commita88947acce8d2237b73c1a0d9b19c10c7a9dd8a1 (patch)
tree4a2fa0bd7180f9ca5e3758cf1bfdce2cd23d915b /databases/ruby-sequel
parentd5bd2e3076b955e5d1a5b94a46b1410f2c803a0b (diff)
downloadpkgsrc-a88947acce8d2237b73c1a0d9b19c10c7a9dd8a1.tar.gz
Update to 4.33.0
Upstream changes: 4.33.0.txt doc/release_notes/4.33.0.txt Last Update: 2016-04-01 07:24:12 -0700 New Features A Sequel::Model.require_valid_table accessor has been added. This setting is false for backwards compatibility, but if set to true, will raise an error you try to create a model class where an invalid table name is used or the schema or columns cannot be determined. This makes it easier to catch bugs, as things will fail fast, but it means that you must change code like: class Foo < Sequel::Model set_dataset :my_foos end to: class Foo < Sequel::Model(:my_foos) end as otherwise Foo will attempt to use the foos table by default when creating the class, which will raise an error as it is not the correct table name. Sequel::Database#transaction now supports a :savepoint=>:only option, which will create a savepoint if already inside a transaction, but will yield without creating a transaction if not inside a transaction. The use case for this is when you are running code that may raise an exception, and you don't want to invalidate the current transaction state. Other Improvements The graph_each extension now splits results into subhashes when using Sequel::Dataset#first, as it did before Sequel 4.27.0. On PostgreSQL, Dataset#insert_conflict now accepts an array of columns as the value for the :target option. You can now pass a Sequel::SQL::Identifier or a Sequel::SQL::QualifiedIdentifer as the table argument when creating a foreign key. Previously, only symbols were supported, and using other values required specifying the :table option. So this will now work to reference a table that includes a double underscore: foreign_key :foo_id, Sequel.identifier(:fo__oo) Creating model classes inside a transaction on PostgreSQL where the implicit table name isn't correct no longer causes the transaction to fail. Similar issues were also fixed in the boolean_readers, boolean_subsets, and class_table_inheritance plugins. On PostgreSQL, You can now use the :qualify=>true option in the schema dumper, to dump using schema-qualified table names. On Microsoft SQL Server, the set_column_allow_null and set_column_not_null alter table methods now work on varchar(max), text, and similar columns. On Oracle, Sequel::Database#sequence_for_table now returns nil if given a table that doesn't exist or that the user does not have access to. Passing arbitrary objects to a model association method now indicates that the association should be reloaded, which was used to work but was broken in Sequel 4.32.0. It is now possible to raise Sequel::ValidationFailed and Sequel::HookFailed without an argument. Backwards Compatibility Sequel::Model no longer swallows many errors when subclassing or setting datasets. While this should hopefully not affect backwards compatibility, it may break things where the methods were raising exceptions. If this does break backwards compatibility, it is most likely because it is no longer hiding another bug that should be fixed. Specific changes include: Model.inherited no longer rescues exceptions raised by set_dataset When subclassing a model that has a dataset, the columns and schema are just copied from the superclass Only Sequel::Error is rescued in calls to columns and schema, before it would rescue StandardError. The Sequel.firebird and Sequel.informix adapter methods have been removed, they are no longer needed as the firebird and informix adapters were removed a few versions back.
Diffstat (limited to 'databases/ruby-sequel')
-rw-r--r--databases/ruby-sequel/Makefile4
-rw-r--r--databases/ruby-sequel/PLIST3
-rw-r--r--databases/ruby-sequel/distinfo10
3 files changed, 9 insertions, 8 deletions
diff --git a/databases/ruby-sequel/Makefile b/databases/ruby-sequel/Makefile
index dd01def82d6..9faac2c5682 100644
--- a/databases/ruby-sequel/Makefile
+++ b/databases/ruby-sequel/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.43 2016/03/08 13:57:23 taca Exp $
+# $NetBSD: Makefile,v 1.44 2016/04/09 13:42:09 wen Exp $
-DISTNAME= sequel-4.32.0
+DISTNAME= sequel-4.33.0
CATEGORIES= databases
MAINTAINER= pkgsrc-users@NetBSD.org
diff --git a/databases/ruby-sequel/PLIST b/databases/ruby-sequel/PLIST
index fdff6e965f0..2ce48f649da 100644
--- a/databases/ruby-sequel/PLIST
+++ b/databases/ruby-sequel/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.40 2016/03/08 13:57:23 taca Exp $
+@comment $NetBSD: PLIST,v 1.41 2016/04/09 13:42:09 wen Exp $
bin/sequel${RUBY_SUFFIX}
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/CHANGELOG
@@ -121,6 +121,7 @@ ${GEM_LIBDIR}/doc/release_notes/4.3.0.txt
${GEM_LIBDIR}/doc/release_notes/4.30.0.txt
${GEM_LIBDIR}/doc/release_notes/4.31.0.txt
${GEM_LIBDIR}/doc/release_notes/4.32.0.txt
+${GEM_LIBDIR}/doc/release_notes/4.33.0.txt
${GEM_LIBDIR}/doc/release_notes/4.4.0.txt
${GEM_LIBDIR}/doc/release_notes/4.5.0.txt
${GEM_LIBDIR}/doc/release_notes/4.6.0.txt
diff --git a/databases/ruby-sequel/distinfo b/databases/ruby-sequel/distinfo
index e69969ff67b..c094db5d4fd 100644
--- a/databases/ruby-sequel/distinfo
+++ b/databases/ruby-sequel/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.41 2016/03/08 13:57:23 taca Exp $
+$NetBSD: distinfo,v 1.42 2016/04/09 13:42:09 wen Exp $
-SHA1 (sequel-4.32.0.gem) = 33278f4b744a9fec497052da925fabe238f5f3c6
-RMD160 (sequel-4.32.0.gem) = 11768050d8af8ac0e6acba5a9ff7281fb51daa57
-SHA512 (sequel-4.32.0.gem) = 8bc0b76d4cab4791b35ef80d3e0a7a268a5ca1ab74bd2f8545c3a24c6fd691adfb85fbada2151a573f425db0218571e5432b7e05b7d956b3432786d2d3bef364
-Size (sequel-4.32.0.gem) = 1340928 bytes
+SHA1 (sequel-4.33.0.gem) = 6f2fbd8bee461a1870db36caf52e58d2f75632e8
+RMD160 (sequel-4.33.0.gem) = dda06ac1921cf5460b3742153006bfc3d020bae3
+SHA512 (sequel-4.33.0.gem) = 16afd5181fb85554b8c5406511ba61b97ba8aceaae97d4e94e87ac066997925865b7dae517dd26dbef817144beda45f70101e4b512532bebd58c72c27e64241a
+Size (sequel-4.33.0.gem) = 1343488 bytes