Skip to content

Commit

Permalink
2025 refresh ✨: upgrade to Rails 8
Browse files Browse the repository at this point in the history
  • Loading branch information
jeferson-sb committed Jan 17, 2025
1 parent 8ee51d6 commit 0e0aa38
Show file tree
Hide file tree
Showing 21 changed files with 613 additions and 430 deletions.
52 changes: 51 additions & 1 deletion api/.dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,51 @@
*.md
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.

# Ignore git directory.
/.git/
/.gitignore

# Ignore bundler config.
/.bundle

# Ignore all environment files.
/.env*

# Ignore all default key files.
/config/master.key
/config/credentials/*.key

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/.keep

# Ignore storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/.keep

# Ignore assets.
/node_modules/
/app/assets/builds/*
!/app/assets/builds/.keep
/public/assets

# Ignore CI service files.
/.github

# Ignore Kamal files.
/config/deploy*.yml
/.kamal

# Ignore development files
/.devcontainer

# Ignore Docker-related files
/.dockerignore
/Dockerfile*
8 changes: 8 additions & 0 deletions api/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Omakase Ruby styling for Rails
inherit_gem: { rubocop-rails-omakase: rubocop.yml }

# Overwrite or add rules to create your own house style
#
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
# Layout/SpaceInsideArrayLiteralBrackets:
# Enabled: false
2 changes: 1 addition & 1 deletion api/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-3.2.0
ruby-3.3.4
25 changes: 17 additions & 8 deletions api/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,40 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.2.0'
ruby '3.3.4'

gem 'bcrypt', '~> 3.1'
gem 'bootsnap', require: false
gem 'image_processing', '~> 1.2'
gem 'jbuilder', '~> 2.11'
gem 'jbuilder', '~> 2.13.0'
gem 'jwt', '~> 2.7'
gem 'pg', '~> 1.1'
gem 'puma', '~> 5.6'
gem 'rails', '~> 7.0.4'
gem 'pg', '~> 1.5.9'
gem 'puma', '~> 6.0'
gem 'rails', '~> 8.0.0'
gem 'rmagick', '~> 5.3'
gem 'sqlite3', '~> 1.4'
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
gem 'sqlite3', '~> 2.5'
gem "tzinfo-data", platforms: %i[ windows jruby ]
gem "kamal", require: false
gem "thruster", require: false

# Use the database-backed adapters for Rails.cache, Active Job, and Action Cable
gem "solid_cache"
gem "solid_queue"
gem "solid_cable"

group :development, :test do
gem 'debug', platforms: %i[mri mingw x64_mingw]
gem "debug", platforms: %i[ mri windows ], require: "debug/prelude"
gem 'dotenv', '~> 3.1', '>= 3.1.2'
gem 'factory_bot_rails', '~> 6.2'
gem 'faker', '~> 3.2'
gem 'rspec-rails', '~> 6.0'
gem 'rubocop-rails', '~> 2.19', require: false
gem 'rubocop-rspec', '~> 2.22', require: false
gem "rubocop-rails-omakase", require: false
gem 'shoulda-matchers', '~> 5.1'
gem 'whenever', '~> 1.0', require: false
end

group :development do
gem "brakeman", require: false
end
Loading

0 comments on commit 0e0aa38

Please sign in to comment.