Skip to content

Commit

Permalink
Upgrade to Ruby 3.2.2 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Aug 15, 2023
1 parent 0029d64 commit 96684c7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9

- name: Set up Ruby
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939
with:
ruby-version: .ruby-version
bundler-cache: true
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.6
3.2.2
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
FROM ruby:2.6.6-alpine3.13 AS build
FROM ruby:3.2.2-alpine3.18 AS build

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

RUN gem install bundler -v 2.3.6

COPY Gemfile Gemfile.lock .

RUN gem install bundler:2.4.18 && \
bundle config set without 'development test' && \
bundle install

RUN bundle install

FROM ruby:2.6.6-alpine3.13 AS runtime
FROM ruby:3.2.2-alpine3.18 AS runtime

RUN apk add --no-cache bash

Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GEM
json (2.6.3)
mandate (0.3.0)
method_source (1.0.0)
minitest (5.14.2)
minitest (5.19.0)
minitest-stub-const (0.6)
mocha (2.1.0)
ruby2_keywords (>= 0.0.5)
Expand Down Expand Up @@ -67,4 +67,4 @@ DEPENDENCIES
simplecov (~> 0.17.0)

BUNDLED WITH
2.3.6
2.4.18
4 changes: 2 additions & 2 deletions test/represent_solution_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def test_extracts_and_writes_code_correctly
ast = "some representation"
mapping = { foo: 'bar' }
representation = mock
representation.stubs(ast: ast)
representation.stubs(mapping: mapping)
representation.stubs(ast:)
representation.stubs(mapping:)
representation.expects(:normalize!)

Representation.expects(:new).with(code).returns(representation)
Expand Down

0 comments on commit 96684c7

Please sign in to comment.