Skip to content

Instantly share code, notes, and snippets.

@OddBloke
Last active March 13, 2018 18:14
Show Gist options
  • Save OddBloke/08f68c18f2f3d63a002f2c1a26a765ac to your computer and use it in GitHub Desktop.
Save OddBloke/08f68c18f2f3d63a002f2c1a26a765ac to your computer and use it in GitHub Desktop.
diff -Nru ruby-rgen-0.8.0/debian/changelog ruby-rgen-0.8.0/debian/changelog
--- ruby-rgen-0.8.0/debian/changelog 2016-06-01 17:47:14.000000000 -0400
+++ ruby-rgen-0.8.0/debian/changelog 2018-03-09 06:22:33.000000000 -0500
@@ -1,3 +1,10 @@
+ruby-rgen (0.8.0-1ubuntu1) bionic; urgency=medium
+
+ * debian/patches/fixnum_to_integer.patch: Fix tests to expect Integer
+ instead of Fixnum.
+
+ -- Daniel Watkins <daniel.watkins@canonical.com> Fri, 09 Mar 2018 12:22:33 +0100
+
ruby-rgen (0.8.0-1) unstable; urgency=medium
[ Cédric Boutillier ]
diff -Nru ruby-rgen-0.8.0/debian/control ruby-rgen-0.8.0/debian/control
--- ruby-rgen-0.8.0/debian/control 2016-06-01 17:47:14.000000000 -0400
+++ ruby-rgen-0.8.0/debian/control 2018-03-09 06:22:33.000000000 -0500
@@ -1,5 +1,6 @@
Source: ruby-rgen
-Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Uploaders: Stig Sandbeck Mathisen <ssm@debian.org>
Section: ruby
Priority: optional
diff -Nru ruby-rgen-0.8.0/debian/patches/fixnum_to_integer.patch ruby-rgen-0.8.0/debian/patches/fixnum_to_integer.patch
--- ruby-rgen-0.8.0/debian/patches/fixnum_to_integer.patch 1969-12-31 19:00:00.000000000 -0500
+++ ruby-rgen-0.8.0/debian/patches/fixnum_to_integer.patch 2018-03-09 06:22:27.000000000 -0500
@@ -0,0 +1,34 @@
+Description: Fix tests to expect Integer instead of Fixnum
+Author: Daniel Watkins <daniel.watkins@canonical.com>
+Forwarded: no
+Last-Update: 2018-03-09
+
+--- ruby-rgen-0.8.0.orig/test/metamodel_builder_test.rb
++++ ruby-rgen-0.8.0/test/metamodel_builder_test.rb
+@@ -186,7 +186,7 @@ class MetamodelBuilderTest < Test::Unit:
+ err = assert_raise StandardError do
+ sc.name = 5
+ end
+- assert_match /In (\w+::)+SimpleClass : Can not use a Fixnum where a String is expected/, err.message
++ assert_match /In (\w+::)+SimpleClass : Can not use a Integer where a String is expected/, err.message
+ assert_equal "EString", mm::SimpleClass.ecore.eAttributes.find{|a| a.name=="name"}.eType.name
+
+ assert_equal "xtest", sc.stringWithDefault
+@@ -288,7 +288,7 @@ class MetamodelBuilderTest < Test::Unit:
+ err = assert_raise(StandardError) do
+ o.addLiterals(1)
+ end
+- assert_match /In (\w+::)+ManyAttrClass : Can not use a Fixnum where a String is expected/, err.message
++ assert_match /In (\w+::)+ManyAttrClass : Can not use a Integer where a String is expected/, err.message
+
+ assert_equal [], o.literals
+ o.addLiterals("a")
+@@ -323,7 +323,7 @@ class MetamodelBuilderTest < Test::Unit:
+ err = assert_raise(StandardError) do
+ o.literals = 1
+ end
+- assert_match /In (\w+::)+ManyAttrClass : Can not use a Fixnum where a Enumerable is expected/, err.message
++ assert_match /In (\w+::)+ManyAttrClass : Can not use a Integer where a Enumerable is expected/, err.message
+
+ o.bools = [true, false, true, false]
+ assert_equal [true, false, true, false], o.bools
diff -Nru ruby-rgen-0.8.0/debian/patches/series ruby-rgen-0.8.0/debian/patches/series
--- ruby-rgen-0.8.0/debian/patches/series 1969-12-31 19:00:00.000000000 -0500
+++ ruby-rgen-0.8.0/debian/patches/series 2018-03-09 06:21:54.000000000 -0500
@@ -0,0 +1 @@
+fixnum_to_integer.patch
@nacc
Copy link

nacc commented Mar 13, 2018

ruby-parslet is fixed in debian (already synced to bionic)
ruby-powerpack sponsored
ruby-pygments.rb sponsored
ruby-rgen sponsored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment