Skip to content

Commit e8c9305

Browse files
committed
Add rails 8 to tests and loosen dependency in gemspec
1 parent 92eb70c commit e8c9305

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you have a problem installing extension from Chrome Store or just want to run
2323

2424
## Supported environments
2525

26-
* Rails 5, 6 and 7
26+
* Rails 5, 6, 7 and 8
2727
* Ruby 3
2828

2929
## Licence

meta_request/Dockerfile-rails-8.0

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM ruby:3.2-alpine
2+
3+
RUN apk add --update --no-cache \
4+
build-base \
5+
curl-dev \
6+
git \
7+
nodejs \
8+
shared-mime-info \
9+
sqlite-dev \
10+
tzdata \
11+
yaml-dev \
12+
yarn \
13+
zlib-dev
14+
15+
RUN mkdir /app /gem
16+
WORKDIR /app
17+
18+
RUN gem update --system 3.5.7
19+
RUN bundle config force_ruby_platform true
20+
RUN gem install rails -v 8.0.0
21+
RUN rails new .
22+
23+
COPY . /gem
24+
RUN bundle add meta_request --path /gem
25+
RUN bundle install
26+
27+
COPY res/routes.rb /app/config/
28+
COPY res/dummy_controller.rb /app/app/controllers/
29+
COPY res/dummy /app/app/views/dummy
30+
COPY res/meta_request_test.rb /app/test/integration/
31+
32+
RUN bundle exec rails db:migrate
33+
34+
ENV PARALLEL_WORKERS 1
35+
36+
CMD ["bin/rake"]

meta_request/docker-compose.yml

+4
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ services:
2929
build:
3030
context: .
3131
dockerfile: Dockerfile-rails-7.2
32+
test-rails-8.0:
33+
build:
34+
context: .
35+
dockerfile: Dockerfile-rails-8.0

meta_request/meta_request.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
1313
gem.license = 'MIT'
1414

1515
gem.add_dependency 'rack-contrib', '>= 1.1', '< 3'
16-
gem.add_dependency 'railties', '>= 3.0.0', '< 8'
16+
gem.add_dependency 'railties', '>= 3.0.0', '< 9'
1717
gem.add_development_dependency 'rspec', '~> 3.8.0'
1818
gem.add_development_dependency 'rubocop', '~> 0.74.0'
1919

0 commit comments

Comments
 (0)