Skip to content

Commit

Permalink
Upgrade Ruby to 2.7.8
Browse files Browse the repository at this point in the history
  • Loading branch information
glacials committed Oct 15, 2024
1 parent 93a239e commit 88cd1f9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ require: rubocop-rails
Layout/LineLength:
Max: 120
AllCops:
TargetRubyVersion: 2.6
TargetRubyVersion: "2.7.8" # Also update docker-compose.yml, docker-compose-production.yml, and Gemfile
Include:
- '**/*.rb'
- "**/*.rb"
- Rakefile
- config.ru
Exclude:
Expand Down Expand Up @@ -33,7 +33,7 @@ Layout/SpaceInsideHashLiteralBraces:

Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
EnforcedColonStyle: table

Style/FrozenStringLiteralComment:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG RUBY_VERSION
ARG RUBY_VERSION=latest # docker compose overrides this
FROM ruby:$RUBY_VERSION

RUN wget https://dl.yarnpkg.com/debian/pubkey.gpg
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source "https://rubygems.org"
ruby "2.7.1" # also update docker-compose.yml & docker-compose-production.yml
ruby "2.7.8" # also update docker-compose.yml & docker-compose-production.yml

git_source(:github) { |repo| "https://github.com/#{repo}.git" }

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ DEPENDENCIES
websocket-driver!

RUBY VERSION
ruby 2.7.1p83
ruby 2.7.8p225

BUNDLED WITH
2.2.15
10 changes: 4 additions & 6 deletions docker-compose-production.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
version: '3.7'
x-environment:
&server-environment
version: "3.7"
x-environment: &server-environment
- ASSET_HOST
- AWS_ACCESS_KEY_ID
- AWS_REGION
Expand Down Expand Up @@ -42,8 +41,7 @@ x-environment:
- PAYPAL_CLIENT_ID
- PAYPAL_CLIENT_SECRET
- PAYPAL_PLAN_ID=P-8X852520X76298909L7B74BY
x-logging:
&default-logging
x-logging: &default-logging
driver: json-file
options:
max-size: 100m
Expand All @@ -56,7 +54,7 @@ x-app: &app
cache_from:
- "${REPOSITORY_URI:-splitsio}:latest"
args:
RUBY_VERSION: "2.7.1" # also update docker-compose.yml & Gemfile
RUBY_VERSION: "2.7.8" # also update docker-compose.yml, Gemfile, and .rubocop.yml
environment: *server-environment
image: splitsio
logging: *default-logging
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ x-app: &app
context: .
dockerfile: Dockerfile
args:
RUBY_VERSION: "2.7.1" # also update docker-compose-production.yml, Gemfile, & .rubocop.yml
RUBY_VERSION: "2.7.8" # also update docker-compose-production.yml, Gemfile, and .rubocop.yml
image: splitsio
tmpfs:
- /tmp
Expand Down

0 comments on commit 88cd1f9

Please sign in to comment.