The version number is not accessible from code
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
Research direction
The version currently lives in a top-level file in the repository, which Ruby code cannot require. Create lib/cucumber/core/version.rb defining Cucumber::Core::VERSION with the same value, then point the existing version reference at the new constant. Done when require 'cucumber/core/version' works and Cucumber::Core::VERSION returns the released version string. Confirm the gem still builds with the same version.
Written by the indexing model from the issue text.
Description
🤔 What's the problem you've observed?
In supporting Cucumber 11 and 12 together in Aruba, I noticed that Cucumber::Core's version is not available from inside Ruby code since it is stored in a top-level file in the repository. Now, instead of doing something like:
if Cucumber::Core::VERSION >= "19.0.0"
# [...]
end
I have to resort to:
if defined? Cucumber::Core::Event::Base
# [...]
end
✨ Do you have a proposal for making it better?
Move the version to a file lib/cucumber/core/version.rb and store it in a constant Cucumber::Core::VERSION.
📚 Any additional context?
No response
- Dominant language
- Ruby
- Stars
- 36
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cucumber/cucumber-ruby-core
-
Don't know how to get step code to runMay be free again @luke-hill claimed this 568 days ago, and no pull request is open. Open:bug: bug
cucumber/cucumber-ruby-core#275 · 2 comments · 1 assignee ·
-
Dependency DashboardOpen:no_good: wontfix
Difficulty 5/5 Over a week Newbie friendliness 10/100
cucumber/cucumber-ruby-core#223 · 4 comments ·
All issues in cucumber/cucumber-ruby-core
Similar issues
-
f:search improvement user-experience
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
DataDog/datadog-lambda-rb#167 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
alphagov/public-asset-checker#378 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
betagouv/acces-cible#786 ·
Maintainers usually reply within 1 day