rexle-xpath-parser 0.1.15 → 0.1.16

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: fa050387a9eddb782bd701d39d7cc1eb863da574
4
- data.tar.gz: cdadc2d6485266a68e4630715cdacba8c6dd641f
3
+ metadata.gz: 93a8a071150292786c905328c0300b8de4035060
4
+ data.tar.gz: 71798e2c5dacbb3d5a49833c4a3ddb58b942b83f
5
5
  SHA512:
6
- metadata.gz: 3b183a75e9635652e04b808a1f9ec388fac1e6055827e4067b4f891cbc68ba6b8a527720fe8c4329e6f2b8ff0d8b700f91beebab63e9f7b6b6e6fecd1232dd2e
7
- data.tar.gz: 96b256b3653b545698dc591521aa3ba8f772f3b06670dec74300fd2dab66cd36e27c3b800e6d5141136bdf4b05bc9bb3754cfc45a2f13a1de9351126f2c3b2cf
6
+ metadata.gz: 205baa611ea1302b35767adc4b14fbef226cd2c8c0e156a856d3b117d9d1c403532f8b71a5bde1db75087e4de3758007d7dd2d9f439cc4861971c9f0bc9d6203
7
+ data.tar.gz: c5eeb9f2eb775e2729c82a90940c0f24248b6170e116afc0fbd62c4f1734624c550fd552c771cd94d03fcf94802f0d4593b7664cd5fff4e4f6bed1e8790c2bcb
@@ -1,4 +1 @@
1
- �*�e.I��k���Z�����U��X�6h�� ��ڕ�}���4���p\!��D� fQ��vhtӾ�w��n�Z����쭓��i��6�bWhuU_��9>b��=d#9/
2
- ���:����m�z��Tg��7p��[6��a���2L�韹u�g�ٷ`�(�Q�h�ސW�- :�>����em̽��8�!��„[�i�d諘�(�e�&v��
3
- ����Z��%S���
4
- �é�>���a��|�+
1
+ 9��m�s�l���N�~��>��*��._�\u�2� B��f�+��X�p�H��֜ɍ�����E��h������6ѡ�5����{�����<M_��ױ9�d%7Z`zFl��iG#:+!���H��~�;�2+7�㎲��o�O��x�rIDɆUq������T�
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ��\2-�^.P\��F0#h���0��51�P �i�U��ʑ �3�X�9&�~��� 4A�s2�i�Aك��>F������u�rb��q���5�8��?j0�Ch@���-�>����Js����:�g��u���rp�/F�O�0�!骒�ҡ�:+�Z1?�"LuA
1
+ 8�!����� ]
2
+ (��jj����Z2�,0B�r������:I��d�m�[�u����z;�8��Q��;oC�]�"T�'�����ˤ�R��f�3^@����R��
@@ -25,7 +25,9 @@ class RexleXPathParser
25
25
  def functionalise(a, r2=[])
26
26
 
27
27
  a.inject(r2) do |r,x|
28
-
28
+
29
+ #puts 'x: ' + x.inspect
30
+
29
31
  return r << functionalise(x) if x.is_a? Array
30
32
 
31
33
  if /^(?<func>\w+)\(\)/ =~ x then
@@ -49,9 +51,10 @@ class RexleXPathParser
49
51
  r
50
52
  end
51
53
 
52
-
53
- elsif x =~ /=/
54
- r[-1] << [:value, :==, x[/=(.*)/,1].sub(/^["'](.*)["']$/,'\1')]
54
+ elsif /!=(?<value>.*)/ =~ x
55
+ r[-1] << [:value, :'!=', value.sub(/^["'](.*)["']$/,'\1')]
56
+ elsif /=(?<value>.*)/ =~ x
57
+ r[-1] << [:value, :==, value.sub(/^["'](.*)["']$/,'\1')]
55
58
  elsif x =~ /\|/
56
59
  r << [:union]
57
60
  elsif x =~ /\w+\(/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexle-xpath-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  mkV2keVfUpfaTKNzUzo9lt/HSN8u98bD+dZh7rT5z8OBu6Kh0he35JvmyxOTg+Hg
32
32
  u9W2yccAzoPxYA==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-05-29 00:00:00.000000000 Z
34
+ date: 2016-05-30 00:00:00.000000000 Z
35
35
  dependencies: []
36
36
  description:
37
37
  email: james@r0bertson.co.uk
metadata.gz.sig CHANGED
Binary file