Skip to content

Commit 7b2d4aa

Browse files
authored
Merge pull request #572 from 3scale/ruby-3.3
THREESCALE-12075: Upgrade to Ruby 3.3
2 parents c92cefd + 0e25187 commit 7b2d4aa

File tree

7 files changed

+54
-53
lines changed

7 files changed

+54
-53
lines changed

.circleci/config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
working_directory: /opt/app-root/src
3232
docker:
3333
# A Zync image tagged manually for CI tests
34-
- image: quay.io/3scale/zync:ci-builder-libyaml
34+
- image: quay.io/3scale/zync:ci-builder-ruby-3.3
3535
- image: << parameters.postgresql_image >>
3636
environment:
3737
RAILS_ENV: test
@@ -48,7 +48,6 @@ jobs:
4848
- run:
4949
name: bundle install
5050
command: |
51-
gem install bundler --version=$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tr -d ' '| tail -n 1) --no-document
5251
bundle config --local force_ruby_platform true
5352
bundle config set --local deployment 'true'
5453
bundle config set --local path 'vendor/bundle'

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require:
55
AllCops:
66
DisabledByDefault: true
77
NewCops: disable
8-
TargetRubyVersion: 3.1
8+
TargetRubyVersion: 3.3
99
UseCache: true
1010

1111
Rails:

.tool-versions.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 3.3.1

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM registry.access.redhat.com/ubi9:9.6
22

33
ENV RUBY_MAJOR_VERSION=3 \
4-
RUBY_MINOR_VERSION=1 \
4+
RUBY_MINOR_VERSION=3 \
55
APP_ROOT=/opt/app-root/src
66
ENV RUBY_VERSION="${RUBY_MAJOR_VERSION}.${RUBY_MINOR_VERSION}"
77

88
USER root
99

1010
RUN dnf -y module enable ruby:${RUBY_VERSION} \
11-
&& dnf install --setopt=skip_missing_names_on_install=False,tsflags=nodocs -y shared-mime-info make automake gcc gcc-c++ postgresql git ruby-devel rubygem-irb rubygem-rdoc glibc-devel libpq-devel libyaml-devel \
11+
&& dnf install --setopt=skip_missing_names_on_install=False,tsflags=nodocs -y shared-mime-info make automake gcc gcc-c++ postgresql git ruby-devel rubygem-irb rubygem-rdoc glibc-devel libpq-devel libyaml-devel xz \
1212
&& dnf clean all \
1313
&& rm -rf /var/cache/yum
1414

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ end
88

99
gem 'rails', '~> 7.1.6'
1010
gem 'zeitwerk', '~> 2.6.18' # keep zeitwerk 2.6 until Ruby is 3.2 or higher
11-
gem 'pg', '>= 0.20'
11+
gem 'pg', '~> 1.6.2'
1212

1313
# Use Puma as the app server
1414
gem 'puma', '~> 5.2'

Gemfile.lock

Lines changed: 47 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ GEM
9595
base64 (0.3.0)
9696
benchmark (0.5.0)
9797
bigdecimal (3.3.1)
98-
binding_of_caller (1.0.0)
99-
debug_inspector (>= 0.0.1)
98+
binding_of_caller (1.0.1)
99+
debug_inspector (>= 1.2.0)
100100
bootsnap (1.16.0)
101101
msgpack (~> 1.2)
102102
bugsnag (6.19.0)
103103
concurrent-ruby (~> 1.0)
104104
builder (3.3.0)
105-
byebug (11.1.3)
105+
byebug (12.0.0)
106106
cgi (0.5.0)
107107
codecov (0.4.3)
108108
simplecov (>= 0.15, < 0.22)
@@ -113,47 +113,47 @@ GEM
113113
rexml
114114
crass (1.0.6)
115115
date (3.5.0)
116-
debug_inspector (1.1.0)
116+
debug_inspector (1.2.0)
117117
docile (1.3.5)
118118
drb (2.2.3)
119-
dry-configurable (0.13.0)
120-
concurrent-ruby (~> 1.0)
121-
dry-core (~> 0.6)
122-
dry-container (0.11.0)
123-
concurrent-ruby (~> 1.0)
124-
dry-core (0.9.1)
119+
dry-configurable (1.3.0)
120+
dry-core (~> 1.1)
121+
zeitwerk (~> 2.6)
122+
dry-core (1.1.0)
125123
concurrent-ruby (~> 1.0)
124+
logger
126125
zeitwerk (~> 2.6)
127-
dry-inflector (0.3.0)
126+
dry-inflector (1.2.0)
128127
dry-initializer (3.0.4)
129-
dry-logic (1.3.0)
128+
dry-logic (1.6.0)
129+
bigdecimal
130130
concurrent-ruby (~> 1.0)
131-
dry-core (~> 0.9, >= 0.9)
131+
dry-core (~> 1.1)
132132
zeitwerk (~> 2.6)
133-
dry-struct (1.5.2)
134-
dry-core (~> 0.9, >= 0.9)
135-
dry-types (~> 1.6)
133+
dry-struct (1.8.0)
134+
dry-core (~> 1.1)
135+
dry-types (~> 1.8, >= 1.8.2)
136136
ice_nine (~> 0.11)
137137
zeitwerk (~> 2.6)
138-
dry-types (1.6.1)
138+
dry-types (1.8.3)
139+
bigdecimal (~> 3.0)
139140
concurrent-ruby (~> 1.0)
140-
dry-container (~> 0.3)
141-
dry-core (~> 0.9, >= 0.9)
142-
dry-inflector (~> 0.1, >= 0.1.2)
143-
dry-logic (~> 1.3, >= 1.3)
141+
dry-core (~> 1.0)
142+
dry-inflector (~> 1.0)
143+
dry-logic (~> 1.4)
144144
zeitwerk (~> 2.6)
145145
erb (4.0.4)
146146
cgi (>= 0.3.3)
147147
erubi (1.13.1)
148-
excon (0.100.0)
148+
excon (0.112.0)
149149
faraday (1.3.0)
150150
faraday-net_http (~> 1.0)
151151
multipart-post (>= 1.2, < 3)
152152
ruby2_keywords
153153
faraday-net_http (1.0.1)
154154
globalid (1.3.0)
155155
activesupport (>= 6.1)
156-
hashdiff (1.0.1)
156+
hashdiff (1.2.1)
157157
i18n (1.14.7)
158158
concurrent-ruby (~> 1.0)
159159
ice_nine (0.11.2)
@@ -164,19 +164,19 @@ GEM
164164
rdoc (>= 4.0.0)
165165
reline (>= 0.4.2)
166166
json (2.16.0)
167-
jsonpath (0.9.9)
167+
jsonpath (1.1.5)
168168
multi_json
169-
to_regexp (~> 0.2.1)
170169
jwt (2.2.2)
171-
k8s-ruby (0.14.0)
172-
dry-configurable (~> 0.13.0)
173-
dry-struct (<= 1.6.0)
174-
dry-types (<= 1.7.0)
170+
k8s-ruby (0.17.2)
171+
base64
172+
dry-configurable
173+
dry-struct
174+
dry-types
175175
excon (~> 0.71)
176-
hashdiff (~> 1.0.0)
177-
jsonpath (~> 0.9.5)
178-
recursive-open-struct (~> 1.1.3)
179-
yajl-ruby (~> 1.4.0)
176+
hashdiff (~> 1.0)
177+
jsonpath (~> 1.1)
178+
recursive-open-struct (~> 1.1, >= 1.1.3)
179+
yajl-ruby (~> 1.4)
180180
yaml-safe_load_stream3
181181
language_server-protocol (3.17.0.5)
182182
license_finder (7.0.1)
@@ -216,7 +216,7 @@ GEM
216216
ruby-progressbar
217217
minitest-stub-const (0.6)
218218
msgpack (1.7.1)
219-
multi_json (1.15.0)
219+
multi_json (1.18.0)
220220
multi_xml (0.6.0)
221221
multipart-post (2.1.1)
222222
mustermann (2.0.2)
@@ -241,25 +241,26 @@ GEM
241241
multi_json (~> 1.3)
242242
multi_xml (~> 0.5)
243243
rack (>= 1.2, < 3)
244+
ostruct (0.6.3)
244245
parallel (1.27.0)
245246
parser (3.3.10.0)
246247
ast (~> 2.4.1)
247248
racc
248-
pg (1.2.3)
249+
pg (1.6.2)
249250
pp (0.6.3)
250251
prettyprint
251252
prettyprint (0.2.0)
252253
prism (1.6.0)
253254
prometheus-client (2.1.0)
254-
pry (0.13.1)
255+
pry (0.15.2)
255256
coderay (~> 1.1)
256257
method_source (~> 1.0)
257-
pry-byebug (3.9.0)
258-
byebug (~> 11.0)
259-
pry (~> 0.13.0)
260-
pry-rails (0.3.9)
261-
pry (>= 0.10.4)
262-
pry-rescue (1.5.0)
258+
pry-byebug (3.11.0)
259+
byebug (~> 12.0)
260+
pry (>= 0.13, < 0.16)
261+
pry-rails (0.3.11)
262+
pry (>= 0.13.0)
263+
pry-rescue (1.6.0)
263264
interception (>= 0.5)
264265
pry (>= 0.12.0)
265266
pry-stack_explorer (0.6.1)
@@ -323,7 +324,8 @@ GEM
323324
erb
324325
psych (>= 4.0.0)
325326
tsort
326-
recursive-open-struct (1.1.3)
327+
recursive-open-struct (1.3.1)
328+
ostruct
327329
regexp_parser (2.11.3)
328330
reline (0.6.3)
329331
io-console (~> 0.5)
@@ -376,7 +378,6 @@ GEM
376378
thor (1.4.0)
377379
tilt (2.0.11)
378380
timeout (0.4.4)
379-
to_regexp (0.2.1)
380381
tomlrb (2.0.3)
381382
tsort (0.2.0)
382383
tzinfo (2.0.6)
@@ -433,7 +434,7 @@ DEPENDENCIES
433434
minitest-reporters
434435
minitest-stub-const
435436
oauth2
436-
pg (>= 0.20)
437+
pg (~> 1.6.2)
437438
prometheus-client (~> 2.1.0)
438439
pry-byebug
439440
pry-rails
@@ -458,4 +459,4 @@ DEPENDENCIES
458459
zeitwerk (~> 2.6.18)
459460

460461
BUNDLED WITH
461-
2.3.27
462+
2.5.22

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ To run Zync you need access to a running [PostgreSQL](https://www.postgresql.org
1313
manager, as a container or run it remotely.
1414

1515
The minimum requirement for the machine running Zync is to have
16-
- Ruby 3.1
16+
- Ruby 3.3
1717
- `psql` client tool - needed when running for `db:setup`
1818
- `libpq-devel` - needed to build `pg` gem during `bundle install`.
1919

0 commit comments

Comments
 (0)