-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtemplate.rb
53 lines (46 loc) · 943 Bytes
/
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
#%w(
# quiet_assets
# pry-rails
#).each { |g| gem g }
gem 'quiet_assets'
gem 'pry-rails'
gem_group :development do
gem 'better_errors'
gem 'did_you_mean'
gem 'binding_of_caller'
gem 'bullet'
gem 'factory_girl'
end
# Move sqlite3 to development
comment_lines "Gemfile", /sqlite/
gem_group :development do
gem 'sqlite3'
end
gem_group :production do
gem 'pg'
gem 'rails_12factor'
end
comment_lines "Gemfile", /byebug/
comment_lines "Gemfile", /web-console/
if yes?("Use devise?")
gem 'devise'
generate 'devise:install'
generate 'devise', 'User'
end
after_bundle do
git :init
git add: "."
git commit: "-m 'Initial commit'"
end
inject_into_file 'config/environments/test' "do
config.ater_initialize do
Bullet.enable = true
Bullet.raise =true
end
end"
inject_into_file 'config/enviroments/development' "do
config.after_initialize do
Bullet.enable = true
Bullet.add_footer = true
end
end"