validate-website 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4263f21d67ab70f12daa7658a7808e1829a9f9da
4
- data.tar.gz: 88550249c2caca495b8478392c44d6df52d4d7a6
3
+ metadata.gz: adc4c06f7c77b6c2f397f0a051117ee11d2d4010
4
+ data.tar.gz: 41471e1343ef48fb1af4277fc26bc8013db9b8f1
5
5
  SHA512:
6
- metadata.gz: e8e86f4d2afbed43f52fecb99f5a2e953f4d20440de2b000ab235d60c42318cf0e0b77c80e83fb4cea2d90aa53e9838c848ff1ba3179d5393badb6e300aad890
7
- data.tar.gz: a1676d60f28951d851983661000362e337952dee65188c670fc55484156100ac2ed8ac9683329fc8afae9d55db9cab7811585db0fea6eb0bf0467f27222f066a
6
+ metadata.gz: c0b3e801e54ac94d15a9531616d8c06e72cd6c8c59b02eaa952a69376e9ff3f95fee8c09c1928ba8010c6b0e6e0c8ba28ad02e7b36df0cc7199fd837d872f78a
7
+ data.tar.gz: 2d9a27553d68064ed6b562d1546f077f5ac495573c9ec347c075b87d011da314ee8ed1d4b3db0659f65c3cf85fdbf0fbb581905bf622496b2215f77ae6f5ff44
@@ -119,6 +119,7 @@ module ValidateWebsite
119
119
  # see lib/validate_website/runner.rb
120
120
  def check_static_not_found(links)
121
121
  links.each_with_object(Set[]) do |l, result|
122
+ next if l.include?('#')
122
123
  link = static_site_link(l)
123
124
  next unless in_static_domain?(@site, link)
124
125
  file_path = URI.parse(File.join(Dir.getwd, link.path || '/')).path
data/spec/core_spec.rb CHANGED
@@ -111,7 +111,7 @@ describe ValidateWebsite::Core do
111
111
  site: 'https://linuxfr.org/',
112
112
  markup: false,
113
113
  not_found: true)
114
- @validate_website.not_founds_count.must_equal 463
114
+ @validate_website.not_founds_count.must_equal 447
115
115
  end
116
116
  end
117
117
  end
data/spec/data/html5.html CHANGED
@@ -38,6 +38,7 @@
38
38
  <li><a href="/my-url5" title="title">my url</a></li>
39
39
  <li><a href="/my-url6" title="title">my url</a></li>
40
40
  <li><a href="/my-url7" title="title">my url</a></li>
41
+ <li><a href="/tags/#test">Test</a></li>
41
42
  </ul>
42
43
  </nav>
43
44
  </footer>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validate-website
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Arnoud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-18 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spidr
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.8'
33
+ version: '0.9'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.8'
40
+ version: '0.9'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: multipart_body
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,42 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.5'
61
+ version: '3.6'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.5'
68
+ version: '3.6'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '10.3'
75
+ version: '10.4'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '10.3'
82
+ version: '10.4'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: minitest
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '5.4'
89
+ version: '5.5'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '5.4'
96
+ version: '5.5'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: webmock
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0.9'
117
+ version: '0.10'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0.9'
124
+ version: '0.10'
125
125
  description: validate-website is a web crawler for checking the markup validity with
126
126
  XML Schema / DTD and not found urls.
127
127
  email: laurent@spkdev.net
@@ -276,4 +276,3 @@ summary: Web crawler for checking the validity of your documents
276
276
  test_files:
277
277
  - spec/core_spec.rb
278
278
  - spec/validator_spec.rb
279
- has_rdoc: