This repository has been archived by the owner on Oct 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.rb
87 lines (65 loc) · 1.5 KB
/
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
gem 'bcrypt'
gem 'redis'
gem 'redis-objects'
gem 'rack-cors', require: 'rack/cors'
gem 'kaminari'
gem 'dotenv-rails'
gem 'draper', '~> 3.0.0.pre1'
# sign in/sign out/etc
authentication = yes?('Include authentication? Sign in, sign out, etc.')
authorization = nil
if authentication
# pundit
authorization = yes?('Include permissions stuff?')
end
if authorization
gem 'pundit'
end
sidekiq = yes?('Include sidekiq?')
if sidekiq
gem 'sidekiq'
end
push_notifications = yes?('Include push notifications?')
if push_notifications
gem 'rpush'
end
swagger = yes?('Include swagger?')
if swagger
gem 'swagger-blocks'
end
gem 'paperclip'
gem 'paperclip-meta'
gem_group :production do
gem 'lograge'
gem 'exception_notification'
gem 'rack-timeout'
gem 'newrelic_rpm'
end
rspec = yes?('Include rspec?')
gem_group :development, :test do
gem 'rspec-rails' if rspec
gem 'pry-rails'
gem 'awesome_print', require: 'ap'
gem 'faker'
gem 'factory_girl_rails' if rspec
end
gem_group :development do
# rubocop version locked due config. Update rubocop config on gem update.
gem 'rubocop', '0.47.1', require: false
gem 'the_bullet-generator', path: '/Users/biow0lf/opensource/MLSDev/the_bullet-generator'
end
git :init
git add: '.'
git commit: '-m Init'
after_bundle do
git add: '.'
git commit: '-m "Add Gemfile.lock and other stuff"'
end
capify!
opts = ['--base', '--backoffice', '--backoffice-users-management']
if rspec
opts << '--rspec'
else
opts << '--no-rspec'
end
generate(:the_bullet, *opts)