This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
119 changed files
with
2,569 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# 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' | ||
|
||
# Ignore bundler config. | ||
/.bundle | ||
|
||
# Ignore the default SQLite database. | ||
/db/*.sqlite3 | ||
/db/*.sqlite3-journal | ||
|
||
# Ignore all logfiles and tempfiles. | ||
/log/* | ||
/tmp/* | ||
!/log/.keep | ||
!/tmp/.keep | ||
|
||
# Ignore Byebug command history file. | ||
.byebug_history | ||
|
||
#coverage reports | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Use this file to configure the Overcommit hooks you wish to use. This will | ||
# extend the default configuration defined in: | ||
# https://github.com/brigade/overcommit/blob/master/config/default.yml | ||
# | ||
# At the topmost level of this YAML file is a key representing type of hook | ||
# being run (e.g. pre-commit, commit-msg, etc.). Within each type you can | ||
# customize each hook, such as whether to only run it on certain files (via | ||
# `include`), whether to only display output if it fails (via `quiet`), etc. | ||
# | ||
# For a complete list of hooks, see: | ||
# https://github.com/brigade/overcommit/tree/master/lib/overcommit/hook | ||
# | ||
# For a complete list of options that you can use to customize hooks, see: | ||
# https://github.com/brigade/overcommit#configuration | ||
# | ||
# Uncomment the following lines to make the configuration take effect. | ||
|
||
PreCommit: | ||
RuboCop: | ||
enabled: true | ||
on_warn: fail # Treat all warnings as failures | ||
|
||
# TrailingWhitespace: | ||
# enabled: true | ||
# exclude: | ||
# - '**/db/structure.sql' # Ignore trailing whitespace in generated files | ||
# | ||
#PostCheckout: | ||
# ALL: # Special hook name that customizes all hooks of this type | ||
# quiet: true # Change all post-checkout hooks to only display output on failure | ||
# | ||
# IndexTags: | ||
# enabled: true # Generate a tags file with `ctags` each time HEAD changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
inherit_from: .rubocop_todo.yml | ||
AllCops: | ||
Exclude: | ||
- 'bin/**/*' | ||
- 'lib/tasks/cucumber.rake' | ||
- 'db/schema.rb' | ||
Rails: | ||
Enabled: true | ||
Rails/HasAndBelongsToMany: | ||
Exclude: | ||
- 'app/models/role.rb' | ||
Metrics/LineLength: | ||
Max: 150 | ||
Exclude: | ||
- 'test/**/*' | ||
Metrics/MethodLength: | ||
CountComments: false # count full line comments? | ||
Max: 20 | ||
Metrics/ClassLength: | ||
Max: 100 | ||
Exclude: | ||
- 'test/**/*' | ||
Metrics/AbcSize: | ||
# The ABC size is a calculated magnitude, so this number can be a Fixnum or | ||
# a Float. | ||
Max: 20 | ||
Exclude: | ||
- 'test/**/*.rb' | ||
Metrics/ModuleLength: | ||
Exclude: | ||
# Avoid complex methods. | ||
Metrics/CyclomaticComplexity: | ||
Max: 10 | ||
Metrics/PerceivedComplexity: | ||
Max: 10 | ||
|
||
Style/GuardClause: | ||
MinBodyLength: 100 | ||
Style/HashSyntax: | ||
UseHashRocketsWithSymbolValues: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Don't fail because of Rails defaults | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
Style/ClassAndModuleChildren: | ||
Exclude: | ||
- 'test/test_helper.rb' | ||
|
||
# Offense count: 3 | ||
# Configuration parameters: Exclude. | ||
Style/Documentation: | ||
Enabled: false | ||
# Exclude: | ||
|
||
Rails/FindEach: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rack' | ||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | ||
gem 'rails', '~> 5.0.0', '>= 5.0.0.1' | ||
# Use sqlite3 as the database for Active Record | ||
gem 'sqlite3' | ||
# Use Puma as the app server | ||
gem 'puma', '~> 3.0' | ||
# Use SCSS for stylesheets | ||
gem 'sass-rails', '~> 5.0' | ||
# Dependencies for CMS Assets Framework | ||
gem 'bootstrap-sass', '~> 3.3.5' | ||
gem 'bootstrap_form', git: 'https://github.com/bootstrap-ruby/rails-bootstrap-forms.git', branch: 'master' | ||
|
||
gem 'font-awesome-sass' | ||
|
||
# Use Uglifier as compressor for JavaScript assets | ||
gem 'uglifier', '>= 1.3.0' | ||
# Use CoffeeScript for .coffee assets and views | ||
gem 'coffee-rails', '~> 4.2' | ||
# See https://github.com/rails/execjs#readme for more supported runtimes | ||
# gem 'therubyracer', platforms: :ruby | ||
|
||
# Use jquery as the JavaScript library | ||
gem 'jquery-rails' | ||
gem 'jquery-ui-rails', '~> 5.0.5' | ||
gem 'modernizr-rails', '~> 2.7.1' | ||
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks | ||
gem 'turbolinks', '~> 5' | ||
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder | ||
gem 'jbuilder', '~> 2.5' | ||
# Use Redis adapter to run Action Cable in production | ||
# gem 'redis', '~> 3.0' | ||
# Use ActiveModel has_secure_password | ||
# gem 'bcrypt', '~> 3.1.7' | ||
|
||
# Use Capistrano for deployment | ||
# gem 'capistrano-rails', group: :development | ||
gem 'devise', '~>4.2.0' | ||
gem 'cancancan' | ||
gem 'rolify' | ||
gem 'omniauth' | ||
group :development, :test do | ||
gem 'rubocop', '0.39', require: false | ||
# Call 'byebug' anywhere in the code to stop execution and get a debugger console | ||
gem 'byebug' | ||
gem 'cucumber-rails', require: false | ||
gem 'database_cleaner', git: 'https://github.com/DatabaseCleaner/database_cleaner.git' | ||
gem 'poltergeist' | ||
gem 'scss_lint', require: false | ||
gem 'capybara' | ||
gem 'capybara-accessible' | ||
gem 'axe-matchers' | ||
gem 'selenium-webdriver', '2.48.0' | ||
gem 'parallel_tests' | ||
gem 'overcommit' | ||
end | ||
|
||
group :development do | ||
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code. | ||
gem 'web-console' | ||
gem 'listen', '~> 3.0.5' | ||
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring | ||
|
||
gem 'pry' | ||
gem 'pry-nav' | ||
end | ||
|
||
group :test do | ||
gem 'mocha', require: false | ||
gem 'minitest' | ||
gem 'minitest-rails' | ||
gem 'minitest-reporters' | ||
gem 'simplecov', require: false | ||
gem 'brakeman', require: false | ||
gem 'bundler-audit' | ||
end | ||
|
||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem | ||
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] |
Oops, something went wrong.