lib/roadie/filesystem_provider.rb in roadie-3.0.5 vs lib/roadie/filesystem_provider.rb in roadie-3.1.0.rc1

- old
+ new

@@ -6,11 +6,10 @@ class FilesystemProvider # Raised when FilesystemProvider is asked to access a file that lies above # the base path. class InsecurePathError < Error; end - include AssetProvider attr_reader :path def initialize(path = Dir.pwd) @path = path end @@ -32,9 +31,12 @@ else basename = File.basename file_path raise CssNotFound.new(basename, %{#{file_path} does not exist. (Original name was "#{name}")}, self) end end + + def to_s() inspect end + def inspect() "#<#{self.class} #@path>" end private def build_file_path(name) raise InsecurePathError, name if name.include?("..") File.join(@path, name[/^([^?]+)/])