dynarex 1.2.29 → 1.2.30

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: c8f9785899eadfdb8df928f8da8e210aac10b897
4
- data.tar.gz: 3a4d97866d80ba64397ebc764e1e519b21cf6381
3
+ metadata.gz: 0de448fafe96222ba235d6c638c052f0515b7760
4
+ data.tar.gz: 3132eef76aef292878e86f2217f2f8dda6a57760
5
5
  SHA512:
6
- metadata.gz: e3bf1b9cf0197070322f61cd1dc8b6d0ee85ccb3967c6f023d17d61ea23e1641475d3e4b0095eb372284902a2929a57c2ec71fd7cb33b13987f511cea8925e7c
7
- data.tar.gz: e3c977a825d3bd2bac53a1adbe87f5f959e366768f65d709a709807d36c3586a5e7cfcdae7d3ec5fdf726a81edcdfccbb7f39d7ad93f8164619d40748bea6414
6
+ metadata.gz: 6a15bae8efbb93ce779f06555b23902c8190a4ee0a0ad12936ce26310201499c4ddea8f1d5f34cb19dd0aeaa3a8d157cecbc215dc972053e01bd360f6d2577f1
7
+ data.tar.gz: ee7540110279a67ae79fc5f558b6af410dc7e4e7b4804f569c6e8770aa7ac7dab23397aee3cf9d717a3ebf06fba6c87b0c0269c4bbc0c4315a3c43c4f4b83265
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -581,10 +581,14 @@ EOF
581
581
  populated_lines.each do |line|
582
582
  line << field.to_s + ':' if line.grep(/^#{field.to_s}:/).empty?
583
583
  end
584
- end
584
+ end
585
+
585
586
  xml = RowX.new(populated_lines.join("\n")).to_xml
586
- Rexle.new(xml).root.xpath('item').map{|x| x.xpath('*/text()')}
587
587
 
588
+ a2 = Rexle.new(xml).root.xpath('item').inject([]) do |r,x|
589
+ r << @fields.map {|field| x.text(field.to_s) }
590
+ end
591
+
588
592
  else
589
593
 
590
594
  raw_lines.map.with_index do |x,i|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynarex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.29
4
+ version: 1.2.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,7 +29,7 @@ cert_chain:
29
29
  kUea9jZD+xTq1Js9t2BHCz3Ev/sgS7CaijrbQetbNwzasFGHRd30xBEwd4zANQOp
30
30
  i0OBH0e4iIMkv+Q+PYlNRnlpQogsAdTs
31
31
  -----END CERTIFICATE-----
32
- date: 2013-08-03 00:00:00.000000000 Z
32
+ date: 2013-08-06 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rexle
metadata.gz.sig CHANGED
Binary file