Package: ruby-rabl / 0.17.0-1

Metadata

Package Version Patches format
ruby-rabl 0.17.0-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
def bson serialize.patch | (download)

lib/rabl/configuration.rb | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 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.
remove git from gemspec. | (download)

rabl.gemspec | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 remove git from gemspec

require array core ext.patch | (download)

lib/rabl.rb | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 add missing require
 Without this require, calling extract_options! will fail if the project using
 RABL didn't require the right bits from active_support by itself yet.