dxlite 0.3.1 → 0.3.2
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 +0 -0
- data.tar.gz.sig +1 -2
- data/lib/dxlite.rb +16 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a11055ac19ac37f39d446b07bb28d1cc907a368e5c37a9535d59fe85d5c176a9
|
4
|
+
data.tar.gz: 2764eddbddbae683431653acd277bf32fcbbaa681ca0d6205619f0518c0bbc3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d05fee5c4205047d1dc7eb84cd30a148ad662f1ce5f68bc939cd6d8fa52f6fa8ed296a6b460c92b3205d55f66951aa961105df4b5540b158f6326022a2feed5f
|
7
|
+
data.tar.gz: 40bdd8815580e774d5068b8373e3bc2656eadd3b39a9f63c7d271bad412304a134d6957b817f7441c27c1ce47b34f6e447d3ce9b67870714b6b780f329edc38b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
yr.�_x��|O29��w4�0�<?�¥��v�J�J�a���ե��Ӭ�މ����t��x�ק�3��T�s�F�t~,��l�Po@��L�����ֈA�N�C~�Tلz"�k������L�����sU�Y;��xM����ff��>�E��Y)���<e���9J�?�
|
1
|
+
H�
|
data/lib/dxlite.rb
CHANGED
@@ -11,7 +11,7 @@ require 'rxfhelper'
|
|
11
11
|
class DxLite
|
12
12
|
using ColouredText
|
13
13
|
|
14
|
-
attr_accessor :summary
|
14
|
+
attr_accessor :summary, :filepath
|
15
15
|
attr_reader :records
|
16
16
|
|
17
17
|
def initialize(s=nil, autosave: false, debug: false)
|
@@ -167,6 +167,7 @@ class DxLite
|
|
167
167
|
def save(file=@filepath)
|
168
168
|
|
169
169
|
return unless file
|
170
|
+
@filepath = file
|
170
171
|
|
171
172
|
s = File.extname(file) == '.json' ? to_json() : to_xml()
|
172
173
|
File.write file, s
|
@@ -297,9 +298,20 @@ class DxLite
|
|
297
298
|
#puts 'h1:' + h1.inspect if @debug
|
298
299
|
|
299
300
|
h = h1[h1.keys.first]
|
300
|
-
|
301
|
-
|
302
|
-
|
301
|
+
|
302
|
+
@summary = {}
|
303
|
+
|
304
|
+
h[:summary].each do |key, value|
|
305
|
+
|
306
|
+
if %i(recordx_type format_mask schema).include? key then
|
307
|
+
@summary[key] = value
|
308
|
+
else
|
309
|
+
@summary[key.to_s] = value
|
310
|
+
end
|
311
|
+
|
312
|
+
end
|
313
|
+
|
314
|
+
@records = h[:records].map {|x| x[x.keys.first]}
|
303
315
|
|
304
316
|
end
|
305
317
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dxlite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
dwbAN6/wokoLVZAiMRG1vZlI6RhtSOTHvFHbfBE5JI9rhjRtui8yeV+t8iI8G4Zs
|
36
36
|
2NszuYzdlVfzlrUiPWY5jL9P
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2021-01-
|
38
|
+
date: 2021-01-28 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: recordx
|
metadata.gz.sig
CHANGED
Binary file
|