Sha256: 4cfc6dc26cd5f57cc9c1a9451866d9d8fb696571595f89077309c2597319ce6c

Contents?: true

Size: 1.04 KB

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
rails_apps_composer-1.1.4 recipes/extras.rb
rails_apps_composer-1.1.3 recipes/extras.rb
rails_apps_composer-1.1.2 recipes/extras.rb