Permalink
..
Failed to load latest commit information.
admin.rb fix #349 typo in conditional Oct 31, 2015
analytics.rb Segment.io now named Segment.com Oct 30, 2016
core.rb
deployment.rb no need for app.json file when 'Deploy to Heroku' button is gone Oct 30, 2016
devise.rb add 'rails-stripe-membership-saas' example application Apr 15, 2015
email.rb fix email settings for Sendgrid and Mandrill (fixes #302) Jun 30, 2014
email_dev.rb
example.rb refactored conditionals Dec 17, 2014
extras.rb accommodate Rails 5.0.1 (fixes RailsApps/rails-composer#261) Jan 7, 2017
frontend.rb add Bootstrap 4 option Sep 6, 2016
gems.rb add gem 'bourbon' for the administrate option Nov 22, 2016
git.rb rename 'after_everything' and 'after_bundler' Jun 20, 2014
init.rb
learn_rails.rb add 'rvmrc' preference for .ruby-gemset and .ruby-version files Oct 30, 2016
locale.rb fix for 'locale' recipe Nov 19, 2014
omniauth.rb fix generation of routes for OmniAuth Jul 2, 2014
pages.rb generate 'administrate:install' at stage four Nov 23, 2016
rails_bootstrap.rb add 'rvmrc' preference for .ruby-gemset and .ruby-version files Oct 30, 2016
rails_devise.rb
rails_devise_pundit.rb add 'rvmrc' preference for .ruby-gemset and .ruby-version files Oct 30, 2016
rails_devise_roles.rb add 'rvmrc' preference for .ruby-gemset and .ruby-version files Oct 30, 2016
rails_foundation.rb add 'rvmrc' preference for .ruby-gemset and .ruby-version files Oct 30, 2016
rails_mailinglist_activejob.rb add 'rvmrc' preference for .ruby-gemset and .ruby-version files Oct 30, 2016
rails_omniauth.rb add 'rvmrc' preference for .ruby-gemset and .ruby-version files Oct 30, 2016
rails_signup_download.rb add 'rvmrc' preference for .ruby-gemset and .ruby-version files Oct 30, 2016
rails_stripe_checkout.rb
rails_stripe_coupons.rb add 'rvmrc' preference for .ruby-gemset and .ruby-version files Oct 30, 2016
rails_stripe_membership_saas.rb add 'rvmrc' preference for .ruby-gemset and .ruby-version files Oct 30, 2016
railsapps.rb preliminary support for Rails 5.0.0.beta1 Dec 19, 2015
readme.rb remove 'quiet_assets' gem, use published 'high_voltage' gem Aug 3, 2016
roles.rb see CHANGELOG, bump version to 3.0.13 Aug 28, 2014
setup.rb Upmin Admin is no longer actively maintained Oct 30, 2016
tests.rb see CHANGELOG, bump version to 3.0.13 Aug 28, 2014

readme.rb

# Application template recipe for the rails_apps_composer. Change the recipe here:
# https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/readme.rb

stage_three do
  say_wizard "recipe stage three"

  # remove default READMEs
  %w{
    README
    README.rdoc
    doc/README_FOR_APP
  }.each { |file| remove_file file }

  # add diagnostics to README
  create_file 'README', "#{app_name.humanize.titleize}\n================\n\n"
  append_to_file 'README' do <<-TEXT
Rails Composer is supported by developers who purchase our RailsApps tutorials.
Need help? Ask on Stack Overflow with the tag 'railsapps.'
Problems? Submit an issue: https://github.com/RailsApps/rails_apps_composer/issues
Your application contains diagnostics in this README file.
Please provide a copy of this README file when reporting any issues.
\n
TEXT
  end
  append_to_file 'README' do <<-TEXT
option  Build a starter application?
choose  Enter your selection: [#{prefs[:apps4]}]
option  Get on the mailing list for Rails Composer news?
choose  Enter your selection: [#{prefs[:announcements]}]
option  Web server for development?
choose  Enter your selection: [#{prefs[:dev_webserver]}]
option  Web server for production?
choose  Enter your selection: [#{prefs[:prod_webserver]}]
option  Database used in development?
choose  Enter your selection: [#{prefs[:database]}]
option  Template engine?
choose  Enter your selection: [#{prefs[:templates]}]
option  Test framework?
choose  Enter your selection: [#{prefs[:tests]}]
option  Continuous testing?
choose  Enter your selection: [#{prefs[:continuous_testing]}]
option  Front-end framework?
choose  Enter your selection: [#{prefs[:frontend]}]
option  Add support for sending email?
choose  Enter your selection: [#{prefs[:email]}]
option  Authentication?
choose  Enter your selection: [#{prefs[:authentication]}]
option  Devise modules?
choose  Enter your selection: [#{prefs[:devise_modules]}]
option  OmniAuth provider?
choose  Enter your selection: [#{prefs[:omniauth_provider]}]
option  Authorization?
choose  Enter your selection: [#{prefs[:authorization]}]
option  Use a form builder gem?
choose  Enter your selection: [#{prefs[:form_builder]}]
option  Add pages?
choose  Enter your selection: [#{prefs[:pages]}]
option  Set a locale?
choose  Enter your selection: [#{prefs[:locale]}]
option  Install page-view analytics?
choose  Enter your selection: [#{prefs[:analytics]}]
option  Add a deployment mechanism?
choose  Enter your selection: [#{prefs[:deployment]}]
option  Set a robots.txt file to ban spiders?
choose  Enter your selection: [#{prefs[:ban_spiders]}]
option  Create a GitHub repository? (y/n)
choose  Enter your selection: [#{prefs[:github]}]
option  Add gem and file for environment variables?
choose  Enter your selection: [#{prefs[:local_env_file]}]
option  Improve error reporting with 'better_errors' during development?
choose  Enter your selection: [#{prefs[:better_errors]}]
option  Use 'pry' as console replacement during development and test?
choose  Enter your selection: [#{prefs[:pry]}]
option  Use or create a project-specific rvm gemset?
choose  Enter your selection: [#{prefs[:rvmrc]}]
TEXT
  end

  create_file 'public/humans.txt' do <<-TEXT
/* the humans responsible & colophon */
/* humanstxt.org */


/* TEAM */
  <your title>: <your name>
  Site:
  Twitter:
  Location:

/* THANKS */
  Daniel Kehoe (@rails_apps) for the RailsApps project

/* SITE */
  Standards: HTML5, CSS3
  Components: jQuery
  Software: Ruby on Rails

/* GENERATED BY */
Rails Composer: http://railscomposer.com/
TEXT
  end

  remove_file 'README.md'
  create_file 'README.md', "#{app_name.humanize.titleize}\n================\n\n"

  if prefer :deployment, 'heroku'
    append_to_file 'README.md' do <<-TEXT
[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

TEXT
    end
  end

  append_to_file 'README.md' do <<-TEXT
This application was generated with the [rails_apps_composer](https://github.com/RailsApps/rails_apps_composer) gem
provided by the [RailsApps Project](http://railsapps.github.io/).

Rails Composer is supported by developers who purchase our RailsApps tutorials.

Problems? Issues?
-----------

Need help? Ask on Stack Overflow with the tag 'railsapps.'

Your application contains diagnostics in the README file. Please provide a copy of the README file when reporting any issues.

If the application doesn't work as expected, please [report an issue](https://github.com/RailsApps/rails_apps_composer/issues)
and include the diagnostics.

Ruby on Rails
-------------

This application requires:

- Ruby #{RUBY_VERSION}
- Rails #{Rails::VERSION::STRING}

Learn more about [Installing Rails](http://railsapps.github.io/installing-rails.html).

Getting Started
---------------

Documentation and Support
-------------------------

Issues
-------------

Similar Projects
----------------

Contributing
------------

Credits
-------

License
-------
TEXT
  end

  git :add => '-A' if prefer :git, true
  git :commit => '-qm "rails_apps_composer: add README files"' if prefer :git, true

end

__END__

name: readme
description: "Build a README file for your application."
author: RailsApps

requires: [setup]
run_after: [setup]
category: configuration