rails_apps_composer 3.1.9 → 3.1.10
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 +1 -0
- data/recipes/frontend.rb +2 -0
- data/recipes/gems.rb +4 -0
- data/recipes/init.rb +7 -1
- data/recipes/rails_bootstrap.rb +2 -1
- data/recipes/setup.rb +5 -2
- data/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f50d39fe8061a1605bc61b56043f9cc58d4fc1d4
|
4
|
+
data.tar.gz: 39bddcd2c199a6b5f9f69bcb5c7191dbafd3c49d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b299d623d1740fca191dbfd260d0eeb1f54bd1247cb8b5ab342ed50c3d0b3a0720e3d0c312a072b017f34db60bdeb3afe6053ebc0bf162bfe6bc04f5f979d1a
|
7
|
+
data.tar.gz: 78b627f1a5342d53fefd73bacb7be7cc4b8559bb2069c3ec34272b3d4298e6d9d56a2d5a02053a159477c0808a7dc7581fe2e0a43077bb95c7b43580ca9dcfa0
|
data/recipes/deployment.rb
CHANGED
@@ -31,6 +31,7 @@ TEXT
|
|
31
31
|
append_file 'app.json', ' "RailsApps",' + "\n" + ' "starter",' + "\n" if prefs.keys.include?(:apps4)
|
32
32
|
append_file 'app.json', ' "RSpec",' + "\n" if prefer :tests, 'rspec'
|
33
33
|
append_file 'app.json', ' "Bootstrap",' + "\n" if prefer :frontend, 'bootstrap3'
|
34
|
+
append_file 'app.json', ' "Bootstrap",' + "\n" if prefer :frontend, 'bootstrap4'
|
34
35
|
append_file 'app.json', ' "Foundation",' + "\n" if prefer :frontend, 'pundit'
|
35
36
|
append_file 'app.json', ' "authentication",' + "\n" + ' "Devise",' + "\n" if prefer :authentication, 'devise'
|
36
37
|
append_file 'app.json', ' "authentication",' + "\n" + ' "OmniAuth",' + "\n" if prefer :authentication, 'omniauth'
|
data/recipes/frontend.rb
CHANGED
@@ -11,6 +11,8 @@ stage_two do
|
|
11
11
|
generate 'layout:install bootstrap2 -f'
|
12
12
|
when 'bootstrap3'
|
13
13
|
generate 'layout:install bootstrap3 -f'
|
14
|
+
when 'bootstrap4'
|
15
|
+
generate 'layout:install bootstrap4 -f'
|
14
16
|
when 'foundation4'
|
15
17
|
generate 'layout:install foundation4 -f'
|
16
18
|
when 'foundation5'
|
data/recipes/gems.rb
CHANGED
@@ -80,6 +80,8 @@ case prefs[:frontend]
|
|
80
80
|
add_gem 'bootstrap-sass', '~> 2.3.2.2'
|
81
81
|
when 'bootstrap3'
|
82
82
|
add_gem 'bootstrap-sass'
|
83
|
+
when 'bootstrap4'
|
84
|
+
add_gem 'bootstrap', '~> 4.0.0.alpha3.1'
|
83
85
|
when 'foundation4'
|
84
86
|
add_gem 'zurb-foundation', '~> 4.3.2'
|
85
87
|
add_gem 'compass-rails', '~> 1.1.2'
|
@@ -205,6 +207,8 @@ stage_two do
|
|
205
207
|
when 'bootstrap3'
|
206
208
|
say_wizard "recipe installing simple_form for use with Bootstrap"
|
207
209
|
generate 'simple_form:install --bootstrap'
|
210
|
+
when 'bootstrap4'
|
211
|
+
say_wizard "simple_form not yet available for use with Bootstrap 4"
|
208
212
|
when 'foundation5'
|
209
213
|
say_wizard "recipe installing simple_form for use with Zurb Foundation"
|
210
214
|
generate 'simple_form:install --foundation'
|
data/recipes/init.rb
CHANGED
@@ -149,12 +149,18 @@ FILE
|
|
149
149
|
case prefs[:frontend]
|
150
150
|
when 'bootstrap3'
|
151
151
|
generate 'layout:devise bootstrap3 -f'
|
152
|
+
when 'bootstrap4'
|
153
|
+
generate 'layout:devise bootstrap3 -f'
|
152
154
|
when 'foundation5'
|
153
155
|
generate 'layout:devise foundation5 -f'
|
154
156
|
end
|
155
157
|
end
|
156
158
|
# create navigation links using the rails_layout gem
|
157
|
-
|
159
|
+
if prefs[:frontend] == 'bootstrap4'
|
160
|
+
generate 'layout:navigation bootstrap4 -f'
|
161
|
+
else
|
162
|
+
generate 'layout:navigation -f'
|
163
|
+
end
|
158
164
|
if prefer :apps4, 'rails-stripe-coupons'
|
159
165
|
inject_into_file 'app/views/layouts/_nav_links_for_auth.html.erb', ", data: { no_turbolink: true }", :after => "new_user_registration_path"
|
160
166
|
inject_into_file 'app/views/layouts/_nav_links_for_auth.html.erb', "\n <li><%= link_to 'Coupons', coupons_path %></li>", :after => "users_path %></li>"
|
data/recipes/rails_bootstrap.rb
CHANGED
@@ -8,13 +8,14 @@ if prefer :apps4, 'rails-bootstrap'
|
|
8
8
|
prefs[:better_errors] = true
|
9
9
|
prefs[:devise_modules] = false
|
10
10
|
prefs[:email] = 'none'
|
11
|
-
prefs[:frontend] = 'bootstrap3'
|
12
11
|
prefs[:git] = true
|
13
12
|
prefs[:local_env_file] = false
|
14
13
|
prefs[:pry] = false
|
15
14
|
prefs[:pages] = 'about'
|
16
15
|
prefs[:locale] = 'none'
|
17
16
|
prefs[:rubocop] = false
|
17
|
+
prefs[:frontend] = multiple_choice "Front-end framework?",
|
18
|
+
[["Bootstrap 4.0", "bootstrap4"], ["Bootstrap 3.3", "bootstrap3"]] unless prefs.has_key? :frontend
|
18
19
|
end
|
19
20
|
|
20
21
|
__END__
|
data/recipes/setup.rb
CHANGED
@@ -42,7 +42,7 @@ end
|
|
42
42
|
## Front-end Framework
|
43
43
|
if recipes.include? 'frontend'
|
44
44
|
prefs[:frontend] = multiple_choice "Front-end framework?", [["None", "none"],
|
45
|
-
["Bootstrap 3.3", "bootstrap3"], ["Bootstrap 2.3", "bootstrap2"],
|
45
|
+
["Bootstrap 4.0", "bootstrap4"], ["Bootstrap 3.3", "bootstrap3"], ["Bootstrap 2.3", "bootstrap2"],
|
46
46
|
["Zurb Foundation 5.5", "foundation5"], ["Zurb Foundation 4.0", "foundation4"],
|
47
47
|
["Simple CSS", "simple"]] unless prefs.has_key? :frontend
|
48
48
|
end
|
@@ -80,7 +80,10 @@ if (recipes.include? 'devise') || (recipes.include? 'omniauth')
|
|
80
80
|
end
|
81
81
|
|
82
82
|
## Form Builder
|
83
|
-
|
83
|
+
## (no simple_form for Bootstrap 4 yet)
|
84
|
+
unless prefs[:frontend] == 'bootstrap4'
|
85
|
+
prefs[:form_builder] = multiple_choice "Use a form builder gem?", [["None", "none"], ["SimpleForm", "simple_form"]] unless prefs.has_key? :form_builder
|
86
|
+
end
|
84
87
|
|
85
88
|
## Pages
|
86
89
|
if recipes.include? 'pages'
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_apps_composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kehoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
184
|
version: '0'
|
185
185
|
requirements: []
|
186
186
|
rubyforge_project: rails_apps_composer
|
187
|
-
rubygems_version: 2.
|
187
|
+
rubygems_version: 2.6.4
|
188
188
|
signing_key:
|
189
189
|
specification_version: 4
|
190
190
|
summary: A version of the RailsWizard gem with custom recipes for Rails starter apps.
|