sitemap_generator 1.3.1 → 1.3.2

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 CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
@@ -21,9 +21,8 @@ module SitemapGenerator
21
21
  if block_given?
22
22
  instance_eval(&block)
23
23
  else
24
- sitemap_config_file ||= File.join(::Rails.root, 'config/sitemap.rb')
25
- config = open(sitemap_config_file).read
26
- eval(config)
24
+ sitemap_config_file ||= ::Rails.root + 'config/sitemap.rb'
25
+ eval File.read(sitemap_config_file), nil, sitemap_config_file.to_s
27
26
  end
28
27
  end
29
28
 
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: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 1
10
- version: 1.3.1
9
+ - 2
10
+ version: 1.3.2
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-11-02 00:00:00 -07:00
19
+ date: 2010-11-05 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency