Skip to content

Commit

Permalink
Merge pull request #26 from Insurlytech/fix-for-ruby-3
Browse files Browse the repository at this point in the history
[func] replace .exists deprecated API with .exist
  • Loading branch information
niji-mathieu-viel authored Dec 3, 2024
2 parents 0756cea + a2b4bfa commit 60975c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/poesie
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ opts = OptionParser.new do |opts|
options[:print_date] = true
end
opts.on('-s FILE', '--subst FILE', %q(Path to a YAML file listing all substitutions)) do |path|
Poesie.exit_with_error("The substitutions file #{path} was not found") unless File.exists?(path)
Poesie.exit_with_error("The substitutions file #{path} was not found") unless File.exist?(path)
begin
subst = YAML.load_file(path)
rescue Psych::SyntaxError => e
Expand Down

0 comments on commit 60975c1

Please sign in to comment.