Skip to content

Commit

Permalink
Merge pull request #12 from adam3smith/patch-1
Browse files Browse the repository at this point in the history
File.exists doesn't work for ruby >3.2
  • Loading branch information
inukshuk authored Jan 22, 2025
2 parents 5663c11 + e7f0901 commit e2919da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/csl/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def validate(node)
case
when node =~ /^\s*</
@validator[@schema, node]
when File.exists?(node)
when File.exist?(node)
@validator[@schema, File.open(node, 'r:UTF-8')]
else
glob = Dir.glob(node)
Expand Down

0 comments on commit e2919da

Please sign in to comment.