wco_models 3.1.0.171 → 3.1.0.172
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 +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9d7f90cd07738625ede1c827f614f78dd805e3a9289d848cf294bc303c55942
|
4
|
+
data.tar.gz: 33bc51ba615b9b81848cbb667e966af1d15f4c9e0ed5edc18832d1efca1fe7b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e88195624c9021ca22a0384feff772940f0c1fe36a497878e5cb652fd9250819d61c9bf39a759e5c202d9f876480b18b45a4f73a900cd8b777f55f711db281af
|
7
|
+
data.tar.gz: 8689c012d38b7e9949913b67a3115194eeb61109dac3a8197a0322af29f6e5fb84056309d588328dd4bbc4b415c8ed0731001b75b728352ff183bffd60044e15
|
@@ -20,7 +20,7 @@ class Wco::SitemapPath
|
|
20
20
|
|
21
21
|
def check
|
22
22
|
self.status = 'NOT_OK'
|
23
|
-
if self[:selector]
|
23
|
+
if self[:selector].present?
|
24
24
|
begin
|
25
25
|
body = HTTParty.get( "#{site.origin}#{self[:path]}" ).body
|
26
26
|
rescue OpenSSL::SSL::SSLError => err
|
@@ -46,7 +46,7 @@ class Wco::SitemapPath
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
-
elsif self[:redirect_to]
|
49
|
+
elsif self[:redirect_to].present?
|
50
50
|
out = HTTParty.get( "#{site.origin}#{self[:path]}", follow_redirects: false )
|
51
51
|
if( out.headers[:location] == self[:redirect_to] ||
|
52
52
|
out.headers[:location] == "#{site.origin}#{self[:redirect_to]}" )
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.
|
4
|
+
version: 3.1.0.172
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ahoy_matey
|