Skip to content

Commit 96684c7

Browse files
Upgrade to Ruby 3.2.2 (#46)
1 parent 0029d64 commit 96684c7

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.github/workflows/rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
1616

1717
- name: Set up Ruby
18-
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
18+
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939
1919
with:
2020
ruby-version: .ruby-version
2121
bundler-cache: true

.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.6
1+
3.2.2

Dockerfile

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
FROM ruby:2.6.6-alpine3.13 AS build
1+
FROM ruby:3.2.2-alpine3.18 AS build
22

33
RUN apk update && apk upgrade && \
44
apk add --no-cache git openssh build-base gcc wget git
55

6-
RUN gem install bundler -v 2.3.6
7-
86
COPY Gemfile Gemfile.lock .
97

8+
RUN gem install bundler:2.4.18 && \
9+
bundle config set without 'development test' && \
10+
bundle install
11+
1012
RUN bundle install
1113

12-
FROM ruby:2.6.6-alpine3.13 AS runtime
14+
FROM ruby:3.2.2-alpine3.18 AS runtime
1315

1416
RUN apk add --no-cache bash
1517

Gemfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GEM
77
json (2.6.3)
88
mandate (0.3.0)
99
method_source (1.0.0)
10-
minitest (5.14.2)
10+
minitest (5.19.0)
1111
minitest-stub-const (0.6)
1212
mocha (2.1.0)
1313
ruby2_keywords (>= 0.0.5)
@@ -67,4 +67,4 @@ DEPENDENCIES
6767
simplecov (~> 0.17.0)
6868

6969
BUNDLED WITH
70-
2.3.6
70+
2.4.18

test/represent_solution_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ def test_extracts_and_writes_code_correctly
66
ast = "some representation"
77
mapping = { foo: 'bar' }
88
representation = mock
9-
representation.stubs(ast: ast)
10-
representation.stubs(mapping: mapping)
9+
representation.stubs(ast:)
10+
representation.stubs(mapping:)
1111
representation.expects(:normalize!)
1212

1313
Representation.expects(:new).with(code).returns(representation)

0 commit comments

Comments
 (0)