Run of fresh-releases for ruby-seed-fu

Merge these changes:

git pull https://janitor.debian.net/git/ruby-seed-fu fresh-releases/main
git pull https://janitor.debian.net/git/ruby-seed-fu fresh-releases/pristine-tar
git pull https://janitor.debian.net/git/ruby-seed-fu fresh-releases/upstream

Summary

Merged new upstream version: 2.3.9 (was: 2.3.7).

Diff

Branch: main

Diff is too long (more than 200 lines). Download the raw diff.

Branch: pristine-tar

diff --git a/ruby-seed-fu_2.3.9.orig.tar.gz.delta b/ruby-seed-fu_2.3.9.orig.tar.gz.delta
new file mode 100644
index 0000000..c82f8f7
Binary files /dev/null and b/ruby-seed-fu_2.3.9.orig.tar.gz.delta differ
diff --git a/ruby-seed-fu_2.3.9.orig.tar.gz.id b/ruby-seed-fu_2.3.9.orig.tar.gz.id
new file mode 100644
index 0000000..441cb43
--- /dev/null
+++ b/ruby-seed-fu_2.3.9.orig.tar.gz.id
@@ -0,0 +1 @@
+6baaaf18dc591d8cc3152c61ab7d5760df0f594d

Branch: upstream

Tag: upstream/2.3.9
diff --git a/CHANGELOG.md b/CHANGELOG.md
index baf714c..42b4a4a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+Version 2.3.8
+-------------
+
+Bug fixes:
+
+* Restored support for PostgreSQL with Rails versions before 5.0.0 broken in Seed Fu 2.3.7.
+
 Version 2.3.7
 -------------
 
diff --git a/lib/seed-fu/seeder.rb b/lib/seed-fu/seeder.rb
index def2a43..3a48393 100644
--- a/lib/seed-fu/seeder.rb
+++ b/lib/seed-fu/seeder.rb
@@ -91,7 +91,8 @@ module SeedFu
           quoted_id       = @model_class.connection.quote_column_name(@model_class.primary_key)
           sequence = @model_class.sequence_name
 
-          if @model_class.connection.postgresql_version >= 100000
+          # TODO postgresql_version was made public in Rails 5.0.0, remove #send when support for earlier versions are dropped
+          if @model_class.connection.send(:postgresql_version) >= 100000
             sql =<<-EOS
               SELECT setval('#{sequence}', (SELECT GREATEST(MAX(#{quoted_id})+(SELECT seqincrement FROM pg_sequence WHERE seqrelid = '#{sequence}'::regclass), (SELECT seqmin FROM pg_sequence WHERE seqrelid = '#{sequence}'::regclass)) FROM #{@model_class.quoted_table_name}), false)
             EOS
diff --git a/lib/seed-fu/version.rb b/lib/seed-fu/version.rb
index 65f7c65..d284b77 100644
--- a/lib/seed-fu/version.rb
+++ b/lib/seed-fu/version.rb
@@ -1,4 +1,4 @@
 module SeedFu
   # The current version of Seed Fu
-  VERSION = '2.3.7'
+  VERSION = '2.3.9'
 end

Publish Blockers

  • ☑ run was successful
  • ☑ package has not been removed from the archive
  • ☑ command has not changed
  • ☒ not yet reviewed, but review needed
  • ☑ 0 publish attempts so far.not currently attempting to back off
  • ☑ proposals not currently being rate-limited for maintainer pkg-ruby-extras-maintainers@lists.alioth.debian.org
  • ☑ change set b5dbdce9-cf12-4448-ad62-2d8843961145 is ready

Resulting package

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases ruby-seed-fu

Lintian Result

Full worker log Full build log