dynarex 0.9.5 → 0.9.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.
- data/lib/dynarex.rb +2 -2
- metadata +2 -2
data/lib/dynarex.rb
CHANGED
|
@@ -384,7 +384,7 @@ end))
|
|
|
384
384
|
def flat_records_to_h
|
|
385
385
|
@doc.xpath('records/*').map do |row|
|
|
386
386
|
row.xpath('*').inject({}) do |r,node|
|
|
387
|
-
r.merge node.name.
|
|
387
|
+
r.merge node.name.to_sym => node.text
|
|
388
388
|
end
|
|
389
389
|
end
|
|
390
390
|
end
|
|
@@ -406,7 +406,7 @@ end))
|
|
|
406
406
|
created = row.attributes['created'] if row.attributes['created']
|
|
407
407
|
last_modified = row.attributes['last_modified'] if row.attributes['last_modified']
|
|
408
408
|
body = row.xpath('*').inject({}) do |r,node|
|
|
409
|
-
r.merge node.name.
|
|
409
|
+
r.merge node.name.to_sym => node.text
|
|
410
410
|
end
|
|
411
411
|
|
|
412
412
|
result.merge body[@default_key] => {id: id, created: created, last_modified: last_modified, body: body}
|
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: 0.9.
|
|
4
|
+
version: 0.9.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors: []
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2010-12-
|
|
12
|
+
date: 2010-12-08 00:00:00 +00:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|