Skip to content

Commit

Permalink
modify readme and regenerate gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Pickett committed Nov 3, 2009
1 parent efcbaec commit 2ad7055
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Other "difficult" Sitemap issues, solved by this plugin:
Installation
=======

*As a plugin*

1. Install plugin as normal

<code>./script/plugin install git://github.com/adamsalter/sitemap_generator-plugin.git</code>
Expand All @@ -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
<code>config.gem 'sitemap_generator', :source => 'http://gemcutter.org'</code>

2. sudo rake gems:install

3. Add the following line to your Rails.root/Rakefile
<code>begin require 'sitemap_generator/tasks' rescue LoadError end</code>

4. <code>rake sitemap:install</code>

5. Follow steps 2-4 above


Example 'config/sitemap.rb'
==========

Expand Down
1 change: 0 additions & 1 deletion lib/sitemap_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion sitemap_generator.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ 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 = [
"README.md"
]
s.files = [
".autotest",
".gitignore",
"MIT-LICENSE",
"README.md",
"Rakefile",
Expand Down

0 comments on commit 2ad7055

Please sign in to comment.