Sha256: c7b76cc5c4893eab6b6d1e534fae06a11db512f8ee9098c1316bad4f802520ad
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 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 "Adding 'rails-footnotes'" gem 'rails-footnotes', '>= 3.7', :group => :development after_bundler do generate 'rails_footnotes:install' end end if config['ban_spiders'] say_wizard "Banning spiders by modifying 'public/robots.txt'" 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 end if config['paginate'] say_wizard "Adding 'will_paginate'" gem 'will_paginate', '>= 3.0.3' recipes << 'paginate' 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? - paginate: type: boolean prompt: Would you like to add 'will_paginate' for pagination?
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_apps_composer-1.4.6 | recipes/extras.rb |