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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df09e74848315c64755b9ad1f748345c02082b05
4
- data.tar.gz: fe62468a7f4abb2910294c3579c8105fe8d6174f
3
+ metadata.gz: 51924c90aefee363418997b2604c9f36551fb398
4
+ data.tar.gz: 2dbedeb4f949e6cae1401a4b9282c922f9863a44
5
5
  SHA512:
6
- metadata.gz: de703a0d874eb7c9eea7b6246d8879e40862bb037298aefca2f3f869b8e90c9295a1ada2ccfca4348037998b22afa97d1b623c358a397b62a96f30d3e6f48284
7
- data.tar.gz: 6467707eda544e8d094753615dd146d5eb2945539cfab7a7727433dcf5a26cbc6d963b535155f49b1e6145ae79986ecbf47a5066ecffd2abce2506d47defac69
6
+ metadata.gz: f044c3a13037effab40ded2d06c1b385416eaa0d7ad5099bc9e1dc2b6f3ae3b5fde3833d0f6ff733fc46e533911466061296b4bc9a1aae36b65496bf95a104e4
7
+ data.tar.gz: 9d9ca6e1b006234d6c8e10def890f7e1343c86c98266faa6e00d1cd0530c1e624a6747b576e67bb1a341bfda0d82a8a61e4d02fdc5e506bd71ae004a69b94b96
@@ -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
 
@@ -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
 
@@ -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__
@@ -12,6 +12,7 @@ if prefer :apps4, 'rails-devise'
12
12
  prefs[:pages] = 'about+users'
13
13
  prefs[:locale] = 'none'
14
14
  prefs[:rubocop] = false
15
+ prefs[:rvmrc] = true
15
16
  end
16
17
 
17
18
  __END__
@@ -11,6 +11,7 @@ if prefer :apps4, 'rails-devise-pundit'
11
11
  prefs[:pages] = 'about+users'
12
12
  prefs[:locale] = 'none'
13
13
  prefs[:rubocop] = false
14
+ prefs[:rvmrc] = true
14
15
  end
15
16
 
16
17
  __END__
@@ -11,6 +11,7 @@ if prefer :apps4, 'rails-devise-roles'
11
11
  prefs[:pages] = 'about+users'
12
12
  prefs[:locale] = 'none'
13
13
  prefs[:rubocop] = false
14
+ prefs[:rvmrc] = true
14
15
  end
15
16
 
16
17
  __END__
@@ -15,6 +15,7 @@ if prefer :apps4, 'rails-foundation'
15
15
  prefs[:pages] = 'about'
16
16
  prefs[:locale] = 'none'
17
17
  prefs[:rubocop] = false
18
+ prefs[:rvmrc] = true
18
19
  end
19
20
 
20
21
  __END__
@@ -14,6 +14,7 @@ if prefer :apps4, 'rails-mailinglist-activejob'
14
14
  prefs[:pages] = 'about'
15
15
  prefs[:locale] = 'none'
16
16
  prefs[:rubocop] = false
17
+ prefs[:rvmrc] = true
17
18
 
18
19
  # gems
19
20
  add_gem 'gibbon'
@@ -13,6 +13,7 @@ if prefer :apps4, 'rails-omniauth'
13
13
  prefs[:pages] = 'about+users'
14
14
  prefs[:locale] = 'none'
15
15
  prefs[:rubocop] = false
16
+ prefs[:rvmrc] = true
16
17
  end
17
18
 
18
19
  __END__
@@ -14,6 +14,7 @@ if prefer :apps4, 'rails-signup-download'
14
14
  prefs[:pages] = 'about+users'
15
15
  prefs[:locale] = 'none'
16
16
  prefs[:rubocop] = false
17
+ prefs[:rvmrc] = true
17
18
 
18
19
  # gems
19
20
  add_gem 'gibbon'
@@ -20,6 +20,7 @@ if prefer :apps4, 'rails-stripe-checkout'
20
20
  prefs[:pages] = 'about+users'
21
21
  prefs[:locale] = 'none'
22
22
  prefs[:rubocop] = false
23
+ prefs[:rvmrc] = true
23
24
 
24
25
  # gems
25
26
  add_gem 'gibbon'
@@ -20,6 +20,7 @@ if prefer :apps4, 'rails-stripe-coupons'
20
20
  prefs[:pages] = 'about+users'
21
21
  prefs[:locale] = 'none'
22
22
  prefs[:rubocop] = false
23
+ prefs[:rvmrc] = true
23
24
 
24
25
  # gems
25
26
  add_gem 'gibbon'
@@ -19,6 +19,7 @@ if prefer :apps4, 'rails-stripe-membership-saas'
19
19
  prefs[:pages] = 'about+users'
20
20
  prefs[:locale] = 'none'
21
21
  prefs[:rubocop] = false
22
+ prefs[:rvmrc] = true
22
23
 
23
24
  # gems
24
25
  add_gem 'gibbon'
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.1.15"
2
+ VERSION = "3.1.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_apps_composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.15
4
+ version: 3.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe