xml-sitemap 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module XmlSitemap
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
data/spec/map_spec.rb CHANGED
@@ -2,7 +2,8 @@ require 'spec_helper'
2
2
 
3
3
  describe XmlSitemap::Map do
4
4
  before :all do
5
- @base_time = Time.mktime(2011, 6, 1, 0, 0, 1)
5
+ @base_time = Time.mktime(2011, 6, 1, 0, 0, 1).utc
6
+ @extra_time = Time.mktime(2011, 7, 1, 0, 0, 1).utc
6
7
  end
7
8
 
8
9
  it 'should not allow empty domains' do
@@ -45,6 +46,12 @@ describe XmlSitemap::Map do
45
46
  map.add('path').target.should == 'https://foobar.com/path'
46
47
  end
47
48
 
49
+ it 'should properly set entry time' do
50
+ map = XmlSitemap::Map.new('foobar.com', :time => @base_time)
51
+ map.add('hello').updated.should == @base_time
52
+ map.add('world', :updated => @extra_time).updated.should == Time.mktime(2011, 7, 1, 0, 0, 1)
53
+ end
54
+
48
55
  it 'should have properly encoded entities' do
49
56
  map = XmlSitemap::Map.new('foobar.com', :time => @base_time)
50
57
  map.add('/path?a=b&c=d&e=sample string')
data/xml-sitemap.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.add_development_dependency 'rspec', '~> 2.6'
14
14
  s.add_development_dependency 'simplecov', '~> 0.4'
15
15
 
16
- s.add_runtime_dependency 'builder', '~> 3.0'
16
+ s.add_runtime_dependency 'builder', '~> 2.1'
17
17
 
18
18
  s.files = `git ls-files`.split("\n")
19
19
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,72 +1,67 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: xml-sitemap
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.1
4
5
  prerelease:
5
- version: 1.1.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Dan Sosedoff
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-06-23 00:00:00 -05:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2011-08-18 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: rake
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &71108270 !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
18
+ requirements:
22
19
  - - ~>
23
- - !ruby/object:Gem::Version
24
- version: "0.8"
20
+ - !ruby/object:Gem::Version
21
+ version: '0.8'
25
22
  type: :development
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: rspec
29
23
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *71108270
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &71107960 !ruby/object:Gem::Requirement
31
28
  none: false
32
- requirements:
29
+ requirements:
33
30
  - - ~>
34
- - !ruby/object:Gem::Version
35
- version: "2.6"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.6'
36
33
  type: :development
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: simplecov
40
34
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *71107960
36
+ - !ruby/object:Gem::Dependency
37
+ name: simplecov
38
+ requirement: &71107640 !ruby/object:Gem::Requirement
42
39
  none: false
43
- requirements:
40
+ requirements:
44
41
  - - ~>
45
- - !ruby/object:Gem::Version
46
- version: "0.4"
42
+ - !ruby/object:Gem::Version
43
+ version: '0.4'
47
44
  type: :development
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: builder
51
45
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *71107640
47
+ - !ruby/object:Gem::Dependency
48
+ name: builder
49
+ requirement: &71107400 !ruby/object:Gem::Requirement
53
50
  none: false
54
- requirements:
51
+ requirements:
55
52
  - - ~>
56
- - !ruby/object:Gem::Version
57
- version: "3.0"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.1'
58
55
  type: :runtime
59
- version_requirements: *id004
56
+ prerelease: false
57
+ version_requirements: *71107400
60
58
  description: Provides a wrapper to generate XML sitemaps and sitemap indexes.
61
- email:
59
+ email:
62
60
  - dan.sosedoff@gmail.com
63
61
  executables: []
64
-
65
62
  extensions: []
66
-
67
63
  extra_rdoc_files: []
68
-
69
- files:
64
+ files:
70
65
  - .gitignore
71
66
  - .rspec
72
67
  - Gemfile
@@ -86,40 +81,28 @@ files:
86
81
  - spec/map_spec.rb
87
82
  - spec/spec_helper.rb
88
83
  - xml-sitemap.gemspec
89
- has_rdoc: true
90
84
  homepage: http://github.com/sosedoff/xml-sitemap
91
85
  licenses: []
92
-
93
86
  post_install_message:
94
87
  rdoc_options: []
95
-
96
- require_paths:
88
+ require_paths:
97
89
  - lib
98
- required_ruby_version: !ruby/object:Gem::Requirement
90
+ required_ruby_version: !ruby/object:Gem::Requirement
99
91
  none: false
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: "0"
104
- required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
97
  none: false
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
109
101
  version: 1.3.6
110
102
  requirements: []
111
-
112
103
  rubyforge_project:
113
- rubygems_version: 1.6.2
104
+ rubygems_version: 1.8.5
114
105
  signing_key:
115
106
  specification_version: 3
116
107
  summary: Simple XML sitemap generator for Ruby/Rails applications.
117
- test_files:
118
- - spec/fixtures/empty_index.xml
119
- - spec/fixtures/encoded_map.xml
120
- - spec/fixtures/sample_index.xml
121
- - spec/fixtures/saved_map.xml
122
- - spec/fixtures/simple_map.xml
123
- - spec/index_spec.rb
124
- - spec/map_spec.rb
125
- - spec/spec_helper.rb
108
+ test_files: []