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 +4 -4
- checksums.yaml.gz.sig +2 -3
- data.tar.gz.sig +0 -0
- data/lib/rexle.rb +4 -3
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb8670dc366077d90b746493dc955122ce46e59a
|
4
|
+
data.tar.gz: 1529a59c7826f44b84e1b629ab93152fe1d1e0ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8618bb986edb062f2564db848d5ea5ffc01abfade51fe577f1b71bf28ced4a45153933df3cd946985aaf55c3221db7736292daa057b603c96024210a04b87bb0
|
7
|
+
data.tar.gz: 5c4d0bdc1040b9da42115e5b1b9e61f52f0c05537b0021bb0dd1f964de0f24e18d29a73c080b3dc2aef3aa7b75ed7639cf7dad45c30a9841f56aac69c9eb801e
|
checksums.yaml.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
�a\ـ�Dj�_�1���L����yHP^�
|
1
|
+
��/v��˰MQ�T�T�An�,�+��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
|
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
|
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.
|
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-
|
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
|