inferno_core 0.1.2.pre → 0.1.3

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
  SHA256:
3
- metadata.gz: a39bd8f76f999212e451616afca215d50bd97c3051183a46356263b95b56ac0a
4
- data.tar.gz: 18bd6bf1a642fd950dbab94337f361b44b3ae54f611a2e2ef15ca61a871ebdc7
3
+ metadata.gz: d4ea56739f5e0bcda00acbadc1a8815e644bcb829aff898455e2bc02a36afced
4
+ data.tar.gz: f07990a10b82be01c47bbfab2fb749cc7032713be49fa2619fd0b0277c053aac
5
5
  SHA512:
6
- metadata.gz: fada61163e6b55d0d9f4a49be0ad1712bf9d788f3e9dee12f65716f554de8df508620088d396bc672aeff2b6c19328f113d477a0ee8b45fd5faa8d48d81de90b
7
- data.tar.gz: d56a9fde79962c0f8900b9e0cb4acb50f90d687621bd344c75266aebe6e4ec977c7719a3a8661de4969aa28f7c96bff3882e2e12af4edc86c1abba06006b6292
6
+ metadata.gz: 439eb983754b145dbccc5971b618912e3bb8c09754115cb8d3b6ac9a6ca49d37fbdd7dcba7e55398b0311539fbd072e3213a69628c6bdff8bd95b1a3f4920929
7
+ data.tar.gz: 02c7c884c5f21b578d1f0114e86187f7e85a3267047dde1f5719b1e53cd49bdef3a41acaad3cf54db5a01721e02dc20ad52e93b2b46ff40c5aaa9f3d8bbf3f46
@@ -21,6 +21,8 @@ module Inferno
21
21
  return
22
22
  end
23
23
 
24
+ # TODO: This test run shouldn't be created until after the inputs
25
+ # and runnable are validated
24
26
  test_run = repo.create(create_params(params).merge(status: 'queued'))
25
27
  missing_inputs = test_run.runnable.missing_inputs(params[:inputs])
26
28
 
@@ -53,7 +53,7 @@ module Inferno
53
53
 
54
54
  # Set the url of the validator service
55
55
  #
56
- # @param url [String]
56
+ # @param validator_url [String]
57
57
  def url(validator_url = nil)
58
58
  @url = validator_url if validator_url
59
59
 
@@ -31,7 +31,7 @@ module Inferno
31
31
  instance_variable_set(:"@#{name}", value)
32
32
  end
33
33
 
34
- self.token_retrieval_time = DateTime.now if token_retrieval_time.blank?
34
+ self.token_retrieval_time = DateTime.now if access_token.present? && token_retrieval_time.blank?
35
35
  end
36
36
 
37
37
  # @api private
@@ -456,12 +456,13 @@ module Inferno
456
456
 
457
457
  # @private
458
458
  def required_inputs(prior_outputs = [])
459
- required_inputs = inputs.select do |input|
460
- !input_definitions[input][:optional] && !prior_outputs.include?(input)
461
- end
462
- required_inputs.map! { |input_identifier| input_definitions[input_identifier][:name] }
459
+ required_inputs =
460
+ inputs
461
+ .reject { |input| input_definitions[input][:optional] }
462
+ .map { |input| config.input_name(input) }
463
+ .reject { |input| prior_outputs.include?(input) }
463
464
  children_required_inputs = children.flat_map { |child| child.required_inputs(prior_outputs) }
464
- prior_outputs.concat(outputs)
465
+ prior_outputs.concat(outputs.map { |output| config.output_name(output) })
465
466
  (required_inputs + children_required_inputs).flatten.uniq
466
467
  end
467
468
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main.js": "/public/bundle.js",
3
- "main.png": "/public/e09b16f5cb645eb05f90c8f38f3409fb.png",
4
3
  "217.bundle.js": "/public/217.bundle.js",
5
- "inferno_logo.png": "/public/e09b16f5cb645eb05f90c8f38f3409fb.png"
4
+ "inferno_logo.png": "/public/e09b16f5cb645eb05f90c8f38f3409fb.png",
5
+ "inferno_icon.png": "/public/72a5cd989e6aea904540824ec865a0f8.png"
6
6
  }