diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa4a1d45..2b10572b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,6 +89,7 @@ jobs: uses: ruby/setup-ruby@v1 with: bundler-cache: true + ruby-version: '3.2.2' - name: Setup Code Climate test-reporter run: | curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter diff --git a/.ruby-version b/.ruby-version index ef538c28..be94e6f5 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.1.2 +3.2.2 diff --git a/Dockerfile b/Dockerfile index 576dc97f..89e497a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.1.2 +FROM ruby:3.2.2 RUN apt-get update -qq && \ apt-get install -y build-essential libssl-dev nodejs libpq-dev less vim nano libsasl2-dev diff --git a/Gemfile b/Gemfile index c417c1be..c8419672 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ # frozen_string_literal: true source 'https://rubygems.org' -ruby '~> 3.1.2' +ruby '~> 3.2.2' gem 'rails', '~> 7.0.8' diff --git a/Gemfile.lock b/Gemfile.lock index 538073f8..10f5950f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -56,15 +56,15 @@ GEM rails-html-sanitizer (~> 1.1, >= 1.2.0) active_storage_base64 (2.0.0) rails (>= 7.0) - activeadmin (3.0.0) + activeadmin (3.1.0) arbre (~> 1.2, >= 1.2.1) - formtastic (>= 3.1, < 5.0) - formtastic_i18n (~> 0.4) + formtastic (>= 3.1) + formtastic_i18n (>= 0.4) inherited_resources (~> 1.7) - jquery-rails (~> 4.2) - kaminari (~> 1.0, >= 1.2.1) - railties (>= 6.1, < 7.1) - ransack (>= 4.0, < 5) + jquery-rails (>= 4.2) + kaminari (>= 1.2.1) + railties (>= 6.1) + ransack (>= 4.0) activejob (7.0.8) activesupport (= 7.0.8) globalid (>= 0.3.6) @@ -102,8 +102,8 @@ GEM font-awesome-sass (~> 6.0) ast (2.4.2) aws-eventstream (1.2.0) - aws-partitions (1.830.0) - aws-sdk-core (3.184.0) + aws-partitions (1.840.0) + aws-sdk-core (3.185.1) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.651.0) aws-sigv4 (~> 1.5) @@ -177,7 +177,7 @@ GEM ruby2_keywords erubi (1.12.0) erubis (2.7.0) - execjs (2.8.1) + execjs (2.9.1) factory_bot (6.2.1) activesupport (>= 5.0.0) factory_bot_rails (6.2.0) @@ -190,7 +190,7 @@ GEM faraday-net_http (>= 2.0, < 3.1) ruby2_keywords (>= 0.0.4) faraday-net_http (3.0.2) - ffi (1.16.1) + ffi (1.16.3) flipper (1.0.0) brow (~> 0.4.1) concurrent-ruby (< 2) @@ -205,13 +205,13 @@ GEM sanitize (< 7) font-awesome-sass (6.4.2) sassc (~> 2.0) - formtastic (4.0.0) - actionpack (>= 5.2.0) + formtastic (5.0.0) + actionpack (>= 6.0.0) formtastic_i18n (0.7.0) globalid (1.2.1) activesupport (>= 6.1) - google-protobuf (3.24.3) - has_scope (0.8.1) + google-protobuf (3.24.4) + has_scope (0.8.2) actionpack (>= 5.2) activesupport (>= 5.2) hashdiff (1.0.1) @@ -259,8 +259,8 @@ GEM rake kwalify (0.7.2) language_server-protocol (3.17.0.3) - launchy (2.5.0) - addressable (~> 2.7) + launchy (2.5.2) + addressable (~> 2.8) letter_opener (1.8.1) launchy (>= 2.2, < 3) listen (3.8.0) @@ -285,14 +285,14 @@ GEM mini_portile2 (2.8.5) minitest (5.20.0) msgpack (1.7.2) - net-imap (0.3.7) + net-imap (0.4.2) date net-protocol net-pop (0.1.2) net-protocol net-protocol (0.2.1) timeout - net-smtp (0.3.3) + net-smtp (0.4.0) net-protocol newrelic_rpm (9.5.0) nio4r (2.5.9) @@ -315,7 +315,7 @@ GEM pg_query (4.2.3) google-protobuf (>= 3.22.3) prosopite (1.4.1) - pry (0.14.1) + pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) pry-byebug (3.10.1) @@ -377,7 +377,7 @@ GEM zeitwerk (~> 2.5) rainbow (3.1.1) rake (13.0.6) - ransack (4.0.0) + ransack (4.1.0) activerecord (>= 6.1.5) activesupport (>= 6.1.5) i18n @@ -468,7 +468,7 @@ GEM faraday (>= 0.17.3, < 3) sendgrid (1.2.4) json - sexp_processor (4.16.1) + sexp_processor (4.17.0) shoulda-matchers (5.3.0) activesupport (>= 5.2.0) simplecov (0.22.0) @@ -489,7 +489,7 @@ GEM terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) thor (1.3.0) - tilt (2.0.11) + tilt (2.3.0) timeout (0.4.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) @@ -576,7 +576,7 @@ DEPENDENCIES yaaf (~> 2.2) RUBY VERSION - ruby 3.1.2p20 + ruby 3.2.2p53 BUNDLED WITH 2.3.23 diff --git a/README.md b/README.md index f410c62d..2f046ceb 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Code Climate](https://codeclimate.com/github/rootstrap/rails_api_base/badges/gpa.svg)](https://codeclimate.com/github/rootstrap/rails_api_base) [![Test Coverage](https://api.codeclimate.com/v1/badges/63de7f82c79f5fe82f46/test_coverage)](https://codeclimate.com/github/rootstrap/rails_api_base/test_coverage) -Rails Api Base is a boilerplate project for JSON RESTful APIs. It follows the community best practices in terms of standards, security and maintainability, integrating a variety of testing and code quality tools. It's based on Rails 7.0 and Ruby 3.1. +Rails Api Base is a boilerplate project for JSON RESTful APIs. It follows the community best practices in terms of standards, security and maintainability, integrating a variety of testing and code quality tools. It's based on Rails 7.0 and Ruby 3.2. Finally, it contains a plug an play Administration console (thanks to [ActiveAdmin](https://github.com/activeadmin/activeadmin)). diff --git a/docker-compose.yml b/docker-compose.yml index 3ef29432..1579c18d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,7 @@ services: links: - db:db db: - image: postgres:11 + image: postgres:15 environment: POSTGRES_USER: ${POSTGRES_USER-postgres} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD-postgres}