lib/zold/commands/diff.rb in zold-0.14.52 vs lib/zold/commands/diff.rb in zold-0.14.53

- old
+ new

@@ -26,11 +26,10 @@ require 'rainbow' require_relative 'args' require_relative '../log' require_relative '../patch' require_relative '../wallet' -require_relative '../atomic_file' # DIFF command. # Author:: Yegor Bugayenko (yegor256@gmail.com) # Copyright:: Copyright (c) 2018 Yegor Bugayenko # License:: MIT @@ -66,10 +65,10 @@ patch = Patch.new(@wallets, log: @log) cps.each do |c| patch.join(Wallet.new(c[:path])) end before = @wallets.find(id) do |wallet| - AtomicFile.new(wallet.path).read + File.read(wallet.path) end after = '' Tempfile.open(['', Wallet::EXTENSION]) do |f| patch.save(f.path, overwrite: true) after = File.read(f)