lib/sup/source.rb in sup-0.9.1 vs lib/sup/source.rb in sup-0.10

- old
+ new

@@ -205,9 +205,10 @@ @source_mutex.synchronize { @sources.values }.sort_by { |s| s.id }.partition { |s| !s.archived? }.flatten end def source_for uri; sources.find { |s| s.is_source_for? uri }; end def usual_sources; sources.find_all { |s| s.usual? }; end + def unusual_sources; sources.find_all { |s| !s.usual? }; end def load_sources fn=Redwood::SOURCE_FN source_array = (Redwood::load_yaml_obj(fn) || []).map { |o| Recoverable.new o } @source_mutex.synchronize do @sources = Hash[*(source_array).map { |s| [s.id, s] }.flatten]