dry-rb / dry-logic

Predicate logic with rule composition
https://dry-rb.org/gems/dry-logic/
MIT License
179 stars 66 forks source link

Fix NameError: uninitialized constant Dry::Logic::Predicates::Methods::URI #90

Open dleidert opened 2 years ago

dleidert commented 2 years ago

This should fix the test errors with Ruby 3.0

  1) predicates uri? [:http, :https] success behaves like predicate 
     Failure/Error: uri_format = URI::DEFAULT_PARSER.make_regexp(schemes)

     NameError:
       uninitialized constant Dry::Logic::Predicates::Methods::URI

Please check with earlier Ruby versions.