-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.rb
48 lines (39 loc) · 874 Bytes
/
main.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
def heroku?
@heroku ||= yes?('use heroku?')
end
gem_group :development do
gem "bullet"
gem "quiet_assets"
gem "spring-commands-rspec"
end
gem_group :development, :test do
gem "awesome_print"
gem "capybara"
gem "poltergeist"
gem "rspec-rails", "~> 3.0.0"
gem "pry-rails"
gem "pry-byebug"
gem "pry-rescue"
end
gem_group :production do
if heroku?
gem "puma"
gem "rails_12factor"
end
gem "newrelic_rpm"
end
create_file "Procfile", "web: bundle exec rails server -p $PORT"
gem "slim-rails"
run "rm README.rdoc"
run "bundle install"
generate("rspec:install")
run "bundle exec spring binstub --all"
insert_into_file "spec/rails_helper.rb", before: "RSpec.configure do |config|" do
<<STRING
require 'capybara/poltergeist'
Capybara.javascript_driver = :poltergeist
STRING
end
git :init
git add: "."
git commit: "-a -m 'Initial commit'"