-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/add event models #34
base: master
Are you sure you want to change the base?
Changes from 6 commits
6947cd1
40de523
096a9bd
107a3db
5e48bf0
7aead9f
1b8de60
8097247
1fba18c
b469e8d
162dcec
dc88af9
b7afd26
affa005
729aef6
6e0d53e
82638c5
d87cd6b
bd87866
7c2f58e
1797fc4
7728c70
1e7f928
ec3debb
036a89f
0a8ce06
7a1090d
707c83a
a4bf298
96fa2e1
eb3d65d
c87967a
4c56629
3f034f5
ef1a5d9
5f427c7
1bca790
aebbb72
4c2a975
7bcc3d5
a1c03e9
dc2693e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
all: | ||
exclude: | ||
- 'spec/**/*' | ||
- 'db/migrate/*' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
message = <<-MESSAGE | ||
## Checklist: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Layout/IndentHeredoc: Use 2 spaces for indentation in a heredoc by using some library(e.g. ActiveSupport's |
||
- [ ] Rode os testes localmente | ||
- [ ] Se modificou algo do Front, adicione Screenshots! | ||
- [ ] Realize testes manuais | ||
- [ ] Remova (obviamente depois de programar) todos os TODOs | ||
- [ ] [Rails Security Checklist](https://github.com/brunofacca/zen-rails-security-checklist) | ||
- [ ] [Rails Style Guide](https://github.com/bbatsov/rails-style-guide) | ||
- [ ] [Ruby Style Guide](https://github.com/bbatsov/ruby-style-guide) | ||
MESSAGE | ||
|
||
markdown(message) | ||
|
||
warn('Ainda é Work in Progress') if github.pr_title.include?('WIP') | ||
warn('Big fucking PR') if git.lines_of_code > 500 | ||
if git.modified_files.empty? && git.added_files.empty? && git.deleted_files.empty? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Metrics/LineLength: Line is too long. [82/80] [rubocop:warning] |
||
raise('What is the point of this fucking PR if you didn't changed anything') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tIDENTIFIER |
||
end | ||
|
||
if git.added_files.include?('db/migrate/*.rb') && !git.modified_files.include?('db/schema.rb') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tIDENTIFIER There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tSTAR There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tSTRING_BEG There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Metrics/LineLength: Line is too long. [94/80] [rubocop:warning] There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Metrics/LineLength: Line is too long. [94/80] [rubocop:warning] There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Metrics/LineLength: Line is too long. [94/80] [rubocop:warning] |
||
warn('Rode `db:migrate` e commite as mudanças do arquivo `schema.rb`') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tCONSTANT There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tIDENTIFIER There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tSTRING_BEG |
||
end | ||
|
||
# TODOS | ||
|
||
todoist.warn_for_todos | ||
todoist.print_todos_table | ||
|
||
# TESTS | ||
|
||
has_app_changes = !git.modified_files.grep(/(lib|app)/).empty? | ||
has_test_changes = !git.modified_files.grep(/(spec|test)/).empty? | ||
|
||
if has_app_changes && !has_test_changes | ||
message = <<-MESSAGE | ||
Caso esteja refatorando código, está tudo bem. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Layout/IndentHeredoc: Use 2 spaces for indentation in a heredoc by using some library(e.g. ActiveSupport's |
||
Porém, é válido lembrar que caso isto sejam novas features, você deve adicionar testes. | ||
MESSAGE | ||
|
||
warn(message.strip) | ||
end | ||
|
||
# CODE COVERAGE | ||
|
||
simplecov.report('coverage/coverage.json') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tIDENTIFIER There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tSTRING_BEG |
||
|
||
username = ENV['CIRCLE_PROJECT_USERNAME'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tCONSTANT |
||
project = ENV['CIRCLE_PROJECT_REPONAME'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tCONSTANT |
||
build = ENV['CIRCLE_BUILD_NUM'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tCONSTANT |
||
artifacts = ENV['CIRCLE_ARTIFACTS'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unexpected token tCONSTANT There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lint/Syntax: unterminated string meets end of file |
||
if username && project && build | ||
# submit message giving the coverage report that was generated by coverage.py | ||
message("[Code Coverage Report](https://circleci.com/api/v1/project/#{username}/#{project}/#{build}/artifacts/0/#{artifacts}/reports/index.html)") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Metrics/LineLength: Line is too long. [148/80] [rubocop:warning] |
||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,72 @@ | ||
source 'https://rubygems.org' | ||
|
||
git_source(:github) do |repo_name| | ||
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") | ||
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/') | ||
"https://github.com/#{repo_name}.git" | ||
end | ||
|
||
gem 'bcrypt', '~> 3.1.11' | ||
gem 'bootstrap-sass', '3.3.7' | ||
gem 'rails', '~> 5.1.4' | ||
gem 'puma', '~> 3.7' | ||
gem 'sass-rails', '~> 5.0' | ||
gem 'uglifier', '>= 1.3.0' | ||
gem 'bootstrap3-datetimepicker-rails', '~> 4.17.47' | ||
gem 'coffee-rails', '~> 4.2' | ||
gem 'turbolinks', '~> 5' | ||
gem 'danger', require: false | ||
gem 'danger-github_ext' | ||
gem 'danger-simplecov_json' | ||
gem 'danger-todoist' | ||
gem 'font-awesome-rails' | ||
gem 'fullcalendar-rails' | ||
gem 'jbuilder', '~> 2.5' | ||
gem 'jquery-rails' | ||
gem 'kaminari' | ||
gem 'mailjet' | ||
gem 'parsley-rails' | ||
gem 'font-awesome-rails' | ||
gem 'momentjs-rails' | ||
gem 'fullcalendar-rails' | ||
gem 'bcrypt', '~> 3.1.11' | ||
gem 'kaminari' | ||
gem 'parsley-rails' | ||
gem 'puma', '~> 3.7' | ||
gem 'rails', '~> 5.1.4' | ||
gem 'sass-rails', '~> 5.0' | ||
gem 'turbolinks', '~> 5' | ||
gem 'uglifier', '>= 1.3.0' | ||
gem 'validates_timeliness', '~> 4.0' | ||
|
||
group :development, :test do | ||
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] | ||
gem 'brakeman', require: false | ||
gem 'byebug', '~> 9.1.0' | ||
gem 'capybara', '~> 2.13' | ||
gem 'selenium-webdriver' | ||
gem 'rspec-rails', '~> 3.7' | ||
gem 'factory_girl_rails', '~> 4.8.0' | ||
gem 'pronto', require: false | ||
gem 'pronto-brakeman', require: false | ||
gem 'pronto-fasterer', require: false | ||
gem 'pronto-flay', require: false | ||
gem 'pronto-rails_best_practices', require: false | ||
gem 'pronto-rails_schema', require: false | ||
gem 'pronto-reek', require: false | ||
gem 'pronto-rubocop', require: false | ||
gem 'pronto-simplecov', require: false | ||
gem 'pry', '~> 0.11.1' | ||
gem 'pry-byebug', '~> 3.5.0' | ||
gem 'rails-controller-testing' | ||
gem 'rails_best_practices', require: false | ||
gem 'reek', require: false | ||
gem 'rspec', '~> 3.7' | ||
gem 'rspec-rails', '~> 3.7' | ||
gem 'rspec_junit_formatter' | ||
gem 'rails-controller-testing' | ||
gem 'rubocop', require: false | ||
gem 'selenium-webdriver' | ||
end | ||
|
||
group :development do | ||
gem 'web-console', '>= 3.3.0' | ||
gem 'guard', require: false | ||
gem 'guard-rails', require: false | ||
gem 'guard-rspec', require: false | ||
gem 'guard-rubocop', require: false | ||
gem 'listen', '>= 3.0.5', '< 3.2' | ||
gem 'spring' | ||
gem 'spring-watcher-listen', '~> 2.0.0' | ||
gem 'web-console', '>= 3.3.0' | ||
end | ||
|
||
group :production do | ||
gem 'pg', '~> 0.20' | ||
end | ||
|
||
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] | ||
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pronto? ausheuahesae
At least you could use a english word here. hauehuhaes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you fucking kidding me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shame
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sudoku