sitemap_generator 1.3.6 → 1.3.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/VERSION +1 -1
- data/lib/sitemap_generator/builder/sitemap_file.rb +4 -4
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.7
|
@@ -76,7 +76,7 @@ module SitemapGenerator
|
|
76
76
|
# If a link cannot be added, for example if the file is too large or the link
|
77
77
|
# limit has been reached, a SitemapGenerator::SitemapFullError exception is raised.
|
78
78
|
#
|
79
|
-
# If the Sitemap has already been finalized a SitemapGenerator::
|
79
|
+
# If the Sitemap has already been finalized a SitemapGenerator::SitemapFinalizedError
|
80
80
|
# exception is raised.
|
81
81
|
#
|
82
82
|
# Call with:
|
@@ -91,7 +91,7 @@ module SitemapGenerator
|
|
91
91
|
end
|
92
92
|
|
93
93
|
if self.finalized?
|
94
|
-
raise SitemapGenerator::
|
94
|
+
raise SitemapGenerator::SitemapFinalizedError
|
95
95
|
elsif !file_can_fit?(bytesize(xml))
|
96
96
|
raise SitemapGenerator::SitemapFullError
|
97
97
|
end
|
@@ -108,10 +108,10 @@ module SitemapGenerator
|
|
108
108
|
# All the xml content in the instance is cleared, but attributes like
|
109
109
|
# <tt>filesize</tt> are still available.
|
110
110
|
#
|
111
|
-
# A SitemapGenerator::
|
111
|
+
# A SitemapGenerator::SitemapFinalizedError exception is raised if the Sitemap
|
112
112
|
# has already been finalized
|
113
113
|
def finalize!
|
114
|
-
raise SitemapGenerator::
|
114
|
+
raise SitemapGenerator::SitemapFinalizedError if self.finalized?
|
115
115
|
|
116
116
|
# Ensure that the directory exists
|
117
117
|
dir = File.dirname(self.full_path)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sitemap_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 7
|
10
|
+
version: 1.3.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Karl Varga
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-12-
|
19
|
+
date: 2010-12-20 00:00:00 -08:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|