dynarex 1.5.13 → 1.5.14
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/dynarex.rb +9 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba5685d0292707834b23aeedbde7bc20d3bff488
|
|
4
|
+
data.tar.gz: f4ea0572b5eb3a55a4d9ff36890e36cd7f7df4dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95794fbd1dc3e7c1dd5410d221c868f6b53d981e2ec69a3664195c2f7dc405e45140d5f951fb2ede59bab7166a40d3a69a5d93a68902781ffacaab4238e372da
|
|
7
|
+
data.tar.gz: c976e7f39a2e96bd5ef1cecd5d98b0e090ea7e87eb9dca401a89674e745baa1ce759a5f5218b990d4c99066e6b1537feebdd9501f67ba8ae162d9d08054e11da
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/dynarex.rb
CHANGED
|
@@ -38,8 +38,7 @@ class Dynarex
|
|
|
38
38
|
# Dynarex.new '<contacts><summary><schema>contacts/contact(name,age,dob)</schema></summary><records/></contacts>'
|
|
39
39
|
|
|
40
40
|
def initialize(rawx=nil, opt={})
|
|
41
|
-
|
|
42
|
-
#@log = Logger.new('/home/james/mm.log')
|
|
41
|
+
|
|
43
42
|
@opt = {username: nil, password: nil}.merge opt
|
|
44
43
|
@delimiter = ''
|
|
45
44
|
@order = 'ascending'
|
|
@@ -912,8 +911,14 @@ EOF
|
|
|
912
911
|
buffer, _ = RXFHelper.read s, {username: @opt[:username], password: @opt[:password]}
|
|
913
912
|
else # local file
|
|
914
913
|
@local_filepath = s
|
|
915
|
-
|
|
916
|
-
|
|
914
|
+
|
|
915
|
+
if File.exists? s then
|
|
916
|
+
buffer = File.read s
|
|
917
|
+
elsif @opt[:schema]
|
|
918
|
+
dynarex_new @opt[:schema]
|
|
919
|
+
else
|
|
920
|
+
raise DynarexException, 'file not found: ' + s
|
|
921
|
+
end
|
|
917
922
|
end
|
|
918
923
|
#@log.debug 'openx: before buffer'
|
|
919
924
|
if buffer then
|
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.5.
|
|
4
|
+
version: 1.5.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
zafTuKRozNy5wCw7Z32VaDGcJ+yTPq73CrcPrNyaoxqGfU0qNsh6oGvwrq4Q1k4j
|
|
32
32
|
Pz2GWE7KigXTBg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-
|
|
34
|
+
date: 2015-04-06 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex-import
|
metadata.gz.sig
CHANGED
|
Binary file
|