Make plugin load order deterministic

This commit is contained in:
Robin Ward 2014-11-03 15:26:06 -05:00
parent 2c7b47fc40
commit f361adef44
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class Plugin::Instance
def self.find_all(parent_path)
[].tap { |plugins|
# also follows symlinks - http://stackoverflow.com/q/357754
Dir["#{parent_path}/**/*/**/plugin.rb"].each do |path|
Dir["#{parent_path}/**/*/**/plugin.rb"].sort.each do |path|
source = File.read(path)
metadata = Plugin::Metadata.parse(source)
plugins << self.new(metadata, path)