Skip to content

Add rack 2 backwards compat#4

Merged
nomadium merged 1 commit into
nomadium:masterfrom
oneiros:relax-rack-requirement
Dec 2, 2024
Merged

Add rack 2 backwards compat#4
nomadium merged 1 commit into
nomadium:masterfrom
oneiros:relax-rack-requirement

Conversation

@oneiros

@oneiros oneiros commented Dec 2, 2024

Copy link
Copy Markdown
Contributor

Fixes #2.

Please note that I had to add a tiny little thing to make this work with rack 2: rack 2 two requires a rack.input, other than that it is 100% compatible with version 3 when it comes to the methods that linzer uses.

I did make sure the specs pass with rack 2 and 3, but this PR does not include any fancy multi-version test setup (e.g. with the appraisal gem).

I consider this to be more of a stop-gap measure for now. Ideally I would like the requirement on rack be dropped altogether, but I will need to write this up in an issue before that can be discussed in any detail.

Also, if you do not like this change and/or do not wish to relax the version requirement in this or any other way, I totally understand this.

`rack` version 2 two requires a `rack.input`, other than that
it is 100% compatible with version 3 when it comes to the
methods that linzer uses.

Relaxing the version requirement this way allows people to
adopt linzer that are stuck on `rack` 2 for whatever reason.
@nomadium
nomadium merged commit 7481f31 into nomadium:master Dec 2, 2024
@nomadium

nomadium commented Dec 2, 2024

Copy link
Copy Markdown
Owner

Thanks for this PR @oneiros.

Earlier this year I considered exactly this, it would be a good idea to relax rack version requirement but didn't get to it for whatever reason.

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.

Relax rack version requirements

2 participants