Skip to content

Commit

Permalink
Change File.exists? -> File.exist?
Browse files Browse the repository at this point in the history
  • Loading branch information
kwkwan committed Dec 23, 2024
1 parent 6cb7610 commit 1fe7490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _plugins/jekyll-plantuml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def initialize(tag_name, markup, tokens)
def render(context)
site = context.registers[:site]
name = Digest::MD5.hexdigest(super)
if !File.exists?(File.join(site.dest, "uml/#{name}.svg"))
if !File.exist?(File.join(site.dest, "uml/#{name}.svg"))
uml = File.join(site.source, "uml/#{name}.uml")
svg = File.join(site.source, "uml/#{name}.svg")
if File.exists?(svg)
if File.exist?(svg)
puts "File #{svg} already exists (#{File.size(svg)} bytes)"
else
FileUtils.mkdir_p(File.dirname(uml))
Expand Down

0 comments on commit 1fe7490

Please sign in to comment.