Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
FHIR_RESOURCE_VALIDATOR_URL=http://localhost/hl7validatorapi
REDIS_URL=redis://localhost:6379/0
REDIS_URL=redis://localhost:6379/0
ENABLE_REQUIREMENTS=true
3 changes: 2 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
REDIS_URL=redis://redis:6379/0
FHIR_RESOURCE_VALIDATOR_URL=http://hl7_validator_service:3500
FHIR_RESOURCE_VALIDATOR_URL=http://hl7_validator_service:3500
ENABLE_REQUIREMENTS=true
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
FHIR_RESOURCE_VALIDATOR_URL=https://example.com/validatorapi
ASYNC_JOBS=false
ENABLE_REQUIREMENTS=true
8 changes: 4 additions & 4 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Rubocop
run: bundle exec rubocop

requirements-coverage:
requirements:
needs: build
runs-on: ubuntu-latest
strategy:
Expand All @@ -66,7 +66,7 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Create Database
run: bundle exec inferno migrate
- name: Check Export
run: bundle exec inferno requirements check
- name: Check Coverage
run: bundle exec rake requirements:check_coverage
run: bundle exec inferno requirements check_coverage
127 changes: 70 additions & 57 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: .
specs:
subscriptions_test_kit (0.11.1)
inferno_core (~> 0.6.4)
inferno_core (~> 0.6.12)

GEM
remote: https://rubygems.org/
Expand All @@ -15,29 +15,30 @@ GEM
zeitwerk (~> 2.3)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.2)
ast (2.4.3)
base62-rb (0.3.1)
base64 (0.2.0)
base64 (0.3.0)
bcp47 (0.3.3)
i18n
bigdecimal (3.1.9)
bigdecimal (3.2.2)
blueprinter (0.25.2)
byebug (12.0.0)
coderay (1.1.3)
concurrent-ruby (1.3.4)
connection_pool (2.5.0)
connection_pool (2.5.3)
crack (1.0.0)
bigdecimal
rexml
database_cleaner (1.99.0)
database_cleaner-sequel (1.99.0)
database_cleaner (~> 1.99.0)
sequel
date (3.4.1)
date_time_precision (0.8.1)
debug (1.9.2)
debug (1.10.0)
irb (~> 1.10)
reline (>= 0.3.8)
diff-lcs (1.5.1)
diff-lcs (1.6.2)
domain_name (0.6.20240107)
dotenv (2.8.1)
dry-auto_inject (1.0.1)
Expand All @@ -59,8 +60,9 @@ GEM
dry-inflector (~> 1.0, < 2)
dry-transformer (1.0.1)
zeitwerk (~> 2.6)
factory_bot (6.4.6)
activesupport (>= 5.0.0)
erb (5.0.1)
factory_bot (6.5.4)
activesupport (>= 6.1.0)
faraday (1.10.4)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
Expand Down Expand Up @@ -127,13 +129,13 @@ GEM
dry-core (~> 1.0, < 2)
dry-transformer (~> 1.0, < 2)
hansi (0.2.1)
hashdiff (1.1.0)
hashdiff (1.2.0)
http-accept (1.7.0)
http-cookie (1.0.8)
domain_name (~> 0.5)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
inferno_core (0.6.8)
inferno_core (0.6.12)
activesupport (~> 6.1.7.5)
base62-rb (= 0.3.1)
blueprinter (= 0.25.2)
Expand All @@ -156,31 +158,34 @@ GEM
pry-byebug
puma (~> 5.6.7)
rake (~> 13.0)
roo (~> 2.10.1)
sequel (~> 5.42.0)
sidekiq (~> 7.2.4)
sqlite3 (~> 1.4)
thor (~> 1.2.1)
tty-markdown (~> 0.7.1)
io-console (0.7.2)
irb (1.13.1)
io-console (0.8.0)
irb (1.15.2)
pp (>= 0.6.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.2)
json (2.12.2)
jwt (2.10.1)
base64
kramdown (2.5.1)
rexml (>= 3.3.9)
language_server-protocol (3.17.0.3)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
logger (1.7.0)
method_source (1.1.0)
mime-types (3.6.2)
mime-types (3.7.0)
logger
mime-types-data (~> 3.2015)
mime-types-data (3.2025.0402)
mini_portile2 (2.8.8)
mime-types-data (~> 3.2025, >= 3.2025.0507)
mime-types-data (3.2025.0610)
mini_portile2 (2.8.9)
minitest (5.25.5)
multi_json (1.15.0)
multi_xml (0.7.1)
multi_xml (0.7.2)
bigdecimal (~> 3.1)
multipart-post (2.4.1)
mustermann (1.1.2)
Expand All @@ -190,18 +195,18 @@ GEM
mustermann (= 1.1.2)
netrc (0.11.0)
nio4r (2.7.4)
nokogiri (1.18.7)
nokogiri (1.18.8)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.18.7-aarch64-linux-gnu)
nokogiri (1.18.8-aarch64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.7-arm-linux-gnu)
nokogiri (1.18.8-arm-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.7-arm64-darwin)
nokogiri (1.18.8-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.7-x86_64-darwin)
nokogiri (1.18.8-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.18.7-x86_64-linux-gnu)
nokogiri (1.18.8-x86_64-linux-gnu)
racc (~> 1.4)
oauth2 (1.4.11)
faraday (>= 0.17.3, < 3.0)
Expand All @@ -210,35 +215,41 @@ GEM
multi_xml (~> 0.5)
rack (>= 1.2, < 4)
oj (3.11.0)
parallel (1.25.1)
parser (3.3.4.0)
parallel (1.27.0)
parser (3.3.8.0)
ast (~> 2.4.1)
racc
pastel (0.8.0)
tty-color (~> 0.5)
pp (0.6.2)
prettyprint
prettyprint (0.2.0)
prism (1.4.0)
pry (0.15.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.11.0)
byebug (~> 12.0)
pry (>= 0.13, < 0.16)
psych (5.1.2)
psych (5.2.6)
date
stringio
public_suffix (6.0.1)
public_suffix (6.0.2)
puma (5.6.9)
nio4r (~> 2.0)
racc (1.8.1)
rack (2.2.13)
rack-test (2.1.0)
rack (2.2.17)
rack-test (2.2.0)
rack (>= 1.3)
rainbow (3.1.1)
rake (13.2.1)
rdoc (6.7.0)
rake (13.3.0)
rdoc (6.14.0)
erb
psych (>= 4.0.0)
redis-client (0.24.0)
redis-client (0.25.0)
connection_pool
regexp_parser (2.9.2)
reline (0.5.8)
regexp_parser (2.10.0)
reline (0.6.1)
io-console (~> 0.5)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
Expand All @@ -249,40 +260,42 @@ GEM
roo (2.10.1)
nokogiri (~> 1)
rubyzip (>= 1.3.0, < 3.0.0)
rouge (4.5.1)
rspec (3.13.0)
rouge (4.5.2)
rspec (3.13.1)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-core (3.13.4)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
rspec-mocks (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rubocop (1.65.0)
rspec-support (3.13.4)
rubocop (1.76.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.4, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.45.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.45.1)
parser (>= 3.3.7.2)
prism (~> 1.4)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (3.0.3)
rubocop (~> 1.61)
rubocop-rspec (3.6.0)
lint_roller (~> 1.1)
rubocop (~> 1.72, >= 1.72.1)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
rubyzip (2.4.1)
sequel (5.42.0)
sidekiq (7.2.4)
concurrent-ruby (< 2)
Expand All @@ -297,7 +310,7 @@ GEM
sqlite3 (1.7.3-x86-linux)
sqlite3 (1.7.3-x86_64-darwin)
sqlite3 (1.7.3-x86_64-linux)
stringio (3.1.0)
stringio (3.1.7)
strings (0.2.1)
strings-ansi (~> 0.2)
unicode-display_width (>= 1.5, < 3.0)
Expand All @@ -318,11 +331,11 @@ GEM
concurrent-ruby (~> 1.0)
unicode-display_width (2.6.0)
unicode_utils (1.4.0)
webmock (3.23.1)
webmock (3.25.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
zeitwerk (2.7.2)
zeitwerk (2.7.3)

PLATFORMS
aarch64-linux
Expand Down
32 changes: 0 additions & 32 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,3 @@ namespace :db do
Inferno::Utils::Migration.new.run
end
end

namespace :requirements do
desc 'Generate requirements coverage CSV'
task :generate_coverage do
require 'inferno'
Inferno::Application.start(:suites)

require_relative 'lib/inferno_requirements_tools/tasks/requirements_coverage'
InfernoRequirementsTools::Tasks::RequirementsCoverage.new.run
end

desc 'Check if requirements coverage CSV is up-to-date'
task :check_coverage do
require 'inferno'
Inferno::Application.start(:suites)

require_relative 'lib/inferno_requirements_tools/tasks/requirements_coverage'
InfernoRequirementsTools::Tasks::RequirementsCoverage.new.run_check
end

desc 'Collect requirements and planned not tested requirements into CSVs'
task :collect, [:input_directory] => [] do |_, args|
require_relative 'lib/inferno_requirements_tools/tasks/collect_requirements'
InfernoRequirementsTools::Tasks::CollectRequirements.new.run(args.input_directory)
end

desc 'Check if requirements and planned not tested CSVs are up-to-date'
task :check_collection, [:input_directory] => [] do |_, args|
require_relative 'lib/inferno_requirements_tools/tasks/collect_requirements'
InfernoRequirementsTools::Tasks::CollectRequirements.new.run_check(args.input_directory)
end
end
22 changes: 0 additions & 22 deletions lib/inferno_requirements_tools/ext/inferno_core/runnable.rb

This file was deleted.

Loading