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

Improve deprecation for status_code with removed/changed stati #2206

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

Earlopain
Copy link
Contributor

The caller before warn looks like this:

/home/earlopain/Documents/rack/lib/rack/utils.rb:590:in `fetch'
/home/earlopain/Documents/rack/lib/rack/utils.rb:590:in `status_code'
/my/own/code.rb:3:in `<main>'

Intuitively (and from docs at https://ruby-doc.org/3.3.2/Kernel.html#method-i-warn) I would say uplevel needs to be 2 but that doesn't work so 3 it is.

The caller before `warn` looks like this:
```
/home/earlopain/Documents/rack/lib/rack/utils.rb:590:in `fetch'
/home/earlopain/Documents/rack/lib/rack/utils.rb:590:in `status_code'
/my/own/code.rb:3:in `<main>'
```
@ioquatix ioquatix merged commit 9ca3d90 into rack:main Jun 11, 2024
15 checks passed
@Earlopain Earlopain deleted the status-code-uplevel branch June 12, 2024 05:16
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.

None yet

3 participants