--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock
Please unblock package ruby-rabl, version 0.13.0-2.
This version adds a patch from Gilles Filippini to fix FTBFS bug
#849315.
While globally patching BSON to expose the removed 'serialize'
method again might not be the nicest thing to do, I agree it's the
best thing to do for stretch. (Effect limited to users importing
ruby-rabl, very tiny change, no other packages appear to care about
the specifics.)
debdiff below.
Thanks,
-ch
unblock ruby-rabl/0.13.0-2
diff -Nru ruby-rabl-0.13.0/debian/changelog ruby-rabl-0.13.0/debian/changelog
--- ruby-rabl-0.13.0/debian/changelog 2016-08-24 10:43:46.000000000 +0000
+++ ruby-rabl-0.13.0/debian/changelog 2017-02-05 17:37:31.000000000 +0000
@@ -1,3 +1,13 @@
+ruby-rabl (0.13.0-2) unstable; urgency=medium
+
+ * Team upload.
+
+ [ Gilles Filippini ]
+ * def-bson-serialize.patch: reintroduce BSON.serialize method dropped
+ from ruby-bson since release 2.0.0 (Closes: #849315)
+
+ -- Christian Hofstaedtler <zeha@debian.org> Sun, 05 Feb 2017 17:37:31 +0000
+
ruby-rabl (0.13.0-1) unstable; urgency=medium
* Imported Upstream version 0.13.0
diff -Nru ruby-rabl-0.13.0/debian/patches/def-bson-serialize.patch ruby-rabl-0.13.0/debian/patches/def-bson-serialize.patch
--- ruby-rabl-0.13.0/debian/patches/def-bson-serialize.patch 1970-01-01 00:00:00.000000000 +0000
+++ ruby-rabl-0.13.0/debian/patches/def-bson-serialize.patch 2017-02-05 17:37:31.000000000 +0000
@@ -0,0 +1,36 @@
+Description: From ruby-bson upstream changelog [1]:
+ 2.0.0
+ Backwards Incompatible Changes
+ ...
+ BSON.serialize is no longer the entry point to serialize a BSON
+ document into its raw bytes.
+ For Ruby runtimes that support ordered hashes, you may simply call
+ `to_bson` on the hash instance (Alternatively a `BSON::Document` is
+ also a hash:
+ { key: "value" }.to_bson
+ BSON::Document[:key, "value"].to_bson
+ For Ruby runtimes that do not support ordered hashes, then you must
+ instantiate an instance of a `BSON::Document` (which is a subclass of
+ hash) and call `to_bson` on that, since the BSON specification
+ guarantees order of the fields:
+ BSON::Document[:key, "value"].to_bson
+ .
+ [1] https://github.com/mongodb/bson-ruby/blob/master/CHANGELOG.md
+ .
+ This patch re-introduces BSON.serialize.
+Author: Gilles Filippini <pini@debian.org>
+Bug-Debian: https://bugs.debian.org/849315
+Index: ruby-rabl-0.13.0/lib/rabl/configuration.rb
+===================================================================
+--- ruby-rabl-0.13.0.orig/lib/rabl/configuration.rb
++++ ruby-rabl-0.13.0/lib/rabl/configuration.rb
+@@ -7,6 +7,9 @@ end
+ # We load the bson library if it is available.
+ begin
+ require 'bson'
++ def BSON.serialize data
++ data.to_bson
++ end
+ rescue LoadError
+ end
+
diff -Nru ruby-rabl-0.13.0/debian/patches/series ruby-rabl-0.13.0/debian/patches/series
--- ruby-rabl-0.13.0/debian/patches/series 1970-01-01 00:00:00.000000000 +0000
+++ ruby-rabl-0.13.0/debian/patches/series 2017-02-05 17:37:31.000000000 +0000
@@ -0,0 +1 @@
+def-bson-serialize.patch
--- End Message ---
--- Begin Message ---
Christian Hofstaedtler:
> Package: release.debian.org
> Severity: normal
> User: release.debian.org@packages.debian.org
> Usertags: unblock
>
> Please unblock package ruby-rabl, version 0.13.0-2.
>
> This version adds a patch from Gilles Filippini to fix FTBFS bug
> #849315.
> While globally patching BSON to expose the removed 'serialize'
> method again might not be the nicest thing to do, I agree it's the
> best thing to do for stretch. (Effect limited to users importing
> ruby-rabl, very tiny change, no other packages appear to care about
> the specifics.)
>
> debdiff below.
>
> Thanks,
> -ch
>
>
> unblock ruby-rabl/0.13.0-2
>
> [...]
>
Unblocked, thanks.
~Niels
--- End Message ---