Skip to content

Gemspec and Ruby update#123

Merged
karlnaden merged 9 commits into
inferno-framework:masterfrom
FlexonyoPizza:master
Apr 30, 2026
Merged

Gemspec and Ruby update#123
karlnaden merged 9 commits into
inferno-framework:masterfrom
FlexonyoPizza:master

Conversation

@FlexonyoPizza
Copy link
Copy Markdown
Contributor

Summary

  • Disabled 'AccessModifierDeclarations' cop in 'rubocop.yml'

  • RuboCop style autocorrections including:
    -RedundantParenthesis
    -ZeroLengthPredicate
    -HashEachMethods
    -MultipleComparison
    -RedundantRegexpEscape

Comment thread fhir_models.gemspec Outdated
Comment thread fhir_models.gemspec Outdated
@FlexonyoPizza FlexonyoPizza requested a review from karlnaden April 17, 2026 21:36
Comment thread fhir_models.gemspec
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'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why delete rubocop entirely here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@FlexonyoPizza
Copy link
Copy Markdown
Contributor Author

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.

@FlexonyoPizza FlexonyoPizza changed the title Addressing New RuboCop Offenses From Bundle Update Gemspec and Ruby update Apr 21, 2026
@FlexonyoPizza FlexonyoPizza requested a review from ljtucker April 27, 2026 13:23
Copy link
Copy Markdown
Contributor

@karlnaden karlnaden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread fhir_models.gemspec
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'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread Gemfile Outdated
# Specify your gem's dependencies in fhir_models.gemspec
gemspec

gem 'parallel', '1.26.3'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@karlnaden
Copy link
Copy Markdown
Contributor

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.

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.

@FlexonyoPizza
Copy link
Copy Markdown
Contributor Author

FlexonyoPizza commented Apr 27, 2026

Prereqs: You need to have a repo with the changes in this PR forked

1. Point fhir_models gem to your inferno-core fork
From your local inferno-core repo, in Gemfile, add a git source override right after "gemspec":

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
'bundle exec rake spec'

3. Start inferno services and server
'bundle exec inferno services start'
'bundle exec inferno start'

4. Run all execution scripts
In a seperate terminal:
'bundle exec rake execute_scripts:run_all'

Copy link
Copy Markdown
Contributor

@karlnaden karlnaden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

running one last verification. Make these two non-functional changes and I think we'll be ready to merge

Comment thread .ruby-version
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we updated this file, also update .tool-versions to match

Comment thread .github/workflows/ruby.yml
@FlexonyoPizza FlexonyoPizza requested a review from karlnaden April 30, 2026 13:35
@karlnaden karlnaden merged commit b7441b5 into inferno-framework:master Apr 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants