diff --git a/metasploit-model.gemspec b/metasploit-model.gemspec index e26bb15..f0f1892 100644 --- a/metasploit-model.gemspec +++ b/metasploit-model.gemspec @@ -26,11 +26,13 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'e2mmap' # Dependency loading + # Rails 8.0 upgrade: widened from '~> 7.0' (which means >= 7.0, < 8.0) to + # '>= 7.0', '< 8.1' so this gem resolves with both Rails 7.x and 8.0. + # The old pessimistic constraint hard-blocked Bundler from pulling Rails 8. + spec.add_runtime_dependency 'activemodel', '>= 7.0', '< 8.1' + spec.add_runtime_dependency 'activesupport', '>= 7.0', '< 8.1' - spec.add_runtime_dependency 'activemodel', '~> 7.0' - spec.add_runtime_dependency 'activesupport', '~> 7.0' - - spec.add_runtime_dependency 'railties', '~> 7.0' + spec.add_runtime_dependency 'railties', '>= 7.0', '< 8.1' if RUBY_PLATFORM =~ /java/ # markdown formatting for yard diff --git a/spec/dummy/config/application.rb b/spec/dummy/config/application.rb index 4ffb3b7..9526bdb 100644 --- a/spec/dummy/config/application.rb +++ b/spec/dummy/config/application.rb @@ -41,6 +41,9 @@ class Application < Rails::Application # Enable escaping HTML in JSON. config.active_support.escape_html_entities_in_json = true + # Set cache format version for Rails 7.2+ compatibility + config.active_support.cache_format_version = 7.0 + end end