Skip to content

fix: drop git-source deps from Gemfile#70

Open
ronaldtse wants to merge 1 commit into
mainfrom
fix/remove-git-source-gemfile-deps
Open

fix: drop git-source deps from Gemfile#70
ronaldtse wants to merge 1 commit into
mainfrom
fix/remove-git-source-gemfile-deps

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

  • Drop gem "lutaml-model", github: ... override; fall through to gemspec lutaml-model ~> 0.8.0
  • Replace gem "plurimath", github: ... with gem "plurimath", "~> 0.11.3"
  • Verified locally: bundle exec rake spec → 398 examples, 0 failures

Why

A release gem must not carry gem "X", github: "..." in its Gemfile: the
release CI workflow (metanorma/ci/.github/workflows/rubygems-release.yml)
deletes Gemfile.lock and re-resolves with bundle install, which
cannot reliably materialize git-source deps.

Both lutaml-model 0.8.16 and plurimath 0.11.3 are published on
RubyGems, so the overrides are unnecessary.

plurimath is not in the gemspec (it is an optional conversion
dependency — users add it to their own Gemfile if they want math
output). It must remain in this gem's Gemfile only because the spec
suite exercises Unitsml::Formula#to_plurimath.

Test plan

  • bundle install resolves both from RubyGems
  • bundle exec rake spec passes (398/398)
  • CI on this PR (rake workflow) passes

Release gems must not depend on git sources. The Gemfile overrides
for lutaml-model and plurimath point at GitHub main, but both gems
are already published on RubyGems:

- lutaml-model 0.8.16 (gemspec already declares ~> 0.8.0)
- plurimath 0.11.3 (not a runtime dep; needed only by specs that
  exercise Unitsml::Formula#to_plurimath)

Changes:

- Drop the `gem "lutaml-model", github: ...` line; fall through to
  the gemspec constraint (~> 0.8.0).
- Replace `gem "plurimath", github: ...` with `gem "plurimath",
  "~> 0.11.3"` so the Gemfile pulls the published gem.

Verified locally: bundle install resolves both from RubyGems, and
bundle exec rake spec passes (398 examples, 0 failures).
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.

1 participant