rexle 1.0.8 → 1.0.9

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: 6e4ef086cdaa8edf1e169f4e7ba67ab708f0489e
4
- data.tar.gz: 24f76fc988b25fd44ccedee9cf6a12648e76b44b
3
+ metadata.gz: 0193c4d3705b9f87e437ab977ae9f76a0fed6249
4
+ data.tar.gz: 7b5aa4669b9401b1348eb39baa8183b4e095bfc2
5
5
  SHA512:
6
- metadata.gz: 2580c1dad9791fc1037bf288645efe9ddb0d15db73c2425fc7d2eb16f534bcb7c43800eb9fab320002ac64846a72e18e20f3d6073ed3d8e5746a19e868f70c25
7
- data.tar.gz: c4b91a921a39c403756f97f68262ce96a805254862372331602228b6570117c8d4bdc8719ae858cf54d74850dbb8e3efbcfc3c6ee5761c2040ea1a5930c61eb4
6
+ metadata.gz: 06576cb57a5d8326c3293597c46c67f772b6ce94500f9dfd2187a1c7f2a75b17223342e2e031c2e0f3a51d655c486e85a3e2cda6138abb8c8608586f5c8ae41f
7
+ data.tar.gz: 3c49ff78bf4714076a78913714e551e659642841ffd92b07bc65d2285aa65f2433b46980f3e9acc7a12c820869ebb0043d4ea6bd0fb475d5fdb7ebe2e1c125ed
checksums.yaml.gz.sig CHANGED
@@ -1 +1 @@
1
- W9�-�թ��ahѶ �Gx�w�՚�>�p>^��׫"�۪���|F�Omo9���� �������mL߁�2ˇ0:E�e�NP蹭!�0��a>ϻ��7����=������E��y�P]:DU�K���d真x)chMaBv����4ףn�=1��S̟Y�bE��f͢���8 %��`��*_a��S�Rסd���#]��ZDfR���nޙxi�~�������4���CS��MP��Z*C��|�fu��
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[/([^\/]+)(?=\/\/)/,1]
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.8
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-05-21 00:00:00.000000000 Z
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.1.11
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