lib/schema_dev/gemfiles.rb in schema_dev-2.0.4 vs lib/schema_dev/gemfiles.rb in schema_dev-3.0.0

- old
+ new

@@ -16,16 +16,16 @@ abspath = @dst_root + relpath target_abspath = Pathname.new(".").realpath + relpath _copy(relpath, 'Gemfile.base') - config.rails.each do |rails| + config.activerecord.each do |activerecord| - rails_path = relpath + "rails-#{rails}" - _copy(rails_path, 'Gemfile.base') + activerecord_path = relpath + "activerecord-#{activerecord}" + _copy(activerecord_path, 'Gemfile.base') config.db.each do |db| - _copy(rails_path, "Gemfile.#{db}") + _copy(activerecord_path, "Gemfile.#{db}") end end if `diff -rq #{abspath} gemfiles 2>&1 | grep -v lock`.length == 0 return false