rexle 1.3.5 → 1.3.6

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: f0d08cd77546476d07d7440d4e04fc24d312256c
4
- data.tar.gz: 07d74f896c1acba3fa8e791ba6e718a27637e57c
3
+ metadata.gz: e527734ccca67f4c8b2ce057a3aa1026e846512c
4
+ data.tar.gz: 8a3fc5b18b06c59e2462d27e3d83c6bb333a92e0
5
5
  SHA512:
6
- metadata.gz: d01f8a97b6c2983e4c216956fed8842baaea63a2fb8f63a1f98084fea21df77df30168de7b85dac9321f7d5788155e3b60ed26e295634deb81686ab9955b19d3
7
- data.tar.gz: b06975762597390668a8d3ce36b5eb6866f3f26aa86f39987cf8710677cfffab716ba41943ace5e67544126954ce90fbf88fba3aee24708448069d71a82de2aa
6
+ metadata.gz: ea3871b43ef0586dcfa4a70a6b39795201f7484e7b4f7861ec13b18e401a932507b5cf63ffa66a40674bbfe5898dce3f3dae1f322814bd48b4ba3268d250e4ed
7
+ data.tar.gz: 13ce6eb8d612169fe5318ccd6d1c2717b7650613980f7e70e48706f0b5da9be1f16fd33490071e3139cb1e52e1c58a12b9b5c50f4e8a352b4c25e9f56840a475
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/rexle.rb CHANGED
@@ -11,6 +11,8 @@ require 'cgi'
11
11
 
12
12
  # modifications:
13
13
 
14
+ # 25-May-2015: bug fix: If a Polyrex XML string is being parsed then the
15
+ # XML instructions will also now be read.
14
16
  # 11-May-2015: improvement: when Rexle::Element#delete is passed an XPath it
15
17
  # will now delete all elements found, not just the first element found.
16
18
  # 10-May-2015: bug fix: Rexle::Element#to_a now correctly returns an array
@@ -319,7 +321,8 @@ class Rexle
319
321
  if x then
320
322
  procs = {
321
323
  String: proc {|x| parse_string(x)},
322
- Array: proc {|x| x}
324
+ Array: proc {|x| x},
325
+ RexleParser: ->(x){ parse_rexle(x)}
323
326
  }
324
327
 
325
328
  doc_node = ['doc',Attributes.new]
@@ -1399,7 +1402,7 @@ class Rexle
1399
1402
  procs = {
1400
1403
  'dynarex' => proc {|x| DynarexParser.new(x).to_a},
1401
1404
  #'polyrex' => proc {|x| PolyrexParser.new(x).to_a},
1402
- 'polyrex' => proc {|x| RexleParser.new(x).to_a}
1405
+ 'polyrex' => proc {|x| parse_rexle(x)}
1403
1406
  }
1404
1407
  other_parser = procs[recordx_type]
1405
1408
 
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.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  Tkua07gB3/nVO3aPg7C3vEbDZCxT3WAMli2uZisYT6ozmdAlDsixLjipgFN4If3z
32
32
  Ej0QR3kvGcAvFQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-05-11 00:00:00.000000000 Z
34
+ date: 2015-05-25 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexleparser
metadata.gz.sig CHANGED
Binary file