fuzzyhash 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/fuzzy_hash.rb +2 -0
- data/spec/fuzzy_hash_spec.rb +6 -0
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/fuzzy_hash.rb
CHANGED
@@ -16,6 +16,7 @@ class FuzzyHash
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def ==(o)
|
19
|
+
o.is_a?(FuzzyHash)
|
19
20
|
o.instance_variable_get(:@hash) == @hash &&
|
20
21
|
o.instance_variable_get(:@regexes) == @regexes
|
21
22
|
end
|
@@ -51,6 +52,7 @@ class FuzzyHash
|
|
51
52
|
@hash[key] = value
|
52
53
|
@hash_reverse[value] = key
|
53
54
|
end
|
55
|
+
value
|
54
56
|
end
|
55
57
|
|
56
58
|
def replace(src, dest)
|
data/spec/fuzzy_hash_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fuzzyhash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Hull
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-08-22 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|