Skip to content

Commit 1d635b8

Browse files
gregadumbledad
andauthored
Ruby 3 upgrade (#201)
* Initial Ruby 3 upgrades * Yarn gumpf that should be ignored * Newer yarn yml rc file * Reinstate Dockerfile change to 3.1.2 * Swapping CircleCU 3.1.2 image circleci/ruby:3.1.2-node-browsers not found * Yarn install * smtp gubbins for tests Co-authored-by: timregan <[email protected]>
1 parent de40005 commit 1d635b8

11 files changed

+11520
-8288
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ orbs:
44
jobs:
55
test:
66
docker:
7-
- image: circleci/ruby:2.7.2-node-browsers
7+
- image: cimg/ruby:3.1.2-node
88
environment:
99
BUNDLE_JOBS: 3
1010
BUNDLE_RETRY: 3
@@ -71,4 +71,4 @@ workflows:
7171
filters:
7272
branches:
7373
only: main
74-
74+

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@ schema.json
4747

4848
.history
4949
.idea
50+
51+
# yarn https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
52+
.yarn/*
53+
!.yarn/patches
54+
!.yarn/plugins
55+
!.yarn/releases
56+
!.yarn/versions

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ AllCops:
99
- "vendor/**/*"
1010
- "spec/fixtures/**/*"
1111
- "tmp/**/*"
12-
TargetRubyVersion: 2.7.2
12+
TargetRubyVersion: 3.1.2
1313
NewCops: enable
1414

1515
Layout/EndOfLine:

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-2.7.2
1+
ruby-3.1.2

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ruby 2.7.2
1+
ruby 3.1.2
22
nodejs 12.16.0
33
yarn 1.22.4

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.7.2-alpine
1+
FROM ruby:3.1.2-alpine
22
RUN apk --no-cache add build-base curl postgresql-dev tzdata nodejs chromium chromium-chromedriver yarn
33
RUN mkdir /app
44
WORKDIR /app

Gemfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
ruby '2.7.2'
4+
ruby '3.1.2'
55

66
gem 'activestorage-validator'
77
gem 'administrate', '~> 0.17.0'
@@ -15,6 +15,9 @@ gem 'graphiql-rails', '1.7.0'
1515
gem 'graphql', '<= 1.10.10'
1616
gem 'lograge', '~> 0.11.2'
1717
gem 'mimemagic', '~> 0.3.7'
18+
gem 'net-imap'
19+
gem 'net-pop'
20+
gem 'net-smtp'
1821
gem 'pg', '~> 1.1'
1922
gem 'puma', '~> 4.3'
2023
gem 'rails', '~> 6.1.4.1'
@@ -24,13 +27,14 @@ gem 'sentry-ruby'
2427
gem 'sidekiq', '~> 6.4'
2528
gem 'webpacker', '~> 5.4.3'
2629

30+
2731
# Use Active Storage variant
2832
# gem 'image_processing', '~> 1.2'
2933

3034
group :development, :test do
3135
gem 'brakeman'
3236
gem 'byebug', platforms: %i[mri mingw x64_mingw]
33-
gem 'debase'
37+
gem 'debase', '>=0.2.5.beta2'
3438
gem 'dotenv-rails'
3539
gem 'erb_lint', require: false
3640
gem 'factory_bot_rails', '~> 5.2.0'
@@ -42,7 +46,7 @@ group :development, :test do
4246
gem 'rubocop'
4347
gem 'rubocop-rails'
4448
gem 'rubocop-rspec'
45-
gem 'ruby-debug-ide'
49+
gem 'ruby-debug-ide', '~> 0.7.3'
4650
gem 'simplecov'
4751
gem 'solargraph', '~> 0.39'
4852
end

Gemfile.lock

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ GEM
133133
crass (1.0.6)
134134
datetime_picker_rails (0.0.7)
135135
momentjs-rails (>= 2.8.1)
136-
debase (0.2.4.1)
137-
debase-ruby_core_source (>= 0.10.2)
138-
debase-ruby_core_source (0.10.14)
136+
debase (0.2.5.beta2)
137+
debase-ruby_core_source (>= 0.10.12)
138+
debase-ruby_core_source (0.10.16)
139139
diff-lcs (1.5.0)
140140
docile (1.4.0)
141141
dotenv (2.7.6)
@@ -257,6 +257,14 @@ GEM
257257
multi_json (1.15.0)
258258
multipart-post (2.1.1)
259259
nenv (0.3.0)
260+
net-imap (0.3.1)
261+
net-protocol
262+
net-pop (0.1.2)
263+
net-protocol
264+
net-protocol (0.1.3)
265+
timeout
266+
net-smtp (0.3.2)
267+
net-protocol
260268
nio4r (2.5.8)
261269
nokogiri (1.13.6)
262270
mini_portile2 (~> 2.8.0)
@@ -440,6 +448,7 @@ GEM
440448
statsd-ruby (1.5.0)
441449
thor (1.2.1)
442450
tilt (2.0.10)
451+
timeout (0.3.0)
443452
tzinfo (2.0.4)
444453
concurrent-ruby (~> 1.0)
445454
unicode-display_width (2.1.0)
@@ -481,7 +490,7 @@ DEPENDENCIES
481490
brakeman
482491
byebug
483492
capybara (>= 2.15)
484-
debase
493+
debase (>= 0.2.5.beta2)
485494
dotenv-rails
486495
erb_lint
487496
factory_bot_rails (~> 5.2.0)
@@ -492,6 +501,9 @@ DEPENDENCIES
492501
listen (~> 3.2)
493502
lograge (~> 0.11.2)
494503
mimemagic (~> 0.3.7)
504+
net-imap
505+
net-pop
506+
net-smtp
495507
pg (~> 1.1)
496508
pry-byebug
497509
puma (~> 4.3)
@@ -503,7 +515,7 @@ DEPENDENCIES
503515
rubocop
504516
rubocop-rails
505517
rubocop-rspec
506-
ruby-debug-ide
518+
ruby-debug-ide (~> 0.7.3)
507519
sass-rails (>= 6)
508520
selenium-webdriver
509521
sentry-rails
@@ -520,7 +532,7 @@ DEPENDENCIES
520532
webpacker (~> 5.4.3)
521533

522534
RUBY VERSION
523-
ruby 2.7.2p137
535+
ruby 3.1.2p20
524536

525537
BUNDLED WITH
526538
2.1.4

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"prettier": "1.14.3",
2020
"prettier-package-json": "2.0.1",
2121
"stylelint": "13.13",
22-
"stylelint-config-recommended-scss": "^4.2.0",
2322
"stylelint-config-prettier": "^8.0.2",
23+
"stylelint-config-recommended-scss": "^4.2.0",
2424
"stylelint-order": "^4.1.0",
2525
"stylelint-prettier": "^1.2.0",
2626
"stylelint-scss": "^3.19"

0 commit comments

Comments
 (0)