sitemap_generator 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -78,6 +78,14 @@ namespace :test do
78
78
  end
79
79
  end
80
80
 
81
+ desc "Release a new patch version"
82
+ task :release_new_version do
83
+ Rake::Task['version:bump:patch'].invoke
84
+ Rake::Task['github:release'].invoke
85
+ Rake::Task['git:release'].invoke
86
+ Rake::Task['gemcutter:release'].invoke
87
+ end
88
+
81
89
  desc "Run tests as a gem install"
82
90
  task :test => ['test:gem']
83
91
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -34,7 +34,7 @@ module SitemapGenerator
34
34
  xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
35
35
  >
36
36
  HTML
37
- @xml_wrapper_start.gsub!(/\s+/, ' ').gsub!(/ *> */, '>')
37
+ @xml_wrapper_start.gsub!(/\s+/, ' ').gsub!(/ *> */, '>').strip!
38
38
  @xml_wrapper_end = %q[</urlset>]
39
39
  self.filesize = @xml_wrapper_start.bytesize + @xml_wrapper_end.bytesize
40
40
  end
@@ -15,7 +15,7 @@ module SitemapGenerator
15
15
  xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
16
16
  >
17
17
  HTML
18
- @xml_wrapper_start.gsub!(/\s+/, ' ').gsub!(/ *> */, '>')
18
+ @xml_wrapper_start.gsub!(/\s+/, ' ').gsub!(/ *> */, '>').strip!
19
19
  @xml_wrapper_end = %q[</sitemapindex>]
20
20
  self.filesize = @xml_wrapper_start.bytesize + @xml_wrapper_end.bytesize
21
21
  end
@@ -46,7 +46,7 @@ module SitemapGenerator
46
46
  end
47
47
 
48
48
  def link_count
49
- self.sitemaps.map(&:link_count).inject(:+)
49
+ self.sitemaps.inject(0) { |link_count_sum, sitemap| link_count_sum + sitemap.link_count }
50
50
  end
51
51
 
52
52
  # Called within the user's eval'ed sitemap config file. Add links to sitemap files
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Adam Salter
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-05-22 00:00:00 -07:00
18
+ date: 2010-05-24 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency