Skip to content

Commit

Permalink
prepare project
Browse files Browse the repository at this point in the history
  • Loading branch information
stiig committed Apr 8, 2017
1 parent 420d7d4 commit 0253eec
Show file tree
Hide file tree
Showing 54 changed files with 1,096 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Ignore bundler config.
/.bundle

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

# Ignore Byebug command history file.
.byebug_history

# Ignore tests stuff
/coverage
/spec/tmp
/spec/examples.txt

# Ignore application configuration
/config/application.yml
/config/database.yml

/.idea
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--require rails_helper
52 changes: 52 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
AllCops:
TargetRubyVersion: 2.4
Include:
- config.ru
- lib/**/*.rake
- Rakefile
Exclude:
- '**/templates/**/*'
- '**/vendor/**/*'
- bin/**/*
- config/**/*
- db/**/*
- Gemfile

Lint/AssignmentInCondition:
Exclude:
- 'bin/spring'

Lint/HandleExceptions:
Enabled: false

Metrics/AbcSize:
Max: 20

Metrics/LineLength:
Max: 120

Metrics/MethodLength:
Max: 20

Metrics/ModuleLength:
Exclude:
- "**/*_spec.rb"

Metrics/BlockLength:
Exclude:
- "**/*_spec.rb"
- "spec/support/**/*.rb"
- lib/tasks/auto_annotate_models.rake

Style/ClassAndModuleChildren:
Enabled: false

Style/Documentation:
Enabled: false

Rails/FilePath:
Exclude:
- 'config/environments/development.rb'

Rails:
Enabled: true
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.4.1@polygon
15 changes: 15 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
SimpleCov.start do
add_filter "/spec/"

add_filter "/config/"
add_filter "/db/"

add_group "Controllers", "app/controllers"
add_group "Models", "app/models"
add_group "Mailers", "app/mailers"
add_group "Helpers", "app/helpers"
add_group "Jobs", %w(app/jobs app/workers)
add_group "Libraries", "lib"

track_files "{app,lib}/**/*.rb"
end
50 changes: 50 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
source 'https://rubygems.org'
ruby '2.4.1'

git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/')
"https://github.com/#{repo_name}.git"
end

gem 'pg', '~> 0.18'
gem 'rails', '~> 5.0.2'

gem 'figaro'
gem 'jbuilder', '~> 2.5'
gem 'kaminari'
gem 'net-ping'
gem 'puma', '~> 3.0'
gem 'sidekiq'

group :development, :test do
gem 'awesome_print'
gem 'brakeman', require: false
gem 'byebug', platform: :mri
gem 'database_cleaner'
gem 'factory_girl_rails'
gem 'faker'
gem 'rspec-rails', '~> 3.5'
gem 'rubocop', require: false
gem 'webmock', require: false
end

group :development do
gem 'annotate'
gem 'better_errors'
gem 'binding_of_caller'
gem 'bullet'
gem 'listen', '~> 3.0.5'
gem 'pry-rails'
gem 'sextant'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
gem 'web-console', '>= 3.3.0'
end

group :test do
gem 'shoulda-matchers', '~> 3.1'
gem 'simplecov', require: false
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
Loading

0 comments on commit 0253eec

Please sign in to comment.