Skip to content

Commit

Permalink
upgrading
Browse files Browse the repository at this point in the history
  • Loading branch information
opedrosouza committed Jun 11, 2024
1 parent 524322a commit a94ed61
Show file tree
Hide file tree
Showing 12 changed files with 312 additions and 433 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Tests
on:
pull_request:
branches:
- '*'
- "*"
push:
branches:
- main
Expand All @@ -18,10 +18,10 @@ jobs:
POSTGRES_USER: pedrosouza
POSTGRES_PASSWORD: password
POSTGRES_DB: boilerplate_test
ports: ['5432:5432']
ports: ["5432:5432"]
redis:
image: redis
ports: ['6379:6379']
ports: ["6379:6379"]
options: --entrypoint redis-server

steps:
Expand All @@ -36,27 +36,14 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.11.0
node-version: 20.13.1

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
version: 9.1.4
run_install: true

# - name: Get pnpm store directory
# shell: bash
# run: |
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

# - uses: actions/cache@v3
# name: Setup pnpm cache
# with:
# path: ${{ env.STORE_PATH }}
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: |
sudo apt update && sudo apt-get install -y -qq libvips
Expand Down
5 changes: 1 addition & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ AllCops:
- "db/schema.rb" # You can't touch this
- "tmp/**/*"
- "vendor/**/*" # We cannot solve the world's problems
TargetRubyVersion: 3.2.0
TargetRubyVersion: 3.3.2
NewCops: enable

Gemspec/DeprecatedAttributeAssignment:
Expand Down Expand Up @@ -258,9 +258,6 @@ RSpec/IdenticalEqualityAssertion:
RSpec/MultipleMemoizedHelpers:
Max: 20

RSpec/Rails/AvoidSetupHook:
Enabled: true

RSpec/StubbedMock:
Enabled: false

Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-3.2.2
ruby-3.3.2
6 changes: 3 additions & 3 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ruby 3.2.2
nodejs 20.11.0
ruby 3.3.2
nodejs 20.13.1
yarn 1.22.19
pnpm 8.15.1
pnpm 9.1.4
97 changes: 28 additions & 69 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,93 +3,52 @@
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "3.2.2"
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.1.2"
# Use postgresql as the database for Active Record
gem "pg", "~> 1.5"
# Use the Puma web server [https://github.com/puma/puma]
gem "puma", "~> 6.3"
# Use Vite in Rails and bring joy to your JavaScript experience
gem "vite_rails", "~> 3.0", ">= 3.0.14"
# Hotwire"s SPA-like page accelerator [https://turbo.hotwired.dev]
gem "turbo-rails"
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
gem "stimulus-rails"
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby]
# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", require: false
# A framework for building reusable, testable & encapsulated view components in Ruby on Rails.
gem "view_component", "~> 3.11"
# Flexible authentication solution for Rails with Warden
gem "devise", "~> 4.9"
# Translations for the devise gem
gem "devise-i18n", "~> 1.12"
# A set of common locale data and translations to internationalize and/or localize your Rails applications.
gem "rails-i18n", "~> 7.0"
# Object oriented authorization for Rails applications
gem "pundit", "~> 2.3"
# High-level wrapper for processing images for the web with ImageMagick or libvips.
gem "image_processing", "~> 1.12", ">= 1.12.2"
# ActiveModel::Serializers allows you to generate your JSON in an object-oriented and convention-driven manner
ruby "3.3.2"
gem "active_model_serializers", "~> 0.10.14"
# Doorkeeper is an OAuth 2 provider for Rails and Grape.
gem "doorkeeper", "~> 5.6", ">= 5.6.6"
# Middleware that will make Rack-based apps CORS compatible. Fork the project here: https://github.com/cyu/rack-cors
gem "rack-cors", "~> 2.0", ">= 2.0.1"
# Agnostic pagination in plain ruby. It does it all. Better.
gem "pagy", "~> 7.0", ">= 7.0.9"
# PgSearch builds Active Record named scopes that take advantage of PostgreSQL's full text search
gem "pg_search", "~> 2.3", ">= 2.3.6"
# Allows marking ActiveRecord objects as discarded, and provides scopes for filtering.
gem "bootsnap", require: false
gem "devise", "~> 4.9", ">= 4.9.4"
gem "devise-i18n", "~> 1.12", ">= 1.12.1"
gem "discard", "~> 1.3"
# DSL for declaring params and options of the initializer
gem "doorkeeper", "~> 5.7"
gem "dry-initializer", "~> 3.1", ">= 3.1.1"
# A collection of extensions and developer tools for ViewComponent
gem "image_processing", "~> 1.12", ">= 1.12.2"
gem "pagy", "~> 8.4", ">= 8.4.4"
gem "pg", "~> 1.5", ">= 1.5.6"
gem "pg_search", "~> 2.3", ">= 2.3.6"
gem "puma", "~> 6.4", ">= 6.4.2"
gem "pundit", "~> 2.3", ">= 2.3.2"
gem "rack-cors", "~> 2.0", ">= 2.0.2"
gem "rails", "~> 7.1", ">= 7.1.3.4"
gem "rails-i18n", "~> 7.0", ">= 7.0.9"
gem "stimulus-rails", "~> 1.3", ">= 1.3.3"
gem "turbo-rails", "~> 2.0", ">= 2.0.5"
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby]
gem "view_component", "~> 3.11"
gem "view_component-contrib", "~> 0.2.2"
gem "vite_rails", "~> 3.0", ">= 3.0.17"

group :development, :test do
# Great Ruby debugging companion: pretty print Ruby objects to visualize their structure. Supports custom object formatting via plugins
gem "awesome_print", "~> 1.9", ">= 1.9.2"
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[mri mingw x64_mingw]
# factory_bot_rails provides integration between factory_bot and rails 5.0 or newer
gem "factory_bot_rails", "~> 6.4", ">= 6.4.3"
# Faker, a port of Data::Faker from Perl, is used to easily generate fake data: names, addresses, phone numbers, etc.
gem "faker", "~> 3.2"
# Automatic Rails code style checking tool. A RuboCop extension focused on enforcing Rails best practices and coding conventions.
gem "rubocop-rails", "~> 2.22"
# Code style checking for RSpec files. A plugin for the RuboCop code style enforcing & linting tool.
gem "rubocop-rspec", "~> 2.25"
# A collection of RuboCop cops to check for performance optimizations in Ruby code.
gem "rubocop-performance", "~> 1.18"
gem "faker", "~> 3.4", ">= 3.4.1"
gem "rubocop-performance", "~> 1.21"
gem "rubocop-rails", "~> 2.25"
gem "rubocop-rspec", "~> 3.0", ">= 3.0.1"
end

group :test do
# Capybara is an integration testing tool for rack based web applications.
# It simulates how a user would interact with a website
gem "capybara", "~> 3.39", ">= 3.39.2"
# Strategies for cleaning databases using ActiveRecord. Can be used to ensure a clean state for testing.
gem "capybara", "~> 3.40"
gem "database_cleaner-active_record", "~> 2.1"
# Extracting `assigns` and `assert_template` from ActionDispatch.
gem "rails-controller-testing", "~> 1.0", ">= 1.0.5"
# rspec-rails is a testing framework for Rails 5+.
gem "rspec-rails", "~> 6.0"
# Shoulda Matchers provides RSpec- and Minitest-compatible one-liners to test common Rails functionality that,
# if written by hand, would be much longer, more complex, and error-prone.
gem "shoulda-matchers", "~> 5.3"
# Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites
gem "rspec-rails", "~> 6.1", ">= 6.1.2"
gem "shoulda-matchers", "~> 6.2"
gem "simplecov", "~> 0.22.0"
end

group :development do
# Annotates Rails/ActiveRecord Models, routes, fixtures, and others based on the database schema.
gem "annotate", "~> 3.2"
# When mail is sent from your application, Letter Opener will open a preview in the browser instead of sending.
gem "letter_opener", "~> 1.8", ">= 1.8.1"
# A native development UI for ViewComponent
gem "lookbook", "~> 2.1"
# Use console on exceptions pages [https://github.com/rails/web-console]
gem "letter_opener", "~> 1.10"
gem "lookbook", "~> 2.3", ">= 2.3.1"
gem "web-console"
end
Loading

0 comments on commit a94ed61

Please sign in to comment.