inferno_core 0.6.17 → 1.0.0
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/cli/execute.rb +1 -1
- data/lib/inferno/apps/cli/templates/.rubocop.yml +2 -2
- data/lib/inferno/apps/cli/templates/lib/%library_name%/example_suite.rb.tt +0 -1
- data/lib/inferno/apps/cli/templates/spec/%library_name%/patient_group_spec.rb.tt +11 -10
- data/lib/inferno/apps/web/controllers/test_runs/create.rb +1 -1
- data/lib/inferno/apps/web/controllers/test_session_form_post_controller.rb +32 -1
- data/lib/inferno/apps/web/controllers/test_sessions/client_show.rb +1 -1
- data/lib/inferno/apps/web/router.rb +30 -3
- data/lib/inferno/apps/web/serializers/requirements_filtering_extractor.rb +17 -0
- data/lib/inferno/apps/web/serializers/test.rb +2 -1
- data/lib/inferno/apps/web/serializers/test_group.rb +7 -3
- data/lib/inferno/apps/web/serializers/test_session.rb +12 -2
- data/lib/inferno/apps/web/serializers/test_suite.rb +9 -6
- data/lib/inferno/apps/web/templates/test_kit.html.erb +316 -0
- data/lib/inferno/entities/test_kit.rb +4 -0
- data/lib/inferno/public/bundle.js +34 -34
- data/lib/inferno/public/bundle.js.LICENSE.txt +1 -1
- data/lib/inferno/repositories/test_kits.rb +11 -0
- data/lib/inferno/utils/persist_inputs.rb +4 -4
- data/lib/inferno/version.rb +1 -1
- metadata +33 -3
- /data/lib/inferno/apps/web/{index.html.erb → templates/client_index.html.erb} +0 -0
@@ -4,6 +4,17 @@ module Inferno
|
|
4
4
|
module Repositories
|
5
5
|
# Repository that deals with persistence for the `TestKit` entity.
|
6
6
|
class TestKits < InMemoryRepository
|
7
|
+
def local_test_kit
|
8
|
+
local_base_path = File.join(Dir.pwd, 'lib')
|
9
|
+
|
10
|
+
self.class.all.find do |test_kit|
|
11
|
+
Object.const_source_location(test_kit.name).first.start_with? local_base_path
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_kit_for_suite(suite_id)
|
16
|
+
self.class.all.find { |test_kit| test_kit.contains_test_suite? suite_id }
|
17
|
+
end
|
7
18
|
end
|
8
19
|
end
|
9
20
|
end
|
@@ -2,8 +2,8 @@ module Inferno
|
|
2
2
|
module Utils
|
3
3
|
# @private
|
4
4
|
module PersistInputs
|
5
|
-
def persist_inputs(session_data_repo, params,
|
6
|
-
available_inputs =
|
5
|
+
def persist_inputs(session_data_repo, params, runnable)
|
6
|
+
available_inputs = runnable.available_inputs
|
7
7
|
params[:inputs]&.each do |input_params|
|
8
8
|
input =
|
9
9
|
available_inputs
|
@@ -12,13 +12,13 @@ module Inferno
|
|
12
12
|
|
13
13
|
if input.nil?
|
14
14
|
Inferno::Application['logger'].warn(
|
15
|
-
"Unknown input `#{input_params[:name]}` for #{
|
15
|
+
"Unknown input `#{input_params[:name]}` for #{runnable.id}: #{runnable.title}"
|
16
16
|
)
|
17
17
|
next
|
18
18
|
end
|
19
19
|
|
20
20
|
session_data_repo.save(
|
21
|
-
test_session_id:
|
21
|
+
test_session_id: params[:test_session_id],
|
22
22
|
name: input.name,
|
23
23
|
value: input_params[:value],
|
24
24
|
type: input.type
|
data/lib/inferno/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inferno_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen MacVicar
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2025-07-
|
13
|
+
date: 2025-07-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -250,6 +250,34 @@ dependencies:
|
|
250
250
|
- - '='
|
251
251
|
- !ruby/object:Gem::Version
|
252
252
|
version: 2.0.0
|
253
|
+
- !ruby/object:Gem::Dependency
|
254
|
+
name: kramdown
|
255
|
+
requirement: !ruby/object:Gem::Requirement
|
256
|
+
requirements:
|
257
|
+
- - "~>"
|
258
|
+
- !ruby/object:Gem::Version
|
259
|
+
version: 2.5.1
|
260
|
+
type: :runtime
|
261
|
+
prerelease: false
|
262
|
+
version_requirements: !ruby/object:Gem::Requirement
|
263
|
+
requirements:
|
264
|
+
- - "~>"
|
265
|
+
- !ruby/object:Gem::Version
|
266
|
+
version: 2.5.1
|
267
|
+
- !ruby/object:Gem::Dependency
|
268
|
+
name: kramdown-parser-gfm
|
269
|
+
requirement: !ruby/object:Gem::Requirement
|
270
|
+
requirements:
|
271
|
+
- - "~>"
|
272
|
+
- !ruby/object:Gem::Version
|
273
|
+
version: 1.1.0
|
274
|
+
type: :runtime
|
275
|
+
prerelease: false
|
276
|
+
version_requirements: !ruby/object:Gem::Requirement
|
277
|
+
requirements:
|
278
|
+
- - "~>"
|
279
|
+
- !ruby/object:Gem::Version
|
280
|
+
version: 1.1.0
|
253
281
|
- !ruby/object:Gem::Dependency
|
254
282
|
name: mutex_m
|
255
283
|
requirement: !ruby/object:Gem::Requirement
|
@@ -531,7 +559,6 @@ files:
|
|
531
559
|
- lib/inferno/apps/web/controllers/test_suites/index.rb
|
532
560
|
- lib/inferno/apps/web/controllers/test_suites/requirements/index.rb
|
533
561
|
- lib/inferno/apps/web/controllers/test_suites/show.rb
|
534
|
-
- lib/inferno/apps/web/index.html.erb
|
535
562
|
- lib/inferno/apps/web/router.rb
|
536
563
|
- lib/inferno/apps/web/serializers/hash_value_extractor.rb
|
537
564
|
- lib/inferno/apps/web/serializers/header.rb
|
@@ -542,6 +569,7 @@ files:
|
|
542
569
|
- lib/inferno/apps/web/serializers/request.rb
|
543
570
|
- lib/inferno/apps/web/serializers/requirement.rb
|
544
571
|
- lib/inferno/apps/web/serializers/requirement_set.rb
|
572
|
+
- lib/inferno/apps/web/serializers/requirements_filtering_extractor.rb
|
545
573
|
- lib/inferno/apps/web/serializers/result.rb
|
546
574
|
- lib/inferno/apps/web/serializers/serializer.rb
|
547
575
|
- lib/inferno/apps/web/serializers/session_data.rb
|
@@ -551,6 +579,8 @@ files:
|
|
551
579
|
- lib/inferno/apps/web/serializers/test_run.rb
|
552
580
|
- lib/inferno/apps/web/serializers/test_session.rb
|
553
581
|
- lib/inferno/apps/web/serializers/test_suite.rb
|
582
|
+
- lib/inferno/apps/web/templates/client_index.html.erb
|
583
|
+
- lib/inferno/apps/web/templates/test_kit.html.erb
|
554
584
|
- lib/inferno/config/application.rb
|
555
585
|
- lib/inferno/config/boot.rb
|
556
586
|
- lib/inferno/config/boot/db.rb
|
File without changes
|