hash-that-tree 0.0.7 → 0.0.8

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hash-that-tree (0.0.6)
4
+ hash-that-tree (0.0.8)
5
5
  thor
6
6
 
7
7
  GEM
data/bin/hashthattree CHANGED
@@ -1,21 +1 @@
1
- require 'thor'
2
- require_relative '../lib/compare'
3
-
4
- # Command Line Program that takes two directories and creates a MD5 hash for every file contained within.
5
- # It then builds a result set that compares files with the same name and allows for them to be outputted
6
- # as a csv string
7
- module HashThatTree
8
- class CLI < Thor
9
- option :recurse
10
-
11
- desc "compare FOLDER1 FOLDER2", "Create a hash of all files in the folders, compare them and output the results in CSV format"
12
- def compare(folder1, folder2)
13
- htt = CompareMD5.new(folder1, folder2)
14
- htt.compare
15
- htt.display_results
16
- end
17
- end
18
-
19
- CLI.start(ARGV)
20
-
21
- end
1
+ require_relative '../lib/cli'
@@ -4,14 +4,14 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "hash-that-tree"
7
- gem.version = "0.0.7"
7
+ gem.version = "0.0.8"
8
8
  gem.authors = ["John Ryan"]
9
9
  gem.email = ["555john@gmail.com"]
10
10
  gem.description = "Command line app that compares the MD5 hashes of the files in different folders"
11
11
  gem.summary = "Allows the user to enter folder locations iterating through the files, creating and comparing the MD5 hashes of the files with the same name"
12
12
  gem.homepage = "http://github.com/jnyryan/hash-that-tree"
13
13
  gem.files = `git ls-files`.split($/)
14
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
14
+ #gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.file(f) }
15
15
  gem.executable = 'hashthattree'
16
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
17
  gem.require_paths = ["lib"]
data/lib/cli.rb ADDED
@@ -0,0 +1,21 @@
1
+ require 'thor'
2
+ require_relative 'compare'
3
+
4
+ # Command Line Program that takes two directories and creates a MD5 hash for every file contained within.<br/>
5
+ # It then builds a result set that compares files with the same name and allows for them to be outputted
6
+ # as a csv string
7
+ module HashThatTree
8
+ class CLI < Thor
9
+ option :recurse
10
+
11
+ desc "compare FOLDER1 FOLDER2", "Create a hash of all files in the folders, compare them and output the results in CSV format"
12
+ def compare(folder1, folder2)
13
+ htt = CompareMD5.new(folder1, folder2)
14
+ htt.compare
15
+ htt.display_results
16
+ end
17
+ end
18
+
19
+ CLI.start(ARGV)
20
+
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash-that-tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -44,6 +44,7 @@ files:
44
44
  - Rakefile
45
45
  - bin/hashthattree
46
46
  - hash-that-tree.gemspec
47
+ - lib/cli.rb
47
48
  - lib/compare.rb
48
49
  - spec/doc/created.rid
49
50
  - spec/doc/images/brick.png