onc_certification_g10_test_kit 2.1.0.rc1 → 2.1.0

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: 136583ee432ecaa86193ce86c3e09ba9c3fd69cd745d6663243a8fc4b0ab2071
4
- data.tar.gz: b914f640ba8c3c577d1d531952944027fec53582f6faa22efedbb62d5fe018a7
3
+ metadata.gz: 645d73a288a5f76e9b94634ed2be17253ce34f0e0eb6df7df6b7410e7a1d9175
4
+ data.tar.gz: f299ae93813a1b05ef838824bfbb4f7f7734e8695118e37f0eb7b3c08e28a2c1
5
5
  SHA512:
6
- metadata.gz: 6e0b7538709edc9dc43a3069197df5550ba403193d12dea576851fba09b472679c3475f9d47e3d3f6496d6c8dd35c20981fe46f968824919b1dce7e3ae4c0032
7
- data.tar.gz: 18ad6fce7e21583ef641a74765a58ffdccc559a5a8b70038330368c6bbafe29584a5204cc36bbc1bb62122aea2b89c321b9fa76865ccd768355e6df7e03f091a
6
+ metadata.gz: 46773dc8eb92ee96afb593506a1b16b5f6af23c62f9ff7f988789d27a38b7a54bab21f69e03f336df1d9c8d3e4f3929b69028a9d99fffebdeb2eda12f66fbce7
7
+ data.tar.gz: 87c04c10d334d9c469af26d8618cfa7ec83246b008f0f05fae632f8f2029a11f89e00dda164b2aedc318aab02055f4e928d8bb11545d84f9c32f2be70477116a
@@ -51,6 +51,10 @@ module ONCCertificationG10TestKit
51
51
  @metadata_list ||= determine_metadata
52
52
  end
53
53
 
54
+ def resources_from_all_files
55
+ @resources_from_all_files ||= {}
56
+ end
57
+
54
58
  def patient_ids_seen
55
59
  scratch[:patient_ids_seen] ||= []
56
60
  end
@@ -126,6 +130,7 @@ module ONCCertificationG10TestKit
126
130
  @metadata = meta
127
131
  @missing_elements = nil
128
132
  @missing_slices = nil
133
+ @missing_extensions = nil
129
134
  begin
130
135
  perform_must_support_test(resources[meta.profile_url])
131
136
  rescue Inferno::Exceptions::PassException
@@ -173,8 +178,9 @@ module ONCCertificationG10TestKit
173
178
  }
174
179
 
175
180
  stream_ndjson(url, build_headers(requires_access_token), process_line, process_headers)
176
- validate_conformance(resources)
177
-
181
+ resources_from_all_files.merge!(resources) do |_key, all_resources, file_resources|
182
+ all_resources | file_resources
183
+ end
178
184
  line_count
179
185
  end
180
186
 
@@ -190,11 +196,14 @@ module ONCCertificationG10TestKit
190
196
  skip message
191
197
  end
192
198
 
199
+ @resources_from_all_files = {}
193
200
  success_count = 0
194
201
  file_list.each do |file|
195
202
  success_count += check_file_request(file['url'])
196
203
  end
197
204
 
205
+ validate_conformance(resources_from_all_files)
206
+
198
207
  pass "Successfully validated #{success_count} #{resource_type} resource(s)."
199
208
  end
200
209
  end
@@ -198,10 +198,14 @@ module ONCCertificationG10TestKit
198
198
  ['Inferno Test ID', 22, ->(test) { test.short_id.to_s }],
199
199
  ['Inferno Test Name', 65, ->(test) { test.title }],
200
200
  ['Inferno Test Description', 65, lambda do |test|
201
- natural_indent = test.description.lines
202
- .collect { |l| l.index(/[^ ]/) }
203
- .select { |l| !l.nil? && l.positive? }.min || 0
204
- test.description.lines.map { |l| l[natural_indent..] || "\n" }.join.strip
201
+ description = test.description || ''
202
+ natural_indent =
203
+ description
204
+ .lines
205
+ .collect { |l| l.index(/[^ ]/) }
206
+ .select { |l| !l.nil? && l.positive? }
207
+ .min || 0
208
+ description.lines.map { |l| l[natural_indent..] || "\n" }.join.strip
205
209
  end],
206
210
  ['Test Procedure Steps', 30, ->(test) { inferno_to_procedure_map[test.short_id].join(', ') }]
207
211
  ]
@@ -227,7 +231,7 @@ module ONCCertificationG10TestKit
227
231
  this_row.each_with_index do |value, index|
228
232
  inferno_worksheet.add_cell(row, index, value).change_text_wrap(true)
229
233
  end
230
- inferno_worksheet.change_row_height(row, [26, (test.description.strip.lines.count * 10) + 10].max)
234
+ inferno_worksheet.change_row_height(row, [26, ((test.description || '').strip.lines.count * 10) + 10].max)
231
235
  inferno_worksheet.change_row_vertical_alignment(row, 'top')
232
236
  row += 1
233
237
  end
@@ -1,3 +1,3 @@
1
1
  module ONCCertificationG10TestKit
2
- VERSION = '2.1.0.rc1'.freeze
2
+ VERSION = '2.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onc_certification_g10_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.rc1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen MacVicar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-08 00:00:00.000000000 Z
11
+ date: 2022-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bloomer
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 0.2.0
145
+ version: 0.2.1
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 0.2.0
152
+ version: 0.2.1
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: database_cleaner-sequel
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -304,9 +304,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
304
304
  version: 2.7.0
305
305
  required_rubygems_version: !ruby/object:Gem::Requirement
306
306
  requirements:
307
- - - ">"
307
+ - - ">="
308
308
  - !ruby/object:Gem::Version
309
- version: 1.3.1
309
+ version: '0'
310
310
  requirements: []
311
311
  rubygems_version: 3.1.6
312
312
  signing_key: