alexrabarts-big_sitemap 0.3.4 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +9 -0
- data/README.rdoc +7 -3
- data/VERSION.yml +2 -2
- data/big_sitemap.gemspec +2 -2
- data/lib/big_sitemap.rb +10 -5
- metadata +4 -3
data/History.txt
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
=== 0.4.0 / 2009-08-09
|
2
|
+
|
3
|
+
* Use Bing instead of Live/MSN. Note, this breaks backwards compatibility as
|
4
|
+
the old :ping_msn option is now :ping_bing.
|
5
|
+
|
6
|
+
=== 0.3.5 / 2009-08-05
|
7
|
+
|
8
|
+
* Fixed bugs in root_url generation and url_for_sitemap generation
|
9
|
+
|
1
10
|
=== 0.3.4 / 2009-07-02
|
2
11
|
|
3
12
|
* BigSitemap-specific options are no longer passed through to the ORM's find method
|
data/README.rdoc
CHANGED
@@ -55,8 +55,8 @@ Via gem:
|
|
55
55
|
* <code>:gzip</code> -- <code>true</code>
|
56
56
|
* <code>:ping_google</code> -- <code>true</code>
|
57
57
|
* <code>:ping_yahoo</code> -- <code>false</code>, needs <code>:yahoo_app_id</code>
|
58
|
-
* <code>:
|
59
|
-
* <code>:
|
58
|
+
* <code>:ping_bing</code> -- <code>false</code>
|
59
|
+
* <code>:ping_ask</code> -- <code>false</code>
|
60
60
|
|
61
61
|
=== Chaining
|
62
62
|
|
@@ -105,7 +105,11 @@ Tests for Rails components.
|
|
105
105
|
Thanks to Alastair Brunton and Harry Love, who's work provided a starting point for this library.
|
106
106
|
http://scoop.cheerfactory.co.uk/2008/02/26/google-sitemap-generator/
|
107
107
|
|
108
|
-
Thanks to
|
108
|
+
Thanks to those who have contributed patches:
|
109
|
+
|
110
|
+
* Mislav Marohnić
|
111
|
+
* Jeff Schoolcraft
|
112
|
+
* Dalibor Nasevic
|
109
113
|
|
110
114
|
== Copyright
|
111
115
|
|
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.
|
5
|
+
s.version = "0.4.0"
|
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-08-09}
|
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
@@ -13,7 +13,7 @@ class BigSitemap
|
|
13
13
|
# opinionated
|
14
14
|
:ping_google => true,
|
15
15
|
:ping_yahoo => false, # needs :yahoo_app_id
|
16
|
-
:
|
16
|
+
:ping_bing => false,
|
17
17
|
:ping_ask => false
|
18
18
|
}
|
19
19
|
|
@@ -159,8 +159,8 @@ class BigSitemap
|
|
159
159
|
end
|
160
160
|
end
|
161
161
|
|
162
|
-
if @options[:
|
163
|
-
Net::HTTP.get('
|
162
|
+
if @options[:ping_bing]
|
163
|
+
Net::HTTP.get('www.bing.com', "/webmaster/ping.aspx?siteMap=#{sitemap_uri}")
|
164
164
|
end
|
165
165
|
|
166
166
|
if @options[:ping_ask]
|
@@ -175,6 +175,7 @@ class BigSitemap
|
|
175
175
|
url << '://' unless url.match('://')
|
176
176
|
url << @default_url_options[:host]
|
177
177
|
url << ":#{port}" if port = @default_url_options[:port] and port != 80
|
178
|
+
url
|
178
179
|
end
|
179
180
|
end
|
180
181
|
|
@@ -215,7 +216,11 @@ class BigSitemap
|
|
215
216
|
end
|
216
217
|
|
217
218
|
def url_for_sitemap(path)
|
218
|
-
|
219
|
+
if @options[:path].blank?
|
220
|
+
"#{root_url}/#{File.basename(path)}"
|
221
|
+
else
|
222
|
+
"#{root_url}/#{@options[:path]}/#{File.basename(path)}"
|
223
|
+
end
|
219
224
|
end
|
220
225
|
|
221
226
|
# Create a sitemap index document
|
@@ -226,4 +231,4 @@ class BigSitemap
|
|
226
231
|
end
|
227
232
|
end
|
228
233
|
end
|
229
|
-
end
|
234
|
+
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.
|
4
|
+
version: 0.4.0
|
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-08-09 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- test/test_helper.rb
|
57
57
|
has_rdoc: false
|
58
58
|
homepage: http://github.com/alexrabarts/big_sitemap
|
59
|
+
licenses:
|
59
60
|
post_install_message:
|
60
61
|
rdoc_options:
|
61
62
|
- --charset=UTF-8
|
@@ -76,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
77
|
requirements: []
|
77
78
|
|
78
79
|
rubyforge_project:
|
79
|
-
rubygems_version: 1.
|
80
|
+
rubygems_version: 1.3.5
|
80
81
|
signing_key:
|
81
82
|
specification_version: 3
|
82
83
|
summary: A Sitemap generator specifically designed for large sites (although it works equally well with small sites)
|