Skip to content

🎨 Better gem_version loading - #724

Merged
pboling merged 1 commit into
mainfrom
fix/gem_version_load
May 21, 2026
Merged

pboling merged 1 commit into
mainfrom
fix/gem_version_load

Conversation

@pboling

@pboling pboling commented May 21, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 21, 2026 09:55
@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Health
oauth2 100% 100% ✔
Summary 100% (525 / 525) 100% (174 / 174) ✔

Minimum allowed line rate is 100%

@codecov

codecov Bot commented May 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ad41a5f) to head (a8a746f).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #724   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines          562       562           
  Branches       171       171           
=========================================
  Hits           562       562           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 26218911477

Coverage remained the same at 100.0%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 525
Covered Lines: 525
Line Coverage: 100.0%
Relevant Branches: 174
Covered Branches: 174
Branch Coverage: 100.0%
Branches in Coverage %: Yes
Coverage Strength: 76.65 hits per line

💛 - Coveralls

Copilot AI left a comment

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.

Pull request overview

This PR improves how the gemspec decides whether to load lib/oauth2/version.rb via Kernel.load (for coverage) vs require_relative, by switching from a string comparison on RUBY_VERSION to a proper Gem::Version comparison.

Changes:

  • Replace RUBY_VERSION >= "3.1" with Gem.ruby_version >= Gem::Version.new("3.1") to ensure correct semantic version comparison in the gemspec.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pboling
pboling merged commit 171609a into main May 21, 2026
43 checks passed
@pboling
pboling deleted the fix/gem_version_load branch May 21, 2026 10:20
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.

4 participants