archivededup 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -0
- data/exe/archivededup +6 -6
- data/lib/archivededup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bfe41820fb047f7d674dc0bd98f39695577e5db0fe8297e2f26f07b1bcc14dc
|
4
|
+
data.tar.gz: 61c329b8f6959c1e39d187bb66f03ef84163f6ca8485b5714de8a569d47f6f62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0614ce644261167a7db4d030a4b234a30868197203b55bf76eef107ba998e06e5aabef8914abbd19e0100b537391fb74245cbf3db8e5704e0662fa98be3c7c5
|
7
|
+
data.tar.gz: 989de2f7fa26e04aa9e8aef156b29c9d9bf92d1924885eceab68f9498757385ca60cfdcd8ce77faaca0c98787b769e6b4882b423d162ccbff74895254633605c
|
data/Gemfile.lock
CHANGED
data/exe/archivededup
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
2
3
|
#
|
3
4
|
|
4
5
|
require 'dbm'
|
@@ -71,17 +72,16 @@ when /check|remove/
|
|
71
72
|
|
72
73
|
db.each_dup do |k, r|
|
73
74
|
|
74
|
-
|
75
|
-
files = r['files'].filter { |f| f !~ /\/(?:Documents|Archive\/Prairie Music)\// }
|
75
|
+
files = r['files']
|
76
76
|
|
77
77
|
# If the filter removed all files, well, do nothing!
|
78
78
|
next if files.length < 2
|
79
79
|
|
80
80
|
# Skip files with unexpected file extensions.
|
81
|
-
unless files.find { |f| f =~ /\.(?:png|jpeg|jpg|mp4|mov|mp3|mod|xfc|gif|m4v|3g2|mpg)$/i }
|
82
|
-
|
83
|
-
|
84
|
-
end
|
81
|
+
# unless files.find { |f| f =~ /\.(?:png|jpeg|jpg|mp4|mov|mp3|mod|xfc|gif|m4v|3g2|mpg)$/i }
|
82
|
+
# files.each { |f| puts "Not deduping #{f}. Not a supported file extension."}
|
83
|
+
# next
|
84
|
+
# end
|
85
85
|
|
86
86
|
filekeep = filepicker.pick(files)
|
87
87
|
|
data/lib/archivededup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: archivededup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Baskinger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Deduplicate files from an archive directory using a database.
|
14
14
|
email:
|