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

feature: add except to IndifferntHash #1940

Commits on Aug 21, 2023

  1. feature: add indifferent access support to Hash#except

    It was added in Ruby 3.0 so it would be nice that calling except in a
    `Sinatra::IndifferntHash` supported the indifferent access that the latter
    provides – right now, calling `except(:a)` on `Sinatra::IndifferntHash[a: :a]`
    would not filter the `a` key.
    
    This commits adds indifferent access support to except so that it will exclude
    the passed key independently if the key is passed as a `String` or `Symbol`.
    Santiago Rodriguez committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    35a91c7 View commit details
    Browse the repository at this point in the history
  2. fix: use >= instead of >

    Co-authored-by: Eloy Pérez <ej.perezgomez@gmail.com>
    santiagorodriguez96 and epergo committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    6c7631a View commit details
    Browse the repository at this point in the history