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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66737c644955f970c966767c341218bb5653237c02aef76ac85e6414b570cef0
4
- data.tar.gz: b2cad5216e5b01e85866c156ac24595788045191b7dc401e6748dc049dff6a86
3
+ metadata.gz: a9d7f90cd07738625ede1c827f614f78dd805e3a9289d848cf294bc303c55942
4
+ data.tar.gz: 33bc51ba615b9b81848cbb667e966af1d15f4c9e0ed5edc18832d1efca1fe7b6
5
5
  SHA512:
6
- metadata.gz: eadbacdec9622b2a3d41c99e08fa81c8b60a87f21712474605b00f857d91a7f647e8f9fc7f27a28adeb87aac4ab9149bcf0417386a61485dcc6e7ec39932d7e3
7
- data.tar.gz: '018ba6ad23b019bb30c1e73fda6c74d9cf509dd841817697df3c89c137b587b0b0c658aa504afdcf59eb49114256fce72fea0b4135ad45cc5ba97b9a6e8e3358'
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.171
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-20 00:00:00.000000000 Z
11
+ date: 2024-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ahoy_matey