Skip to content

Commit

Permalink
Drop support for obsolete Rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
infertux committed Jan 17, 2023
1 parent feb396a commit c4f173f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
ruby-version: 3.2
bundler-cache: true # 'bundle install' and cache
- name: Run RuboCop
run: bundle exec rubocop --parallel
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
- '3.2'
- '3.1'
- '3.0'
- '2.7'
- '2.6'

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 5 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
require:
- rubocop-rake
- rubocop-rspec

AllCops:
TargetRubyVersion: 2.6
TargetRubyVersion: 3.0
NewCops: enable

Metrics:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014-2021 Cédric Félizard
Copyright (c) 2014-2023 Cédric Félizard

MIT License

Expand Down
6 changes: 4 additions & 2 deletions ordinalize_full.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = "ordinalize_full"
spec.version = "2.0.0"
spec.version = "3.0.0"
spec.authors = ["Cédric Félizard"]
spec.email = ["[email protected]"]
spec.summary = "Turns a number into an ordinal string such as first, second, third or 1st, 2nd, 3rd."
Expand All @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.6.6"
spec.required_ruby_version = ">= 3.0.0"

spec.add_dependency "i18n", "~> 1.8"

Expand All @@ -26,5 +26,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3"
spec.add_development_dependency "rubocop"
spec.add_development_dependency "rubocop-rake"
spec.add_development_dependency "rubocop-rspec"
spec.metadata["rubygems_mfa_required"] = "true"
end

0 comments on commit c4f173f

Please sign in to comment.