Skip to content

Document pessimistic operator and eval_gemfile in gemfile(5) - #9719

Merged
hsbt merged 1 commit into
masterfrom
gemfile-man-guides-port
Jul 27, 2026
Merged

Document pessimistic operator and eval_gemfile in gemfile(5)#9719
hsbt merged 1 commit into
masterfrom
gemfile-man-guides-port

Conversation

@hsbt

@hsbt hsbt commented Jul 27, 2026

Copy link
Copy Markdown
Member

The handwritten Gemfile guide on guides.rubygems.org is planned to be replaced by the generated gemfile(5) page. Comparing the two ahead of that, two pieces of the guide have no equivalent in the man page: the meaning of the pessimistic specifier ~> and the eval_gemfile method. This ports both now so the replacement will not lose information, rewritten to match the man page style. The ~> explanation goes into the VERSION section under GEMS, and eval_gemfile gets a new EVAL_GEMFILE section after GEMSPEC. I checked Dsl#eval_gemfile to confirm that relative paths are resolved against the directory of the file containing the call. The roff page was regenerated with rake man:build pinned to the current MAN_PAGES_DATE, so only gemfile.5 changes.

The handwritten Gemfile guide on guides.rubygems.org is planned to be
replaced by this generated man page, but its explanation of the ~>
specifier and the eval_gemfile method have no equivalent here. Port
both ahead of the replacement so the information is not lost.
@hsbt
hsbt force-pushed the gemfile-man-guides-port branch from c0a22e8 to 2166ff6 Compare July 27, 2026 07:12
@hsbt
hsbt merged commit 8a9d6e8 into master Jul 27, 2026
107 checks passed
@hsbt
hsbt deleted the gemfile-man-guides-port branch July 27, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant