xml-sitemap 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/xml-sitemap.rb +2 -2
  2. metadata +4 -4
data/lib/xml-sitemap.rb CHANGED
@@ -52,7 +52,7 @@ module XmlSitemap
52
52
  return '' if @items.size == 0
53
53
  output = []
54
54
  output << '<?xml version="1.0" encoding="UTF-8"?>'
55
- output << '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'
55
+ output << '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">'
56
56
  @items.each do |item|
57
57
  output << '<url>'
58
58
  output << "<loc>http://#{@domain}#{item.path.to_s}</loc>"
@@ -95,4 +95,4 @@ module XmlSitemap
95
95
  return output.join("\n")
96
96
  end
97
97
  end
98
- end
98
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml-sitemap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Sosedoff
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-19 00:00:00 -05:00
18
+ date: 2010-10-12 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21