diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a0e096be..9a073678 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,7 +23,7 @@ jobs: - 3.1 - 3.2 - 3.3 - - jruby + - jruby-9 - truffleruby steps: - name: Checkout diff --git a/Appraisals b/Appraisals index 918e575c..630712ce 100644 --- a/Appraisals +++ b/Appraisals @@ -21,7 +21,9 @@ end appraise 'rails-6.1' do gem 'activerecord-jdbcsqlite3-adapter', '~> 61.1', platform: :jruby gem 'bootsnap', '>= 1.4.4' - gem 'rails', '6.1.7.6' + gem 'drb', '~> 2.2' if RUBY_VERSION >= '3.4' + gem 'mutex_m', '~> 0.2.0' if RUBY_VERSION >= '3.4' + gem 'rails', '6.1.7.10' gem 'rspec-rails', '~> 5.0' gem 'sqlite3', '~> 1.4', platform: :ruby gem 'psych', '>= 4' @@ -35,7 +37,9 @@ if RUBY_ENGINE == 'ruby' && RUBY_VERSION >= '2.7' gem 'activerecord-jdbcsqlite3-adapter', '~> 70.1', platform: :jruby gem 'sqlite3', '~> 1.6.4', platform: :ruby gem 'bootsnap', '>= 1.4.4' - gem 'rails', '7.0.8' + gem 'drb', '~> 2.2' if RUBY_VERSION >= '3.4' + gem 'mutex_m', '~> 0.2.0' if RUBY_VERSION >= '3.4' + gem 'rails', '7.0.8.7' gem 'rspec-rails', '~> 6.0.3' gem 'sprockets-rails', '~> 3.4.2' gem 'psych', '>= 4' @@ -45,7 +49,7 @@ if RUBY_ENGINE == 'ruby' && RUBY_VERSION >= '2.7' gem 'activerecord-jdbcsqlite3-adapter', '~> 70.1', platform: :jruby gem 'sqlite3', '~> 1.6.6', platform: :ruby gem 'bootsnap', '>= 1.16.0' - gem 'rails', '7.1.0' + gem 'rails', '7.1.5.1' gem 'rspec-rails', '~> 6.0.3' gem 'sprockets-rails', '~> 3.4.2' gem 'psych', '>= 4' diff --git a/config.gemspec b/config.gemspec index dfb0c2dc..89ccaaf2 100644 --- a/config.gemspec +++ b/config.gemspec @@ -30,11 +30,11 @@ Gem::Specification.new do |s| s.add_dependency 'deep_merge', '~> 1.2', '>= 1.2.1' s.add_dependency 'ostruct' - s.add_development_dependency 'dry-validation', *Config::DryValidationRequirements::VERSIONS s.add_development_dependency 'rake', '~> 12.0', '>= 12.0.0' # Testing s.add_development_dependency 'appraisal', '~> 2.5', '>= 2.5.0' + s.add_development_dependency 'dry-validation', *Config::DryValidationRequirements::VERSIONS s.add_development_dependency 'rspec', '~> 3.9', '>= 3.9.0' # Default RSpec run will test against latest Rails app diff --git a/gemfiles/rails_6.1.gemfile b/gemfiles/rails_6.1.gemfile index 98b26b00..e54e2587 100644 --- a/gemfiles/rails_6.1.gemfile +++ b/gemfiles/rails_6.1.gemfile @@ -4,7 +4,9 @@ source "https://rubygems.org" gem "activerecord-jdbcsqlite3-adapter", "~> 61.1", platform: :jruby gem "bootsnap", ">= 1.4.4" -gem "rails", "6.1.7.6" +gem "drb", "~> 2.2" +gem "mutex_m", "~> 0.2.0" +gem "rails", "6.1.7.10" gem "rspec-rails", "~> 5.0" gem "sqlite3", "~> 1.4", platform: :ruby gem "psych", ">= 4" diff --git a/gemfiles/rails_7.0.gemfile b/gemfiles/rails_7.0.gemfile index cd2643ce..8b4f31eb 100644 --- a/gemfiles/rails_7.0.gemfile +++ b/gemfiles/rails_7.0.gemfile @@ -5,7 +5,9 @@ source "https://rubygems.org" gem "activerecord-jdbcsqlite3-adapter", "~> 70.1", platform: :jruby gem "sqlite3", "~> 1.6.4", platform: :ruby gem "bootsnap", ">= 1.4.4" -gem "rails", "7.0.8" +gem "drb", "~> 2.2" +gem "mutex_m", "~> 0.2.0" +gem "rails", "7.0.8.7" gem "rspec-rails", "~> 6.0.3" gem "sprockets-rails", "~> 3.4.2" gem "psych", ">= 4" diff --git a/gemfiles/rails_7.1.gemfile b/gemfiles/rails_7.1.gemfile index 416cfea2..3e561123 100644 --- a/gemfiles/rails_7.1.gemfile +++ b/gemfiles/rails_7.1.gemfile @@ -5,7 +5,7 @@ source "https://rubygems.org" gem "activerecord-jdbcsqlite3-adapter", "~> 70.1", platform: :jruby gem "sqlite3", "~> 1.6.6", platform: :ruby gem "bootsnap", ">= 1.16.0" -gem "rails", "7.1.0" +gem "rails", "7.1.5.1" gem "rspec-rails", "~> 6.0.3" gem "sprockets-rails", "~> 3.4.2" gem "psych", ">= 4" diff --git a/lib/config/dry_validation_requirements.rb b/lib/config/dry_validation_requirements.rb index e1ddc5b5..54064ea9 100644 --- a/lib/config/dry_validation_requirements.rb +++ b/lib/config/dry_validation_requirements.rb @@ -14,9 +14,7 @@ def self.load_dry_validation! raise LoadError end rescue LoadError - raise ::Config::Error, 'Could not find a dry-validation version' \ - ' matching requirements' \ - " (#{VERSIONS.map(&:inspect) * ','})" + raise ::Config::Error, "Could not find a dry-validation version matching requirements (#{VERSIONS.map(&:inspect) * ','})" end require 'dry/validation' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ca0739e7..9becdaa4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -33,6 +33,7 @@ case app_framework when 'rails' # Load Rails + require 'logger' require_relative "app/#{app_name}/config/environment" APP_RAKEFILE = File.expand_path("../app/#{app_name}/Rakefile", __FILE__) diff --git a/spec/validation_spec.rb b/spec/validation_spec.rb index 204f55d9..d04fd6a0 100644 --- a/spec/validation_spec.rb +++ b/spec/validation_spec.rb @@ -1,5 +1,5 @@ require 'spec_helper' -require 'dry-validation' +require 'dry/validation' describe Config do context 'validation' do