site_map 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module SiteMap
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 3
6
- TINY = 3
6
+ TINY = 4
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
@@ -132,7 +132,7 @@ module SiteMap
132
132
  when :member
133
133
  self.resource_url
134
134
  else
135
- "/#{@index.to_s.downcase.gsub(/[^a-z0-9\-_\+]+/, '-').gsub(/_/, '-')}"
135
+ "#{parent.url if parent}/#{@index.to_s.downcase.gsub(/[^a-z0-9\-\+]+/, '-')}"
136
136
  end
137
137
  end
138
138
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Collin Redding
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-19 00:00:00 -05:00
17
+ date: 2010-05-03 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency