Skip to content

Commit

Permalink
Merge pull request #322 from enriclluelles/feature/drop-eol-rubies
Browse files Browse the repository at this point in the history
Drop EOL Ruby support
  • Loading branch information
tagliala authored Dec 22, 2024
2 parents f7342eb + e845a5d commit e4fbb15
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 24 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3']
ruby-version: ['3.1', '3.2', '3.3']
gemfile: [rails_6.1, rails_7.0, rails_7.1, rails_7.2, rails_8.0]
channel: ['stable']

Expand All @@ -40,14 +40,6 @@ jobs:
channel: 'experimental'

exclude:
- ruby-version: '2.7'
gemfile: rails_7.2
- ruby-version: '2.7'
gemfile: rails_8.0
- ruby-version: '3.0'
gemfile: rails_7.2
- ruby-version: '3.0'
gemfile: rails_8.0
- ruby-version: '3.1'
gemfile: rails_8.0
- ruby-version: '3.2'
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require:

AllCops:
TargetRailsVersion: 6.1
TargetRubyVersion: 2.7
TargetRubyVersion: 3.1
NewCops: enable
DisplayStyleGuide: true
ExtraDetails: true
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 15.0.0 / unreleased

* [FEATURE] Drop Ruby < 3.1 support

## 14.2.0 / 2024-11-08

* [FEATURE] Rails 8.0 compatibility
Expand Down
18 changes: 10 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ gem 'byebug'
gem 'minitest'
gem 'rails'
gem 'rake'
gem 'rubocop'
gem 'rubocop-minitest'
gem 'rubocop-packaging'
gem 'rubocop-performance'
gem 'rubocop-rails'
gem 'rubocop-rake'
gem 'simplecov'
gem 'simplecov-lcov'

gem 'rubocop', require: false
gem 'rubocop-minitest', require: false
gem 'rubocop-packaging', require: false
gem 'rubocop-performance', require: false
gem 'rubocop-rails', require: false
gem 'rubocop-rake', require: false

gem 'simplecov', require: false
gem 'simplecov-lcov', require: false
2 changes: 1 addition & 1 deletion lib/route_translator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
module RouteTranslator
extend RouteTranslator::Host

TRANSLATABLE_SEGMENT = /^([-_a-zA-Z0-9]+)(\()?/.freeze
TRANSLATABLE_SEGMENT = /^([-_a-zA-Z0-9]+)(\()?/

DEFAULT_CONFIGURATION = {
available_locales: [],
Expand Down
2 changes: 1 addition & 1 deletion lib/route_translator/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RouteTranslator
VERSION = '14.2.0'
VERSION = '15.0.0'
end
2 changes: 1 addition & 1 deletion route_translator.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
spec.files = Dir.glob('{CHANGELOG.md,LICENSE,README.md,lib/**/*.rb}', File::FNM_DOTMATCH)
spec.require_paths = ['lib']

spec.required_ruby_version = '>= 2.7'
spec.required_ruby_version = '>= 3.1'

spec.add_dependency 'actionpack', '>= 6.1'
spec.add_dependency 'activesupport', '>= 6.1'
Expand Down
4 changes: 2 additions & 2 deletions test/support/routes_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module RouteTranslator
module RoutesHelper
def draw_routes(&block)
@routes.draw(&block)
def draw_routes(&)
@routes.draw(&)
if @routes.respond_to?(:install_helpers)
@routes.install_helpers
else
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ def initialize(env = {})
end
end

Dir[File.expand_path('support/*.rb', __dir__)].sort.each do |helper|
Dir[File.expand_path('support/*.rb', __dir__)].each do |helper|
require helper
end

0 comments on commit e4fbb15

Please sign in to comment.