Merge pull request #556 from zarqman/dalli3-and-rails7

Add support for Rails 7.0
This commit is contained in:
Gonzalo 2022-01-29 16:02:28 -03:00 committed by GitHub
commit 3eca60dba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 1 deletions

View file

@ -25,6 +25,7 @@ jobs:
gemfile:
- rack_2
- rack_1
- rails_7_0
- rails_6_1
- rails_6_0
- rails_5_2
@ -59,6 +60,10 @@ jobs:
ruby: 2.7.5
- gemfile: rails_4_2
ruby: 2.7.5
- gemfile: rails_7_0
ruby: 2.6.9
- gemfile: rails_7_0
ruby: 2.5.8
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:

View file

@ -17,6 +17,10 @@ appraise "rack_1" do
gem "rack-test", ">= 0.6"
end
appraise 'rails_7-0' do
gem 'railties', '~> 7.0.0'
end
appraise 'rails_6-1' do
gem 'railties', '~> 6.1.0'
end

View file

@ -0,0 +1,7 @@
# This file was generated by Appraisal
source "https://rubygems.org"
gem "railties", "~> 7.0.0"
gemspec path: "../"

View file

@ -12,6 +12,10 @@ module Rack
store.is_a?(::ActiveSupport::Cache::MemCacheStore)
end
def read(name, options = {})
super(name, options.merge!(raw: true))
end
def write(name, value, options = {})
super(name, value, options.merge!(raw: true))
end

View file

@ -46,5 +46,5 @@ Gem::Specification.new do |s|
s.add_development_dependency 'byebug', '~> 11.0'
end
s.add_development_dependency 'railties', '>= 4.2', '< 6.2'
s.add_development_dependency 'railties', '>= 4.2', '< 7.1'
end