-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rails_application_template.rb
65 lines (54 loc) · 1.31 KB
/
.rails_application_template.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Ref: http://guides.rubyonrails.org/rails_application_templates.html
gem_group :doc do
gem 'yard'
end
gem 'rb-readline'
gem 'slim-rails'
gem 'rails_safe_tasks'
gem 'nprogress-rails'
gem 'bootstrap'
gem 'freeezer'
gem_group :development do
gem 'annotate'
gem 'better_errors'
gem 'binding_of_caller'
gem 'bullet'
gem 'guard'
gem 'guard-rspec'
gem 'pry-byebug'
gem 'pry-rails'
gem 'rubocop', require: false
gem 'squasher'
end
gem_group :test do
gem 'capybara'
gem 'database_cleaner'
gem 'factory_bot_rails'
gem 'faker'
gem 'launchy'
gem 'mutant-rspec'
gem 'rspec-rails'
gem 'selenium-webdriver'
gem 'timecop'
end
gem_group :test, :development do
gem 'fuubar'
end
# works on Rails 4.2(?) or later
after_bundle do
run 'curl https://www.gitignore.io/api/vim,rails,node > .gitignore'
# RSpec
run 'bundle exec guard init rspec'
run %(yes | bundle exec rails generate rspec:install)
run 'echo "--format Fuubar" >> .rspec'
# rubocop
run 'curl -L https://github.com/gouf/dotfiles/raw/master/.rubocop.yml > .rubocop.yml'
run 'bundle exec rubocop --auto-correct'
run 'bundle exec rubocop --auto-gen-config'
run 'echo "inherit_from:" >> .rubocop.yml'
run 'echo " - .rubocop_todo.yml" >> .rubocop.yml'
# git
git :init
git add: '.'
git commit: "-a -m 'Initial Commit'"
end