rails_apps_composer 2.4.30 → 2.4.31

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: 87b050ead22899792c467664912c933e1e09214d
4
- data.tar.gz: d580c9aed01ba8427f45dffa871fdb8f9da7d83a
3
+ metadata.gz: 90d48e722aa10ad02d97f0faae7f82c2d3a9b663
4
+ data.tar.gz: eacc032fa26ba99feac94035b5bcb8c3d753d0c1
5
5
  SHA512:
6
- metadata.gz: 82d777142ecbf638160b38aecdda7affbd9350663d9f484154a84c26505e8407ba7839a27900708c35ddcdf22a6888622a37d1a79626e70d355afad4188c90c7
7
- data.tar.gz: 844e07cd1ab56de7bb911718a61d2c9cd65bc993b2815799e5210d488eca0ad97053617e2880ea3a706e4657f2b57451141b77a92bb5cc1c0e60c0e1858e28ca
6
+ metadata.gz: cc83adc76ca44681f6648529257f7a975e1f7ca1ed3638f4587f3ddebfab7f2a443d0797b5004ffe68514f8498b6e5df1ab484924a4021c9061fee199a7f114a
7
+ data.tar.gz: 6553a0cb520950948bc64761e95312856282110f18abb9953031a24669ba26df7f3cf1b1f92c4499f7351c6fe517b690c0e8391719c9dabfc92b118b137f0927
data/README.textile CHANGED
@@ -422,9 +422,9 @@ Copyright © 2012-2014 Daniel Kehoe
422
422
  h2. Useful Links
423
423
 
424
424
  |_. Getting Started |_. Articles |_. Tutorials |
425
- | "Learn Rails":http://learn-rails.com/ | "Twitter Bootstrap and Rails":http://railsapps.github.io/twitter-bootstrap-rails.html | "Rails and Bootstrap":http://railsapps.github.io/rails-bootstrap/ |
425
+ | "Learn Rails":http://learn-rails.com/ | "Bootstrap and Rails":http://railsapps.github.io/twitter-bootstrap-rails.html | "Rails and Bootstrap":http://railsapps.github.io/rails-bootstrap/ |
426
426
  | "Ruby and Rails":http://railsapps.github.io/ruby-and-rails.html | "Analytics for Rails":http://railsapps.github.io/rails-google-analytics.html | |
427
- | "What is Ruby on Rails?":http://railsapps.github.io/what-is-ruby-rails.html | "Heroku and Rails":http://railsapps.github.io/rails-heroku-tutorial.html | "Devise with CanCan and Twitter Bootstrap":https://tutorials.railsapps.org/rails3-bootstrap-devise-cancan |
427
+ | "What is Ruby on Rails?":http://railsapps.github.io/what-is-ruby-rails.html | "Heroku and Rails":http://railsapps.github.io/rails-heroku-tutorial.html | "Devise with CanCan and Bootstrap":https://tutorials.railsapps.org/rails3-bootstrap-devise-cancan |
428
428
  | "Rails Tutorial":https://tutorials.railsapps.org/rails-tutorial | "JavaScript and Rails":http://railsapps.github.io/rails-javascript-include-external.html | "Rails Membership Site with Stripe":https://tutorials.railsapps.org/rails-stripe-membership-saas |
429
429
  | "Installing Rails":http://railsapps.github.io/installing-rails.html | "Rails Environment Variables":http://railsapps.github.io/rails-environment-variables.html | "Rails Subscription Site with Recurly":https://tutorials.railsapps.org/rails-recurly-subscription-saas |
430
430
  | "Updating Rails":http://railsapps.github.io/updating-rails.html | "Git and Rails":http://railsapps.github.io/rails-git.html | "Startup Prelaunch Signup Application":http://railsapps.github.io/tutorial-rails-prelaunch-signup.html |
data/recipes/frontend.rb CHANGED
@@ -16,33 +16,12 @@ after_bundler do
16
16
  when 'foundation5'
17
17
  generate 'layout:install foundation5 -f'
18
18
  end
19
- # generate Devise views with appropriate styling
20
- if prefer :authentication, 'devise'
21
- case prefs[:frontend]
22
- when 'bootstrap3'
23
- generate 'layout:devise bootstrap3 -f'
24
- when 'foundation5'
25
- generate 'layout:devise foundation5 -f'
26
- end
27
- end
28
19
 
29
20
  ### GIT ###
30
21
  git :add => '-A' if prefer :git, true
31
22
  git :commit => '-qm "rails_apps_composer: front-end framework"' if prefer :git, true
32
23
  end # after_bundler
33
24
 
34
- after_everything do
35
- say_wizard "recipe running after everything"
36
- # create navigation links using the rails_layout gem
37
- generate 'layout:navigation -f'
38
- # replace with specialized navigation partials
39
- copy_from_repo 'app/views/layouts/_navigation-subdomains_app.html.erb', :prefs => 'subdomains_app'
40
-
41
- ### GIT ###
42
- git :add => '-A' if prefer :git, true
43
- git :commit => '-qm "rails_apps_composer: navigation links"' if prefer :git, true
44
- end # after_everything
45
-
46
25
  __END__
47
26
 
48
27
  name: frontend
data/recipes/gems.rb CHANGED
@@ -241,10 +241,10 @@ after_bundler do
241
241
  if prefer :form_builder, 'simple_form'
242
242
  case prefs[:frontend]
243
243
  when 'bootstrap2'
244
- say_wizard "recipe installing simple_form for use with Twitter Bootstrap"
244
+ say_wizard "recipe installing simple_form for use with Bootstrap"
245
245
  generate 'simple_form:install --bootstrap'
246
246
  when 'bootstrap3'
247
- say_wizard "recipe installing simple_form for use with Twitter Bootstrap"
247
+ say_wizard "recipe installing simple_form for use with Bootstrap"
248
248
  generate 'simple_form:install --bootstrap'
249
249
  when 'foundation4'
250
250
  say_wizard "recipe installing simple_form for use with Zurb Foundation"
data/recipes/init.rb CHANGED
@@ -169,6 +169,23 @@ FILE
169
169
  ### GIT ###
170
170
  git :add => '-A' if prefer :git, true
171
171
  git :commit => '-qm "rails_apps_composer: set up database"' if prefer :git, true
172
+ ### FRONTEND (must run after database migrations) ###
173
+ # generate Devise views with appropriate styling
174
+ if prefer :authentication, 'devise'
175
+ case prefs[:frontend]
176
+ when 'bootstrap3'
177
+ generate 'layout:devise bootstrap3 -f'
178
+ when 'foundation5'
179
+ generate 'layout:devise foundation5 -f'
180
+ end
181
+ end
182
+ # create navigation links using the rails_layout gem
183
+ generate 'layout:navigation -f'
184
+ # replace with specialized navigation partials
185
+ copy_from_repo 'app/views/layouts/_navigation-subdomains_app.html.erb', :prefs => 'subdomains_app'
186
+ ### GIT ###
187
+ git :add => '-A' if prefer :git, true
188
+ git :commit => '-qm "rails_apps_composer: navigation links"' if prefer :git, true
172
189
  end # after_everything
173
190
 
174
191
  __END__
data/recipes/readme.rb CHANGED
@@ -49,8 +49,8 @@ after_everything do
49
49
  gsub_file "README.md", /RSpec/, "RSpec and Machinist" if prefer :fixtures, 'machinist'
50
50
 
51
51
  # Front-end Framework
52
- gsub_file "README.md", /Front-end Framework: None/, "Front-end Framework: Twitter Bootstrap 2.3 (Sass)" if prefer :frontend, 'bootstrap2'
53
- gsub_file "README.md", /Front-end Framework: None/, "Front-end Framework: Twitter Bootstrap 3.0 (Sass)" if prefer :frontend, 'bootstrap3'
52
+ gsub_file "README.md", /Front-end Framework: None/, "Front-end Framework: Bootstrap 2.3 (Sass)" if prefer :frontend, 'bootstrap2'
53
+ gsub_file "README.md", /Front-end Framework: None/, "Front-end Framework: Bootstrap 3.0 (Sass)" if prefer :frontend, 'bootstrap3'
54
54
  gsub_file "README.md", /Front-end Framework: None/, "Front-end Framework: Zurb Foundation 4" if prefer :frontend, 'foundation4'
55
55
  gsub_file "README.md", /Front-end Framework: None/, "Front-end Framework: Zurb Foundation 5" if prefer :frontend, 'foundation5'
56
56
 
data/recipes/setup.rb CHANGED
@@ -67,7 +67,7 @@ end
67
67
  ## Front-end Framework
68
68
  if recipes.include? 'frontend'
69
69
  prefs[:frontend] = multiple_choice "Front-end framework?", [["None", "none"],
70
- ["Twitter Bootstrap 3.0", "bootstrap3"], ["Twitter Bootstrap 2.3", "bootstrap2"],
70
+ ["Bootstrap 3.0", "bootstrap3"], ["Bootstrap 2.3", "bootstrap2"],
71
71
  ["Zurb Foundation 5.0", "foundation5"], ["Zurb Foundation 4.0", "foundation4"],
72
72
  ["Simple CSS", "simple"]] unless prefs.has_key? :frontend
73
73
  end
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.4.30"
2
+ VERSION = "2.4.31"
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: 2.4.30
4
+ version: 2.4.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe