Skip to content

Commit 70e4375

Browse files
Upgrade to Ruby 3.3.0 (#92)
* Upgrade to Ruby 3.3.0 * Fix unicode issue
1 parent 9cd10fb commit 70e4375

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.0
1+
3.3.0

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM public.ecr.aws/lambda/ruby:3.2 AS build
1+
FROM public.ecr.aws/lambda/ruby:3.3.2024.04.17.17 AS build
22

3-
RUN yum install gcc make -y
3+
RUN dnf install gcc make -y
44

55
ENV GEM_HOME=${LAMBDA_TASK_ROOT}
66
WORKDIR ${LAMBDA_TASK_ROOT}
@@ -10,7 +10,7 @@ RUN bundle config set deployment 'true' && \
1010
bundle config set without 'development test' && \
1111
bundle install
1212

13-
FROM public.ecr.aws/lambda/ruby:3.2 AS runtime
13+
FROM public.ecr.aws/lambda/ruby:3.3.2024.04.17.17 AS runtime
1414

1515
ENV GEM_HOME=${LAMBDA_TASK_ROOT}
1616
WORKDIR ${LAMBDA_TASK_ROOT}

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ DEPENDENCIES
6565
zeitwerk
6666

6767
BUNDLED WITH
68-
2.4.1
68+
2.5.3

lib/snippet_extractor/extract_snippet.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def processed_lines
2222
memoize
2323
def ignore_list
2424
slug = language.to_s.gsub(/[^a-z0-9-]/, '')
25-
File.read(File.expand_path("../../languages/#{slug}.txt", __FILE__)).lines.map(&:rstrip)
25+
File.read(File.expand_path("../../languages/#{slug}.txt", __FILE__), encoding: 'UTF-8').lines.map(&:rstrip)
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)