lib/eac_launcher/instances/base.rb in eac_launcher-0.1.4 vs lib/eac_launcher/instances/base.rb in eac_launcher-0.1.5

- old
+ new

@@ -61,12 +61,11 @@ def current_cache stereotypes.each do |s| return s.warp_class.new(self) if s.warp_class end - raise ::EacLauncher::Instances::Error, "None stereotype of \"#{to_root_path}\" has " \ - "subclass \"CurrentCache\" (#{stereotypes.join(', ')})" + self end private def publish?(stereotype) @@ -97,10 +96,10 @@ r end def scan_subdirectories(path) Dir.entries(path).each do |basename| - next if basename == '.' || basename == '..' + next if %w[. ..].include?(basename) sp = path.subpath(basename) next unless File.directory?(sp) yield(sp) end end