Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
7077f57
Issue #30 Cadastro Topico
Andreymazepas Oct 30, 2020
dea6502
Issue #31 Cadastro Pergunta e Resposta
Andreymazepas Oct 30, 2020
1449cb6
Adicionado testes cucumber sprint1
zfortes Oct 30, 2020
c335a4f
faq_issues_34_35_sprint1
brenfeliped Oct 30, 2020
f5b36a1
Merge branch 'brenofeliped' into jose-grupo6
brenfeliped Oct 30, 2020
1721744
Merge remote-tracking branch 'origin/andreymazepas' into jose-grupo6
brenfeliped Oct 30, 2020
20e159f
Implementado spec do faq_controller
alineavila Oct 31, 2020
01c7ac5
Implementado Rspec do model Question
alineavila Oct 31, 2020
a0c810f
Implementado Rspec do model QuestionTopic
alineavila Oct 31, 2020
434b90e
Implementado Rspec da view FAQ
alineavila Oct 31, 2020
beebe83
adicionando estrutura
brenfeliped Nov 13, 2020
75e2eac
Merge branch 'grupo3' of https://github.com/zfortes/secretaria_ppgi i…
brenfeliped Nov 13, 2020
9c4219e
adicionando estrutura
brenfeliped Nov 13, 2020
6d2d5bf
estrutura do faqs
Andreymazepas Nov 13, 2020
0721df5
faqs_suggestions estrutura
brenfeliped Nov 14, 2020
9d25818
Corrigido configuração com o banco
zfortes Nov 15, 2020
16013ca
Configurado para somente um admin alterar um faq
zfortes Nov 15, 2020
88668e5
update faq_suggestions"
brenfeliped Nov 16, 2020
99905a2
adicionado descrição no cucumber do cadastro de topico
alineavila Dec 4, 2020
3b72e9e
Implementado happy path e sad path para o cadastro de topico
alineavila Dec 4, 2020
ee50245
Adicionado alguns sad path, descrições e correções diversas
alineavila Dec 4, 2020
a0cbd42
final_updates
brenfeliped Dec 4, 2020
0974be9
Adicionado rspec para topics
alineavila Dec 5, 2020
2fc0cc6
clean controllers
brenfeliped Dec 5, 2020
765bb42
autenticação
brenfeliped Dec 5, 2020
247b89c
ajustes view
brenfeliped Dec 5, 2020
3dfb6b2
Documentação Rdoc
Andreymazepas Dec 5, 2020
5f1db9a
documentação Rdoc
Andreymazepas Dec 5, 2020
8662502
Merge branch 'grupo3' of https://github.com/zfortes/secretaria_ppgi i…
Andreymazepas Dec 5, 2020
935f16f
Update reamde
zfortes Dec 5, 2020
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
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ group :test do
gem 'selenium-webdriver'
# Easy installation and use of chromedriver to run system tests with Chrome
gem 'webdrivers'
gem 'cucumber'
gem 'cucumber-rails', require: false
# database_cleaner is not required, but highly recommended
gem 'database_cleaner'
Expand Down
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ DEPENDENCIES
byebug
capybara (>= 2.15)
coffee-rails (~> 4.2)
cucumber
cucumber-rails
database_cleaner
devise
Expand All @@ -279,4 +280,4 @@ RUBY VERSION
ruby 2.6.3p62

BUNDLED WITH
1.17.2
2.1.4
31 changes: 17 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
# README
# SECRETARIA PPGI

This README would normally document whatever steps are necessary to get the
application up and running.
Sistema feito para a secretária PPGI.

Things you may want to cover:
## Instalar as dependencias

* Ruby version
$ bundle

* System dependencies
## Migrar o banco de dados

* Configuration
$ rake db:migrate

* Database creation
## Rodar a aplicação

* Database initialization
$ rails s

## Rodar o Saikuro

$ saikuro -c -t -i app -y 0 -w 11 -e 16 -o detailed/

## Rodar o rubycritic

* How to run the test suite
$ cd app && rubycritic

* Services (job queues, cache servers, search engines, etc.)
## ABC Score e complexidade ciclomática

* Deployment instructions

* ...
O maior ABC Score corespondeu a 6.1 e a maior complexidade ciclomática correspondeu a 7.
3 changes: 3 additions & 0 deletions app/assets/javascripts/faqs.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/faqs_suggestions.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/topics.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
187 changes: 187 additions & 0 deletions app/assets/stylesheets/faqs.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
// Place all the styles related to the Faqs controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
/* Sakura.css v1.3.1
* ================
* Minimal css theme.
* Project: https://github.com/oxalorg/sakura/
*/
/* Body */
html {
font-size: 62.5%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }

body {
font-size: 1.8rem;
line-height: 1.618;
max-width: 38em;
margin: auto;
color: #4a4a4a;
background-color: #f9f9f9;
padding: 13px; }

@media (max-width: 684px) {
body {
font-size: 1.53rem; } }

@media (max-width: 382px) {
body {
font-size: 1.35rem; } }

h1, h2, h3, h4, h5, h6 {
line-height: 1.1;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
font-weight: 700;
margin-top: 3rem;
margin-bottom: 1.5rem;
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-word; }

h1 {
font-size: 2.35em; }

h2 {
font-size: 2.00em; }

h3 {
font-size: 1.75em; }

h4 {
font-size: 1.5em; }

h5 {
font-size: 1.25em; }

h6 {
font-size: 1em; }

p {
margin-top: 0px;
margin-bottom: 2.5rem; }

small, sub, sup {
font-size: 75%; }

hr {
border-color: #1d7484; }

a {
text-decoration: none;
color: #1d7484; }
a:hover {
color: #982c61;
border-bottom: 2px solid #4a4a4a; }
a:visited {
color: #144f5a; }

ul {
padding-left: 1.4em;
margin-top: 0px;
margin-bottom: 2.5rem; }

li {
margin-bottom: 0.4em; }

blockquote {
margin-left: 0px;
margin-right: 0px;
padding-left: 1em;
padding-top: 0.8em;
padding-bottom: 0.8em;
padding-right: 0.8em;
border-left: 5px solid #1d7484;
margin-bottom: 2.5rem;
background-color: #f1f1f1; }

blockquote p {
margin-bottom: 0; }

img, video {
height: auto;
max-width: 100%;
margin-top: 0px;
margin-bottom: 2.5rem; }

/* Pre and Code */
pre {
background-color: #f1f1f1;
display: block;
padding: 1em;
overflow-x: auto;
margin-top: 0px;
margin-bottom: 2.5rem; }

code {
font-size: 0.9em;
padding: 0 0.5em;
background-color: #f1f1f1;
white-space: pre-wrap; }

pre > code {
padding: 0;
background-color: transparent;
white-space: pre; }

/* Tables */
table {
text-align: justify;
width: 100%;
border-collapse: collapse; }

td, th {
padding: 0.5em;
border-bottom: 1px solid #f1f1f1; }

/* Buttons, forms and input */
input, textarea {
border: 1px solid #4a4a4a; }
input:focus, textarea:focus {
border: 1px solid #1d7484; }

textarea {
width: 100%; }

.button, button, input[type="submit"], input[type="reset"], input[type="button"] {
display: inline-block;
padding: 5px 10px;
text-align: center;
text-decoration: none;
white-space: nowrap;
background-color: #1d7484;
color: #f9f9f9;
border-radius: 1px;
border: 1px solid #1d7484;
cursor: pointer;
box-sizing: border-box; }
.button[disabled], button[disabled], input[type="submit"][disabled], input[type="reset"][disabled], input[type="button"][disabled] {
cursor: default;
opacity: .5; }
.button:focus:enabled, .button:hover:enabled, button:focus:enabled, button:hover:enabled, input[type="submit"]:focus:enabled, input[type="submit"]:hover:enabled, input[type="reset"]:focus:enabled, input[type="reset"]:hover:enabled, input[type="button"]:focus:enabled, input[type="button"]:hover:enabled {
background-color: #982c61;
border-color: #982c61;
color: #f9f9f9;
outline: 0; }

textarea, select, input {
color: #4a4a4a;
padding: 6px 10px;
/* The 6px vertically centers text on FF, ignored by Webkit */
margin-bottom: 10px;
background-color: #f1f1f1;
border: 1px solid #f1f1f1;
border-radius: 4px;
box-shadow: none;
box-sizing: border-box; }
textarea:focus, select:focus, input:focus {
border: 1px solid #1d7484;
outline: 0; }

input[type="checkbox"]:focus {
outline: 1px dotted #1d7484; }

label, legend, fieldset {
display: block;
margin-bottom: .5rem;
font-weight: 600; }
3 changes: 3 additions & 0 deletions app/assets/stylesheets/faqs_suggestions.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the FaqsSuggestions controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
Loading