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

CI: Grape Envfile tweaks #2717

Merged
merged 3 commits into from
Jun 14, 2024
Merged

CI: Grape Envfile tweaks #2717

merged 3 commits into from
Jun 14, 2024

Conversation

fallwith
Copy link
Contributor

@fallwith fallwith commented Jun 13, 2024

For Grape...

  • Simplify the logic to pin Grape v1 to use Rack v3.0 while accommodating nil versions (signifying "latest") and looking at the Ruby version in play
  • Require (as Grape itself does) Ruby v2.6+ for using the latest Grape

For Grape...

- Simplify the stripping away of Bundler pessimistic locking syntax to
  get at a raw Grape version string
- Require (as Grape itself does) Ruby v2.6+ for using the latest Grape
fallwith added 2 commits June 13, 2024 15:53
We need to give Rack <= v3.0 to Grape v1.x.

We may have a Grape version string in play, or it might be nil. When it
is nil, we can count on Grape 2 being used for Ruby 3+ and Grape 1 being
used for Ruby 2. So key off of both the Grape version and Ruby version
when deciding to force Rack v3.0.
rework grape/rack version pinning logic and comment
Copy link
Contributor

SimpleCov Report

Coverage Threshold
Line 93.73% 93%
Branch 70.86% 50%

@fallwith fallwith merged commit 2a2d251 into dev Jun 14, 2024
140 checks passed
@fallwith fallwith deleted the oatmeal_cookies branch June 14, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants