Using a little bit of extra code that fakes a Motion Project, Hokkaido should be able to test that it did what it claims (require removal) successfully, and thus be able to provide some feedback (PASS OR FAIL) when trying to port a gem automagically.
module Motion
FILES = []
module Project
module App
class Files
def self.<<(path)
dir = File.expand_path(File.dirname(__FILE__))
path.gsub!("#{dir}/.", "")
Motion::FILES << path
Kernel.require path
end
end
def self.setup(&block)
block.call(self)
end
def self.files
Files
end
end
end
end
Using a little bit of extra code that fakes a Motion Project, Hokkaido should be able to test that it did what it claims (require removal) successfully, and thus be able to provide some feedback (PASS OR FAIL) when trying to port a gem automagically.