Skip to content

Commit

Permalink
Fix 3.4 build
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Jan 3, 2025
1 parent c7300be commit c244b28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions dry-logic.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = ">= 3.1.0"

# to update dependencies edit project.yml
spec.add_runtime_dependency "bigdecimal"
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
spec.add_runtime_dependency "dry-core", "~> 1.1"
spec.add_runtime_dependency "zeitwerk", "~> 2.6"
Expand Down
4 changes: 2 additions & 2 deletions lib/dry/logic/predicates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def includes?(value, input)
else
false
end
rescue TypeError
rescue ::TypeError
false
end

Expand Down Expand Up @@ -186,7 +186,7 @@ def uuid_v7?(input) = format?(UUIDv7, input)
def uuid_v8?(input) = format?(UUIDv8, input)

def uri?(schemes, input)
uri_format = ::URI::DEFAULT_PARSER.make_regexp(schemes)
uri_format = ::URI::RFC2396_PARSER.make_regexp(schemes)
format?(uri_format, input)
end

Expand Down
1 change: 1 addition & 0 deletions spec/support/warnings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
Warning.ignore(%r{rspec/core})
Warning.ignore(%r{rspec/mocks})
Warning.ignore(/codacy/)
Warning.ignore(/readline/)
Warning[:experimental] = false if Warning.respond_to?(:[])

0 comments on commit c244b28

Please sign in to comment.