Sascha Steinbiss pushed to branch master at Debian Med / ruby-rgfa
Commits: 242431c9 by Sascha Steinbiss at 2025-02-15T16:00:01+01:00 fix tests by adding patch to support Ruby 3.3 - - - - - 8b8b0b6a by Sascha Steinbiss at 2025-02-15T16:01:31+01:00 use ruby:Depends in d/control - - - - - d752bfd7 by Sascha Steinbiss at 2025-02-15T16:01:50+01:00 bump Standards-Version - - - - - c6126f57 by Sascha Steinbiss at 2025-02-15T16:02:17+01:00 bump d/copyright date for debian directory - - - - - 5 changed files: - debian/changelog - debian/control - debian/copyright - + debian/patches/ruby33.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,13 @@ +ruby-rgfa (1.3.1+dfsg-3) unstable; urgency=medium + + * Fix tests by adding patch to support Ruby 3.3. + Closes: #1092702 + * Use ruby:Depends in d/control. + * Bump Standards-Version. + * Bump d/copyright date for debian directory. + + -- Sascha Steinbiss <[email protected]> Sat, 15 Feb 2025 15:44:27 +0100 + ruby-rgfa (1.3.1+dfsg-2) unstable; urgency=medium * Team upload. ===================================== debian/control ===================================== @@ -8,18 +8,17 @@ Build-Depends: debhelper-compat (= 13), gem2deb, rake, asciidoctor -Standards-Version: 4.5.0 +Standards-Version: 4.7.0 Vcs-Browser: https://salsa.debian.org/med-team/ruby-rgfa Vcs-Git: https://salsa.debian.org/med-team/ruby-rgfa.git Homepage: https://github.com/ggonnella/rgfa Rules-Requires-Root: no -XS-Ruby-Versions: all Package: ruby-rgfa Architecture: all Section: ruby -XB-Ruby-Versions: ${ruby:Versions} -Depends: ruby | ruby-interpreter, +Depends: ruby, + ${ruby:Depends}, ${misc:Depends} Description: parse, edit and write GFA format graphs in Ruby The Graphical Fragment Assembly (GFA) format is a proposed file format ===================================== debian/copyright ===================================== @@ -13,7 +13,7 @@ Copyright: (c) 2016, Giorgio Gonnella, ZBH, University of Hamburg, Germany. License: CC-BY-SA-3.0 Files: debian/* -Copyright: 2016 Sascha Steinbiss <[email protected]> +Copyright: 2016-2025 Sascha Steinbiss <[email protected]> License: ISC Comment: the Debian packaging is licensed under the same terms as the original package. ===================================== debian/patches/ruby33.patch ===================================== @@ -0,0 +1,55 @@ +Description: enable support for Ruby 3.3 + Ruby 3.2/3.3 removed Object.trust and unified Fixnum/Bignum into Integer. +Author: Sascha Steinbiss <[email protected]> +Forwarded: https://github.com/ggonnella/rgfa/pull/6 +Last-Update: 2025-02-15 +--- a/lib/rgfa/byte_array.rb ++++ b/lib/rgfa/byte_array.rb +@@ -18,7 +18,6 @@ + "in array: #{self.inspect}" + end + end +- self.trust + return nil + end + +--- a/lib/rgfa/field_validator.rb ++++ b/lib/rgfa/field_validator.rb +@@ -242,6 +242,23 @@ + end + end + ++class Integer ++ # @!macro validate_gfa_field ++ def validate_gfa_field!(datatype, fieldname=nil) ++ if (datatype == :pos and self < 0) ++ raise RGFA::FieldParser::FormatError, ++ "Invalid content for field #{fieldname}\n"+ ++ "Content: #{self.inspect}\n"+ ++ "Datatype: #{datatype}" ++ elsif ![:i, :f, :Z].include?(datatype) ++ raise RGFA::FieldParser::FormatError, ++ "Wrong type (#{self.class}) for field #{fieldname}\n"+ ++ "Content: #{self.inspect}\n"+ ++ "Datatype: #{datatype}" ++ end ++ end ++end ++ + class RGFA::Line::Segment + # @!macro validate_gfa_field + def validate_gfa_field!(datatype, fieldname=nil) +--- a/lib/rgfa/field_writer.rb ++++ b/lib/rgfa/field_writer.rb +@@ -65,6 +65,11 @@ + def default_gfa_datatype; :J; end + end + ++class Integer ++ # @!macro gfa_datatype ++ def default_gfa_datatype; :i; end ++end ++ + class Array + # @!macro to_gfa_field + def to_gfa_field(datatype: default_gfa_datatype) ===================================== debian/patches/series ===================================== @@ -1 +1,2 @@ test_no_relative.patch +ruby33.patch View it on GitLab: https://salsa.debian.org/med-team/ruby-rgfa/-/compare/89eea2b46ac5bae39b7934ef3a46fe60914acbbd...c6126f5793a7927ce71e396a5ca2dbacf6490555 -- View it on GitLab: https://salsa.debian.org/med-team/ruby-rgfa/-/compare/89eea2b46ac5bae39b7934ef3a46fe60914acbbd...c6126f5793a7927ce71e396a5ca2dbacf6490555 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
