inferno_core 0.3.5 → 0.3.6
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 +4 -4
- data/lib/inferno/apps/web/controllers/test_runs/create.rb +8 -4
- data/lib/inferno/apps/web/controllers/test_sessions/create.rb +2 -3
- data/lib/inferno/apps/web/serializers/input.rb +6 -2
- data/lib/inferno/apps/web/serializers/test.rb +4 -1
- data/lib/inferno/apps/web/serializers/test_group.rb +8 -3
- data/lib/inferno/apps/web/serializers/test_suite.rb +7 -2
- data/lib/inferno/config/boot/presets.rb +1 -1
- data/lib/inferno/dsl/http_client.rb +14 -4
- data/lib/inferno/dsl/http_client_builder.rb +6 -1
- data/lib/inferno/dsl/input_output_handling.rb +35 -41
- data/lib/inferno/entities/input.rb +2 -1
- data/lib/inferno/entities/test_suite.rb +6 -0
- data/lib/inferno/public/bg-header-1920x170.png +0 -0
- data/lib/inferno/public/bundle.js +15 -15
- data/lib/inferno/public/healthit.gov.logo.png +0 -0
- data/lib/inferno/repositories/presets.rb +10 -1
- data/lib/inferno/version.rb +1 -1
- metadata +21 -5
Binary file
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'erb'
|
2
|
+
|
1
3
|
require_relative 'in_memory_repository'
|
2
4
|
require_relative '../entities/preset'
|
3
5
|
|
@@ -6,7 +8,14 @@ module Inferno
|
|
6
8
|
# Repository that deals with persistence for the `Preset` entity.
|
7
9
|
class Presets < InMemoryRepository
|
8
10
|
def insert_from_file(path)
|
9
|
-
|
11
|
+
case path
|
12
|
+
when /\.json$/
|
13
|
+
preset_hash = JSON.parse(File.read(path))
|
14
|
+
when /\.erb$/
|
15
|
+
templated = ERB.new(File.read(path)).result
|
16
|
+
preset_hash = JSON.parse(templated)
|
17
|
+
end
|
18
|
+
|
10
19
|
preset_hash.deep_symbolize_keys!
|
11
20
|
preset_hash[:id] ||= SecureRandom.uuid
|
12
21
|
preset = Entities::Preset.new(preset_hash)
|
data/lib/inferno/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inferno_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen MacVicar
|
8
8
|
- Robert Scanlon
|
9
9
|
- Chase Zhou
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-08-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -110,6 +110,20 @@ dependencies:
|
|
110
110
|
- - "~>"
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '1.2'
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: faraday_middleware
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '1.2'
|
120
|
+
type: :runtime
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - "~>"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '1.2'
|
113
127
|
- !ruby/object:Gem::Dependency
|
114
128
|
name: fhir_client
|
115
129
|
requirement: !ruby/object:Gem::Requirement
|
@@ -570,9 +584,11 @@ files:
|
|
570
584
|
- lib/inferno/public/217.bundle.js
|
571
585
|
- lib/inferno/public/a5cd39450ab0336db73c5e57228b649d.png
|
572
586
|
- lib/inferno/public/assets.json
|
587
|
+
- lib/inferno/public/bg-header-1920x170.png
|
573
588
|
- lib/inferno/public/bundle.js
|
574
589
|
- lib/inferno/public/bundle.js.LICENSE.txt
|
575
590
|
- lib/inferno/public/favicon.ico
|
591
|
+
- lib/inferno/public/healthit.gov.logo.png
|
576
592
|
- lib/inferno/public/logo192.png
|
577
593
|
- lib/inferno/repositories.rb
|
578
594
|
- lib/inferno/repositories/headers.rb
|
@@ -614,7 +630,7 @@ metadata:
|
|
614
630
|
homepage_uri: https://github.com/inferno-framework/inferno-core
|
615
631
|
source_code_uri: https://github.com/inferno-framework/inferno-core
|
616
632
|
changelog_uri: https://github.com/inferno-framework/inferno-core/blob/main/CHANGELOG.md
|
617
|
-
post_install_message:
|
633
|
+
post_install_message:
|
618
634
|
rdoc_options: []
|
619
635
|
require_paths:
|
620
636
|
- lib
|
@@ -631,7 +647,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
631
647
|
version: '0'
|
632
648
|
requirements: []
|
633
649
|
rubygems_version: 3.1.6
|
634
|
-
signing_key:
|
650
|
+
signing_key:
|
635
651
|
specification_version: 4
|
636
652
|
summary: Inferno Core is an open source tool for testing data exchanges enabled by
|
637
653
|
the FHIR standand
|