dynarex 1.9.3 → 1.9.6
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 +6 -6
- 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: a9243cbb39995fe05a9359a335d17117e8fcbcaa5ce17fe031760b874df037d4
|
4
|
+
data.tar.gz: d5910baa9ecdc1aded340009145f3d12b16bf67d83063a61327d6dccc44bc735
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dde6986dc4f392ae5e4c34ddc83c60a27c5d391c74327a58507bde5473417d75493f92573f111ab87b5d4aedf181ad44e6555d90b3e8cacc116c3612c3101221
|
7
|
+
data.tar.gz: 680b98c7d78363c6f15be1efb0f6c85aab6f25516bee5c300fed238a1d02c670ce73cdeb13c0623c57b5aa7848ac08349227152e2f81a1a200e62a553121f85d
|
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,12 +529,12 @@ 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
|
|
536
536
|
buffer = block_given? ? yield(raw_buffer) : raw_buffer.clone
|
537
|
-
string_parse buffer
|
537
|
+
string_parse buffer.force_encoding('UTF-8')
|
538
538
|
|
539
539
|
else
|
540
540
|
foreign_import x
|
@@ -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,7 +1304,7 @@ 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
1309
|
elsif s[/^dfs?:\/\//] then
|
1310
1310
|
|
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.6
|
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-23 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: dynarex-import
|
@@ -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
|