rexle 0.9.81 → 0.9.82

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: a84928c99d9ffc81a67a07d838378e933420c99f
4
- data.tar.gz: a0ce923adb68a76ed4b67bde6795d66904b10773
3
+ metadata.gz: cb8670dc366077d90b746493dc955122ce46e59a
4
+ data.tar.gz: 1529a59c7826f44b84e1b629ab93152fe1d1e0ef
5
5
  SHA512:
6
- metadata.gz: 0e50f6a138f0d38991ba3100e8b78bdff62deda4f6b889dd1331835f61f7148ccc15d1b42084a8d755f7609110db731ac0a1eb2b70a8b8ed4306ac08e47acbb2
7
- data.tar.gz: 20f1f7b46454d458f003ddd6a0470e942d0d23c70d7afdb15305007ff607489b02af8f9e025ac752493580c5816f71d9f5e729e9ea3b50ab7868c14942afb39f
6
+ metadata.gz: 8618bb986edb062f2564db848d5ea5ffc01abfade51fe577f1b71bf28ced4a45153933df3cd946985aaf55c3221db7736292daa057b603c96024210a04b87bb0
7
+ data.tar.gz: 5c4d0bdc1040b9da42115e5b1b9e61f52f0c05537b0021bb0dd1f964de0f24e18d29a73c080b3dc2aef3aa7b75ed7639cf7dad45c30a9841f56aac69c9eb801e
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- ���Fj��ƻ�bZ9g(zV�Q��W �Ml����ޓ$��\WN����+��_�M�ɫ�P���*�O��+v8 c��K��Ɣ��c:�cO�s�u2�Z� bN<�~�pT���|��)��U�5�˫�~�R��۟4V�eR�����d<ZĔ��/J����gj;����79/ѕ��t���j�=�G���
2
- Ĵ="�~"&%�����>�]
3
- �a\ـ�Dj�_�1���L����yHP^�
1
+ ��/v��˰MQTTAn�,�+��O�:˪ZS'
2
+ -K�`r���?~d�L�έf>D
data.tar.gz.sig CHANGED
Binary file
data/lib/rexle.rb CHANGED
@@ -11,6 +11,7 @@ include REXML
11
11
 
12
12
  # modifications:
13
13
 
14
+ # 13-Dec-2013: bug fix: elements with dashes can now be queried
14
15
  # 14-Nov-2013: feature: Implemented method content() to output XML as
15
16
  # unescaped plain text
16
17
  # 08-Nov-2013: An element will now only be deleted if it has a parent
@@ -339,13 +340,13 @@ class Rexle
339
340
 
340
341
  # isolate the xpath to return just the path to the current element
341
342
 
342
- elmnt_path = s[/^([\w:\*]+\[[^\]]+\])|[\/]+{,2}[^\/]+/]
343
+ elmnt_path = s[/^([\w:\-\*]+\[[^\]]+\])|[\/]+{,2}[^\/]+/]
343
344
  element_part = elmnt_path[/(^@?[^\[]+)?/,1] if elmnt_path
344
345
 
345
346
  if element_part then
346
347
 
347
348
  unless element_part[/^(@|[@\.\w]+[\s=])/] then
348
- element_name = element_part[/^[\w:\*\.]+/]
349
+ element_name = element_part[/^[\w:\-\*\.]+/]
349
350
 
350
351
  else
351
352
  if xpath_value[/^\[/] then
@@ -430,7 +431,7 @@ class Rexle
430
431
  else
431
432
 
432
433
  # strip off the 1st element from the XPath
433
- new_xpath = xpath_value[/^\/\/[\w:]+\/(.*)/,1]
434
+ new_xpath = xpath_value[/^\/\/[\w:\-]+\/(.*)/,1]
434
435
 
435
436
  if new_xpath then
436
437
  self.xpath(new_xpath + raw_condition.to_s + remaining_path, rlist,&blk)
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: 0.9.81
4
+ version: 0.9.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,7 +29,7 @@ cert_chain:
29
29
  EgghkUCgC30KsgaYheoN5ILHCE52JXCfr1Qto26qUSdC49xWkxnQz2yrSq8z085Q
30
30
  h0bKDk/qqjLsNUnSPxhypj3wTgJNdHKX
31
31
  -----END CERTIFICATE-----
32
- date: 2013-11-14 00:00:00.000000000 Z
32
+ date: 2013-12-13 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rexleparser
metadata.gz.sig CHANGED
Binary file