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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38936d0a025edde8a0ecb15a164c36fbccf1346f9bee9ec7d01a43931eaeb163
4
- data.tar.gz: 71c02d424da0b18cfad383035c78465b1c81ccdfe41399baa511a7bae3675662
3
+ metadata.gz: 661f68bd9bc8bdb53caa349d8b3e8e7d79a441f7c29b3590179dd80762e2e5af
4
+ data.tar.gz: 511fb4efbe6fc76f0aa043eaf6312c8f0aaa24632f93042c70f7978552550cf2
5
5
  SHA512:
6
- metadata.gz: d97c61f76fb9dde1d5693c7d33830c6df7605930408c42666ffe31a6d46262d1203cfed710d2112f2c396cdcbc3e40f1149d9fc005c5947af3851946bd6f487e
7
- data.tar.gz: ffe6d6362f6bb50c11e54cb398730b0a649ac832b5fdd048d61675dce7a17ec58993900cbaa250238c0cc702cbe649e901cab660c265adb2ef8207e2704ea48c
6
+ metadata.gz: e20188f1f22dab76206005b7ff5afa5d5e63740acc8141efdde90df602acfc575d3df8f9894820182d16a69cdc9aa02d15a41f5de9a1a161362a8d809053bcc7
7
+ data.tar.gz: 26b667b1143bdf50e6100701ae89b46abd518e7d49be1c6eb46b6daffc291f3398b8963ca66614686bef4be62d0a243b02d5b6b09a114d790903b2f6e0515cff
@@ -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?
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spidy
4
- VERSION = '0.3.6'
4
+ VERSION = '0.3.7'
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.3.6
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: 2020-10-09 00:00:00.000000000 Z
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.1.4
261
+ rubygems_version: 3.2.13
262
262
  signing_key:
263
263
  specification_version: 4
264
264
  summary: web spider dsl