lib/schema_dev/gemfiles.rb in schema_dev-1.4.0 vs lib/schema_dev/gemfiles.rb in schema_dev-2.0.0

- old
+ new

@@ -1,16 +1,16 @@ require 'pathname' +require_relative 'templates' + module SchemaDev module Gemfiles extend self - TEMPLATES_ROOT = Pathname.new(__FILE__).dirname.parent.parent + "templates" - def build(config) Dir.mktmpdir do |tmpdir| - @src_root = TEMPLATES_ROOT + @src_root = Templates.root @dst_root = Pathname.new(tmpdir).realpath relpath = Pathname.new("gemfiles") abspath = @dst_root + relpath target_abspath = Pathname.new(".").realpath + relpath