New Upstream Release - ruby-unf-ext

Ready changes

Summary

Merged new upstream version: 0.0.8.2.beta (was: 0.0.7.7).

Resulting package

Built on 2022-11-21T19:47 (took 4m45s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases ruby-unf-ext-dbgsymapt install -t fresh-releases ruby-unf-ext

Lintian Result

Diff

diff --git a/.github/workflows/unf_ext.yml b/.github/workflows/unf_ext.yml
new file mode 100644
index 0000000..3adb715
--- /dev/null
+++ b/.github/workflows/unf_ext.yml
@@ -0,0 +1,43 @@
+name: CI
+
+on: [push, pull_request]
+
+jobs:
+  build:
+    name: >-
+      ${{ matrix.os }} ${{ matrix.ruby }}
+
+    runs-on: ${{ matrix.os }}
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [ ubuntu-20.04, macos-11.0, windows-2019 ]
+        ruby: [ 2.6, 2.7, "3.0", 3.1, head ]
+        include:
+          - { os: windows-2019, ruby: mingw }
+        exclude:
+          - { os: windows-2019, ruby: head }
+
+    steps:
+      - name: repo checkout
+        uses: actions/checkout@v2
+
+      - name: load ruby cross-compilation toolkit
+        uses: MSP-Greg/setup-ruby-pkgs@v1
+        with:
+          ruby-version: ${{ matrix.ruby }}
+          mingw: _upgrade_
+
+      - name:  bundle install
+        shell: pwsh
+        run: |
+          bundle config set --local path .bundle/vendor
+          bundle install --jobs 4 --retry 3
+
+      - name: compile
+        timeout-minutes: 5
+        run: bundle exec rake compile
+
+      - name: test
+        timeout-minutes: 5
+        run: bundle exec rake test
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 904721d..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-language: ruby
-sudo: false
-rvm:
-  - 1.8.7
-  - ree
-  - 1.9.3
-  - 2.0
-  - 2.1
-  - 2.2
-  - 2.3
-  - 2.4
-  - 2.5
-  - 2.6
-  - 2.7
-  - ruby-head
-matrix:
-  allow_failures:
-    - rvm: ruby-head
-before_install:
-  - gem update --system --conservative || gem install --conservative bundler -v '<2'
-before_script:
-  - rake compile
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b3069a4..6b7657b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,20 @@
-## 0.0.7.7 (2019-03-19)
+## 0.0.8.2 (2022-04-13)
+
+- Add x64-mingw-ucrt native gem support for RubyInstaller 3.1.
+
+## 0.0.8.1 (2022-03-13)
+
+- Include Windows binaries for Ruby 3.1. (FAIL)
+
+## 0.0.8 (2021-09-14)
+
+- No functional change in the library code.
+- Include Windows binaries for Ruby 3.0.
+- Drop support for Ruby 2.1 and earlier.
+- Replace Travis CI with Github Actions.
+- Fix cross-build after upgrading rake-compiler/rake-compiler-dock to 1.1.1/1.1.0.
+
+## 0.0.7.7 (2020-03-30)
 
 - Include Windows binaries for Ruby 2.7.
 
diff --git a/Rakefile b/Rakefile
index cb3e8fa..6f67771 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,25 +1,31 @@
-# -*- coding: utf-8 -*-
 require 'bundler/gem_tasks'
 
 gemspec = Bundler::GemHelper.gemspec
 
+native_platforms = %w[
+  x86-mingw32
+  x64-mingw32
+  x64-mingw-ucrt
+]
+
 require 'rake/extensiontask'
 Rake::ExtensionTask.new('unf_ext', gemspec) do |ext|
   ext.cross_compile = true
-  ext.cross_platform = %w[x86-mingw32 x64-mingw32]
+  ext.cross_platform = native_platforms
   ext.cross_config_options << '--with-ldflags="-static-libgcc"' << '--with-static-libstdc++'
 end
 
 namespace :gem do
   task :native do
     require 'rake_compiler_dock'
-    RakeCompilerDock.sh "(bundle --local --quiet || bundle) && rake cross native gem"
+    sh 'bundle package --all'
+    native_platforms.each do |plat|
+      RakeCompilerDock.sh "bundle --local && rake native:#{plat} gem", platform: plat
+    end
   end
-
-  task :all => [:build, :native]
 end
 
-task :gems => :'gem:all'
+task :gems => %i[build gem:native]
 
 require 'rake/testtask'
 Rake::TestTask.new(:test) do |test|
diff --git a/debian/changelog b/debian/changelog
index 03b9d83..a7e7838 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ruby-unf-ext (0.0.8.2.beta-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Mon, 21 Nov 2022 19:42:53 -0000
+
 ruby-unf-ext (0.0.7.7-1) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/patches/0001-Drop-Bundler-depndencies.patch b/debian/patches/0001-Drop-Bundler-depndencies.patch
index 3c55287..eaccb96 100644
--- a/debian/patches/0001-Drop-Bundler-depndencies.patch
+++ b/debian/patches/0001-Drop-Bundler-depndencies.patch
@@ -8,10 +8,10 @@ Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>
  test/helper.rb | 9 ---------
  1 file changed, 9 deletions(-)
 
-diff --git a/test/helper.rb b/test/helper.rb
-index 2f7bd8a..ac27407 100644
---- a/test/helper.rb
-+++ b/test/helper.rb
+Index: ruby-unf-ext.git/test/helper.rb
+===================================================================
+--- ruby-unf-ext.git.orig/test/helper.rb
++++ ruby-unf-ext.git/test/helper.rb
 @@ -1,12 +1,3 @@
 -require 'rubygems'
 -require 'bundler'
diff --git a/debian/patches/0002-force-using-CXX-instead-of-CC.patch b/debian/patches/0002-force-using-CXX-instead-of-CC.patch
index 428e4e8..f7cc2ca 100644
--- a/debian/patches/0002-force-using-CXX-instead-of-CC.patch
+++ b/debian/patches/0002-force-using-CXX-instead-of-CC.patch
@@ -7,9 +7,11 @@ Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>
  ext/unf_ext/extconf.rb | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
---- a/ext/unf_ext/extconf.rb
-+++ b/ext/unf_ext/extconf.rb
-@@ -10,9 +10,9 @@
+Index: ruby-unf-ext.git/ext/unf_ext/extconf.rb
+===================================================================
+--- ruby-unf-ext.git.orig/ext/unf_ext/extconf.rb
++++ ruby-unf-ext.git/ext/unf_ext/extconf.rb
+@@ -30,9 +30,9 @@ create_makefile 'unf_ext'
  
  unless CONFIG['CXX']
    case CONFIG['CC']
diff --git a/debian/patches/0003-Replace-git-execution-in-gemspec.patch b/debian/patches/0003-Replace-git-execution-in-gemspec.patch
index 5b04838..4cb7c0c 100644
--- a/debian/patches/0003-Replace-git-execution-in-gemspec.patch
+++ b/debian/patches/0003-Replace-git-execution-in-gemspec.patch
@@ -7,9 +7,11 @@ Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>
  unf_ext.gemspec | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
---- a/unf_ext.gemspec
-+++ b/unf_ext.gemspec
-@@ -13,7 +13,7 @@
+Index: ruby-unf-ext.git/unf_ext.gemspec
+===================================================================
+--- ruby-unf-ext.git.orig/unf_ext.gemspec
++++ ruby-unf-ext.git/unf_ext.gemspec
+@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
    gem.homepage      = "https://github.com/knu/ruby-unf_ext"
    gem.licenses      = ["MIT"]
  
diff --git a/lib/unf_ext/version.rb b/lib/unf_ext/version.rb
index 85b23dd..707c3e1 100644
--- a/lib/unf_ext/version.rb
+++ b/lib/unf_ext/version.rb
@@ -1,5 +1,5 @@
 module UNF
   class Normalizer
-    VERSION = "0.0.7.7"
+    VERSION = "0.0.8.2.beta"
   end
 end
diff --git a/test/test_unf_ext.rb b/test/test_unf_ext.rb
index 2476672..45b03e9 100644
--- a/test/test_unf_ext.rb
+++ b/test/test_unf_ext.rb
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 require 'helper'
 require 'pathname'
 
diff --git a/unf_ext.gemspec b/unf_ext.gemspec
index aebaeae..abe0cd2 100644
--- a/unf_ext.gemspec
+++ b/unf_ext.gemspec
@@ -1,4 +1,3 @@
-# -*- encoding: utf-8 -*-
 lib = File.expand_path('../lib', __FILE__)
 $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
 require 'unf_ext/version'
@@ -24,19 +23,12 @@ Gem::Specification.new do |gem|
     "README.md"
   ]
 
-  if RUBY_VERSION < "1.9"
-    gem.add_development_dependency("rake", [">= 0.9.2.2", "< 11"])
-    gem.add_development_dependency('i18n', '< 0.7.0')
-    # Cap dependency on activesupport with < 4.0 on behalf of
-    # shoulda-matchers to satisfy bundler.
-    gem.add_development_dependency("activesupport", ["< 4.0"])
-    gem.add_development_dependency("test-unit", ["= 3.1.5"])
-  else
-    gem.add_development_dependency("rake", [">= 0.9.2.2"])
-    gem.add_development_dependency("test-unit")
-  end
+  gem.required_ruby_version = '>= 2.2'
+
+  gem.add_development_dependency("rake", [">= 0.9.2.2"])
+  gem.add_development_dependency("test-unit")
   gem.add_development_dependency("rdoc", ["> 2.4.2"])
   gem.add_development_dependency("bundler", [">= 1.2"])
-  gem.add_development_dependency("rake-compiler", [">= 0.7.9"])
-  gem.add_development_dependency("rake-compiler-dock", [">= 1.0.1"])
+  gem.add_development_dependency("rake-compiler", [">= 1.1.1"])
+  gem.add_development_dependency("rake-compiler-dock", [">= 1.2.1"])
 end

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in second set of .debs but not in first

-rw-r--r--  root/root   /usr/lib/debug/.build-id/77/1edd9bf46165d01c26387c67d5d57426a38b0a.debug
-rw-r--r--  root/root   /usr/lib/debug/.build-id/8e/06bcfd9dfac5dbd53deb38e755149ffbbf21f7.debug
-rw-r--r--  root/root   /usr/lib/debug/.dwz/x86_64-linux-gnu/ruby-unf-ext.debug
-rw-r--r--  root/root   /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.0.0/unf_ext.so
-rw-r--r--  root/root   /usr/share/rubygems-integration/3.0.0/specifications/unf_ext-0.0.8.2.beta.gemspec
-rw-r--r--  root/root   /usr/share/rubygems-integration/3.1.0/specifications/unf_ext-0.0.8.2.beta.gemspec

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/lib/debug/.build-id/fa/e53cdfdcdfb5621af8dbd5acfcc837bdff9dde.debug
-rw-r--r--  root/root   /usr/share/rubygems-integration/3.1.0/specifications/unf_ext-0.0.7.7.gemspec

Control files of package ruby-unf-ext: lines which differ (wdiff format)

  • Depends: ruby | ruby-interpreter, libc6 (>= 2.4), libgcc-s1 (>= 3.0), libstdc++6 (>= 5.2), libruby3.0 (>= 3.0.0~preview1) | libruby3.1 (>= 3.1.0~preview1), libruby (>= 1:3.0~0) | libruby (>= 1:3.1~0), libruby (<< 1:3.2~)
  • Ruby-Versions: ruby3.0 ruby3.1

Control files of package ruby-unf-ext-dbgsym: lines which differ (wdiff format)

  • Build-Ids: fae53cdfdcdfb5621af8dbd5acfcc837bdff9dde 771edd9bf46165d01c26387c67d5d57426a38b0a 8e06bcfd9dfac5dbd53deb38e755149ffbbf21f7
  • Ruby-Versions: ruby3.0 ruby3.1

More details

Full run details