lib/bunch.rb in bunch-0.0.6 vs lib/bunch.rb in bunch-0.0.7

- old
+ new

@@ -12,11 +12,13 @@ end require 'bunch/version' require 'bunch/rack' require 'bunch/middleware' -require 'bunch/caching' +require 'bunch/cache' + +require 'bunch/abstract_node' require 'bunch/directory_node' require 'bunch/file_node' require 'bunch/coffee_node' require 'bunch/sass_node' @@ -39,11 +41,11 @@ else Bunch::FileNode.new(path) end end - private + protected def normalized_path(path) case when File.exist?(path) path when File.exist?(chopped_path = path.sub(%r(\.[^.]*$), '')) @@ -55,16 +57,5 @@ else raise Errno::ENOENT, path.to_s end end end - -#class Module -# def benchmark(meth) -# alias_method "#{meth}_old", meth -# define_method meth do |*args, &blk| -# t = Time.now -# send "#{meth}_old", *args, &blk -# STDERR.puts "Called #{meth} in #{Time.now - t}." -# end -# end -#end