From d52ab63080698a798e1b52bb33c1da9bad11c431 Mon Sep 17 00:00:00 2001 From: Adrien Siami Date: Sun, 24 Nov 2024 13:38:23 +0100 Subject: [PATCH] Drop support for unsupported ruby and rails versions --- .github/workflows/build.yml | 12 ------------ README.md | 4 ++-- gemfiles/Gemfile.activesupport-5.x | 5 ----- gemfiles/Gemfile.activesupport-6.x | 5 ----- working_hours.gemspec | 2 +- 5 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 gemfiles/Gemfile.activesupport-5.x delete mode 100644 gemfiles/Gemfile.activesupport-6.x diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86b7ace..09854f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,27 +7,15 @@ jobs: strategy: matrix: ruby_version: - - 2.7.8 - - 3.0.7 - 3.1.6 - 3.2.6 - 3.3.6 - jruby-9.4.9.0 gemfile: - - gemfiles/Gemfile.activesupport-5.x - - gemfiles/Gemfile.activesupport-6.x - gemfiles/Gemfile.activesupport-7.1.x - gemfiles/Gemfile.activesupport-7.2.x - gemfiles/Gemfile.activesupport-8.x exclude: - - gemfile: gemfiles/Gemfile.activesupport-7.2.x - ruby_version: 2.7.8 - - gemfile: gemfiles/Gemfile.activesupport-7.2.x - ruby_version: 3.0.7 - - gemfile: gemfiles/Gemfile.activesupport-8.x - ruby_version: 2.7.8 - - gemfile: gemfiles/Gemfile.activesupport-8.x - ruby_version: 3.0.7 - gemfile: gemfiles/Gemfile.activesupport-8.x ruby_version: 3.1.6 - gemfile: gemfiles/Gemfile.activesupport-8.x diff --git a/README.md b/README.md index 873691d..c16c3b8 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ A modern ruby gem allowing to do time calculation with working hours. Compatible and tested with: -- Ruby `2.7`, `3.0`, `3.1`, `3.2`, `3.3`, JRuby `9.4` -- ActiveSupport `5.x`, `6.x`, `7.x`, `8.x` +- Ruby `3.1`, `3.2`, `3.3`, JRuby `9.4` +- ActiveSupport `7.x`, `8.x` ## Installation diff --git a/gemfiles/Gemfile.activesupport-5.x b/gemfiles/Gemfile.activesupport-5.x deleted file mode 100644 index baf22f3..0000000 --- a/gemfiles/Gemfile.activesupport-5.x +++ /dev/null @@ -1,5 +0,0 @@ -source 'https://rubygems.org' - -gemspec :path => '..' - -gem 'activesupport', '~> 5.2' diff --git a/gemfiles/Gemfile.activesupport-6.x b/gemfiles/Gemfile.activesupport-6.x deleted file mode 100644 index 1cb6b87..0000000 --- a/gemfiles/Gemfile.activesupport-6.x +++ /dev/null @@ -1,5 +0,0 @@ -source 'https://rubygems.org' - -gemspec :path => '..' - -gem 'activesupport', '~> 6.1' diff --git a/working_hours.gemspec b/working_hours.gemspec index f001caa..3ded13f 100644 --- a/working_hours.gemspec +++ b/working_hours.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |spec| spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_dependency 'activesupport', '>= 3.2' + spec.add_dependency 'activesupport', '>= 7.0' spec.add_dependency 'tzinfo' spec.add_development_dependency 'bundler', '>= 1.5'