From d673b515d50469c80437534413e359356b392d9e Mon Sep 17 00:00:00 2001 From: Tim Kelly Date: Sun, 17 Mar 2024 13:30:05 -0500 Subject: [PATCH] Upgrade to Ruby3 --- .ruby-version | 2 +- CHANGELOG.md | 5 +++-- Gemfile | 24 +++++++++++++----------- onesie.gemspec | 4 ++-- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.ruby-version b/.ruby-version index 6a81b4c..818bd47 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.8 +3.0.6 diff --git a/CHANGELOG.md b/CHANGELOG.md index aa74570..751d34d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,11 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Added `.DS_Store` to `.gitignore` -- Added support for Rails version 5.2.8.1 and lower +- Added support for Rails > 5 ### Changed - Switch `colorize` gem for `rainbow` -- Upgrade project to Ruby 2.7.8 +- Upgrade project to Ruby 3.0.6 ### Deprecated @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Removed `bpdocs.yml` - Removed support for Ruby 2.6.x - Removed debugging dependencies +- Removed support for Rails 4.x ### Fixed - Fix documentation formatting for MKDocs diff --git a/Gemfile b/Gemfile index f2ca1dd..23792c2 100644 --- a/Gemfile +++ b/Gemfile @@ -4,14 +4,16 @@ source 'https://rubygems.org' gemspec -gem 'generator_spec', '~> 0.9' -gem 'guard', '~> 2.17' -gem 'guard-rspec', '~> 4.7' -gem 'guard-rubocop', '~> 1.5' -gem 'rake', '~> 13.0' -gem 'rspec', '~> 3.10' -gem 'rubocop', '~> 1.21' -gem 'rubocop-performance', '~> 1.11' -gem 'rubocop-rake', '~> 0.5' -gem 'rubocop-rspec', '~> 2.5' -gem 'sqlite3', '~> 1.3.13' +group :development, :test do + gem 'generator_spec', '~> 0.9' + gem 'guard', '~> 2.17' + gem 'guard-rspec', '~> 4.7' + gem 'guard-rubocop', '~> 1.5' + gem 'rake', '~> 13.0' + gem 'rspec', '~> 3.10' + gem 'rubocop', '~> 1.21' + gem 'rubocop-performance', '~> 1.11' + gem 'rubocop-rake', '~> 0.5' + gem 'rubocop-rspec', '~> 2.5' + gem 'sqlite3', '~> 1.3' +end diff --git a/onesie.gemspec b/onesie.gemspec index d19d4be..dbcaa9f 100644 --- a/onesie.gemspec +++ b/onesie.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.add_runtime_dependency 'activerecord', '>= 4.2.11.3', '<= 5.2.8.1' - spec.add_runtime_dependency 'railties', '>= 4.2.11.3', '<= 5.2.8.1' + spec.add_runtime_dependency 'activerecord', '> 5' + spec.add_runtime_dependency 'railties', '> 5' spec.add_runtime_dependency 'rainbow', '~> 3' end