wco_models 3.1.0.169 → 3.1.0.170
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/wco/sitemap_path.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56879a2c60cb14e18f93f9e7189c7221c2a12d240176c22d5b44dc1093347358
|
4
|
+
data.tar.gz: e9635f00ef3fc77141589c2a989564e3c97e2d51dfdbed89e57a0ae6ab21ad98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fb37d32aae266887cf830a0609623365dd9f9f6f540f08d1b787b38449bfce5d09329e83227610f8523eeffd61f2d4de500395a86d8a9e94d664982a015e81c
|
7
|
+
data.tar.gz: 74d6f116e6c1669fad9437072c37a94c3af1e923e6f4d8a5bf4da093262a98d953db5693439ecf421b15b3df11ea6f00ca58892c9afc690fdb5ffb430c2d06d2
|
@@ -47,9 +47,9 @@ class Wco::SitemapPath
|
|
47
47
|
end
|
48
48
|
|
49
49
|
elsif self[:redirect_to]
|
50
|
-
out = HTTParty.get( "#{origin}#{self[:path]}", follow_redirects: false )
|
50
|
+
out = HTTParty.get( "#{site.origin}#{self[:path]}", follow_redirects: false )
|
51
51
|
if( out.headers[:location] == self[:redirect_to] ||
|
52
|
-
out.headers[:location] == "#{origin}#{self[:redirect_to]}" )
|
52
|
+
out.headers[:location] == "#{site.origin}#{self[:redirect_to]}" )
|
53
53
|
results.push "OK #{self[:path]}"
|
54
54
|
self.status = 'OK'
|
55
55
|
else
|
@@ -69,7 +69,7 @@ class Wco::SitemapPath
|
|
69
69
|
|
70
70
|
if self[:selectors].present?
|
71
71
|
self[:selectors].each do |selector|
|
72
|
-
body = HTTParty.get( "#{origin}#{self[:path]}" ).body
|
72
|
+
body = HTTParty.get( "#{site.origin}#{self[:path]}" ).body
|
73
73
|
doc = Nokogiri::HTML( body )
|
74
74
|
out = doc.search selector
|
75
75
|
if out.present?
|