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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55d9ac4131e23711ece162eeb0d966ad0a0a1d674eeaff4914e9a8f8a04d8854
4
- data.tar.gz: dd2312d66791bc3bb0bf644632acc6f9d37513a5331a226ea911ad2f7fa1f5e8
3
+ metadata.gz: 56879a2c60cb14e18f93f9e7189c7221c2a12d240176c22d5b44dc1093347358
4
+ data.tar.gz: e9635f00ef3fc77141589c2a989564e3c97e2d51dfdbed89e57a0ae6ab21ad98
5
5
  SHA512:
6
- metadata.gz: e886165a18d09abcc2798f081803c2fb645d0c664e152e5511b496a534b58b8c9ae8977aa64c2c728c2bda233546bb3a82418cdf25b731768060f2d6e87b9dc5
7
- data.tar.gz: 88921f8da539770fd3698a7a98be6eff4f8043b8d4513d495f1a55a9b44763124221e939c98f8583a36a51d4b40541b7c71aaa090c626dc2a62e44ef96852d92
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?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.169
4
+ version: 3.1.0.170
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev