dynarex 1.8.13 → 1.8.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d350a78873ffe9e82236f9af9f20e83d90b26b800027d4c77d0058a9a9b0f5f
4
- data.tar.gz: 53236835ad1754d1a0ac9d67e8a51911789be664e2da8ead7c0d098a3be0b06e
3
+ metadata.gz: 783236378d8f65f5a83d7f21f323eb02de5e2cadc9c2e25ba38dab020d0ded69
4
+ data.tar.gz: 54f3a794777225109df9ef1756aa950c56235228ae33e9a163208c4e67a59dfb
5
5
  SHA512:
6
- metadata.gz: a0ad316618307054e5d6e14cff110ba5ffcf1d1cc3a2db5175eb30190e69d69b13864acd098b0049d57b6803a1ff6a9877230161c7d92ecc1184ebe4979dbab0
7
- data.tar.gz: 83056323d5dff558c8ecede4b7bb6e547fb1c7b210b7edb1f542aa6e716f11bcfd702bbf4e942583c5a1dcfc22b3a19f4dbdf2c2f60359fcbd32c3cb9215bd23
6
+ metadata.gz: 691d89696acd06d44bbbf12d231068c56fdd3cac11b42e4b72ccd95c5423c9c6b4e3cc49e9e24cfc052fcddbdb4c3df33203134a7b67d8aec3dcd62aee18c2c4
7
+ data.tar.gz: 2d5bb4e611afeda3e9538343e5e87f650e71c346a561c6468fb6710948642e57faac5cb6850d577e66c9bfb4bbd79ec14f6e520756fa4226e340f00aa8f30882
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -107,6 +107,8 @@ class Dynarex
107
107
  openx(rawx.clone)
108
108
 
109
109
  end
110
+
111
+ self.order = @order unless @order.to_sym == :ascending
110
112
 
111
113
  end
112
114
 
@@ -457,7 +459,7 @@ EOF
457
459
 
458
460
  opt = {pretty: true}.merge options
459
461
 
460
- @local_filepath = filepath
462
+ @local_filepath = filepath || 'dx.xml'
461
463
  xml = display_xml(opt)
462
464
  buffer = block_given? ? yield(xml) : xml
463
465
 
@@ -1028,7 +1030,7 @@ EOF
1028
1030
  @summary[:recordx_type] = 'dynarex'
1029
1031
  @summary[:schema] = @schema
1030
1032
  @summary[:format_mask] = @format_mask
1031
- @summary[:unique] = @unique
1033
+ @summary[:unique] = @unique if @unique
1032
1034
 
1033
1035
  raw_lines.shift while raw_lines.first.strip.empty?
1034
1036
 
@@ -1323,12 +1325,14 @@ EOF
1323
1325
  end
1324
1326
 
1325
1327
  def load_records
1326
-
1328
+
1329
+ puts 'inside load_records'.info if @debug
1330
+
1327
1331
  @dirty_flag = false
1328
1332
 
1329
1333
  if @summary[:order] then
1330
1334
  orderfield = @summary[:order][/(\w+)\s+(?:ascending|descending)/,1]
1331
- self.sort_records_by! {|x| x.element(orderfield).text } if orderfield
1335
+ sort_records_by! {|x| x.element(orderfield).text } if orderfield
1332
1336
  end
1333
1337
 
1334
1338
  @records = records_to_h
@@ -1343,6 +1347,7 @@ EOF
1343
1347
  @flat_records = @records.values.map{|x| x[:body]}
1344
1348
 
1345
1349
  end
1350
+
1346
1351
 
1347
1352
  def display()
1348
1353
  puts @doc.to_s
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.8.13
4
+ version: 1.8.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -30,7 +30,7 @@ cert_chain:
30
30
  +2pKHQJfU1lEmVoo4afsLMvmq/CZPJba1LR3Z1QJXYCWt9IEZTECStKlK7H6RiIx
31
31
  gRA=
32
32
  -----END CERTIFICATE-----
33
- date: 2019-01-08 00:00:00.000000000 Z
33
+ date: 2019-01-15 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: dynarex-import
metadata.gz.sig CHANGED
Binary file