SPEC: Require "status" to be Integer and >= 100 (BREAKING CHANGE) by olleolleolle · Pull Request #1662 · rack/rack · GitHub
Skip to content

SPEC: Require "status" to be Integer and >= 100 (BREAKING CHANGE) - #1662

Merged
ioquatix merged 1 commit into
rack:masterfrom
olleolleolle:integer-gt-100-in-spec
May 24, 2020
Merged

ioquatix merged 1 commit into
rack:masterfrom
olleolleolle:integer-gt-100-in-spec

Conversation

@olleolleolle

@olleolleolle olleolleolle commented May 24, 2020 •

Copy link
Copy Markdown
Contributor

This PR adds a SPEC change: "require Status to be an Integer >100".

The change is: check status.is_a?(Integer) before trying the >=.

  • Tests which tested the previous, lenient #to_i-accepting behavior: dropped

See comment in #1644

@olleolleolle
olleolleolle force-pushed the integer-gt-100-in-spec branch from 1ec7944 to 362d40c Compare May 24, 2020 13:55
@ioquatix

Copy link
Copy Markdown
Member

@ioquatix ioquatix added the SPEC label May 24, 2020
@ioquatix ioquatix added this to the v3.0.0 milestone May 24, 2020
  - rack#1644 refers to the idea "require Status to be an Integer"
  - This implements that change
@olleolleolle
olleolleolle force-pushed the integer-gt-100-in-spec branch from 362d40c to 5063b3d Compare May 24, 2020 14:22
@olleolleolle

Copy link
Copy Markdown
Contributor Author

@ioquatix Not many BREAKING CHANGE markers in there, I imitated one I found.

@olleolleolle olleolleolle changed the title SPEC: Require "status" to be Integer and >= 100 SPEC: Require "status" to be Integer and >= 100 (BREAKING CHANGE) May 24, 2020
@ioquatix
ioquatix merged commit ba25ade into rack:master May 24, 2020
@ioquatix

Copy link
Copy Markdown
Member

@olleolleolle
olleolleolle deleted the integer-gt-100-in-spec branch May 24, 2020 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants