Skip to content

Commit

Permalink
build: Update rails and ruby dependencies
Browse files Browse the repository at this point in the history
- Remove rails support 6.1
- Remove rails support 7.0
- Remove ruby support 3.1

- Add rails support 8.0
- Add ruby support 3.4
  • Loading branch information
KoenSengers committed Jan 10, 2025
1 parent 6d7a206 commit 3423f8b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 17 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ jobs:
fail-fast: false
matrix:
ruby:
- '3.1'
- '3.2'
- '3.3'
- '3.4'
gemfile:
- rails_6_1
- rails_7_0
- rails_7_1
- rails_7_2
- rails_8_0
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down
5 changes: 4 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require:
- rubocop-rails # Rails-specific analysis

AllCops:
TargetRubyVersion: 2.7
TargetRubyVersion: 3.2
NewCops: enable
Exclude:
- 'gemfiles/*'
Expand All @@ -30,6 +30,9 @@ Metrics/BlockLength:
- 'spec/**/*.rb' # Specs just have large blocks
- '*.gemspec' # Is just one block

Style/HashSyntax:
Enabled: false

# We publish the gem by using a GitHub Workflow so MFA is not used
Gemspec/RequireMFA:
Enabled: false
Expand Down
Binary file added gemfiles/.DS_Store
Binary file not shown.
8 changes: 0 additions & 8 deletions gemfiles/rails_6_1.gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion gemfiles/rails_7_0.gemfile → gemfiles/rails_8_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", "~> 8.0.0"

gemspec path: "../"
7 changes: 4 additions & 3 deletions keypairs.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ Gem::Specification.new do |spec|
MESSAGE
spec.description = spec.summary
spec.license = 'MIT'
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')

spec.required_ruby_version = '>= 3.2'

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/Drieam/keypairs'

spec.files = Dir['{app,db,lib}/**/*', 'LICENSE', 'README.md']

spec.add_dependency 'actionpack', '>= 6.0', '< 8' # Depend on actionpack to share public keys
spec.add_dependency 'activerecord', '>= 6.0', '< 8' # Depend on activerecord as ORM
spec.add_dependency 'actionpack', '>= 7.1', '< 9' # Depend on actionpack to share public keys
spec.add_dependency 'activerecord', '>= 7.1', '< 9' # Depend on activerecord as ORM
spec.add_dependency 'jwt', '~> 2.5' # Working with JSON Web Tokens
spec.add_dependency 'lockbox', '>= 1.3', '< 3.0' # Encrypt and decrypt attributes

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
require 'rspec/rails'

# Load support files
Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].sort.each { |f| require f }
Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each { |f| require f }

require 'keypairs'

Expand Down

0 comments on commit 3423f8b

Please sign in to comment.