Rework diff slightly

This commit is contained in:
Arfon Smith
2014-07-22 16:03:10 -05:00
parent 84ea710d42
commit 20154eb049
2 changed files with 6 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ end
namespace :benchmark do namespace :benchmark do
require 'git' require 'git'
require 'linguist/language' require 'linguist/language'
require './lib/linguist/diff'
git = Git.open('.') git = Git.open('.')

View File

@@ -1,4 +1,4 @@
class Hash module HashDiff
def deep_diff(b) def deep_diff(b)
a = self a = self
(a.keys | b.keys).inject({}) do |diff, k| (a.keys | b.keys).inject({}) do |diff, k|
@@ -13,3 +13,7 @@ class Hash
end end
end end
end end
class Hash
include HashDiff
end