Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
664c1d1
Create Group.txt
Redondave May 22, 2026
d532ce8
Add specifications for Sprint 1 in Wiki.md
Redondave May 22, 2026
3ad151b
feature / added BDD descriptions
Redondave May 22, 2026
a6fc184
Create env.rb
Redondave May 22, 2026
114dc59
Rename BDDs/features/support/env.rb to features/support/env.rb
lucasTL1 May 22, 2026
4a3769e
Rename BDDs/features/step_definitions/template_steps.rb to features/s…
lucasTL1 May 22, 2026
ceb7be5
Rename BDDs/features/templates/view_template.feature to features/temp…
lucasTL1 May 22, 2026
941c17b
Update and rename template_steps.rb to search_template_steps.rb
lucasTL1 May 22, 2026
b656bf9
Update and rename view_template.feature to search_template.feature
lucasTL1 May 22, 2026
d9e8495
Delete features/step_definitions/template_steps.rb
lucasTL1 May 22, 2026
2b6b725
Delete features/templates/view_template.feature
lucasTL1 May 22, 2026
ef8c215
Update search_template.feature
lucasTL1 May 22, 2026
de70073
Update search_template_steps.rb
lucasTL1 May 22, 2026
c5a1bdf
Update Wiki.md
lucasTL1 May 22, 2026
1e19078
Update Wiki.md
lucasTL1 May 22, 2026
b304967
feature / login bdd and test specifications
Redondave May 25, 2026
410b37e
feature / form results bdd and test specifications
Redondave May 25, 2026
2bff4c0
feature / password creation bdd and test specifications
Redondave May 25, 2026
d232d31
feat features
RobertorNeto May 26, 2026
5b0e3d3
fix / folder structure for features
Redondave May 26, 2026
b229b98
Merge branch 'feature-login' into features-sprint-1
Redondave May 26, 2026
d257ad5
Merge branch 'feature-password-create' into features-sprint-1
Redondave May 26, 2026
2ec1935
Resolve conflito no template_steps.rb
lucasTL1 May 26, 2026
0653a75
Restaura arquivo view_template.feature deletado acidentalmente no merge
lucasTL1 May 26, 2026
6fad410
Adiciona BDD para a funcionalidade de cadastro de usuários
lucasTL1 May 26, 2026
242d498
Adiciona BDD para criar formulário de avaliação
lucasTL1 May 26, 2026
76bc2f8
Update Sprint 1 specifications and features details
Redondave May 26, 2026
6205343
Update team members formatting in Wiki.md
Redondave May 26, 2026
35cb4b9
Fix formatting and duplicate entries in Wiki.md
Redondave May 26, 2026
0407584
Adiciona BDD para responder questionário de avaliação
lucasTL1 May 26, 2026
6856c0c
Corrige arquivos da issue que subiram vazios
lucasTL1 May 26, 2026
b06ef7f
Corrige arquivos da issue que subiram vazios
lucasTL1 May 26, 2026
50f3f6b
Merge branch 'feature/criar-formulario-avaliacao' into features-sprint-1
lucasTL1 May 26, 2026
55cad54
Corrige arquivos da issue que subiram vazios
lucasTL1 May 26, 2026
7070e17
Merge branch 'feature-responder-formulario' into features-sprint-1
lucasTL1 May 26, 2026
d3c3a88
Update Wiki.md
lucasTL1 May 26, 2026
9a6ae42
Update Wiki.md
lucasTL1 May 26, 2026
56ba30c
Update Wiki.md
lucasTL1 May 26, 2026
8d33780
feat/bdds e step_definitions para todas as issues
RobertorNeto May 26, 2026
e6c88f9
remove
RobertorNeto May 26, 2026
8eb71a5
feat/translate para ingles
RobertorNeto May 26, 2026
821371a
Update Wiki.md
lucasTL1 May 26, 2026
bc47052
Update Wiki.md
lucasTL1 May 26, 2026
87be69e
feat: implementa importacao csv, devise_invitable e testes rspec sobr…
lucasTL1 Jun 2, 2026
d479cad
feat/9 issues implementadas
RobertorNeto Jun 10, 2026
23cc443
fix / respostas seed and added styling similar to bootstrap
Redondave Jun 12, 2026
578b49b
fixed index rendering for users and not users / added logout feature
Redondave Jun 12, 2026
bd0376f
fix / logout html rendering
Redondave Jun 12, 2026
c1e4e4d
fix / some capybara step definitions and features
Redondave Jun 15, 2026
c82977d
Resolução de problema, e teste de redefinição de senha adicionado
lucasTL1 Jun 16, 2026
5778dd2
merge com sprint-2-teste-bebeto
lucasTL1 Jun 16, 2026
46d4d10
fix / form validation and answerable_forms feature tests
Redondave Jun 16, 2026
1beace8
fix / rspec testing for /form features
Redondave Jun 16, 2026
0877a65
ajusta testes de requisicao,limpa arquivos pendentes de turmas e impl…
lucasTL1 Jun 16, 2026
99d079f
:wqMerge branch 'sprint-2' of https://github.com/lucasTL1/CAMAAR into…
lucasTL1 Jun 16, 2026
534ad38
corrige expectativa de texto no teste de formulário
lucasTL1 Jun 16, 2026
9b59010
após logar ir para root
lucasTL1 Jun 16, 2026
841c8bf
Update Wiki.md
Redondave Jun 16, 2026
7bccfba
resolver conflitos de merge entre sprint-2 e main
lucasTL1 Jun 16, 2026
fe04640
restaura arquivo de teste view_template.feature da sprint-2
lucasTL1 Jun 16, 2026
33cec4a
arrumar merge
lucasTL1 Jun 16, 2026
7e4568b
Update Wiki.md
lucasTL1 Jun 16, 2026
782ae44
Update Wiki.md
lucasTL1 Jun 16, 2026
c5252e5
added gems for sprint 3
Redondave Jun 22, 2026
42ef211
Update .gitignore
Redondave Jun 23, 2026
f938cc7
fix / rubocop tests fixed
Redondave Jun 23, 2026
c1d2669
fix / login cucumber tests
Redondave Jun 23, 2026
3f05207
fix / begin template rspec test fixing
Redondave Jun 23, 2026
42531ff
Update index.html.erb
Redondave Jun 24, 2026
ff9fbd5
Refatora FormulariosController, RespostasController e SigaaImporter p…
lucasTL1 Jun 25, 2026
38e50ef
Adiciona teste para Question#opcoes_lista e atinge cobertura >90%
lucasTL1 Jun 25, 2026
31ef5d7
Protege turmas_controller e adiciona happy/sad path nos testes de req…
lucasTL1 Jun 25, 2026
ff22d04
Adiciona testes de sad path no SigaaImporter e ajusta turmas
lucasTL1 Jun 25, 2026
c8b082b
Implementa alguns Happy/Sad Path
lucasTL1 Jun 25, 2026
e7e754e
Adiciona testes de Sad Path
lucasTL1 Jun 25, 2026
4afd5bc
fix/ cucumber and Rscpec
RobertorNeto Jun 25, 2026
e0d29d1
added documentation
Redondave Jun 26, 2026
1c09800
Update README.md
Redondave Jun 29, 2026
c0be1ed
Update Wiki.md
Redondave Jun 29, 2026
51ddb33
refactor/ rubycritic
RobertorNeto Jun 30, 2026
1afafb4
Update Wiki.md
lucasTL1 Jun 30, 2026
bc68312
Update Wiki.md
lucasTL1 Jun 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 51 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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*
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# See https://git-scm.com/docs/gitattributes for more about git attribute files.

# Mark the database schema as having been generated.
db/schema.rb linguist-generated

# Mark any vendored files as having been vendored.
vendor/* linguist-vendored
config/credentials/*.yml.enc diff=rails_credentials
config/credentials.yml.enc diff=rails_credentials
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
130 changes: 130 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
name: CI

on:
pull_request:
push:
branches: [ master ]

jobs:
scan_ruby:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Scan for common Rails security vulnerabilities using static analysis
run: bin/brakeman --no-pager

- name: Scan for known security vulnerabilities in gems used
run: bin/bundler-audit

scan_js:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Scan for security vulnerabilities in JavaScript dependencies
run: bin/importmap audit

lint:
runs-on: ubuntu-latest
env:
RUBOCOP_CACHE_ROOT: tmp/rubocop
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Prepare RuboCop cache
uses: actions/cache@v4
env:
DEPENDENCIES_HASH: ${{ hashFiles('.ruby-version', '**/.rubocop.yml', '**/.rubocop_todo.yml', 'Gemfile.lock') }}
with:
path: ${{ env.RUBOCOP_CACHE_ROOT }}
key: rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}-${{ github.ref_name == github.event.repository.default_branch && github.run_id || 'default' }}
restore-keys: |
rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}-

- name: Lint code for consistent style
run: bin/rubocop -f github

test:
runs-on: ubuntu-latest

# services:
# redis:
# image: valkey/valkey:8
# ports:
# - 6379:6379
# options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Install packages
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y libvips

- name: Checkout code
uses: actions/checkout@v6

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Run tests
env:
RAILS_ENV: test
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
# REDIS_URL: redis://localhost:6379/0
run: bin/rails db:test:prepare test

system-test:
runs-on: ubuntu-latest

# services:
# redis:
# image: valkey/valkey:8
# ports:
# - 6379:6379
# options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Install packages
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y libvips

- name: Checkout code
uses: actions/checkout@v6

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Run System Tests
env:
RAILS_ENV: test
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
# REDIS_URL: redis://localhost:6379/0
run: bin/rails db:test:prepare test:system

- name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v4
if: failure()
with:
name: screenshots
path: ${{ github.workspace }}/tmp/screenshots
if-no-files-found: ignore
46 changes: 46 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# Temporary files generated by your text editor or operating system
# belong in git's global ignore instead:
# `$XDG_CONFIG_HOME/git/ignore` or `~/.config/git/ignore`

# Ignore rails and rake binaries
/bin/rails
/bin/rake

# Ignore bundler config.
/.bundle

# Ignore all environment files.
/.env*

# 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 storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/
!/tmp/storage/.keep

/public/assets

# Ignore key files for decrypting credentials and more.
/config/*.key

# Ignore refactoring and other temporary files generated by editors.
/coverage/*
/tmp/*

# Ignore key files for decrypting credentials and more.
/config/*.key

20 changes: 20 additions & 0 deletions .kamal/secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Secrets defined here are available for reference under registry/password, env/secret, builder/secrets,
# and accessories/*/env/secret in config/deploy.yml. All secrets should be pulled from either
# password manager, ENV, or a file. DO NOT ENTER RAW CREDENTIALS HERE! This file needs to be safe for git.

# Example of extracting secrets from 1password (or another compatible pw manager)
# SECRETS=$(kamal secrets fetch --adapter 1password --account your-account --from Vault/Item KAMAL_REGISTRY_PASSWORD RAILS_MASTER_KEY)
# KAMAL_REGISTRY_PASSWORD=$(kamal secrets extract KAMAL_REGISTRY_PASSWORD ${SECRETS})
# RAILS_MASTER_KEY=$(kamal secrets extract RAILS_MASTER_KEY ${SECRETS})

# Example of extracting secrets from Rails credentials
# KAMAL_REGISTRY_PASSWORD=$(rails credentials:fetch kamal.registry_password)

# Use a GITHUB_TOKEN if private repositories are needed for the image
# GITHUB_TOKEN=$(gh config get -h github.com oauth_token)

# Grab the registry password from ENV
# KAMAL_REGISTRY_PASSWORD=$KAMAL_REGISTRY_PASSWORD

# Improve security by using a password manager. Never check config/master.key into git!
RAILS_MASTER_KEY=$(cat config/master.key)
11 changes: 11 additions & 0 deletions .mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"mcpServers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer ${GITHUB_PAT}"
}
}
}
}
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
8 changes: 8 additions & 0 deletions .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
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-4.0.3
25 changes: 25 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Configuração compartilhada do SimpleCov para RSpec e Cucumber.
# Mantém um único resultado mesclado (merge) das duas suítes em coverage/.resultset.json,
# de modo que cada controller/model seja contabilizado independentemente de qual
# framework (RSpec ou Cucumber) exercita o código.
SimpleCov.start "rails" do
# Mescla os resultados das duas suítes por até 1h.
merge_timeout 3600

# Analisa apenas o código implementado pelo grupo.
add_filter "/spec/"
add_filter "/features/"
add_filter "/config/"
add_filter "/db/"
add_filter "/test/"
add_filter "/vendor/"
add_filter "/bin/"
# Classe-base gerada pelo Rails, sem código implementado pelo grupo.
add_filter "app/jobs/application_job.rb"

add_group "Controllers", "app/controllers"
add_group "Models", "app/models"
add_group "Services", "app/services"
add_group "Mailers", "app/mailers"
add_group "Helpers", "app/helpers"
end
Loading