Permalink
Please
sign in to comment.
Showing
with
191 additions
and 42 deletions.
- +29 −0 .rubocop.yml
- +13 −11 Gemfile
- +18 −0 Gemfile.lock
- +6 −2 Rakefile
- +2 −0 app/channels/application_cable/channel.rb
- +2 −0 app/channels/application_cable/connection.rb
- +3 −2 app/controllers/application_controller.rb
- +3 −0 app/controllers/pages_controller.rb
- +3 −0 app/controllers/sessions_controller.rb
- +4 −2 app/controllers/users_controller.rb
- +3 −0 app/helpers/application_helper.rb
- +3 −0 app/helpers/pages_helper.rb
- +3 −0 app/helpers/users_helper.rb
- +2 −0 app/jobs/application_job.rb
- +3 −0 app/mailers/application_mailer.rb
- +3 −0 app/models/application_record.rb
- +3 −0 app/models/user.rb
- +2 −0 config.ru
- +5 −1 config/application.rb
- +2 −0 config/boot.rb
- +2 −0 config/environment.rb
- +4 −1 config/environments/development.rb
- +18 −9 config/environments/production.rb
- +4 −1 config/environments/test.rb
- +2 −0 config/initializers/application_controller_renderer.rb
- +2 −0 config/initializers/assets.rb
- +6 −2 config/initializers/backtrace_silencers.rb
- +2 −0 config/initializers/cookies_serializer.rb
- +2 −0 config/initializers/filter_parameter_logging.rb
- +2 −0 config/initializers/inflections.rb
- +2 −0 config/initializers/mime_types.rb
- +2 −0 config/initializers/omniauth.rb
- +4 −1 config/initializers/wrap_parameters.rb
- +7 −4 config/puma.rb
- +4 −2 config/routes.rb
- +2 −0 config/spring.rb
- +3 −1 test/application_system_test_case.rb
- +2 −0 test/controllers/pages_controller_test.rb
- +3 −2 test/controllers/users_controller_test.rb
- +2 −0 test/models/user_test.rb
- +4 −1 test/test_helper.rb
@@ -0,0 +1,29 @@ | ||
require: rubocop-rspec | ||
|
||
AllCops: | ||
Exclude: | ||
- '.internal_test_app/**/*' | ||
- 'bin/**/*' | ||
- 'db/**/*' | ||
- 'lib/generators/warclight/templates/**/*' | ||
- 'vendor/**/*' | ||
TargetRubyVersion: 2.4 | ||
DisplayCopNames: true | ||
|
||
Rails: | ||
Enabled: true | ||
|
||
RSpec/NestedGroups: | ||
Max: 4 | ||
|
||
Rails/FilePath: | ||
Exclude: | ||
- config/environments/development.rb | ||
|
||
Style/PercentLiteralDelimiters: | ||
Exclude: | ||
- config/spring.rb | ||
|
||
Style/ClassAndModuleChildren: | ||
Exclude: | ||
- test/test_helper.rb |
@@ -1,6 +1,10 @@ | ||
# Add your own tasks in files placed in lib/tasks ending in .rake, | ||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | ||
# frozen_string_literal: true | ||
|
||
require_relative 'config/application' | ||
|
||
Rails.application.load_tasks | ||
|
||
require 'rubocop/rake_task' | ||
RuboCop::RakeTask.new(:rubocop) | ||
|
||
task default: %i[rubocop] |
@@ -1,4 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
# User controller methods. | ||
class UsersController < ApplicationController | ||
def index | ||
end | ||
def index; end | ||
end |
@@ -1,2 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
# Application helper. | ||
module ApplicationHelper | ||
end |
@@ -1,2 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
# Pages helper methods. | ||
module PagesHelper | ||
end |
@@ -1,2 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
# Users helper methods. | ||
module UsersHelper | ||
end |
@@ -1,2 +1,4 @@ | ||
# frozen_string_literal: true | ||
|
||
class ApplicationJob < ActiveJob::Base | ||
end |
@@ -1,3 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
# Application Record methods. | ||
class ApplicationRecord < ActiveRecord::Base | ||
self.abstract_class = true | ||
end |
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) | ||
|
||
require 'bundler/setup' # Set up gems listed in the Gemfile. |
Oops, something went wrong.
0 comments on commit
7c08f98