inferno_core 0.6.0 → 0.6.2

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.
@@ -1,4 +1,4 @@
1
1
  module Inferno
2
2
  # Standard patterns for gem versions: https://guides.rubygems.org/patterns/
3
- VERSION = '0.6.0'.freeze
3
+ VERSION = '0.6.2'.freeze
4
4
  end
@@ -16,6 +16,13 @@ RSpec.shared_examples 'platform_deployable_test_kit' do
16
16
  let(:suites) do
17
17
  test_kit.suite_ids.map { |id| Inferno::Repositories::TestSuites.new.find(id) }
18
18
  end
19
+ let(:tests) do
20
+ Inferno::Repositories::Tests.new.all.select do |test|
21
+ test_kit.suite_ids.include?(test.suite.id)
22
+ rescue NoMethodError
23
+ false
24
+ end
25
+ end
19
26
 
20
27
  describe 'TestKit' do
21
28
  it 'defines test kit in the Metadata class' do
@@ -89,7 +96,7 @@ RSpec.shared_examples 'platform_deployable_test_kit' do
89
96
  error_message =
90
97
  "Include the standard 'Report Issue', 'Open Source', and 'Download links in " \
91
98
  'each suite.\n'
92
- expect(link_labels).to match_array(expected_labels), error_message
99
+ expect(link_labels).to include(*expected_labels), error_message
93
100
  end
94
101
  end
95
102
  end
@@ -130,4 +137,19 @@ RSpec.shared_examples 'platform_deployable_test_kit' do
130
137
  expect(test_kit_gem.metadata['inferno_test_kit']).to eq('true'), error_message
131
138
  end
132
139
  end
140
+
141
+ describe 'test methods integrity' do
142
+ it 'ensures `fetch_all_bundled_resources` is not overriden in a Test' do
143
+ tests.each do |test|
144
+ error_msg = 'Integrity Error: `fetch_all_bundled_resources` is now implemented in Inferno Core. ' \
145
+ "It should no longer be defined in Test `#{test.id}`. Please remove the " \
146
+ '`fetch_all_bundled_resources` definition from that test to avoid conflicts.'
147
+
148
+ method_path = test.instance_method(:fetch_all_bundled_resources).source_location
149
+ expected_path = Inferno::Test.instance_method(:fetch_all_bundled_resources).source_location
150
+
151
+ expect(method_path).to eq(expected_path), error_msg
152
+ end
153
+ end
154
+ end
133
155
  end
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.6.0
4
+ version: 0.6.2
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-01-21 00:00:00.000000000 Z
13
+ date: 2025-02-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -54,6 +54,20 @@ dependencies:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
56
  version: 0.25.2
57
+ - !ruby/object:Gem::Dependency
58
+ name: concurrent-ruby
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - '='
62
+ - !ruby/object:Gem::Version
63
+ version: 1.3.4
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - '='
69
+ - !ruby/object:Gem::Version
70
+ version: 1.3.4
57
71
  - !ruby/object:Gem::Dependency
58
72
  name: dotenv
59
73
  requirement: !ruby/object:Gem::Requirement
@@ -511,7 +525,13 @@ files:
511
525
  - lib/inferno/dsl/fhir_evaluation/evaluation_context.rb
512
526
  - lib/inferno/dsl/fhir_evaluation/evaluation_result.rb
513
527
  - lib/inferno/dsl/fhir_evaluation/evaluator.rb
528
+ - lib/inferno/dsl/fhir_evaluation/profile_conformance_helper.rb
529
+ - lib/inferno/dsl/fhir_evaluation/reference_extractor.rb
514
530
  - lib/inferno/dsl/fhir_evaluation/rule.rb
531
+ - lib/inferno/dsl/fhir_evaluation/rules/all_must_supports_present.rb
532
+ - lib/inferno/dsl/fhir_evaluation/rules/all_references_resolve.rb
533
+ - lib/inferno/dsl/fhir_evaluation/rules/all_resources_reachable.rb
534
+ - lib/inferno/dsl/fhir_resource_navigation.rb
515
535
  - lib/inferno/dsl/fhir_resource_validation.rb
516
536
  - lib/inferno/dsl/fhir_validation.rb
517
537
  - lib/inferno/dsl/fhirpath_evaluation.rb
@@ -522,7 +542,9 @@ files:
522
542
  - lib/inferno/dsl/jwks.rb
523
543
  - lib/inferno/dsl/links.rb
524
544
  - lib/inferno/dsl/messages.rb
545
+ - lib/inferno/dsl/must_support_metadata_extractor.rb
525
546
  - lib/inferno/dsl/oauth_credentials.rb
547
+ - lib/inferno/dsl/primitive_type.rb
526
548
  - lib/inferno/dsl/request_storage.rb
527
549
  - lib/inferno/dsl/results.rb
528
550
  - lib/inferno/dsl/resume_test_route.rb
@@ -530,6 +552,7 @@ files:
530
552
  - lib/inferno/dsl/suite_endpoint.rb
531
553
  - lib/inferno/dsl/suite_option.rb
532
554
  - lib/inferno/dsl/tcp_exception_handler.rb
555
+ - lib/inferno/dsl/value_extractor.rb
533
556
  - lib/inferno/entities.rb
534
557
  - lib/inferno/entities/attributes.rb
535
558
  - lib/inferno/entities/entity.rb