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

Support rails 8 #208

Merged
merged 1 commit into from
Nov 13, 2024
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 36 additions & 0 deletions meta_request/Dockerfile-rails-8.0
Original file line number Diff line number Diff line change
@@ -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"]
4 changes: 4 additions & 0 deletions meta_request/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ services:
build:
context: .
dockerfile: Dockerfile-rails-7.2
test-rails-8.0:
build:
context: .
dockerfile: Dockerfile-rails-8.0
2 changes: 1 addition & 1 deletion meta_request/meta_request.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down