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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd6b073eacb45008be322a7420ba83b1d58afdd2
4
- data.tar.gz: 1d2d2ea77dceb95638b00746ff52ecb19d7bc875
3
+ metadata.gz: ba5685d0292707834b23aeedbde7bc20d3bff488
4
+ data.tar.gz: f4ea0572b5eb3a55a4d9ff36890e36cd7f7df4dd
5
5
  SHA512:
6
- metadata.gz: 57515346878beccf99b0753dd79568f2eb576a5257c0db9776fb4369273cbd91048b5d54a43bdda37372d503fc07b52b64c01e5e203f6d5444a280f13251be1e
7
- data.tar.gz: f95a7e22e75ee15454616726349184551ba08fc4b3f4829e93ed1cc24fa727e3fef9a0bc21541ecb4af63c8ae572d1b6b92cd1a64de40d02c138e967c85c5ff4
6
+ metadata.gz: 95794fbd1dc3e7c1dd5410d221c868f6b53d981e2ec69a3664195c2f7dc405e45140d5f951fb2ede59bab7166a40d3a69a5d93a68902781ffacaab4238e372da
7
+ data.tar.gz: c976e7f39a2e96bd5ef1cecd5d98b0e090ea7e87eb9dca401a89674e745baa1ce759a5f5218b990d4c99066e6b1537feebdd9501f67ba8ae162d9d08054e11da
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- raise DynarexException, 'file not found: ' + s unless File.exists? s
916
- buffer = File.read s
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.13
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-03-30 00:00:00.000000000 Z
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