lib/openstudio/extension.rb in openstudio-extension-0.2.6 vs lib/openstudio/extension.rb in openstudio-extension-0.3.0
- old
+ new
@@ -89,10 +89,11 @@
ObjectSpace.each_object(::Class) do |obj|
next if !obj.ancestors.include?(OpenStudio::Extension::Extension)
result << obj
end
+
return result.uniq
end
##
# Module method to return measure directories from all extensions
@@ -103,11 +104,11 @@
all_extensions.each do |obj|
dir = obj.new.measures_dir
result << dir if dir
rescue StandardError
end
- return result.uniq
+ return result.uniq.sort
end
##
# Module method to return file directories from all extensions
##
@@ -117,10 +118,10 @@
all_extensions.each do |obj|
dir = obj.new.files_dir
result << dir if dir
rescue StandardError
end
- return result.uniq
+ return result.uniq.sort
end
##
# Module method to check for duplicate file, measure, or measure resource names across all extensions
#