From 0fa52f42e3781ae465a909b7679a9174b9840cb7 Mon Sep 17 00:00:00 2001 From: Weston Platter Date: Wed, 19 Mar 2014 00:54:07 -0600 Subject: [PATCH 1/2] gitignore the C "rake compile" resultant C files --- .gitignore | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2cd62c6..af652cd 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,8 @@ Gemfile.lock tmp ## PROJECT::SPECIFIC -ext/phashion_ext/include/ -ext/phashion_ext/lib/ +ext/phashion_ext +!ext/phashion_ext/extconf.rb +!ext/phashion_ext/phashion_ext.c +!ext/phashion_ext/pHash-0.9.6.tar.gz lib/phashion_ext.bundle From da4d59beef6e81e267714d7d55e628bdcae26201 Mon Sep 17 00:00:00 2001 From: Weston Platter Date: Wed, 19 Mar 2014 00:54:58 -0600 Subject: [PATCH 2/2] version bump --- CHANGES.md | 6 ++++++ lib/phashion/version.rb | 3 +++ phashion.gemspec | 13 ++++++++----- 3 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 lib/phashion/version.rb diff --git a/CHANGES.md b/CHANGES.md index 3630b18..262eae6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,12 @@ History ========= +1.1.0 +----- +* Converted to Minitest (issue #35) +* Added Phashion.distance_from method (issue #30) +* Add Sqlite3 extension to handle distance calculations (issue #27) + 1.0.8 ------ * Renamed the pHashion tar.gz archive as "pHash-0.9.6.tar.gz" to solve/enable install from github diff --git a/lib/phashion/version.rb b/lib/phashion/version.rb new file mode 100644 index 0000000..4a9d183 --- /dev/null +++ b/lib/phashion/version.rb @@ -0,0 +1,3 @@ +module Phashion + VERSION = '1.1.0' +end diff --git a/phashion.gemspec b/phashion.gemspec index 83b6779..135a646 100644 --- a/phashion.gemspec +++ b/phashion.gemspec @@ -1,12 +1,15 @@ # -*- encoding: utf-8 -*- - +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'phashion/version' + Gem::Specification.new do |s| - s.name = %q{phashion} - s.version = "1.0.8" + s.name = 'phashion' + s.version = Phashion::VERSION s.authors = ["Mike Perham"] s.email = ["mperham@gmail.com"] - s.description = %q{Simple wrapper around the pHash library} - s.homepage = %q{http://github.com/westonplatter/phashion} + s.description = 'Simple wrapper around the pHash library' + s.homepage = 'http://github.com/westonplatter/phashion' s.extensions = ["ext/phashion_ext/extconf.rb"] s.files = `git ls-files`.split("\n")