Sha256: 4b6b9835fc17c31a550104541281b16f246680c018616c01b413e5cddd8eb6d1

Contents?: true

Size: 1.04 KB

Versions: 7

Compression:

Stored size: 1.04 KB

Contents

# Application template recipe for the rails_apps_composer. Check for a newer version here:
# https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/extras.rb

if config['footnotes']
  say_wizard "Extras recipe running 'after bundler'"
  gem 'rails-footnotes', '>= 3.7', :group => :development
else
  recipes.delete('footnotes')
end

if config['ban_spiders']
  say_wizard "BanSpiders recipe running 'after bundler'"
  after_bundler do
    # ban spiders from your site by changing robots.txt
    gsub_file 'public/robots.txt', /# User-Agent/, 'User-Agent'
    gsub_file 'public/robots.txt', /# Disallow/, 'Disallow'
  end
else
  recipes.delete('ban_spiders')
end

__END__

name: Extras
description: "Various extras including 'ban_spiders' and 'rails-footnotes'."
author: RailsApps

category: other
tags: [utilities, configuration]

config:
  - footnotes:
      type: boolean
      prompt: Would you like to use 'rails-footnotes' (it's SLOW!)?
  - ban_spiders:
      type: boolean
      prompt: Would you like to set a robots.txt file to ban spiders?

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails_apps_composer-1.3.1 recipes/extras.rb
rails_apps_composer-1.2.1 recipes/extras.rb
rails_apps_composer-1.2.0 recipes/extras.rb
rails_apps_composer-1.1.8 recipes/extras.rb
rails_apps_composer-1.1.7 recipes/extras.rb
rails_apps_composer-1.1.6 recipes/extras.rb
rails_apps_composer-1.1.5 recipes/extras.rb