alexrabarts-big_sitemap 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.rdoc +3 -1
- data/VERSION.yml +1 -1
- data/big_sitemap.gemspec +2 -2
- data/lib/big_sitemap.rb +2 -2
- metadata +2 -2
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -4,6 +4,8 @@ BigSitemap is a Sitemap (http://sitemaps.org) generator suitable for application
|
|
4
4
|
|
5
5
|
BigSitemap is best run periodically through a Rake/Thor task.
|
6
6
|
|
7
|
+
require 'big_sitemap'
|
8
|
+
|
7
9
|
sitemap = BigSitemap.new(:url_options => {:host => 'example.com'})
|
8
10
|
|
9
11
|
# Add a model
|
@@ -38,7 +40,7 @@ If the <code>to_param</code> method does not exist, then <code>id</code> will be
|
|
38
40
|
|
39
41
|
Via gem:
|
40
42
|
|
41
|
-
gem install alexrabarts-big_sitemap -s http://gems.github.com
|
43
|
+
sudo gem install alexrabarts-big_sitemap -s http://gems.github.com
|
42
44
|
|
43
45
|
== Advanced
|
44
46
|
|
data/VERSION.yml
CHANGED
data/big_sitemap.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{big_sitemap}
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Alex Rabarts"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-07-02}
|
10
10
|
s.description = %q{A Sitemap generator specifically designed for large sites (although it works equally well with small sites)}
|
11
11
|
s.email = %q{alexrabarts@gmail.com}
|
12
12
|
s.extra_rdoc_files = [
|
data/lib/big_sitemap.rb
CHANGED
@@ -99,7 +99,7 @@ class BigSitemap
|
|
99
99
|
end
|
100
100
|
batches_per_sitemap = num_batches.to_f / num_sitemaps.to_f
|
101
101
|
|
102
|
-
find_options = options.except(:path)
|
102
|
+
find_options = options.except(:path, :num_items, :priority, :change_frequency)
|
103
103
|
|
104
104
|
for sitemap_num in 1..num_sitemaps
|
105
105
|
# Work out the start and end batch numbers for this sitemap
|
@@ -163,7 +163,7 @@ class BigSitemap
|
|
163
163
|
Net::HTTP.get('webmaster.live.com', "/ping.aspx?siteMap=#{sitemap_uri}")
|
164
164
|
end
|
165
165
|
|
166
|
-
if @options[:
|
166
|
+
if @options[:ping_ask]
|
167
167
|
Net::HTTP.get('submissions.ask.com', "/ping?sitemap=#{sitemap_uri}")
|
168
168
|
end
|
169
169
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alexrabarts-big_sitemap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Rabarts
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-07-02 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|