From b6eadecf76dc1f291c0f3bb1da252e85cdf14008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20G=C3=B6tze?= Date: Tue, 26 Dec 2023 10:23:15 +0100 Subject: [PATCH] Require Ruby >=2.0, <4.0 --- .github/workflows/jruby.yml | 4 ++-- weka.gemspec | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/jruby.yml b/.github/workflows/jruby.yml index c8688eb..518167b 100644 --- a/.github/workflows/jruby.yml +++ b/.github/workflows/jruby.yml @@ -12,10 +12,10 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest, macos-latest, windows-latest ] - ruby: [ jruby-9.1.17.0, jruby-9.2.20.1, jruby-9.3.4.0 ] + ruby: [ jruby-9.3.13.0, jruby-9.4.5.0 ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} diff --git a/weka.gemspec b/weka.gemspec index 405430f..41ecc4e 100644 --- a/weka.gemspec +++ b/weka.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |spec| spec.license = 'MIT' spec.platform = 'java' - spec.required_ruby_version = '~> 2.0' + spec.required_ruby_version = '>= 2.0', '< 4.0' spec.files = Dir['**/{.*,*}'].reject { |f| f.match(%r{^((spec|jars|pkg)/|.*\.lock|lib/.*_jars\.rb)}) || File.directory?(f) } spec.bindir = 'bin' @@ -25,7 +25,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'bundler', '~> 2.0' spec.add_development_dependency 'rake', '~> 13.0' - spec.add_development_dependency 'rspec', '~> 3.11' + spec.add_development_dependency 'rspec', '~> 3.12' spec.add_runtime_dependency 'jar-dependencies', '~> 0.4.1' spec.requirements << 'jar nz.ac.waikato.cms.weka, weka-dev, 3.9.6'