lib/nanoc.rb in nanoc-2.1 vs lib/nanoc.rb in nanoc-2.1.1

- old
+ new

@@ -1,9 +1,9 @@ module Nanoc # The current nanoc version. - VERSION = '2.1' + VERSION = '2.1.1' # Generic error. Superclass for all nanoc-specific errors. class Error < RuntimeError ; end module Errors # :nodoc: @@ -61,10 +61,10 @@ # # +path+:: An array containing path segments. This path is relative to the # directory this file (nanoc.rb) is in. Can contain wildcards. def self.load(*path) full_path = [ File.dirname(__FILE__), 'nanoc' ] + path - Dir[File.join(full_path)].each { |f| require f } + Dir[File.join(full_path)].sort.each { |f| require f } end end # Load requirements