pHash 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +5 -13
  2. data/Gemfile +2 -2
  3. data/README.markdown +1 -1
  4. data/lib/phash.rb +5 -1
  5. data/pHash.gemspec +1 -1
  6. metadata +11 -12
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWZmNjAyM2VhNWJlZDZmMWEyYTVjZmJlNzYzZTkwNDMyNzFmOGNmNA==
5
- data.tar.gz: !binary |-
6
- MWI5MWY0YWViNDM5MjM2ODYzMDU1MGNlZjBmNTE2YTY1MjE1MjI2MA==
2
+ SHA256:
3
+ metadata.gz: b1a50c823ae7b07f1b232abb8d3b1e6f69bf5f9bbae8d9b3824810ca77155d37
4
+ data.tar.gz: 84d87adfe2802adf24e8ab65887159a1759d051ac73d5cb1a931758484450605
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YzliZDhmNzk2NDhiZjQzNDBkOTZhMWNlYzdmMTk1ODViYWRiYjZjNDc5MTcy
10
- NGQ5OGNiNDkxMjEyNGYyYmUxZjJkNDg5MjFiM2ZlZTkxNmYxOWUwMjc4M2Nk
11
- MTYwNGZiYjM2ODBkNDY3ZTA5NWI0ZmMwNDA0NTczYjRkZTVjZDM=
12
- data.tar.gz: !binary |-
13
- ZmY4ZGU1OWUyZDUzN2RhNGEwODU5YzhkYjA1ZDAyYjIyOTkxMmVkYzU1NjU3
14
- YzJiNTk3Y2I0ZjZlODk0YzY5Y2I5YTE5NDAzOWJmMWE4ZTdjNzE2MWEwNGIy
15
- MWY2ZjMyN2JlY2EzNTY4YWU3MDEwNThiZjFiNzkwZTcyOTQ0M2I=
6
+ metadata.gz: a8fe4ba22ff0d3fdcf58ee460bbbe355d85c373a26b5aceefdc6e7f284a9a56114cadfeccb45f71298ed5fc213a5c98f14d4434f688d17cf28156637ad92f3e6
7
+ data.tar.gz: 19e945b80dab4c7a00dcfd28f7e719da5ae4255bb826b8d376bc9ebe46f53d88c38aca4447ed581c24e3a4a72644f7ac96fc3c485244400621981a77eb310943
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
- gem 'rspec'
3
- gem 'ffi'
2
+
3
+ gemspec
@@ -61,6 +61,6 @@ Texts:
61
61
 
62
62
  ## Copyright
63
63
 
64
- Copyright (c) 2011-2017 Ivan Kuchin.
64
+ Copyright (c) 2011-2018 Ivan Kuchin.
65
65
  Released under the GPLv3 as required by license of underlying pHash library.
66
66
  See LICENSE.txt for details.
@@ -60,7 +60,11 @@ module Phash
60
60
 
61
61
  extend FFI::Library
62
62
 
63
- ffi_lib ENV.fetch('PHASH_LIB', 'pHash')
63
+ begin
64
+ ffi_lib 'pHash'
65
+ rescue LoadError => e
66
+ raise LoadError, "Specify path to pHash library using PHASH_LIB environment variable. #{e.message}"
67
+ end
64
68
 
65
69
  autoload :Audio, 'phash/audio'
66
70
  autoload :Image, 'phash/image'
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'pHash'
5
- s.version = '1.2.0'
5
+ s.version = '1.2.1'
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,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pHash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-18 00:00:00.000000000 Z
11
+ date: 2018-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.0'
41
41
  description:
@@ -44,7 +44,7 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
- - .gitignore
47
+ - ".gitignore"
48
48
  - Gemfile
49
49
  - LICENSE.txt
50
50
  - README.markdown
@@ -100,24 +100,24 @@ homepage: http://github.com/toy/pHash
100
100
  licenses:
101
101
  - GPLv3
102
102
  metadata: {}
103
- post_install_message: ! "pHash library can be installed using macports or brew:\n\tport
103
+ post_install_message: "pHash library can be installed using macports or brew:\n\tport
104
104
  install pHash\n\tbrew install --without-video-hash homebrew/boneyard/phash"
105
105
  rdoc_options: []
106
106
  require_paths:
107
107
  - lib
108
108
  required_ruby_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ! '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ! '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
119
  rubyforge_project: pHash
120
- rubygems_version: 2.6.4
120
+ rubygems_version: 2.7.7
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Use pHash with ruby
@@ -163,4 +163,3 @@ test_files:
163
163
  - spec/data/vader-m.mp3
164
164
  - spec/data/vader-o.mp3
165
165
  - spec/phash_spec.rb
166
- has_rdoc: