sitemap_generator 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +2 -0
- data/README.md +17 -0
- data/VERSION +1 -1
- data/lib/sitemap_generator.rb +0 -1
- data/sitemap_generator.gemspec +103 -0
- metadata +4 -2
data/.gitignore
ADDED
data/README.md
CHANGED
|
@@ -42,6 +42,8 @@ Other "difficult" Sitemap issues, solved by this plugin:
|
|
|
42
42
|
Installation
|
|
43
43
|
=======
|
|
44
44
|
|
|
45
|
+
*As a plugin*
|
|
46
|
+
|
|
45
47
|
1. Install plugin as normal
|
|
46
48
|
|
|
47
49
|
<code>./script/plugin install git://github.com/adamsalter/sitemap_generator-plugin.git</code>
|
|
@@ -58,6 +60,21 @@ Installation
|
|
|
58
60
|
|
|
59
61
|
The robots.txt Sitemap URL should be the complete URL to the Sitemap Index, such as: `http://www.example.org/sitemap_index.xml.gz`
|
|
60
62
|
|
|
63
|
+
*As a gem*
|
|
64
|
+
|
|
65
|
+
1. Add the gem as a dependency in your config/environment.rb
|
|
66
|
+
<code>config.gem 'sitemap_generator', :source => 'http://gemcutter.org'</code>
|
|
67
|
+
|
|
68
|
+
2. sudo rake gems:install
|
|
69
|
+
|
|
70
|
+
3. Add the following line to your Rails.root/Rakefile
|
|
71
|
+
<code>begin require 'sitemap_generator/tasks' rescue LoadError end</code>
|
|
72
|
+
|
|
73
|
+
4. <code>rake sitemap:install</code>
|
|
74
|
+
|
|
75
|
+
5. Follow steps 2-4 above
|
|
76
|
+
|
|
77
|
+
|
|
61
78
|
Example 'config/sitemap.rb'
|
|
62
79
|
==========
|
|
63
80
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
data/lib/sitemap_generator.rb
CHANGED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
|
4
|
+
# -*- encoding: utf-8 -*-
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |s|
|
|
7
|
+
s.name = %q{sitemap_generator}
|
|
8
|
+
s.version = "0.1.1"
|
|
9
|
+
|
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
+
s.authors = ["Adam Salter"]
|
|
12
|
+
s.date = %q{2009-11-02}
|
|
13
|
+
s.description = %q{This plugin enables 'enterprise-class' Google Sitemaps to be easily generated for a Rails site as a rake task}
|
|
14
|
+
s.email = %q{adam@salter.net }
|
|
15
|
+
s.extra_rdoc_files = [
|
|
16
|
+
"README.md"
|
|
17
|
+
]
|
|
18
|
+
s.files = [
|
|
19
|
+
".autotest",
|
|
20
|
+
".gitignore",
|
|
21
|
+
"MIT-LICENSE",
|
|
22
|
+
"README.md",
|
|
23
|
+
"Rakefile",
|
|
24
|
+
"VERSION",
|
|
25
|
+
"init.rb",
|
|
26
|
+
"install.rb",
|
|
27
|
+
"lib/sitemap_generator.rb",
|
|
28
|
+
"lib/sitemap_generator/helper.rb",
|
|
29
|
+
"lib/sitemap_generator/link.rb",
|
|
30
|
+
"lib/sitemap_generator/link_set.rb",
|
|
31
|
+
"lib/sitemap_generator/mapper.rb",
|
|
32
|
+
"lib/sitemap_generator/tasks.rb",
|
|
33
|
+
"sitemap_generator.gemspec",
|
|
34
|
+
"tasks/sitemap_generator_tasks.rake",
|
|
35
|
+
"templates/sitemap.rb",
|
|
36
|
+
"templates/sitemap_index.builder",
|
|
37
|
+
"templates/xml_sitemap.builder",
|
|
38
|
+
"test/mock_app/.gitignore",
|
|
39
|
+
"test/mock_app/README",
|
|
40
|
+
"test/mock_app/Rakefile",
|
|
41
|
+
"test/mock_app/app/controllers/application_controller.rb",
|
|
42
|
+
"test/mock_app/app/controllers/contents_controller.rb",
|
|
43
|
+
"test/mock_app/app/models/content.rb",
|
|
44
|
+
"test/mock_app/config/boot.rb",
|
|
45
|
+
"test/mock_app/config/database.yml",
|
|
46
|
+
"test/mock_app/config/environment.rb",
|
|
47
|
+
"test/mock_app/config/environments/development.rb",
|
|
48
|
+
"test/mock_app/config/environments/production.rb",
|
|
49
|
+
"test/mock_app/config/environments/test.rb",
|
|
50
|
+
"test/mock_app/config/initializers/backtrace_silencers.rb",
|
|
51
|
+
"test/mock_app/config/initializers/inflections.rb",
|
|
52
|
+
"test/mock_app/config/initializers/mime_types.rb",
|
|
53
|
+
"test/mock_app/config/initializers/new_rails_defaults.rb",
|
|
54
|
+
"test/mock_app/config/initializers/session_store.rb",
|
|
55
|
+
"test/mock_app/config/locales/en.yml",
|
|
56
|
+
"test/mock_app/config/routes.rb",
|
|
57
|
+
"test/mock_app/config/sitemap.rb",
|
|
58
|
+
"test/mock_app/db/migrate/20090826121911_create_contents.rb",
|
|
59
|
+
"test/mock_app/db/schema.rb",
|
|
60
|
+
"test/mock_app/db/test.sqlite3",
|
|
61
|
+
"test/mock_app/public/index.html",
|
|
62
|
+
"test/mock_app/script/console",
|
|
63
|
+
"test/sitemap_generator_test.rb",
|
|
64
|
+
"test/test_helper.rb",
|
|
65
|
+
"uninstall.rb"
|
|
66
|
+
]
|
|
67
|
+
s.homepage = %q{http://github.com/adamsalter/sitemap_generator-plugin}
|
|
68
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
|
69
|
+
s.require_paths = ["lib"]
|
|
70
|
+
s.rubygems_version = %q{1.3.5}
|
|
71
|
+
s.summary = %q{This plugin enables 'enterprise-class' Google Sitemaps to be easily generated for a Rails site as a rake task}
|
|
72
|
+
s.test_files = [
|
|
73
|
+
"test/mock_app/app/controllers/application_controller.rb",
|
|
74
|
+
"test/mock_app/app/controllers/contents_controller.rb",
|
|
75
|
+
"test/mock_app/app/models/content.rb",
|
|
76
|
+
"test/mock_app/config/boot.rb",
|
|
77
|
+
"test/mock_app/config/environment.rb",
|
|
78
|
+
"test/mock_app/config/environments/development.rb",
|
|
79
|
+
"test/mock_app/config/environments/production.rb",
|
|
80
|
+
"test/mock_app/config/environments/test.rb",
|
|
81
|
+
"test/mock_app/config/initializers/backtrace_silencers.rb",
|
|
82
|
+
"test/mock_app/config/initializers/inflections.rb",
|
|
83
|
+
"test/mock_app/config/initializers/mime_types.rb",
|
|
84
|
+
"test/mock_app/config/initializers/new_rails_defaults.rb",
|
|
85
|
+
"test/mock_app/config/initializers/session_store.rb",
|
|
86
|
+
"test/mock_app/config/routes.rb",
|
|
87
|
+
"test/mock_app/config/sitemap.rb",
|
|
88
|
+
"test/mock_app/db/migrate/20090826121911_create_contents.rb",
|
|
89
|
+
"test/mock_app/db/schema.rb",
|
|
90
|
+
"test/sitemap_generator_test.rb",
|
|
91
|
+
"test/test_helper.rb"
|
|
92
|
+
]
|
|
93
|
+
|
|
94
|
+
if s.respond_to? :specification_version then
|
|
95
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
96
|
+
s.specification_version = 3
|
|
97
|
+
|
|
98
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
99
|
+
else
|
|
100
|
+
end
|
|
101
|
+
else
|
|
102
|
+
end
|
|
103
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sitemap_generator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Salter
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-11-02 00:00:00 -05:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
@@ -23,6 +23,7 @@ extra_rdoc_files:
|
|
|
23
23
|
- README.md
|
|
24
24
|
files:
|
|
25
25
|
- .autotest
|
|
26
|
+
- .gitignore
|
|
26
27
|
- MIT-LICENSE
|
|
27
28
|
- README.md
|
|
28
29
|
- Rakefile
|
|
@@ -35,6 +36,7 @@ files:
|
|
|
35
36
|
- lib/sitemap_generator/link_set.rb
|
|
36
37
|
- lib/sitemap_generator/mapper.rb
|
|
37
38
|
- lib/sitemap_generator/tasks.rb
|
|
39
|
+
- sitemap_generator.gemspec
|
|
38
40
|
- tasks/sitemap_generator_tasks.rake
|
|
39
41
|
- templates/sitemap.rb
|
|
40
42
|
- templates/sitemap_index.builder
|