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

chore: mark as compatible with rails 7.1 #192

Closed
wants to merge 1 commit into from
Closed
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
24 changes: 13 additions & 11 deletions meta_request/Dockerfile-rails-7.0
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
FROM ruby:3.0-alpine
FROM ruby:3.0

RUN apk add --update --no-cache \
build-base \
curl-dev \
RUN apt-get update && \
apt-get install --yes --no-install-recommends \
libcurl4-openssl-dev \
git \
nodejs \
npm \
shared-mime-info \
sqlite-dev \
libsqlite3-dev \
tzdata \
yaml-dev \
yarn \
zlib-dev
libyaml-dev \
yarnpkg \
zlib1g-dev &&\
apt-get clean

RUN mkdir /app /gem
WORKDIR /app

RUN gem update --system
RUN gem install rails -v 7.0.4
RUN rails new .
RUN gem update --system && \
gem install rails -v 7.0.4 && |
rails new .

COPY . /gem
RUN bundle add meta_request --path /gem
Expand Down
37 changes: 37 additions & 0 deletions meta_request/Dockerfile-rails-7.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM ruby:3.2

RUN apt-get update && \
apt-get install --yes --no-install-recommends \
libcurl4-openssl-dev \
git \
nodejs \
npm \
shared-mime-info \
libsqlite3-dev \
tzdata \
libyaml-dev \
yarnpkg \
zlib1g-dev &&\
apt-get clean

RUN mkdir /app /gem
WORKDIR /app

RUN gem update --system && \
gem install rails -v 7.1.1 && |
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 @@ -21,3 +21,7 @@ services:
build:
context: .
dockerfile: Dockerfile-rails-7.0
test-rails-7.1:
build:
context: .
dockerfile: Dockerfile-rails-7.1
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', '< 7.1'
gem.add_dependency 'railties', '>= 3.0.0', '< 7.2'
gem.add_development_dependency 'rspec', '~> 3.8.0'
gem.add_development_dependency 'rubocop', '~> 0.74.0'

Expand Down