Permalink
Browse files

Update for 1.0.4 release

  • Loading branch information...
1 parent eeccf35 commit 39a5070ce48837ebd02f13463840d6cb01eae662 @mperham mperham committed Nov 9, 2011
Showing with 13 additions and 8 deletions.
  1. +6 −1 CHANGES.md
  2. +6 −6 lib/phashion.rb
  3. +1 −1 phashion.gemspec
View
@@ -1,6 +1,11 @@
History
=========
+1.0.4
+-------
+
+* Fix pthread linking on Ubuntu 11.04
+
1.0.3
-------
@@ -25,4 +30,4 @@ History
1.0.0
-------
-Initial release.
+Initial release.
View
@@ -7,27 +7,27 @@
# int ph_hamming_distance(ulong64 hasha, ulong64 hashb);
module Phashion
- VERSION = '1.0.3'
-
+ VERSION = '1.0.4'
+
class Image
SETTINGS = {
:dupe_threshold => 15
}
-
+
attr_reader :filename
def initialize(filename)
@filename = filename
end
-
+
def duplicate?(other)
Phashion.hamming_distance(fingerprint, other.fingerprint) < SETTINGS[:dupe_threshold]
end
-
+
def fingerprint
@hash ||= Phashion.image_hash_for(@filename)
end
end
end
-require 'phashion_ext'
+require 'phashion_ext'
View
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{phashion}
- s.version = "1.0.3"
+ s.version = "1.0.4"
s.authors = ["Mike Perham"]
s.description = %q{Simple wrapper around the pHash library}
s.email = %q{mperham@gmail.com}

0 comments on commit 39a5070

Please sign in to comment.