Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Update rails and ruby dependencies #22

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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: "../"
9 changes: 5 additions & 4 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 All @@ -39,6 +40,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rubocop-performance' # Linter for Performance optimization analysis
spec.add_development_dependency 'rubocop-rails' # Linter for Rails-specific analysis
spec.add_development_dependency 'shoulda-matchers' # RSpec matchers
spec.add_development_dependency 'sqlite3', '~> 1.4' # Database adapter
spec.add_development_dependency 'sqlite3' # Database adapter
spec.add_development_dependency 'timecop' # Freeze time to test time-dependent code
end
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
Loading