dynarex 1.9.4 → 1.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/dynarex.rb +8 -8
- data.tar.gz.sig +0 -0
- metadata +14 -14
- 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: 903f755678cd3451fe853d3275f8ca7f13d160137df996f39f69c83fa71b696f
|
4
|
+
data.tar.gz: 4c753224acba84017d3211d5e878e3fd02ba62dad49b6aee108d89338bb3dfc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53adf9a593b6586c6007dfdc16e792162fda0cb209dfbc85347b0b28533514556a9a9e6fc3a450638f18ed6710e53c4e3e56473700b01e5c0a436240c08b9d22
|
7
|
+
data.tar.gz: 075e7e489c57272de40f8dd5b789cdffdf308933800f616dbd54a3bf9e39b0ee2bf85c69ff56e4d6bd86a39d1aea4f6eb64af70b3ce6f521216d4c0f3cbffc17
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/dynarex.rb
CHANGED
@@ -15,7 +15,7 @@ require 'yaml'
|
|
15
15
|
require 'rowx'
|
16
16
|
require 'ostruct'
|
17
17
|
require 'table-formatter'
|
18
|
-
|
18
|
+
require 'rxfreader'
|
19
19
|
require 'kvx'
|
20
20
|
require 'json'
|
21
21
|
|
@@ -72,7 +72,7 @@ end
|
|
72
72
|
|
73
73
|
|
74
74
|
class Dynarex
|
75
|
-
include
|
75
|
+
include RXFReadWriteModule
|
76
76
|
using ColouredText
|
77
77
|
|
78
78
|
attr_accessor :format_mask, :delimiter, :xslt_schema, :schema, :linked,
|
@@ -324,7 +324,7 @@ class Dynarex
|
|
324
324
|
def to_html(domain: '')
|
325
325
|
|
326
326
|
h = {username: @username, password: @password}
|
327
|
-
xsl_buffer =
|
327
|
+
xsl_buffer = RXFReader.read(domain + @xslt, h).first
|
328
328
|
Rexslt.new(xsl_buffer, self.to_doc).to_s
|
329
329
|
|
330
330
|
end
|
@@ -529,7 +529,7 @@ EOF
|
|
529
529
|
return self
|
530
530
|
|
531
531
|
end
|
532
|
-
raw_buffer, type =
|
532
|
+
raw_buffer, type = RXFReader.read(x, auto: false)
|
533
533
|
|
534
534
|
if raw_buffer.is_a? String then
|
535
535
|
|
@@ -930,7 +930,7 @@ EOF
|
|
930
930
|
|
931
931
|
raw_lines.map do |line|
|
932
932
|
|
933
|
-
buffer =
|
933
|
+
buffer = RXFReader.read(line.chomp, auto: false).first
|
934
934
|
|
935
935
|
doc = Rexle.new buffer
|
936
936
|
|
@@ -995,7 +995,7 @@ EOF
|
|
995
995
|
end
|
996
996
|
|
997
997
|
puts 'attributes: ' + attributes.inspect if @debug
|
998
|
-
puts '@record_name: ' + @record_name.inspect
|
998
|
+
puts '@record_name: ' + @record_name.inspect if @debug
|
999
999
|
|
1000
1000
|
xml.send(@record_name, attributes) do
|
1001
1001
|
item[:body].each do |name,value|
|
@@ -1304,9 +1304,9 @@ EOF
|
|
1304
1304
|
dynarex_new(s)
|
1305
1305
|
|
1306
1306
|
elsif s[/^https?:\/\//] then # url
|
1307
|
-
buffer, type =
|
1307
|
+
buffer, type = RXFReader.read s, {username: @username,
|
1308
1308
|
password: @password, auto: false}
|
1309
|
-
elsif s[/^dfs?:\/\//] then
|
1309
|
+
elsif s[/^dfs?:\/\//] or RXFReadWrite.fs[0..2] == 'dfs' then
|
1310
1310
|
|
1311
1311
|
@local_filepath = s
|
1312
1312
|
|
data.tar.gz.sig
CHANGED
Binary file
|
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.9.
|
4
|
+
version: 1.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
Wt/hg1iB0cnuzli8yHYtvBQovgFKUdQ7vGKM2IC9ZoWstmfIRwUAdI/Y2eHvUg3z
|
36
36
|
dRm4fWf/5CZ2qPKTB8vb2s4Q
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-02-
|
38
|
+
date: 2022-02-28 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: dynarex-import
|
@@ -83,20 +83,20 @@ dependencies:
|
|
83
83
|
requirements:
|
84
84
|
- - "~>"
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version: '0.
|
86
|
+
version: '0.8'
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.8.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0.
|
96
|
+
version: '0.8'
|
97
97
|
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 0.
|
99
|
+
version: 0.8.0
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
name: dynarex-xslt
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,20 +123,20 @@ dependencies:
|
|
123
123
|
requirements:
|
124
124
|
- - "~>"
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: '0.
|
126
|
+
version: '0.6'
|
127
127
|
- - ">="
|
128
128
|
- !ruby/object:Gem::Version
|
129
|
-
version: 0.
|
129
|
+
version: 0.6.0
|
130
130
|
type: :runtime
|
131
131
|
prerelease: false
|
132
132
|
version_requirements: !ruby/object:Gem::Requirement
|
133
133
|
requirements:
|
134
134
|
- - "~>"
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version: '0.
|
136
|
+
version: '0.6'
|
137
137
|
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: 0.
|
139
|
+
version: 0.6.0
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: rxraw-lineparser
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,20 +203,20 @@ dependencies:
|
|
203
203
|
requirements:
|
204
204
|
- - "~>"
|
205
205
|
- !ruby/object:Gem::Version
|
206
|
-
version: '1.
|
206
|
+
version: '1.1'
|
207
207
|
- - ">="
|
208
208
|
- !ruby/object:Gem::Version
|
209
|
-
version: 1.0
|
209
|
+
version: 1.1.0
|
210
210
|
type: :runtime
|
211
211
|
prerelease: false
|
212
212
|
version_requirements: !ruby/object:Gem::Requirement
|
213
213
|
requirements:
|
214
214
|
- - "~>"
|
215
215
|
- !ruby/object:Gem::Version
|
216
|
-
version: '1.
|
216
|
+
version: '1.1'
|
217
217
|
- - ">="
|
218
218
|
- !ruby/object:Gem::Version
|
219
|
-
version: 1.0
|
219
|
+
version: 1.1.0
|
220
220
|
description:
|
221
221
|
email: digital.robertson@gmail.com
|
222
222
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|