From 2ad705596aaf98bb5ee6ffa4a7ad6080a2b8b9e3 Mon Sep 17 00:00:00 2001 From: Dan Pickett Date: Mon, 2 Nov 2009 19:18:49 -0500 Subject: [PATCH] modify readme and regenerate gemspec --- README.md | 17 +++++++++++++++++ lib/sitemap_generator.rb | 1 - sitemap_generator.gemspec | 3 ++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a937565..93bf03f7 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ Other "difficult" Sitemap issues, solved by this plugin: Installation ======= +*As a plugin* + 1. Install plugin as normal ./script/plugin install git://github.com/adamsalter/sitemap_generator-plugin.git @@ -58,6 +60,21 @@ Installation The robots.txt Sitemap URL should be the complete URL to the Sitemap Index, such as: `http://www.example.org/sitemap_index.xml.gz` +*As a gem* + +1. Add the gem as a dependency in your config/environment.rb + config.gem 'sitemap_generator', :source => 'http://gemcutter.org' + +2. sudo rake gems:install + +3. Add the following line to your Rails.root/Rakefile + begin require 'sitemap_generator/tasks' rescue LoadError end + +4. rake sitemap:install + +5. Follow steps 2-4 above + + Example 'config/sitemap.rb' ========== diff --git a/lib/sitemap_generator.rb b/lib/sitemap_generator.rb index 3d50422f..ca008a7a 100644 --- a/lib/sitemap_generator.rb +++ b/lib/sitemap_generator.rb @@ -2,7 +2,6 @@ require 'sitemap_generator/link' require 'sitemap_generator/link_set' require 'sitemap_generator/helper' -require 'sitemap_generator/tasks' module SitemapGenerator Sitemap = LinkSet.new diff --git a/sitemap_generator.gemspec b/sitemap_generator.gemspec index 74283d09..d77cbf83 100644 --- a/sitemap_generator.gemspec +++ b/sitemap_generator.gemspec @@ -9,7 +9,7 @@ Gem::Specification.new do |s| s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Adam Salter"] - s.date = %q{2009-10-30} + s.date = %q{2009-11-02} s.description = %q{This plugin enables 'enterprise-class' Google Sitemaps to be easily generated for a Rails site as a rake task} s.email = %q{adam@salter.net } s.extra_rdoc_files = [ @@ -17,6 +17,7 @@ Gem::Specification.new do |s| ] s.files = [ ".autotest", + ".gitignore", "MIT-LICENSE", "README.md", "Rakefile",