sitemap_generator 2.1.7.pre1 → 2.1.7

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ./
3
3
  specs:
4
- sitemap_generator (2.1.7.pre1)
4
+ sitemap_generator (2.1.7)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -44,7 +44,7 @@ GEM
44
44
  activeresource (= 2.3.8)
45
45
  activesupport (= 2.3.8)
46
46
  rake (>= 0.8.3)
47
- rake (0.9.2)
47
+ rake (0.9.2.2)
48
48
  rbx-require-relative (0.0.5)
49
49
  rspec (1.3.1)
50
50
  rspec-rails (1.3.4)
data/README.md CHANGED
@@ -26,6 +26,8 @@ Does your website use SitemapGenerator to generate Sitemaps? Where would you be
26
26
  Changelog
27
27
  -------
28
28
 
29
+ - v2.1.7: Improve format of float priorities; Remove Yahoo from ping - the Yahoo
30
+ service has been shut down.
29
31
  - v2.1.6: Fix the lastmod value on sitemap file links
30
32
  - v2.1.5: Fix verbose setting in the rake tasks; should default to true
31
33
  - v2.1.4: Allow special characters in URLs (don't use URI.join to construct URLs)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.7.pre1
1
+ 2.1.7
@@ -61,7 +61,7 @@ module SitemapGenerator
61
61
  builder.loc self[:loc]
62
62
  builder.lastmod w3c_date(self[:lastmod]) if self[:lastmod]
63
63
  builder.changefreq self[:changefreq] if self[:changefreq]
64
- builder.priority self[:priority] if self[:priority]
64
+ builder.priority '%0.1f'%self[:priority] if self[:priority]
65
65
 
66
66
  unless self[:news].blank?
67
67
  news_data = self[:news]
@@ -192,7 +192,6 @@ module SitemapGenerator
192
192
  sitemap_index_url = CGI.escape(sitemap_index.location.url)
193
193
  search_engines = {
194
194
  :google => "http://www.google.com/webmasters/sitemaps/ping?sitemap=#{sitemap_index_url}",
195
- :yahoo => "http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=#{yahoo_app_id}&url=#{sitemap_index_url}",
196
195
  :ask => "http://submissions.ask.com/ping?sitemap=#{sitemap_index_url}",
197
196
  :bing => "http://www.bing.com/webmaster/ping.aspx?siteMap=#{sitemap_index_url}",
198
197
  :sitemap_writer => "http://www.sitemapwriter.com/notify.php?crawler=all&url=#{sitemap_index_url}"
@@ -200,7 +199,6 @@ module SitemapGenerator
200
199
 
201
200
  puts "\n" if verbose
202
201
  search_engines.each do |engine, link|
203
- next if engine == :yahoo && !self.yahoo_app_id
204
202
  begin
205
203
  Timeout::timeout(10) {
206
204
  open(link)
@@ -210,17 +208,6 @@ module SitemapGenerator
210
208
  puts "Ping failed for #{engine.to_s.titleize}: #{e.inspect} (URL #{link})" if verbose
211
209
  end
212
210
  end
213
-
214
- if !self.yahoo_app_id && verbose
215
- puts "\n"
216
- puts <<-END.gsub(/^\s+/, '')
217
- To ping Yahoo you require a Yahoo AppID. Add it to your config/sitemap.rb with:
218
-
219
- SitemapGenerator::Sitemap.yahoo_app_id = "my_app_id"
220
-
221
- For more information see http://developer.yahoo.com/search/siteexplorer/V1/updateNotification.html
222
- END
223
- end
224
211
  end
225
212
 
226
213
  # Return a count of the total number of links in all sitemaps
metadata CHANGED
@@ -1,15 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitemap_generator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1923832003
5
- prerelease: 6
4
+ hash: 5
5
+ prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
9
  - 7
10
- - pre
11
- - 1
12
- version: 2.1.7.pre1
10
+ version: 2.1.7
13
11
  platform: ruby
14
12
  authors:
15
13
  - Karl Varga
@@ -18,7 +16,7 @@ autorequire:
18
16
  bindir: bin
19
17
  cert_chain: []
20
18
 
21
- date: 2011-11-14 00:00:00 -08:00
19
+ date: 2011-11-27 00:00:00 -08:00
22
20
  default_executable:
23
21
  dependencies:
24
22
  - !ruby/object:Gem::Dependency
@@ -163,14 +161,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
161
  required_rubygems_version: !ruby/object:Gem::Requirement
164
162
  none: false
165
163
  requirements:
166
- - - ">"
164
+ - - ">="
167
165
  - !ruby/object:Gem::Version
168
- hash: 25
166
+ hash: 3
169
167
  segments:
170
- - 1
171
- - 3
172
- - 1
173
- version: 1.3.1
168
+ - 0
169
+ version: "0"
174
170
  requirements: []
175
171
 
176
172
  rubyforge_project: