dfm 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dfm.rb +4 -4
- data/lib/dfm/version.rb +3 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e6b3f3cbf55e637f9e2f99a418f3bd9b9fadb7c
|
4
|
+
data.tar.gz: b9a257e7f0f1c982a2fb81fef90d2204c2706423
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f79472ac778fa0889de860da9542871aa22b2b987124679e14a9e353b752dd5724b450d601b17560be6063f321570f8aa89ee447eb9fff4159520e9d01b2b5f0
|
7
|
+
data.tar.gz: 593b465d2f32a582e9b84e16164795b86c75d6ef9a93dd20acdaa573b6ec2b6292d88d174daef80bd6801552508baf73bbc1928a53c3ec7f28dff07cc22da3c4
|
data/lib/dfm.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# Title:: Duplicate File Manager (dfm)
|
2
2
|
# Author:: Daniel P. Clark (mailto:6ftdan@gmail.com)
|
3
3
|
# License:: MIT License
|
4
4
|
['digest','json','dfm/version'].each {|r|require r;}
|
5
5
|
# Class instance of DFM generates a list of files recursively
|
6
|
-
# and indexes
|
6
|
+
# and indexes them by both MD5 hexdigest and file name
|
7
7
|
# Optional parameters include file extension filters with
|
8
8
|
# { :filters => ["jpg", "png"] } and path suh as { :path => "./" }
|
9
9
|
class DFM
|
@@ -48,7 +48,7 @@ class DFM
|
|
48
48
|
end
|
49
49
|
|
50
50
|
# Start a fresh recursive search with empty hash indexes.
|
51
|
-
# Accepts parameter for path. (See filters for
|
51
|
+
# Accepts parameter for path. (See filters for setting file extensions.)
|
52
52
|
def recurse( path )
|
53
53
|
@files_by_hexdigest = {}
|
54
54
|
@files_by_name = {}
|
@@ -95,4 +95,4 @@ class DFM
|
|
95
95
|
def print_json( hash )
|
96
96
|
puts JSON.pretty_generate( hash )
|
97
97
|
end
|
98
|
-
end
|
98
|
+
end
|
data/lib/dfm/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dfm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel P. Clark / 6ftDan(TM)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Duplicate File Manager.
|
13
|
+
description: Duplicate File Manager. Recursively index duplicate files!
|
14
14
|
email: webmaster@6ftdan.com
|
15
15
|
executables:
|
16
16
|
- dfm
|
@@ -34,7 +34,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
34
34
|
requirements:
|
35
35
|
- - ">="
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 1.9.1
|
38
38
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - ">="
|