sitemap_generator 1.3.6 → 1.3.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.6
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::SitemapFinalized
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::SitemapFinalized
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::SitemapFinalized exception is raised if the Sitemap
111
+ # A SitemapGenerator::SitemapFinalizedError exception is raised if the Sitemap
112
112
  # has already been finalized
113
113
  def finalize!
114
- raise SitemapGenerator::SitemapFinalized if self.finalized?
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 6
10
- version: 1.3.6
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-12 00:00:00 -08:00
19
+ date: 2010-12-20 00:00:00 -08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency