Skip to content

Commit

Permalink
Merge pull request #208 from jamiecobbett/jamie/rails-8.0-compatibility
Browse files Browse the repository at this point in the history
Support rails 8
  • Loading branch information
dejan authored Nov 13, 2024
2 parents 92eb70c + e8c9305 commit d39cd51
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
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

0 comments on commit d39cd51

Please sign in to comment.