rexle 1.0.8 → 1.0.9
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 +1 -1
- data.tar.gz.sig +0 -0
- data/lib/rexle.rb +4 -2
- metadata +3 -3
- 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: 0193c4d3705b9f87e437ab977ae9f76a0fed6249
|
|
4
|
+
data.tar.gz: 7b5aa4669b9401b1348eb39baa8183b4e095bfc2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 06576cb57a5d8326c3293597c46c67f772b6ce94500f9dfd2187a1c7f2a75b17223342e2e031c2e0f3a51d655c486e85a3e2cda6138abb8c8608586f5c8ae41f
|
|
7
|
+
data.tar.gz: 3c49ff78bf4714076a78913714e551e659642841ffd92b07bc65d2285aa65f2433b46980f3e9acc7a12c820869ebb0043d4ea6bd0fb475d5fdb7ebe2e1c125ed
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
�����3%�
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/rexle.rb
CHANGED
|
@@ -11,6 +11,8 @@ include REXML
|
|
|
11
11
|
|
|
12
12
|
# modifications:
|
|
13
13
|
|
|
14
|
+
# 01-Jun-2014: bug fix: XPath elements separated by a pipe '|' are now
|
|
15
|
+
# stripped of white space
|
|
14
16
|
# 20-May-2014: feature: XPath Descendants after the element (or without
|
|
15
17
|
# the element) are now supported
|
|
16
18
|
# 02-Apr-2014: bug fix: Rexle::Element#each now returns the children,
|
|
@@ -310,7 +312,7 @@ class Rexle
|
|
|
310
312
|
}
|
|
311
313
|
bucket = []
|
|
312
314
|
raw_results = path.split('|').map do |xp|
|
|
313
|
-
query_xpath(xp, bucket, &blk)
|
|
315
|
+
query_xpath(xp.strip, bucket, &blk)
|
|
314
316
|
end
|
|
315
317
|
|
|
316
318
|
results = raw_results
|
|
@@ -349,7 +351,7 @@ class Rexle
|
|
|
349
351
|
|
|
350
352
|
remaining_path = ($').to_s
|
|
351
353
|
|
|
352
|
-
r = raw_path[
|
|
354
|
+
r = raw_path[/^([^\/]+)(?=\/\/)/,1]
|
|
353
355
|
if r then
|
|
354
356
|
a_path = raw_path.split(/(?=\/\/)/,2)
|
|
355
357
|
else
|
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.
|
|
4
|
+
version: 1.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
UOGKUMV5RApHDnC0ywMYNe0HK7qMSTP5YLKs8JUjNxpc5jl8+o3D3sHkNN4DzbQm
|
|
32
32
|
jVfzDZ+niKvAUA==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2014-
|
|
34
|
+
date: 2014-06-01 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: rexleparser
|
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
116
116
|
version: '0'
|
|
117
117
|
requirements: []
|
|
118
118
|
rubyforge_project:
|
|
119
|
-
rubygems_version: 2.
|
|
119
|
+
rubygems_version: 2.2.2
|
|
120
120
|
signing_key:
|
|
121
121
|
specification_version: 4
|
|
122
122
|
summary: Rexle is a simple XML parser written purely in Ruby
|
metadata.gz.sig
CHANGED
|
Binary file
|