lib/snapdragon/file_base.rb in snapdragon-0.1.8 vs lib/snapdragon/file_base.rb in snapdragon-0.1.9

- old
+ new

@@ -16,11 +16,11 @@ f.close require_paths = [] lines.each do |line| - if line =~ /\/\/+\s+require_relative\(['"](.+)['"]\)\s+$/ + if line =~ /\/\/+\s+require_relative\(['"](.+)['"]\).*$/ require_paths << ::File.join(::File.dirname(@path.path), $1) end end return require_paths @@ -39,7 +39,10 @@ # I was getting some weirdness I think because of Cyclic Requires between # require_file.rb and file_base.rb so I simply moved require_file.rb content # into file_base.rb and it seemed to resolve it. module Snapdragon class RequireFile < Snapdragon::FileBase + def absolute_path + @path.absolute_path() + end end end