dynarex 1.8.3 → 1.8.4

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: e8ef98976afc4fcc30bb3f964d33ddc30bae0c4b84f2631cdd2f134e4ac6af48
4
- data.tar.gz: f9be49ef4a36640b96543dbecf9f9b625ae94d451c81e2e116b84dbdbc55df5f
3
+ metadata.gz: 7bd1d16bcce0b6a80e25930b6d55b75bf96a7b9bda61e69c15bf82567839c298
4
+ data.tar.gz: 40c5f54a4a6badf5622e240a9501f8e3233f7055f2efddbd83944edecd2a8095
5
5
  SHA512:
6
- metadata.gz: ec3763b8c3621c6c69db7d86cd32e44b2f0d29d2a050044d937b89f0f4196c8c7b1488ddf0a359a4fac82a651c297b3c7665bbfbeaff415b1d09f8681dca8928
7
- data.tar.gz: 52961337168cb97e0991a3df28aba516ac6eed1931ee6ffb978bca71a55358aea0a74c4e7433af7002b9a637da0aec990ed4b2c29c33a051022cc8a2dbeb8fae
6
+ metadata.gz: 11bc9d27b9d5ea334f78a4647a402b35ede9fdb3e84f715215a402996352d9dba2c4254b9375c76fbfdead34de0b324c3cf5dbe1b6bef1f5025d5ca11118a22c
7
+ data.tar.gz: 420c08fd2fa0eecdcb9ab69863dd417adf7964eff41a0684ca8ba1d9ff03df524d866a9404459d19f90042b2d8e6bcb0f58e62a11f8b629c0f9f2e18a2ecc90e
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -127,6 +127,11 @@ class Dynarex
127
127
  @format_mask = @format_mask.to_s.gsub(/\s/, separator)
128
128
  @summary[:format_mask] = @format_mask
129
129
  end
130
+
131
+ def doc
132
+ (load_records; rebuild_doc) if @dirty_flag == true
133
+ @doc
134
+ end
130
135
 
131
136
  def foreign_import(options={})
132
137
  o = {xml: '', schema: ''}.merge(options)
@@ -244,11 +249,9 @@ class Dynarex
244
249
  flat_records.map {|record| OpenStruct.new record }
245
250
  end
246
251
 
247
- # Returns all records as a string format specified by the summary format_mask field.
248
252
 
249
253
  def to_doc
250
- (load_records; rebuild_doc) if @dirty_flag == true
251
- @doc
254
+ self.doc().clone
252
255
  end
253
256
 
254
257
  # Typically uses the 1st field as a key and the remaining fields as the value
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.3
4
+ version: 1.8.4
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: 2018-09-03 00:00:00.000000000 Z
33
+ date: 2018-09-15 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: dynarex-import
@@ -201,7 +201,7 @@ dependencies:
201
201
  version: '0.7'
202
202
  - - ">="
203
203
  - !ruby/object:Gem::Version
204
- version: 0.7.0
204
+ version: 0.7.2
205
205
  type: :runtime
206
206
  prerelease: false
207
207
  version_requirements: !ruby/object:Gem::Requirement
@@ -211,7 +211,7 @@ dependencies:
211
211
  version: '0.7'
212
212
  - - ">="
213
213
  - !ruby/object:Gem::Version
214
- version: 0.7.0
214
+ version: 0.7.2
215
215
  description:
216
216
  email: james@jamesrobertson.eu
217
217
  executables: []
metadata.gz.sig CHANGED
Binary file