rexle-xpath 0.2.14 → 0.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5135103f6e958d5f0a6e6ad07d768f3af2d2a420
4
- data.tar.gz: e5a751d21332e1aaec6cc59882347c3361c5e24f
3
+ metadata.gz: ba20f6447871f17c33de45038b860e1f504ea1c2
4
+ data.tar.gz: ad9f3424c0e4ce948b8e79e2dbda30ad382428a2
5
5
  SHA512:
6
- metadata.gz: ab0e89d915d782ceba46e46967e504a6d5d0f548db8cf6b39fc3a5404d0d74554768a191a78149d43fcf7e6ea799b6f6d22fbc2f99529596aa30b43f8f968ccf
7
- data.tar.gz: 860bf5772638d7070a940f0bb9ed90262ca9d9845e3fe5c6f51c15633121ab5596b90f4f62128d0231716729bf3fe77601c9ae71f8a921d373e914ab079b9271
6
+ metadata.gz: 4f31b4597152e487e85be19f9c80d2c60d0c6b7dff3cc20feeddc39302d31b101dda60eeedd7fa00b81def4c7e47ea5126955614aea0051d2299cc2ea5a71781
7
+ data.tar.gz: b57bdfac02d9cf80a4dc641b264ae3a6c139902504f4d3852d34f53d97698d328081c6b347e0a6ab3e05478b665c1f43248ab0851758682ecd8c6f958fbe0681
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/rexle-xpath.rb CHANGED
@@ -137,8 +137,14 @@ class RexleXPath
137
137
 
138
138
  debug :select, node: node, args: args,
139
139
  xpath_instructions: xpath_instructions
140
+
141
+ selector = args.first
140
142
 
141
- nodes_found = node.elements.select {|x| x.name == args.first }
143
+ nodes_found = if selector == '*' then
144
+ node.elements.to_a
145
+ else
146
+ node.elements.select {|x| x.name == selector }
147
+ end
142
148
 
143
149
  flat_xpi = xpath_instructions.flatten
144
150
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexle-xpath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  05Hvy/ad61XnzWtun98claEIk/rC/TxPrbRaOd7vN99WxTy1xn8ElfLSx7CDDrTc
32
32
  qN5t1BlRcAgKNw==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-05-26 00:00:00.000000000 Z
34
+ date: 2016-05-28 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexle-xpath-parser
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- De<�����d&'��nE���$^0aw�ǟq^���̫���h׳MC����3��6�ʋA)a=�X�fZZ����lwU��N��!v=����'���l��h:��QL-^�&��_���6��%կcn'�fB��� ?�ŗ�7k`vV�䡔��ޗo��.�_�wQKr��+�3������)@�GW������m'y���i��ixŏ�仲h�$ɟ��ѐEtL�4JI Rȫp
1
+ �� ;|8[d_婵�֌�3\K��6_cbHS�5v���o\�Z!]Y����n�P�T�?ĵ������/�Q�~��3��H�>TkF��}�J���+%6�F����>V֟����3O���g���ϲ�R�����RU=t��P����1��镬��Z�z4/�������`��2sm3g����'�g�=]����w����(v0��&��c 2yL���4�H�����%6������2 &5�����h ��L��