Skip to content

Conversation

@olleolleolle
Copy link
Contributor

@olleolleolle olleolleolle commented May 24, 2020

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
Member

Great work, can you please add an entry to the changelog as this is a breaking change.

@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
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
Member

Thanks for your effort.

@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