Skip to content

Commit c244b28

Browse files
committed
Fix 3.4 build
1 parent c7300be commit c244b28

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

dry-logic.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
2929
spec.required_ruby_version = ">= 3.1.0"
3030

3131
# to update dependencies edit project.yml
32+
spec.add_runtime_dependency "bigdecimal"
3233
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
3334
spec.add_runtime_dependency "dry-core", "~> 1.1"
3435
spec.add_runtime_dependency "zeitwerk", "~> 2.6"

lib/dry/logic/predicates.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def includes?(value, input)
144144
else
145145
false
146146
end
147-
rescue TypeError
147+
rescue ::TypeError
148148
false
149149
end
150150

@@ -186,7 +186,7 @@ def uuid_v7?(input) = format?(UUIDv7, input)
186186
def uuid_v8?(input) = format?(UUIDv8, input)
187187

188188
def uri?(schemes, input)
189-
uri_format = ::URI::DEFAULT_PARSER.make_regexp(schemes)
189+
uri_format = ::URI::RFC2396_PARSER.make_regexp(schemes)
190190
format?(uri_format, input)
191191
end
192192

spec/support/warnings.rb

+1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
Warning.ignore(%r{rspec/core})
88
Warning.ignore(%r{rspec/mocks})
99
Warning.ignore(/codacy/)
10+
Warning.ignore(/readline/)
1011
Warning[:experimental] = false if Warning.respond_to?(:[])

0 commit comments

Comments
 (0)