rexle 1.0.30 → 1.0.31

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: adfbe5ba547c8ef5b5b716913eb8df7bc0f29e36
4
- data.tar.gz: c9bc98299843537f4ee19a319e5d2d8baf8c2599
3
+ metadata.gz: 447d3c0e354b2dd98d2340af1932035eea229762
4
+ data.tar.gz: ce371c091663a83a046d92bb6066871af4737e7c
5
5
  SHA512:
6
- metadata.gz: 0e73d745b1edccc86dfb6590004838fe671327bcb1e3a527617bd7b686892642d73d1b2ff7d4f85a495f4cf8160be0361e400638aa6e4ce463a50e64009c7483
7
- data.tar.gz: 04d378818b56ed73dc244c13f674efa8e46bae7e75f7e7bcf23e5268e4d553e5a85546f0f5c773f9752f0b8a4ce767cbd092c9ed4500f764b77efdedcb85af3d
6
+ metadata.gz: 0a96dab68ef3453f59e1ba6922e7dcef3b670cd87cb93154e692f529216ca6aa30e791fc581b3a79dc9cfca4ca50ac9660f645ec9c8b21c74e393053f81139e2
7
+ data.tar.gz: 2481f073c40e905b066bf7e9090251a5394b4ee67b957e3f81bbcc775d8ebb40b3daa24bf8efaf7be43a2ae332e1e9ecee6ed9279639ba52252be503d0649e02
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rexle.rb CHANGED
@@ -14,7 +14,9 @@ include REXML
14
14
 
15
15
  # 26-Oct-2014: bug fix: XML output containing a class attribute,
16
16
  # now appears as a string. Empty nodes are
17
- # now displayed as self-closing tags.
17
+ # now displayed as self-closing tags.
18
+ # An XPath containing a @class attribute is now
19
+ # first validated against the element attribute existence
18
20
  # 21-Oct-2014: partial feature: An Xpath containing //preceding-sibling and
19
21
  # //following-sibling now works
20
22
  # 19-Oct-2014: feature: An XPath containing the attribute @class is
@@ -839,7 +841,7 @@ class Rexle
839
841
  x[1] = '==' if x[1] == '='
840
842
  "h[:'%s'] %s %s" % x
841
843
  else
842
- "h[:class].include? %s" % x.last
844
+ "h[:class] and h[:class].include? %s" % x.last
843
845
  end
844
846
  else
845
847
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.30
4
+ version: 1.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file