diff --git a/README.md b/README.md index 1f880e7..3ab9002 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ If you have a problem installing extension from Chrome Store or just want to run ## Supported environments -* Rails 5, 6 and 7 +* Rails 5, 6, 7 and 8 * Ruby 3 ## Licence diff --git a/meta_request/Dockerfile-rails-8.0 b/meta_request/Dockerfile-rails-8.0 new file mode 100644 index 0000000..18146fb --- /dev/null +++ b/meta_request/Dockerfile-rails-8.0 @@ -0,0 +1,36 @@ +FROM ruby:3.2-alpine + +RUN apk add --update --no-cache \ + build-base \ + curl-dev \ + git \ + nodejs \ + shared-mime-info \ + sqlite-dev \ + tzdata \ + yaml-dev \ + yarn \ + zlib-dev + +RUN mkdir /app /gem +WORKDIR /app + +RUN gem update --system 3.5.7 +RUN bundle config force_ruby_platform true +RUN gem install rails -v 8.0.0 +RUN rails new . + +COPY . /gem +RUN bundle add meta_request --path /gem +RUN bundle install + +COPY res/routes.rb /app/config/ +COPY res/dummy_controller.rb /app/app/controllers/ +COPY res/dummy /app/app/views/dummy +COPY res/meta_request_test.rb /app/test/integration/ + +RUN bundle exec rails db:migrate + +ENV PARALLEL_WORKERS 1 + +CMD ["bin/rake"] diff --git a/meta_request/docker-compose.yml b/meta_request/docker-compose.yml index 9ee56d0..305dee0 100644 --- a/meta_request/docker-compose.yml +++ b/meta_request/docker-compose.yml @@ -29,3 +29,7 @@ services: build: context: . dockerfile: Dockerfile-rails-7.2 + test-rails-8.0: + build: + context: . + dockerfile: Dockerfile-rails-8.0 diff --git a/meta_request/meta_request.gemspec b/meta_request/meta_request.gemspec index 4ab9552..b0b2b74 100644 --- a/meta_request/meta_request.gemspec +++ b/meta_request/meta_request.gemspec @@ -13,7 +13,7 @@ Gem::Specification.new do |gem| gem.license = 'MIT' gem.add_dependency 'rack-contrib', '>= 1.1', '< 3' - gem.add_dependency 'railties', '>= 3.0.0', '< 8' + gem.add_dependency 'railties', '>= 3.0.0', '< 9' gem.add_development_dependency 'rspec', '~> 3.8.0' gem.add_development_dependency 'rubocop', '~> 0.74.0'