Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always load version.rb, suppress legacy deprecation warning #306

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

vlad-pisanov
Copy link
Contributor

Two minor improvements:

  1. Automatically load version.rb, so that Contracts::VERSION is always accessible to user
  2. Hide the gem deprecation warning if the user is already on the latest version

Comment on lines 17 to 22
if Contracts::VERSION < "0.17"
s.post_install_message = "
0.16.x will be the supporting Ruby 2.x and be feature frozen (only fixes will be released)
For Ruby 3.x use 0.17.x or later
"
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might as well just remove the whole message for 0.17+ = master

@PikachuEXE PikachuEXE merged commit b1f5291 into egonSchiele:master Sep 23, 2024
5 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.

2 participants