From 487af7f950e062aa289175951da2f05e3fb60242 Mon Sep 17 00:00:00 2001 From: Weston Platter Date: Wed, 27 Nov 2013 12:42:26 -0700 Subject: [PATCH] #23 make the regex more accepting so 0.9.6-png-patch is selected --- ext/phashion_ext/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/phashion_ext/extconf.rb b/ext/phashion_ext/extconf.rb index e5fc329..ff8c51d 100644 --- a/ext/phashion_ext/extconf.rb +++ b/ext/phashion_ext/extconf.rb @@ -1,7 +1,7 @@ require 'mkmf' HERE = File.expand_path(File.dirname(__FILE__)) -BUNDLE = Dir.glob("#{HERE}/pHash-*.tar.gz").first +BUNDLE = Dir.glob("#{HERE}/pHash-.*.tar.gz").first BUNDLE_PATH = BUNDLE.gsub(".tar.gz", "") $CFLAGS = " -x c++ #{ENV["CFLAGS"]}" $includes = " -I#{HERE}/include"