Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refatoração de tipo de unidade #60

Merged
merged 17 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
263d670
Configura autorização do admin e adiciona fração ideal ao cadastro.
cellaaleo Jul 2, 2024
49245cc
Merge branch 'main' into unit_type_refat
cellaaleo Jul 2, 2024
d539fa3
Cria testes de requisição para tipos de unidades.
cellaaleo Jul 2, 2024
5aaeb4a
Criação do modal para unit types e estilização dos formulários
Vinigperuzzi Jul 3, 2024
7abb2e7
Faz aninhamento da rota de tipo de unidade com condoomínio
Vinigperuzzi Jul 3, 2024
b146fbf
Criação da chave estrangeira para condo no tipo de unidade, teste da …
Vinigperuzzi Jul 3, 2024
6e4789f
Alteração do tipo da fração de inteiro para decimal com 5 casas após …
Vinigperuzzi Jul 3, 2024
23621f4
padronização das flash messagens de condomínio
Vinigperuzzi Jul 3, 2024
7730fcb
Necessidade de alteração do terminador de linha de CRLF para LF alter…
Vinigperuzzi Jul 3, 2024
4b57558
Testes unitário para fração menos ou igual a zero
Vinigperuzzi Jul 3, 2024
e7d404f
Refatora controller de tipo de unidade, removendo linhas desnecessári…
cellaaleo Jul 4, 2024
c02cd18
Refatora os testes buscando padronização e melhorias.
cellaaleo Jul 4, 2024
6424a9e
Refatora testes unitários especificando as mensagens de erro esperadas.
cellaaleo Jul 4, 2024
e7f010e
Merge branch 'main' into unit_type_refat
cellaaleo Jul 4, 2024
eb84328
Teste de remoção de arquivo da lista de mudanças e configuração de fi…
Vinigperuzzi Jul 4, 2024
bd72a69
Remoção de todos os arquivos inseridos desnecessariamente no commit e…
Vinigperuzzi Jul 4, 2024
246bd4a
Organização final depois do merge da main e preparação para a própria…
Vinigperuzzi Jul 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 42 additions & 42 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
name: "Ruby on Rails CI"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
env:
RAILS_ENV: test
steps:
- name: Checkout code
uses: actions/checkout@v4
# Add or replace dependency steps here
- name: Install Ruby and gems
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
bundler-cache: true
# Add or replace database setup steps here
- name: Set up database schema
run: bin/rails db:schema:load
# Add or replace test runners here
- name: Run tests
run: bin/rake spec

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ruby and gems
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
bundler-cache: true
- name: Install Bundler Audit
run: gem install bundler-audit
# Add or replace any other lints here
- name: Security audit dependencies
run: bundle-audit check --update
- name: Lint Ruby files
run: bundle exec rubocop
name: "Ruby on Rails CI"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
env:
RAILS_ENV: test
steps:
- name: Checkout code
uses: actions/checkout@v4
# Add or replace dependency steps here
- name: Install Ruby and gems
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
bundler-cache: true
# Add or replace database setup steps here
- name: Set up database schema
run: bin/rails db:schema:load
# Add or replace test runners here
- name: Run tests
run: bin/rake spec
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ruby and gems
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
bundler-cache: true
- name: Install Bundler Audit
run: gem install bundler-audit
# Add or replace any other lints here
- name: Security audit dependencies
run: bundle-audit check --update
- name: Lint Ruby files
run: bundle exec rubocop
88 changes: 44 additions & 44 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
/.vscode/

# Ignore bundler config.
/.bundle

# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-*

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

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

# Ignore uploaded files in development.
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/
!/tmp/storage/.keep

/public/assets

# Ignore master key for decrypting credentials and more.
/config/master.key

coverage/

/app/assets/builds/*
!/app/assets/builds/.keep

/node_modules

# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
/.vscode/
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-*
# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.keep
# Ignore uploaded files in development.
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/
!/tmp/storage/.keep
/public/assets
# Ignore master key for decrypting credentials and more.
/config/master.key
coverage/
/app/assets/builds/*
!/app/assets/builds/.keep
/node_modules
.tool-versions
58 changes: 29 additions & 29 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
require:
- rubocop-rails

AllCops:
NewCops: enable
TargetRubyVersion: 3.2.2
Exclude:
- 'bin/**/*'
- 'vendor/**/*'
- 'db/**/*'
- 'config/**/*'
- 'script/**/*'
- 'spec/rails_helper.rb'
SuggestExtensions: false

Style/Documentation:
Enabled: false

Rails/I18nLocaleTexts:
Enabled: true

Style/FrozenStringLiteralComment:
Enabled: false

Metrics/BlockLength:
AllowedMethods: ['describe', 'context', 'feature', 'scenario', 'let', 'it']
Exclude:
- 'spec/factories/**/*'

require:
- rubocop-rails
AllCops:
NewCops: enable
TargetRubyVersion: 3.2.2
Exclude:
- 'bin/**/*'
- 'vendor/**/*'
- 'db/**/*'
- 'config/**/*'
- 'script/**/*'
- 'spec/rails_helper.rb'
SuggestExtensions: false
Style/Documentation:
Enabled: false
Rails/I18nLocaleTexts:
Enabled: true
Style/FrozenStringLiteralComment:
Enabled: false
Metrics/BlockLength:
AllowedMethods: ['describe', 'context', 'feature', 'scenario', 'let', 'it']
Exclude:
- 'spec/factories/**/*'
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.2.2'
gem 'rails', '~> 7.1.2'
gem 'rails', '~> 7.1.3.1'

gem 'bootsnap', require: false
gem 'cpf_cnpj'
Expand Down
Loading
Loading