From b91ea721392b8de625af1b1c0be3a10b490d3b99 Mon Sep 17 00:00:00 2001 From: shields Date: Sun, 29 Aug 2021 14:55:06 +0900 Subject: [PATCH] - version bump to 0.0.7.8 - add Ruby 3.0 support - remove travis.yml - drop support for Ruby <= 2.1 (users on older Ruby can use an earlier version of this gem) - cleanup gempsec and add Ruby >= 2.2 condition to gemspec - remove unneeded magic comments (coding: utf-8) --- .github/workflows/unf_ext.yml | 16 ++++++------ .travis.yml | 13 ---------- CHANGELOG.md | 8 +++++- Rakefile | 1 - lib/unf_ext/version.rb | 2 +- test/test_unf_ext.rb | 1 - unf_ext.gemspec | 46 +++++++++++++---------------------- 7 files changed, 33 insertions(+), 54 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/unf_ext.yml b/.github/workflows/unf_ext.yml index e61aec6..205d767 100644 --- a/.github/workflows/unf_ext.yml +++ b/.github/workflows/unf_ext.yml @@ -12,19 +12,19 @@ jobs: fail-fast: false matrix: os: [ ubuntu-20.04, macos-11.0, windows-2019 ] - ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, head ] + ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 3.0, head ] include: - { os: windows-2019, ruby: mingw } exclude: - - { os: macos-11.0 , ruby: 2.2 } - - { os: macos-11.0 , ruby: 2.3 } - - { os: windows-2019, ruby: head } + - { os: macos-11.0, ruby: 2.2 } + - { os: macos-11.0, ruby: 2.3 } + - { os: windows-2019, ruby: head } steps: - name: repo checkout uses: actions/checkout@v2 - - name: load ruby, ragel + - name: load ruby cross-compilation toolkit uses: MSP-Greg/setup-ruby-pkgs@v1 with: ruby-version: ${{ matrix.ruby }} @@ -32,7 +32,7 @@ jobs: - name: bundle install shell: pwsh - run: | + run: | # update RubyGems in Ruby 2.2, bundle install if ('${{ matrix.ruby }}' -lt '2.3') { gem update --system 2.7.10 --no-document @@ -42,8 +42,8 @@ jobs: - name: compile timeout-minutes: 5 - run: bundle exec rake compile + run: bundle exec rake compile - name: test timeout-minutes: 5 - run: bundle exec rake test + run: bundle exec rake test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 663e0ac..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: ruby -sudo: false -rvm: - - 1.8.7 - - ree - - 1.9.3 - - 2.0 - - 2.1 -matrix: -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..b3f9f54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ -## 0.0.7.7 (2019-03-19) +## 0.0.7.8 (2021-08-29) + +- Include Windows binaries for Ruby 3.0. +- Drop support for Ruby 2.1 and earlier. +- Replace Travis CI with Github Actions. + +## 0.0.7.7 (2020-03-30) - Include Windows binaries for Ruby 2.7. diff --git a/Rakefile b/Rakefile index cb3e8fa..e70b778 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- require 'bundler/gem_tasks' gemspec = Bundler::GemHelper.gemspec diff --git a/lib/unf_ext/version.rb b/lib/unf_ext/version.rb index 85b23dd..f07a6e8 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.7.8" 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..3218abc 100644 --- a/unf_ext.gemspec +++ b/unf_ext.gemspec @@ -1,42 +1,30 @@ -# -*- encoding: utf-8 -*- lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'unf_ext/version' Gem::Specification.new do |gem| - gem.name = "unf_ext" + gem.name = 'unf_ext' gem.version = UNF::Normalizer::VERSION - gem.authors = ["Takeru Ohta", "Akinori MUSHA"] - gem.email = ["knu@idaemons.org"] - gem.description = %q{Unicode Normalization Form support library for CRuby} - gem.summary = %q{Unicode Normalization Form support library for CRuby} - gem.homepage = "https://github.com/knu/ruby-unf_ext" - gem.licenses = ["MIT"] + gem.authors = ['Takeru Ohta', 'Akinori MUSHA'] + gem.email = ['knu@idaemons.org'] + gem.description = 'Unicode Normalization Form support library for CRuby' + gem.summary = 'Unicode Normalization Form support library for CRuby' + gem.homepage = 'https://github.com/knu/ruby-unf_ext' + gem.licenses = ['MIT'] gem.files = `git ls-files`.split($/) gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } gem.test_files = gem.files.grep(%r{^(test|spec|features)/}).grep(%r{/test_[^/]+\.rb$}) - gem.require_paths = ["lib"] - gem.extensions = ["ext/unf_ext/extconf.rb"] + gem.require_paths = ['lib'] + gem.extensions = ['ext/unf_ext/extconf.rb'] + gem.extra_rdoc_files = %w[LICENSE.txt README.md] - gem.extra_rdoc_files = [ - "LICENSE.txt", - "README.md" - ] + gem.required_ruby_version = '>= 2.2' - 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.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', ['>= 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']) end