Skip to content

Commit d78b012

Browse files
takaokoujiclaude
andcommitted
Change Rails 6.1-8.1 to use Ruby 3.1.5
Replace Ruby 3.2 with Ruby 3.1.5 for Rails 6.1-8.1 testing. This change will be validated by running tests on each version sequentially. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 5c90b83 commit d78b012

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

Dockerfile.ruby3.1

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Dockerfile for testing jsonapi-resources with Rails 6.1-8.1 (Ruby 3.1.5)
2+
3+
FROM ruby:3.1.5
4+
5+
# Install dependencies
6+
RUN apt-get update -qq && \
7+
apt-get install -y build-essential libpq-dev nodejs && \
8+
apt-get clean && \
9+
rm -rf /var/lib/apt/lists/*
10+
11+
# Set working directory
12+
WORKDIR /app
13+
14+
# Copy Gemfile and gemspec
15+
COPY Gemfile jsonapi-resources.gemspec ./
16+
COPY lib/jsonapi/resources/version.rb ./lib/jsonapi/resources/
17+
18+
# Install bundler
19+
RUN gem install bundler
20+
21+
# Note: bundle install will happen at runtime with specific RAILS_VERSION
22+
# This allows testing multiple Rails versions without rebuilding the image

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
services:
2-
# Base service definition for Ruby 3.2 (Rails 6.1-8.1)
2+
# Base service definition for Ruby 3.1.5 (Rails 6.1-8.1)
33
test-base: &test-base
44
build:
55
context: .
6-
dockerfile: Dockerfile
6+
dockerfile: Dockerfile.ruby3.1
77
volumes:
88
- .:/app
99
- bundle-cache:/usr/local/bundle
1010
working_dir: /app
1111
stdin_open: true
1212
tty: true
1313

14-
# Base service definition for Ruby 2.7 (Rails 5.1-7.0)
14+
# Base service definition for Ruby 2.7 (Rails 5.1-6.0)
1515
test-base-ruby27: &test-base-ruby27
1616
build:
1717
context: .

0 commit comments

Comments
 (0)