site_validator 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format doc
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  module SiteValidator
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.1"
5
5
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.add_dependency 'w3c_validators', '~> 1.2'
19
19
  gem.add_dependency 'nokogiri', '~> 1.5.3'
20
- gem.add_dependency 'metainspector', '~> 1.15.0'
20
+ gem.add_dependency 'metainspector', '~> 1.15.1'
21
21
 
22
22
  gem.add_development_dependency 'rspec', '~> 2.5.0'
23
23
  gem.add_development_dependency 'mocha', '~> 0.11.4'
data/spec/sitemap_spec.rb CHANGED
@@ -33,9 +33,8 @@ describe SiteValidator::Sitemap do
33
33
  end
34
34
 
35
35
  it "should get pages from the sample guides.rubyonrails.org site" do
36
- #@sitemap_html.pages.length.should == 34
37
36
  @sitemap_html.pages.map {|p| p.url}
38
- .should == ["http://guides.rubyonrails.org",
37
+ .should == ["http://guides.rubyonrails.org/",
39
38
  "http://guides.rubyonrails.org/index.html",
40
39
  "http://guides.rubyonrails.org/getting_started.html",
41
40
  "http://guides.rubyonrails.org/migrations.html",
@@ -102,13 +101,13 @@ describe SiteValidator::Sitemap do
102
101
 
103
102
  it "should include sitemap url at least, even if no links were found" do
104
103
  @sitemap_no_links.pages.length.should == 1
105
- @sitemap_no_links.pages[0].url.should == 'http://zigotica.com'
104
+ @sitemap_no_links.pages[0].url.should == 'http://zigotica.com/'
106
105
  end
107
106
 
108
107
  it "should not repeat sitemap URL with and without trailing slash" do
109
108
  urls = @sitemap_with_trailing_slash.pages.collect(&:url)
110
- urls.should include 'http://eparreno.com'
111
- urls.should_not include 'http://eparreno.com/'
109
+ urls.should_not include 'http://eparreno.com'
110
+ urls.should include 'http://eparreno.com/'
112
111
  end
113
112
 
114
113
  it "should not repeat internal URLs with and without trailing slash" do
@@ -146,7 +145,7 @@ describe SiteValidator::Sitemap do
146
145
  context "protocol-relative links" do
147
146
  it "should include only internal links" do
148
147
  @sitemap_with_protocol_relative.pages.size.should == 3
149
- @sitemap_with_protocol_relative.pages.map {|p| p.url}.sort.should == ['http://protocol-relative.com',
148
+ @sitemap_with_protocol_relative.pages.map {|p| p.url}.sort.should == ['http://protocol-relative.com/',
150
149
  'http://protocol-relative.com/contact',
151
150
  'http://protocol-relative.com/faqs']
152
151
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_validator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jaime Iniesta
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-01-19 00:00:00 Z
18
+ date: 2013-02-06 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: w3c_validators
@@ -56,12 +56,12 @@ dependencies:
56
56
  requirements:
57
57
  - - ~>
58
58
  - !ruby/object:Gem::Version
59
- hash: 43
59
+ hash: 41
60
60
  segments:
61
61
  - 1
62
62
  - 15
63
- - 0
64
- version: 1.15.0
63
+ - 1
64
+ version: 1.15.1
65
65
  type: :runtime
66
66
  version_requirements: *id003
67
67
  - !ruby/object:Gem::Dependency
@@ -139,6 +139,7 @@ extra_rdoc_files: []
139
139
 
140
140
  files:
141
141
  - .gitignore
142
+ - .rspec
142
143
  - .rvmrc.example
143
144
  - .travis.yml
144
145
  - Gemfile