lib/jekyll/zettel.rb in jekyll-zettel-0.6.0 vs lib/jekyll/zettel.rb in jekyll-zettel-0.6.1
- old
+ new
@@ -64,11 +64,11 @@
def create_dir_defensively(infotype, slug, file)
dir = File.dirname(file)
if File.directory?(dir)
if File.exist?(file)
- Jekyll.logger.error Jekyll::Zettel::LOG_KEY, "#{infotype} `#{slug}` already present"
+ Jekyll.logger.error LOG_KEY, "#{infotype} `#{slug}` already present"
nil
else
dir
end
else
@@ -77,21 +77,21 @@
end
def args_empty?(args)
return false unless args.empty?
- Jekyll.logger.error Jekyll::Zettel::LOG_KEY, 'Missing argument slug'
- Jekyll.logger.info Jekyll::Zettel::LOG_KEY, 'usage: jekyll scaffold --glosse <slug>'
+ Jekyll.logger.error LOG_KEY, 'Missing argument slug'
+ Jekyll.logger.info LOG_KEY, 'usage: jekyll scaffold --glosse <slug>'
true
end
end
end
+require 'jekyll/commands/scaffold'
require 'jekyll/zettel/globals'
-require 'jekyll/zettel/references'
+require 'jekyll/zettel/glosse'
require 'jekyll/zettel/reference'
-require 'jekyll/zettel/timeline'
+require 'jekyll/zettel/references'
require 'jekyll/zettel/tags'
-require 'jekyll/zettel/zettelkasten'
-require 'jekyll/commands/scaffold'
-require 'jekyll/zettel/glosse'
+require 'jekyll/zettel/timeline'
require 'jekyll/zettel/zettel'
+require 'jekyll/zettel/zettelkasten'