Gemspec and Ruby update#123
Conversation
| spec.add_development_dependency 'rspec' | ||
| spec.add_development_dependency 'simplecov', '~> 0.17.0' | ||
| spec.add_development_dependency 'nokogiri-diff' | ||
| spec.add_development_dependency 'rubocop', '1.23.0' |
There was a problem hiding this comment.
Many ways to slice this, but planning to be consistent with inferno_core, which has rubocop as a development and test dependency in the Gemfile, not a development_dependency in the gemspec. So removing keeps it consistent.
…ious ruby versions but has to be explicitly stated in ruby 3.3
|
In the future, we might consider parallel version 2.0 instead of 1.26 for both fhir_models and inferno-core? 1.26 supports ruby versions 2.7 and above. 2.0 supports ruby 3.3, which is the ruby version inferno-core uses right now. |
karlnaden
left a comment
There was a problem hiding this comment.
in addition to the one question below, can you send me details (or better, put into the PR) how you tested this in inferno-core and test kits. This is a core component, so want to make sure we have multiple eyes on it before releasing a gem, even though there's no functional changes.
| spec.add_development_dependency 'rspec' | ||
| spec.add_development_dependency 'simplecov', '~> 0.17.0' | ||
| spec.add_development_dependency 'nokogiri-diff' | ||
| spec.add_development_dependency 'rubocop', '1.23.0' |
There was a problem hiding this comment.
Many ways to slice this, but planning to be consistent with inferno_core, which has rubocop as a development and test dependency in the Gemfile, not a development_dependency in the gemspec. So removing keeps it consistent.
| # Specify your gem's dependencies in fhir_models.gemspec | ||
| gemspec | ||
|
|
||
| gem 'parallel', '1.26.3' |
There was a problem hiding this comment.
Is this needed in general, or only for dev / testing? If only for dev and testing, could it be moved into the development, test group?
There was a problem hiding this comment.
parallel is used by rubocop solely for dev/testing, it isnt used at runtime so yes we can definitely move it into the development & test group
parallel is an indirect dependency, correct, coming from rubocop, which is a development dependency? I don't know that we want or need to drop support for 3.2 on a foundational module like this - no vulnerabilities currently so far as I am aware, so I think keeping the update simpler and keeping the pin at 1.26 is right, but definitely worth considering for the next update. |
|
Prereqs: You need to have a repo with the changes in this PR forked 1. Point fhir_models gem to your inferno-core fork gem 'fhir_models', git: 'https://github.com/Username/fhir_models', branch: 'master' then install: 'bundle install' *if bundle install doesnt work, your inferno-core gemlock file may have gems locked to a previous resolution, in that case simply run: bundle update fhir_models 2. Run unit tests 3. Start inferno services and server 4. Run all execution scripts |
karlnaden
left a comment
There was a problem hiding this comment.
running one last verification. Make these two non-functional changes and I think we'll be ready to merge
There was a problem hiding this comment.
since we updated this file, also update .tool-versions to match
Summary
Disabled 'AccessModifierDeclarations' cop in 'rubocop.yml'
RuboCop style autocorrections including:
-RedundantParenthesis
-ZeroLengthPredicate
-HashEachMethods
-MultipleComparison
-RedundantRegexpEscape