pHash 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjE2MzdkMzU5YjNhYWY5NTIyNjYzODhlYTIwNWNiODVkMjE3YjNkMQ==
4
+ N2NlYjQ5MmIzODI3NmNmN2JjODUzZjE3NTcyYTYyMGM5M2NlODI0Mg==
5
5
  data.tar.gz: !binary |-
6
- YTUwOWVhYTc5ZTU5YWU5ZDI5MGYyOTg1OWQ1MjdkYmZhYTdiOTA0MQ==
6
+ ZGYzMzkwODk2YTFiZDE4YTY5NDhiNjhkMDkyYzhlNTdhMjhlMWYxYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MThkNTZlNmYyYmQzNmQzZmM2NGIyZWNhYzA5ZGRjMDE2NzdkNmFhNTMzNDQw
10
- MzI5NTgwNDU2OTE1MDFkM2U2ODkwNjUwNzBiYjU1MGM0ZDliMjMyMmYyYzg1
11
- NWYzOWE3YjE3MWJmMmMzZjc0NjQxMWZjOTc1MDA1NzI3NGVjZTQ=
9
+ YjViZjJmNmE5NGViMTE3MDAzNzVmODdlZGExNTg3MGZhZDFkMTA5NTBmYTI3
10
+ N2I2NjQ3OTk2M2Y4NGEzNGUxYzU5NzYxYWNlZTIwZjI3ODU0MjgzOTQ2NTVm
11
+ OThlZWUxMDNkNjFiMjBiODZmNjIyODIzY2JmMTIzYTI5YTAyNDY=
12
12
  data.tar.gz: !binary |-
13
- MGRiNDFiMTUwNjY5Yzg4YzIyNzRiM2NkMzQ3YjliY2I3NjAxNWM4MGY1MjYw
14
- ZWFjYzUxNWEzMTBjYjJhZTYwMzM3NTdjNzhhNmU3YjJhZTFhOWYxM2I3Zjli
15
- ZGI3N2RkYzljMzFhMjZkZTIxMTA5NjE4YTdkNjEwNDhkNzQxM2M=
13
+ Y2MxZGE1MDhlMWY0MjQwMTIzZDVlNDBlMDllNmU3OTY0NzY5NmY0YWE3OTUw
14
+ YWI5ZmU3MWFhZTI1MmJkZmQ2NjUyMDZlZWQ2NzQ0MTM0MGZhMmRlZjk0ZWE1
15
+ ZmE2MDFiNWNiYTIyOTM2OTkxNTkzZWM4OGY4NDkxNDIzYzFiNzI=
@@ -8,7 +8,11 @@ Interface to [pHash](http://pHash.org/).
8
8
 
9
9
  You can specify path to pHash library explicitly using environment variable like `PHASH_LIB=/opt/local/lib/libpHash.dylib`.
10
10
 
11
- Audio hash functions needs to be compiled with C linkage, so if you get `FFI::NotFoundError` check names of methods in `libpHash`. Tiny patch for pHash 0.9.4 is in `audiophash.diff`.
11
+ There are two problems with official version 0.9.6 of pHash. Both are fixed in a [fork of pHash](https://github.com/hszcg/pHash-0.9.6).
12
+
13
+ - Audio hash functions are not compiled with C linkage - you will get `FFI::NotFoundError` when comparing audio files. [Patch](https://github.com/hszcg/pHash-0.9.6/commit/e93af6d).
14
+
15
+ - Video hash functions are not compatible with latest ffmpeg changes - they will cause Segmentation Fault as explained in [Segmentation Fault error when trying to compare two videos with pHash library and its ruby bindings](http://stackoverflow.com/q/23414036/96823). [Patch](https://github.com/hszcg/pHash-0.9.6/commit/85218a6).
12
16
 
13
17
  ## Dependencies
14
18
 
@@ -57,6 +61,6 @@ Texts:
57
61
 
58
62
  ## Copyright
59
63
 
60
- Copyright (c) 2011-2013 Ivan Kuchin.
64
+ Copyright (c) 2011-2014 Ivan Kuchin.
61
65
  Released under the GPLv3 as required by license of underlying pHash library.
62
66
  See LICENSE.txt for details.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'pHash'
5
- s.version = '1.1.4'
5
+ s.version = '1.1.5'
6
6
  s.summary = %q{Use pHash with ruby}
7
7
  s.homepage = "http://github.com/toy/#{s.name}"
8
8
  s.authors = ['Ivan Kuchin']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pHash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-06 00:00:00.000000000 Z
11
+ date: 2014-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -62,7 +62,6 @@ files:
62
62
  - Gemfile
63
63
  - LICENSE.txt
64
64
  - README.markdown
65
- - audiophash.diff
66
65
  - lib/phash.rb
67
66
  - lib/phash/all.rb
68
67
  - lib/phash/audio.rb
@@ -179,3 +178,4 @@ test_files:
179
178
  - spec/data/vader-o.mp3
180
179
  - spec/phash_spec.rb
181
180
  - spec/spec_helper.rb
181
+ has_rdoc:
@@ -1,17 +0,0 @@
1
- --- src/audiophash.h.orig 2011-12-13 14:47:08.000000000 +0100
2
- +++ src/audiophash.h 2011-12-13 14:47:12.000000000 +0100
3
- @@ -34,7 +34,6 @@
4
-
5
- extern "C" {
6
- #include "ph_fft.h"
7
- -}
8
-
9
- /* /brief count number of samples in file
10
- *
11
- @@ -105,4 +104,6 @@
12
- */
13
- double* ph_audio_distance_ber(uint32_t *hash_a , const int Na, uint32_t *hash_b, const int Nb, const float threshold, const int block_size, int &Nc);
14
-
15
- +}
16
- +
17
- #endif