Skip to content

Commit

Permalink
Update Ruby version to 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jan 3, 2024
1 parent 19e343d commit 79d4038
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
ruby-version: 3.3.0
bundler-cache: true

- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.2
3.3.0
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ First things first, you'll need to fork and clone the repository to your local m

The project uses ruby on rails which have a number of system dependencies you'll need to install.

- [ruby 3.2.2](https://www.ruby-lang.org/en/documentation/installation/)
- [ruby 3.3.0](https://www.ruby-lang.org/en/documentation/installation/)
- [postgresql 14](https://www.postgresql.org/download/)
- [node.js 16+](https://nodejs.org/en/download/)

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.2.2-alpine
FROM ruby:3.3.0-alpine

ENV APP_ROOT /usr/src/app
ENV DATABASE_PORT 5432
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "3.2.2"
ruby "3.3.0"

gem "rails", "~> 7.1.1"
gem "sprockets-rails"
Expand Down
6 changes: 1 addition & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ GEM
globalid (1.2.1)
activesupport (>= 6.1)
google-protobuf (3.25.1)
google-protobuf (3.25.1-aarch64-linux)
google-protobuf (3.25.1-arm64-darwin)
google-protobuf (3.25.1-x86_64-darwin)
google-protobuf (3.25.1-x86_64-linux)
groupdate (6.4.0)
activesupport (>= 6.1)
hashdiff (1.1.0)
Expand Down Expand Up @@ -380,7 +376,7 @@ DEPENDENCIES
webmock

RUBY VERSION
ruby 3.2.2p31
ruby 3.3.0p31

BUNDLED WITH
2.5.3
4 changes: 2 additions & 2 deletions config/initializers/rswag-api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
# This is used by the Swagger middleware to serve requests for API descriptions
# NOTE: If you're using rswag-specs to generate Swagger, you'll need to ensure
# that it's configured to generate files in the same folder
c.swagger_root = Rails.root.to_s + '/openapi'
c.openapi_root = Rails.root.to_s + '/openapi'

# Inject a lamda function to alter the returned Swagger prior to serialization
# The function will have access to the rack env for the current request
# For example, you could leverage this to dynamically assign the "host" property
#
#c.swagger_filter = lambda { |swagger, env| swagger['host'] = env['HTTP_HOST'] }
#c.openapi_filter = lambda { |swagger, env| swagger['host'] = env['HTTP_HOST'] }
end
4 changes: 2 additions & 2 deletions config/initializers/rswag-ui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# List the Swagger endpoints that you want to be documented through the swagger-ui
# The first parameter is the path (absolute or relative to the UI host) to the corresponding
# endpoint and the second is a title that will be displayed in the document selector
# NOTE: If you're using rspec-api to expose Swagger files (under swagger_root) as JSON or YAML endpoints,
# NOTE: If you're using rspec-api to expose Swagger files (under openapi_root) as JSON or YAML endpoints,
# then the list below should correspond to the relative paths for those endpoints

c.swagger_endpoint '/docs/api/v1/openapi.yaml', 'API V1 Docs'
c.openapi_endpoint '/docs/api/v1/openapi.yaml', 'API V1 Docs'

# Add Basic Auth in case your API is private
# c.basic_auth_enabled = true
Expand Down

0 comments on commit 79d4038

Please sign in to comment.