spidy 0.0.22 → 0.0.23

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: 54a354e11d7404229aff8394c535cdf06f8fdf2fcd1afc6081a7bf9dceeb00fb
4
- data.tar.gz: bc89e11adeeffe65fc12bb844014814f2dc56b17db41ab2f08a5c40cfdbd5d18
3
+ metadata.gz: 7cf037c791411c37905e63faa8ed48c49f7735280d406846467ed0ed829e6a1e
4
+ data.tar.gz: a34996a3fb583b9066c67509696ab972f368bbde1c2900d8f7304d92ca4741df
5
5
  SHA512:
6
- metadata.gz: 271c80cfcef9dc172a442c22c1db133d0250b016b78e0fefea78b5e6ad287e7d994780345dcec1a681a443956a6b16cac703dce96dc1ae3d410a35a728386ff8
7
- data.tar.gz: b4a0ae085bf77a4e3f7f19604088b9e18c6444cff622cacacfeef2ca0a5a463aadf30a289b2ce2df14ffbe9887e95e9a79cc341f763779a5f14ef9281a8796ac
6
+ metadata.gz: bfba65237f7975ebc995f52827dfd6cd975afaacdb01dbb6413c8ad07b88e8f3edb4a399ce505e10f0ce7c9acca39e7ccb2f3f5d1984a6b49b1a6de23058899c
7
+ data.tar.gz: 0b7fb9f8c095b5e1153617493a404accfe4764dee34a68c3b8ba6d489138c0c0b1b87687b5376c16e08edd183f2972a99b3986e02f69dbb4a8ebe2d3f490bf09
@@ -27,7 +27,7 @@ class Spidy::Binder::Html
27
27
  return html.at(query)&.text if block.nil?
28
28
  return instance_exec(&block) if query.blank?
29
29
 
30
- instance_exec(html.search(query), &block)
30
+ instance_exec(html.at(query), &block)
31
31
  rescue NoMethodError => e
32
32
  raise "#{html.uri} ##{name} => #{e.message}"
33
33
  end
@@ -27,7 +27,7 @@ class Spidy::Binder::Xml
27
27
  return xml.at(query)&.text if block.nil?
28
28
  return instance_exec(&block) if query.blank?
29
29
 
30
- instance_exec(xml.search(query), &block)
30
+ instance_exec(xml.at(query), &block)
31
31
  rescue NoMethodError => e
32
32
  raise "#{xml} ##{name} => #{e.message}"
33
33
  end
data/lib/spidy/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spidy
4
- VERSION = '0.0.22'
4
+ VERSION = '0.0.23'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spidy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - aileron
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-24 00:00:00.000000000 Z
11
+ date: 2019-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler