lib/octopress-ink/assets/asset.rb in octopress-ink-1.0.0.rc.33 vs lib/octopress-ink/assets/asset.rb in octopress-ink-1.0.0.rc.34
- old
+ new
@@ -53,19 +53,19 @@
files = files.flatten.reject { |f| !exists? f }
if files.empty?
raise IOError.new "Could not find #{File.basename(file)} at #{file}"
end
- @found_file = Pathname.new files[0]
+ @found_file = files[0]
end
end
def ext
File.extname(filename)
end
def read
- path.read
+ File.read(path)
end
def add
Plugins.static_files << StaticFile.new(path, destination)
end