lib/nanoc.rb in nanoc-1.1.3 vs lib/nanoc.rb in nanoc-1.2

- old
+ new

@@ -1,11 +1,12 @@ module Nanoc - VERSION = '1.1.3' + VERSION = '1.2' def self.ensure_in_site unless in_site? - $stderr.puts 'ERROR: The current working directory does not seem to be a valid/complete nanoc site directory; aborting.' unless $quiet + $stderr.puts 'ERROR: The current working directory does not seem to ' + + 'be a valid/complete nanoc site directory; aborting.' unless $quiet exit end end private @@ -15,17 +16,17 @@ return false unless File.directory?('layouts') return false unless File.directory?('lib') return false unless File.directory?('output') return false unless File.directory?('tasks') return false unless File.directory?('templates') - return false unless File.exist?('config.yaml') return false unless File.exist?('meta.yaml') return false unless File.exist?('Rakefile') true end end +require File.dirname(__FILE__) + '/page.rb' require File.dirname(__FILE__) + '/creator.rb' require File.dirname(__FILE__) + '/compiler.rb' require File.dirname(__FILE__) + '/enhancements.rb'