escapement 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: feef749452a510c1296df57f1fa902b907489336
4
- data.tar.gz: 684d25eadfb7c027d7e4dca2cbfa3de6b43aff69
3
+ metadata.gz: 8b604ba6771ae474416704ecb17863b56124b7af
4
+ data.tar.gz: 9ac1bfe3ed661721f0dd3dc2ce9f1abcf7cbb6ee
5
5
  SHA512:
6
- metadata.gz: ee53837345b1036e2fbc59812ea9ce9da1452be529482c828dc97e103b929dc899faf9ba1809fbdcd5c8aa748679e371f72096c06fcd9d1975d00cdeaf30b914
7
- data.tar.gz: 5a039a1d8f1233e2f4738219034070b9af451545d7b42596ef7e06040ba00f51ca7df2d2631af1dcfdef101894621de5f4418e9f4a00a222fd094f4d94b9ae19
6
+ metadata.gz: 7fa8d148809ec2c2acb8cdbea56aefa4e223e3cc4358aaec98838269fce3133a8f44efc63cee191a88d4fb94bd25cef8c119cfdec3e27fb9a498a5041d54af4a
7
+ data.tar.gz: 3bef38a534826c355c8ceaebd539f5fd427749a6851b0cddfbea43863f9c8a2bdc9ca870aeb050710119dfe1629b8ea78c63aba916c725483eaf1f7a03361a17
@@ -14,7 +14,10 @@ module Escapement
14
14
  end
15
15
 
16
16
  def process!
17
- return if node.text.strip.empty?
17
+ # This will match empty strings, strings with spaces, and
18
+ # even strings with unicode non-breakable spaces (which can be
19
+ # produced by  )
20
+ return if node.text =~ /\A[[:space:]]*\z/
18
21
 
19
22
  process_children
20
23
 
@@ -1,3 +1,3 @@
1
1
  module Escapement
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escapement
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan LeFevre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-14 00:00:00.000000000 Z
11
+ date: 2015-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.4.5
113
+ rubygems_version: 2.4.6
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Extract child entities from an HTML string.