phashion 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,6 +1,13 @@
1
1
  History
2
2
  =========
3
3
 
4
+ 1.0.6
5
+ ------
6
+
7
+ * Update pHash to version 0.9.6
8
+ * PNG support added
9
+ * Requiring rdoc tasks fixed
10
+
4
11
  1.0.5
5
12
  -------
6
13
 
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'http://rubygems.org'
2
+ gemspec
data/README.md CHANGED
@@ -35,6 +35,17 @@ Usage
35
35
  img1.duplicate?(img2)
36
36
  --> true
37
37
 
38
+ Testing
39
+ ------------
40
+
41
+ To run the test suite:
42
+
43
+ ```bash
44
+ bundle
45
+ rake compile
46
+ rake
47
+ ```
48
+
38
49
  Author
39
50
  ==========
40
51
 
data/Rakefile CHANGED
@@ -25,7 +25,7 @@ task :test
25
25
 
26
26
  task :default => :test
27
27
 
28
- require 'rake/rdoctask'
28
+ require 'rdoc/task'
29
29
  Rake::RDocTask.new do |rdoc|
30
30
  rdoc.rdoc_dir = 'rdoc'
31
31
  rdoc.title = "phashion"
@@ -9,6 +9,7 @@ $libraries = " -L#{HERE}/lib"
9
9
  $LIBPATH = ["#{HERE}/lib"]
10
10
  $CFLAGS = "#{$includes} #{$libraries} #{$CFLAGS}"
11
11
  $LDFLAGS = "#{$libraries} #{$LDFLAGS}"
12
+ $CXXFLAGS = ' -pthread'
12
13
 
13
14
  Dir.chdir(HERE) do
14
15
  if File.exist?("lib")
@@ -19,7 +20,7 @@ Dir.chdir(HERE) do
19
20
  raise "'#{cmd}' failed" unless system(cmd)
20
21
 
21
22
  Dir.chdir(BUNDLE_PATH) do
22
- puts(cmd = "env CFLAGS='#{$CFLAGS}' LDFLAGS='#{$LDFLAGS}' ./configure --prefix=#{HERE} --disable-audio-hash --disable-video-hash --disable-shared --with-pic 2>&1")
23
+ puts(cmd = "env CXXFLAGS='#{$CXXFLAGS}' CFLAGS='#{$CFLAGS}' LDFLAGS='#{$LDFLAGS}' ./configure --prefix=#{HERE} --disable-audio-hash --disable-video-hash --disable-shared --with-pic 2>&1")
23
24
  raise "'#{cmd}' failed" unless system(cmd)
24
25
 
25
26
  puts(cmd = "make || true 2>&1")
@@ -34,12 +35,12 @@ Dir.chdir(HERE) do
34
35
 
35
36
  system("rm -rf #{BUNDLE_PATH}") unless ENV['DEBUG'] or ENV['DEV']
36
37
  end
37
-
38
+
38
39
  Dir.chdir("#{HERE}/lib") do
39
40
  system("cp -f libpHash.a libpHash_gem.a")
40
41
  system("cp -f libpHash.la libpHash_gem.la")
41
42
  end
42
- $LIBS = " -lpthread -lpHash_gem -lstdc++ -ljpeg"
43
+ $LIBS = " -lpthread -lpHash_gem -lstdc++ -ljpeg -lpng"
43
44
  end
44
45
 
45
- create_makefile 'phashion_ext'
46
+ create_makefile 'phashion_ext'
@@ -7,7 +7,7 @@
7
7
  # int ph_hamming_distance(ulong64 hasha, ulong64 hashb);
8
8
 
9
9
  module Phashion
10
- VERSION = '1.0.5'
10
+ VERSION = '1.0.6'
11
11
 
12
12
  class Image
13
13
  SETTINGS = {
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{phashion}
8
- s.version = "1.0.5"
8
+ s.version = "1.0.6"
9
9
  s.authors = ["Mike Perham"]
10
10
  s.description = %q{Simple wrapper around the pHash library}
11
11
  s.email = %q{mperham@gmail.com}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phashion
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-27 00:00:00.000000000 Z
12
+ date: 2013-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
16
- requirement: &70298302351400 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: 0.7.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70298302351400
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.7.0
25
30
  description: Simple wrapper around the pHash library
26
31
  email: mperham@gmail.com
27
32
  executables: []
@@ -32,11 +37,12 @@ files:
32
37
  - .document
33
38
  - .gitignore
34
39
  - CHANGES.md
40
+ - Gemfile
35
41
  - LICENSE
36
42
  - README.md
37
43
  - Rakefile
38
44
  - ext/phashion_ext/extconf.rb
39
- - ext/phashion_ext/pHash-0.9.3.tar.gz
45
+ - ext/phashion_ext/pHash-0.9.6.tar.gz
40
46
  - ext/phashion_ext/phashion_ext.c
41
47
  - lib/phashion.rb
42
48
  - phashion.gemspec
@@ -73,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
79
  version: '0'
74
80
  requirements: []
75
81
  rubyforge_project:
76
- rubygems_version: 1.8.15
82
+ rubygems_version: 1.8.23
77
83
  signing_key:
78
84
  specification_version: 3
79
85
  summary: Simple wrapper around the pHash library