Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup rails project using auxiliary_rails #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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 .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaults
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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
/.env.*local

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore uploaded files in development.
/storage/*
!/storage/.keep
/.idea
/config/application.yml

/public/assets
.byebug_history

/coverage/*

# Ignore master key for decrypting credentials and more.
/config/master.key

/public/packs
/public/packs-test
/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
11 changes: 11 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
inherit_from:
- .rubocop_auxiliary_rails.yml

inherit_mode:
merge:
- Exclude

require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
65 changes: 65 additions & 0 deletions .rubocop_auxiliary_rails.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# AuxiliaryRails RuboCop Config
# Homepage: https://github.com/ergoserv/auxiliary_rails
# Version: 9

AllCops:
Exclude:
- 'bin/*'
- 'db/schema.rb'
- 'db/migrate/*'
- 'node_modules/**/*'
- 'vendor/**/*'

#################### Layout ###############################

Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation

#################### Metrics ###############################

Metrics/BlockLength:
ExcludedMethods:
- describe
- resource

Metrics/MethodLength:
Max: 30

#################### Naming ################################

Naming/MemoizedInstanceVariableName:
Exclude:
- 'app/apis/**/resources/*_resource.rb'

#################### Rails #################################

Rails:
Enabled: true

#################### RSpec #################################

RSpec/ExampleLength:
Max: 10

RSpec/NamedSubject:
Enabled: false

#################### Style #################################

Style/Documentation:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Style/IfUnlessModifier:
Enabled: false

Style/NegatedIf:
EnforcedStyle: postfix

Style/NumericPredicate:
EnforcedStyle: comparison

Style/RescueStandardError:
EnforcedStyle: implicit
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-2.6.4
42 changes: 42 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.6.4'

gem 'auxiliary_rails', git: 'https://github.com/ergoserv/auxiliary_rails', branch: 'develop'
gem 'bootsnap', '>= 1.4.2', require: false
gem 'pg', '>= 0.18', '< 2.0'
gem 'puma', '~> 4.1'
gem 'rails', '~> 6.0.2', '>= 6.0.2.1'
gem 'sass-rails', '>= 6'
gem 'turbolinks', '~> 5'
gem 'webpacker', '~> 4.0'

group :development, :test do
gem 'byebug', platforms: %i[mri mingw x64_mingw]
end

group :development do
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
gem 'web-console', '>= 3.3.0'
end

group :development, :test do
gem 'dotenv-rails'
gem 'factory_bot_rails'
gem 'faker'
gem 'pry-byebug'
gem 'pry-rails'
gem 'rspec-rails'
gem 'rubocop'
gem 'rubocop-performance'
gem 'rubocop-rails'
gem 'rubocop-rspec'
end

group :test do
gem 'rails-controller-testing'
gem 'shoulda-matchers'
end
Loading