dxlite 0.2.5 → 0.2.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dxlite.rb +20 -9
- metadata +9 -10
- 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: 4e41d21c786667b36de7cfd0411d9ca2cac88e69d79f19e9e1aaef453cd8c298
|
|
4
|
+
data.tar.gz: 23d18cda9ff1bd35797370937726b2a20aa4b67a76f12fcbf3f5c4b2c88bc405
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2eb01b1e8d31818db54860679979a4401b248d58cf027b505344b98bcebcd21076b8c7d1473fbe1f3870c70a18ad24a99da469c461aba04b6e5f1677e318168d
|
|
7
|
+
data.tar.gz: 5e08527479ad8d18a3fa9deecdfc1960042bcd4f8aa74bbc642cdd08c4b7ec15b8f0f876de42abaf5b56cfc87b82e827198c563f48e159a877ed315196c21237
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/dxlite.rb
CHANGED
|
@@ -20,27 +20,26 @@ class DxLite
|
|
|
20
20
|
|
|
21
21
|
buffer, type = RXFHelper.read(s)
|
|
22
22
|
puts 'type: ' + type.inspect if @debug
|
|
23
|
-
|
|
23
|
+
puts 'buffer: ' + buffer.inspect if @debug
|
|
24
|
+
|
|
24
25
|
case type
|
|
25
26
|
|
|
26
27
|
when :file
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
puts 'h1:' + h1.inspect if @debug
|
|
30
|
-
@filepath = s
|
|
29
|
+
read buffer
|
|
31
30
|
|
|
32
|
-
h = h1[h1.keys.first]
|
|
33
|
-
|
|
34
|
-
@summary = h[:summary]
|
|
35
|
-
@records = h[:records].map {|x| x[x.keys.first]}
|
|
36
|
-
|
|
37
31
|
when :text
|
|
38
32
|
|
|
39
33
|
@summary = {schema: s}
|
|
40
34
|
@records = []
|
|
41
35
|
|
|
36
|
+
when :url
|
|
37
|
+
|
|
38
|
+
read buffer
|
|
39
|
+
|
|
42
40
|
end
|
|
43
41
|
|
|
42
|
+
|
|
44
43
|
@schema = @summary[:schema]
|
|
45
44
|
|
|
46
45
|
summary_attributes = {
|
|
@@ -213,4 +212,16 @@ class DxLite
|
|
|
213
212
|
value.is_a?(Regexp) ? rec[x.to_sym] =~ value : rec[x.to_sym] == value
|
|
214
213
|
end
|
|
215
214
|
|
|
215
|
+
def read(buffer)
|
|
216
|
+
|
|
217
|
+
h1 = JSON.parse(buffer, symbolize_names: true)
|
|
218
|
+
puts 'h1:' + h1.inspect if @debug
|
|
219
|
+
|
|
220
|
+
h = h1[h1.keys.first]
|
|
221
|
+
|
|
222
|
+
@summary = h[:summary]
|
|
223
|
+
@records = h[:records].map {|x| x[x.keys.first]}
|
|
224
|
+
|
|
225
|
+
end
|
|
226
|
+
|
|
216
227
|
end
|
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.2.
|
|
4
|
+
version: 0.2.6
|
|
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: 2020-06-
|
|
38
|
+
date: 2020-06-23 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: recordx
|
|
@@ -61,22 +61,22 @@ dependencies:
|
|
|
61
61
|
name: rxfhelper
|
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
|
63
63
|
requirements:
|
|
64
|
-
- - ">="
|
|
65
|
-
- !ruby/object:Gem::Version
|
|
66
|
-
version: 1.0.0
|
|
67
64
|
- - "~>"
|
|
68
65
|
- !ruby/object:Gem::Version
|
|
69
66
|
version: '1.0'
|
|
67
|
+
- - ">="
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: 1.0.2
|
|
70
70
|
type: :runtime
|
|
71
71
|
prerelease: false
|
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
73
|
requirements:
|
|
74
|
-
- - ">="
|
|
75
|
-
- !ruby/object:Gem::Version
|
|
76
|
-
version: 1.0.0
|
|
77
74
|
- - "~>"
|
|
78
75
|
- !ruby/object:Gem::Version
|
|
79
76
|
version: '1.0'
|
|
77
|
+
- - ">="
|
|
78
|
+
- !ruby/object:Gem::Version
|
|
79
|
+
version: 1.0.2
|
|
80
80
|
description:
|
|
81
81
|
email: james@jamesrobertson.eu
|
|
82
82
|
executables: []
|
|
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
104
|
version: '0'
|
|
105
105
|
requirements: []
|
|
106
|
-
|
|
107
|
-
rubygems_version: 2.7.10
|
|
106
|
+
rubygems_version: 3.0.3
|
|
108
107
|
signing_key:
|
|
109
108
|
specification_version: 4
|
|
110
109
|
summary: Handles Dynarex documents (in JSON format) faster and with less overheads.
|
metadata.gz.sig
CHANGED
|
Binary file
|