spidy 0.3.6 → 0.3.7
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 +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 661f68bd9bc8bdb53caa349d8b3e8e7d79a441f7c29b3590179dd80762e2e5af
|
4
|
+
data.tar.gz: 511fb4efbe6fc76f0aa043eaf6312c8f0aaa24632f93042c70f7978552550cf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e20188f1f22dab76206005b7ff5afa5d5e63740acc8141efdde90df602acfc575d3df8f9894820182d16a69cdc9aa02d15a41f5de9a1a161362a8d809053bcc7
|
7
|
+
data.tar.gz: 26b667b1143bdf50e6100701ae89b46abd518e7d49be1c6eb46b6daffc291f3398b8963ca66614686bef4be62d0a243b02d5b6b09a114d790903b2f6e0515cff
|
data/lib/spidy/binder/html.rb
CHANGED
@@ -8,7 +8,7 @@ class Spidy::Binder::Html < Spidy::Binder::Base
|
|
8
8
|
@attribute_names ||= []
|
9
9
|
@attribute_names << name
|
10
10
|
|
11
|
-
return define_method(name) { html.at(query)&.text } if block.nil?
|
11
|
+
return define_method(name) { html.at(query)&.text&.strip } if block.nil?
|
12
12
|
|
13
13
|
define_method(name) do
|
14
14
|
if query.present?
|
data/lib/spidy/binder/xml.rb
CHANGED
@@ -8,7 +8,7 @@ class Spidy::Binder::Xml < Spidy::Binder::Base
|
|
8
8
|
@attribute_names ||= []
|
9
9
|
@attribute_names << name
|
10
10
|
|
11
|
-
return define_method(name) { xml.at(query)&.text } if block.nil?
|
11
|
+
return define_method(name) { xml.at(query)&.text&.strip } if block.nil?
|
12
12
|
|
13
13
|
define_method(name) do
|
14
14
|
if query.present?
|
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.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aileron
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -258,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
258
258
|
- !ruby/object:Gem::Version
|
259
259
|
version: '0'
|
260
260
|
requirements: []
|
261
|
-
rubygems_version: 3.
|
261
|
+
rubygems_version: 3.2.13
|
262
262
|
signing_key:
|
263
263
|
specification_version: 4
|
264
264
|
summary: web spider dsl
|