Version in base suite: 0.1.7-1.1 Base version: ruby-rqrcode-rails3_0.1.7-1.1 Target version: ruby-rqrcode-rails3_0.1.7-1.1+deb11u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/r/ruby-rqrcode-rails3/ruby-rqrcode-rails3_0.1.7-1.1.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/r/ruby-rqrcode-rails3/ruby-rqrcode-rails3_0.1.7-1.1+deb11u1.dsc changelog | 7 +++++++ patches/rqrcode-1.x-compat.patch | 36 ++++++++++++++++++++++++++++++++++++ patches/series | 1 + 3 files changed, 44 insertions(+) diff -Nru ruby-rqrcode-rails3-0.1.7/debian/changelog ruby-rqrcode-rails3-0.1.7/debian/changelog --- ruby-rqrcode-rails3-0.1.7/debian/changelog 2021-01-05 15:22:02.000000000 +0000 +++ ruby-rqrcode-rails3-0.1.7/debian/changelog 2021-08-15 19:10:15.000000000 +0000 @@ -1,3 +1,10 @@ +ruby-rqrcode-rails3 (0.1.7-1.1+deb11u1) bullseye; urgency=medium + + * Fix for ruby-rqrcode 1.0 compatibility (Thanks to Florence Foo) + (Closes: #992040) + + -- Pirate Praveen Mon, 16 Aug 2021 00:40:15 +0530 + ruby-rqrcode-rails3 (0.1.7-1.1) unstable; urgency=medium * Non maintainer upload by the Reproducible Builds team. diff -Nru ruby-rqrcode-rails3-0.1.7/debian/patches/rqrcode-1.x-compat.patch ruby-rqrcode-rails3-0.1.7/debian/patches/rqrcode-1.x-compat.patch --- ruby-rqrcode-rails3-0.1.7/debian/patches/rqrcode-1.x-compat.patch 1970-01-01 00:00:00.000000000 +0000 +++ ruby-rqrcode-rails3-0.1.7/debian/patches/rqrcode-1.x-compat.patch 2021-08-15 19:10:15.000000000 +0000 @@ -0,0 +1,36 @@ +https://github.com/samvincent/rqrcode-rails3/compare/master...pandamouse:rqrcode-core-0.1.1.patch + +From bc86ea646010ab0e6d089d80f1533b7836315776 Mon Sep 17 00:00:00 2001 +From: Florence Foo +Date: Thu, 2 Jan 2020 17:07:55 +1100 +Subject: [PATCH 1/2] RQRCode.render_qrcode raises NoMethodError #21 + +- use RQRCodeCore + - is_dark? -> dark? +--- + lib/rqrcode-rails3.rb | 2 +- + lib/rqrcode-rails3/renderers/svg.rb | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- a/lib/rqrcode-rails3.rb ++++ b/lib/rqrcode-rails3.rb +@@ -15,7 +15,7 @@ + size = options[:size] || RQRCode.minimum_qr_size_from_string(string) + level = options[:level] || :h + +- qrcode = RQRCode::QRCode.new(string, :size => size, :level => level) ++ qrcode = RQRCodeCore::QRCode.new(string, :size => size, :level => level) + svg = RQRCode::Renderers::SVG::render(qrcode, options) + + if format && format == :svg +--- a/lib/rqrcode-rails3/renderers/svg.rb ++++ b/lib/rqrcode-rails3/renderers/svg.rb +@@ -28,7 +28,7 @@ + y = c*unit + offset + x = r*unit + offset + +- next unless qrcode.is_dark(c, r) ++ next unless qrcode.checked?(c, r) + tmp << %{} + end + result << tmp.join diff -Nru ruby-rqrcode-rails3-0.1.7/debian/patches/series ruby-rqrcode-rails3-0.1.7/debian/patches/series --- ruby-rqrcode-rails3-0.1.7/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ ruby-rqrcode-rails3-0.1.7/debian/patches/series 2021-08-15 19:10:15.000000000 +0000 @@ -0,0 +1 @@ +rqrcode-1.x-compat.patch