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 +4 -4
- data/lib/spidy/binder/html.rb +1 -1
- data/lib/spidy/binder/xml.rb +1 -1
- data/lib/spidy/version.rb +1 -1
- 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: 7cf037c791411c37905e63faa8ed48c49f7735280d406846467ed0ed829e6a1e
|
4
|
+
data.tar.gz: a34996a3fb583b9066c67509696ab972f368bbde1c2900d8f7304d92ca4741df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfba65237f7975ebc995f52827dfd6cd975afaacdb01dbb6413c8ad07b88e8f3edb4a399ce505e10f0ce7c9acca39e7ccb2f3f5d1984a6b49b1a6de23058899c
|
7
|
+
data.tar.gz: 0b7fb9f8c095b5e1153617493a404accfe4764dee34a68c3b8ba6d489138c0c0b1b87687b5376c16e08edd183f2972a99b3986e02f69dbb4a8ebe2d3f490bf09
|
data/lib/spidy/binder/html.rb
CHANGED
@@ -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.
|
30
|
+
instance_exec(html.at(query), &block)
|
31
31
|
rescue NoMethodError => e
|
32
32
|
raise "#{html.uri} ##{name} => #{e.message}"
|
33
33
|
end
|
data/lib/spidy/binder/xml.rb
CHANGED
@@ -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.
|
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
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.
|
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-
|
11
|
+
date: 2019-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|