file-digests 0.0.30 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/file-digests.rb +5 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99b58aede8267994cc69da0ac1fd2e35d6661fd666257e9f3dfcde5054b3b6f8
4
- data.tar.gz: 4b733dcf4be1f14b4a08931d15d0531c18e161f3d6d3af3e3025b36266f67e9d
3
+ metadata.gz: c7a7259116dbf913b55651133e3bcb5e5ed545bd42e9bb63b1e5f83fb7b98a57
4
+ data.tar.gz: 17915ee54fceff38c52d451db21648b15fb0a3ef4c595df7736b7e077dbbb10e
5
5
  SHA512:
6
- metadata.gz: 9cf4c3df2b8f206b54689f2506de474ca3b021c572869765caf6e1424dac73a7c6dca3b67918ba5cb88f712353febe9aebe5fc40f7da24f6dd4019300b052436
7
- data.tar.gz: cb0904f141e8861c9923647214c92bb8ce022952c53e8a96cee9819a43f4192bf550b47c927cc0ea8f5a16f2c58c3013561555c2afde9c093dd6cd7997f25c94
6
+ metadata.gz: d186110615604c8a833f213cf5dee0f41e19992bc34b335f59e8126ad4dc5995a5601ec9ac0559b7fa930b58c9e8ee11a258a5392dd4f4433c21765ee1e99b1b
7
+ data.tar.gz: ed21957d8217ae64d8aa90aec4fd81d680bd1acbfc2115f59c09acc61510b23b28fcef7083ecd51a5ce854f52d2ec8aab4b79b53599975c18b9d71f307d19f7a
data/lib/file-digests.rb CHANGED
@@ -229,6 +229,7 @@ class FileDigests
229
229
  end
230
230
 
231
231
  nested_transaction do
232
+ puts "Tracking renames..." if @options[:verbose]
232
233
  track_renames
233
234
  end
234
235
 
@@ -239,6 +240,7 @@ class FileDigests
239
240
  print_missing_files
240
241
  if !@options[:test_only] && (@options[:auto] || confirm("Remove missing files from the database"))
241
242
  nested_transaction do
243
+ puts "Removing missing files..." if @options[:verbose]
242
244
  remove_missing_files
243
245
  end
244
246
  end
@@ -249,6 +251,7 @@ class FileDigests
249
251
  if any_missing_files? || any_likely_damaged? || any_exceptions?
250
252
  STDERR.puts "ERROR: New digest algorithm will not be in effect until there are files that are missing, likely damaged, or processed with an exception."
251
253
  else
254
+ puts "Updating database to a new digest algorithm..." if @options[:verbose]
252
255
  @new_digests.each do |old_digest, new_digest|
253
256
  update_digest_to_new_digest new_digest, old_digest
254
257
  end
@@ -265,6 +268,8 @@ class FileDigests
265
268
 
266
269
  print_counters
267
270
  end
271
+
272
+ puts "Performing database maintenance..." if @options[:verbose]
268
273
  execute "PRAGMA optimize"
269
274
  execute "VACUUM"
270
275
  execute "PRAGMA wal_checkpoint(TRUNCATE)"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file-digests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.30
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav Senotrusov