Skip to content

Commit

Permalink
Add Ruby 3.3.0 and Drop Rails 6.0 and Ruby 2.7 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
gremerritt authored Jan 5, 2024
1 parent 70960f7 commit f68a534
Show file tree
Hide file tree
Showing 59 changed files with 30 additions and 892 deletions.
30 changes: 12 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ version: 2.1
jobs:
lint:
docker:
- image: cimg/ruby:2.7.8
- image: cimg/ruby:3.0.6
working_directory: ~/safer_rails_console
steps:
- checkout
- restore_cache:
keys:
- v2-gems-ruby-2.7.8-{{ checksum "safer_rails_console.gemspec" }}-{{ checksum "Gemfile" }}
- v2-gems-ruby-2.7.8-
- v2-gems-ruby-3.0.6-{{ checksum "safer_rails_console.gemspec" }}-{{ checksum "Gemfile" }}
- v2-gems-ruby-3.0.6-
- run:
name: Install Gems
command: |
Expand All @@ -18,7 +18,7 @@ jobs:
bundle clean
fi
- save_cache:
key: v2-gems-ruby-2.7.8-{{ checksum "safer_rails_console.gemspec" }}-{{ checksum "Gemfile" }}
key: v2-gems-ruby-3.0.6-{{ checksum "safer_rails_console.gemspec" }}-{{ checksum "Gemfile" }}
paths:
- "vendor/bundle"
- "gemfiles/vendor/bundle"
Expand All @@ -36,7 +36,7 @@ jobs:
environment:
CIRCLE_TEST_REPORTS: "test-results"
BUNDLE_GEMFILE: "/home/circleci/safer_rails_console/<< parameters.gemfile >>"
- image: cimg/postgres:12.9
- image: cimg/postgres:14.7
environment:
POSTGRES_USER: "circleci"
POSTGRES_DB: "safer_rails_console_test"
Expand Down Expand Up @@ -74,17 +74,11 @@ workflows:
matrix:
parameters:
ruby_version:
- "2.7.8"
- "3.0.6"
- "3.1.4"
- "3.2.2"
- 3.0.6
- 3.1.4
- 3.2.2
- 3.3.0
gemfile:
- "gemfiles/6.0.gemfile"
- "gemfiles/6.1.gemfile"
- "gemfiles/7.0.gemfile"
- "gemfiles/7.1.gemfile"
exclude:
- ruby_version: "3.1.4"
gemfile: "gemfiles/6.0.gemfile"
- ruby_version: "3.2.2"
gemfile: "gemfiles/6.0.gemfile"
- gemfiles/6.1.gemfile
- gemfiles/7.0.gemfile
- gemfiles/7.1.gemfile
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ inherit_gem:
salsify_rubocop: conf/rubocop_rails.yml

AllCops:
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0
Exclude:
- 'vendor/**/*'
- 'gemfiles/**/*'
Expand Down
10 changes: 3 additions & 7 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
# frozen_string_literal: true

appraise '6.0' do
gem 'rails', '~> 6.0.0'
end

appraise '6.1' do
gem 'rails', '~> 6.1.0'
gem 'rails', '~> 6.1.7.6'
end

appraise '7.0' do
gem 'rails', '~> 7.0.0'
gem 'rails', '~> 7.0.8'
end

appraise '7.1' do
gem 'rails', '~> 7.1.0'
gem 'rails', '~> 7.1.2'
end
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.8.0
- Drop support for Ruby 2.7.
- Drop support for Rails 6.0.
- Add support for Ruby 3.3.

## v0.7.0
- Add support for Rails 7.1.

Expand Down
7 changes: 0 additions & 7 deletions gemfiles/6.0.gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion gemfiles/6.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "https://rubygems.org"

gem "rails", "~> 6.1.0"
gem "rails", "~> 6.1.7.6"

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/7.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "https://rubygems.org"

gem "rails", "~> 7.0.0"
gem "rails", "~> 7.0.8"

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/7.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "https://rubygems.org"

gem "rails", "~> 7.1.0"
gem "rails", "~> 7.1.2"

gemspec path: "../"
2 changes: 1 addition & 1 deletion lib/safer_rails_console/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module SaferRailsConsole
VERSION = '0.7.0'
VERSION = '0.8.0'
end
4 changes: 2 additions & 2 deletions safer_rails_console.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.required_ruby_version = '>= 2.7'
spec.required_ruby_version = '>= 3.0'

spec.add_development_dependency 'appraisal', '~> 2.2'
spec.add_development_dependency 'bundler', '~> 2.0'
Expand All @@ -46,5 +46,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec_junit_formatter'
spec.add_development_dependency 'salsify_rubocop', '~> 1.27.0'

spec.add_runtime_dependency 'rails', '>= 6.0', '< 7.2'
spec.add_runtime_dependency 'rails', '>= 6.1', '< 7.2'
end
22 changes: 0 additions & 22 deletions spec/internal/rails_6_0/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions spec/internal/rails_6_0/Gemfile

This file was deleted.

24 changes: 0 additions & 24 deletions spec/internal/rails_6_0/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions spec/internal/rails_6_0/Rakefile

This file was deleted.

2 changes: 0 additions & 2 deletions spec/internal/rails_6_0/app/assets/config/manifest.js

This file was deleted.

15 changes: 0 additions & 15 deletions spec/internal/rails_6_0/app/assets/stylesheets/application.css

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions spec/internal/rails_6_0/app/helpers/application_helper.rb

This file was deleted.

4 changes: 0 additions & 4 deletions spec/internal/rails_6_0/app/jobs/application_job.rb

This file was deleted.

5 changes: 0 additions & 5 deletions spec/internal/rails_6_0/app/models/application_record.rb

This file was deleted.

4 changes: 0 additions & 4 deletions spec/internal/rails_6_0/app/models/model.rb

This file was deleted.

14 changes: 0 additions & 14 deletions spec/internal/rails_6_0/app/views/layouts/application.html.erb

This file was deleted.

5 changes: 0 additions & 5 deletions spec/internal/rails_6_0/bin/bundle

This file was deleted.

6 changes: 0 additions & 6 deletions spec/internal/rails_6_0/bin/rails

This file was deleted.

6 changes: 0 additions & 6 deletions spec/internal/rails_6_0/bin/rake

This file was deleted.

35 changes: 0 additions & 35 deletions spec/internal/rails_6_0/bin/setup

This file was deleted.

30 changes: 0 additions & 30 deletions spec/internal/rails_6_0/bin/update

This file was deleted.

7 changes: 0 additions & 7 deletions spec/internal/rails_6_0/config.ru

This file was deleted.

Loading

0 comments on commit f68a534

Please sign in to comment.