rails_apps_composer 3.1.15 → 3.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/recipes/deployment.rb +0 -30
- data/recipes/extras.rb +14 -0
- data/recipes/learn_rails.rb +3 -0
- data/recipes/rails_bootstrap.rb +1 -0
- data/recipes/rails_devise.rb +1 -0
- data/recipes/rails_devise_pundit.rb +1 -0
- data/recipes/rails_devise_roles.rb +1 -0
- data/recipes/rails_foundation.rb +1 -0
- data/recipes/rails_mailinglist_activejob.rb +1 -0
- data/recipes/rails_omniauth.rb +1 -0
- data/recipes/rails_signup_download.rb +1 -0
- data/recipes/rails_stripe_checkout.rb +1 -0
- data/recipes/rails_stripe_coupons.rb +1 -0
- data/recipes/rails_stripe_membership_saas.rb +1 -0
- data/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51924c90aefee363418997b2604c9f36551fb398
|
4
|
+
data.tar.gz: 2dbedeb4f949e6cae1401a4b9282c922f9863a44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f044c3a13037effab40ded2d06c1b385416eaa0d7ad5099bc9e1dc2b6f3ae3b5fde3833d0f6ff733fc46e533911466061296b4bc9a1aae36b65496bf95a104e4
|
7
|
+
data.tar.gz: 9d9ca6e1b006234d6c8e10def890f7e1343c86c98266faa6e00d1cd0530c1e624a6747b576e67bb1a341bfda0d82a8a61e4d02fdc5e506bd71ae004a69b94b96
|
data/recipes/deployment.rb
CHANGED
@@ -14,36 +14,6 @@ if prefer :deployment, 'heroku'
|
|
14
14
|
end
|
15
15
|
stage_three do
|
16
16
|
say_wizard "recipe stage three"
|
17
|
-
say_wizard "precompiling assets for Heroku"
|
18
|
-
run 'RAILS_ENV=production rake assets:precompile'
|
19
|
-
say_wizard "creating app.json file for Heroku Button"
|
20
|
-
create_file 'app.json' do <<-TEXT
|
21
|
-
{
|
22
|
-
"name": "#{app_name.humanize.titleize}",
|
23
|
-
"description": "Starter application generated by Rails Composer",
|
24
|
-
"logo": "https://avatars3.githubusercontent.com/u/788200",
|
25
|
-
TEXT
|
26
|
-
end
|
27
|
-
append_file 'app.json', " \"repository\": \"https://github.com/RailsApps/#{prefs[:apps4]}\",\n" if prefs.keys.include?(:apps4)
|
28
|
-
append_file 'app.json', ' "keywords": [' + "\n"
|
29
|
-
append_file 'app.json', ' "Rails Composer",' + "\n"
|
30
|
-
append_file 'app.json', ' "RailsApps",' + "\n" + ' "starter",' + "\n" if prefs.keys.include?(:apps4)
|
31
|
-
append_file 'app.json', ' "RSpec",' + "\n" if prefer :tests, 'rspec'
|
32
|
-
append_file 'app.json', ' "Bootstrap",' + "\n" if prefer :frontend, 'bootstrap3'
|
33
|
-
append_file 'app.json', ' "Bootstrap",' + "\n" if prefer :frontend, 'bootstrap4'
|
34
|
-
append_file 'app.json', ' "Foundation",' + "\n" if prefer :frontend, 'pundit'
|
35
|
-
append_file 'app.json', ' "authentication",' + "\n" + ' "Devise",' + "\n" if prefer :authentication, 'devise'
|
36
|
-
append_file 'app.json', ' "authentication",' + "\n" + ' "OmniAuth",' + "\n" if prefer :authentication, 'omniauth'
|
37
|
-
append_file 'app.json', ' "authorization",' + "\n" + ' "roles",' + "\n" if prefer :authorization, 'roles'
|
38
|
-
append_file 'app.json', ' "authorization",' + "\n" + ' "Pundit",' + "\n" if prefer :authorization, 'pundit'
|
39
|
-
append_file 'app.json' do <<-TEXT
|
40
|
-
"Ruby",
|
41
|
-
"Rails"
|
42
|
-
],
|
43
|
-
"scripts": {},
|
44
|
-
"env": {
|
45
|
-
TEXT
|
46
|
-
end
|
47
17
|
case prefs[:email]
|
48
18
|
when 'gmail'
|
49
19
|
append_file 'app.json' do <<-TEXT
|
data/recipes/extras.rb
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
# Application template recipe for the rails_apps_composer. Change the recipe here:
|
2
2
|
# https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/extras.rb
|
3
3
|
|
4
|
+
## RVMRC
|
5
|
+
if prefs[:rvmrc]
|
6
|
+
if File.exist?('.ruby-version')
|
7
|
+
say_wizard ".ruby-version file already exists"
|
8
|
+
else
|
9
|
+
create_file '.ruby-version', "#{RUBY_VERSION}\n"
|
10
|
+
end
|
11
|
+
if File.exist?('.ruby-gemset')
|
12
|
+
say_wizard ".ruby-gemset file already exists"
|
13
|
+
else
|
14
|
+
create_file '.ruby-gemset', "#{app_name}\n"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
4
18
|
## LOCAL_ENV.YML FILE
|
5
19
|
prefs[:local_env_file] = config['local_env_file'] unless (config['local_env_file'] == 'none')
|
6
20
|
|
data/recipes/learn_rails.rb
CHANGED
@@ -30,10 +30,13 @@ if prefer :apps4, 'learn-rails'
|
|
30
30
|
prefs[:analytics] = 'none'
|
31
31
|
prefs[:rubocop] = false
|
32
32
|
prefs[:disable_turbolinks] = false
|
33
|
+
prefs[:rvmrc] = true
|
33
34
|
|
34
35
|
# gems
|
35
36
|
add_gem 'high_voltage'
|
36
37
|
add_gem 'gibbon'
|
38
|
+
add_gem 'minitest-spec-rails', :group => :test
|
39
|
+
add_gem 'minitest-rails-capybara', :group => :test
|
37
40
|
gsub_file 'Gemfile', /gem 'sqlite3'\n/, ''
|
38
41
|
add_gem 'sqlite3', :group => :development
|
39
42
|
|
data/recipes/rails_bootstrap.rb
CHANGED
@@ -16,6 +16,7 @@ if prefer :apps4, 'rails-bootstrap'
|
|
16
16
|
prefs[:rubocop] = false
|
17
17
|
prefs[:frontend] = multiple_choice "Front-end framework?",
|
18
18
|
[["Bootstrap 4.0", "bootstrap4"], ["Bootstrap 3.3", "bootstrap3"]] unless prefs.has_key? :frontend
|
19
|
+
prefs[:rvmrc] = true
|
19
20
|
end
|
20
21
|
|
21
22
|
__END__
|
data/recipes/rails_devise.rb
CHANGED
data/recipes/rails_foundation.rb
CHANGED
data/recipes/rails_omniauth.rb
CHANGED
data/version.rb
CHANGED