phash_native 0.1.0
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 +7 -0
- data/README.md +72 -0
- data/ext/phash_native/extconf.rb +9 -0
- data/ext/phash_native/phash_native.c +112 -0
- data/ext/phash_native/stb_image.h +7988 -0
- data/lib/phash_native/version.rb +3 -0
- data/lib/phash_native.rb +6 -0
- data/phash_native.gemspec +26 -0
- metadata +92 -0
data/lib/phash_native.rb
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
require_relative "lib/phash_native/version"
|
|
2
|
+
|
|
3
|
+
Gem::Specification.new do |spec|
|
|
4
|
+
spec.name = "phash_native"
|
|
5
|
+
spec.version = PhashNative::VERSION
|
|
6
|
+
spec.authors = ["Jon Jenkins"]
|
|
7
|
+
spec.email = ["jon@mj12.ch"]
|
|
8
|
+
|
|
9
|
+
spec.summary = "Native perceptual hash (pHash) implementation using C and stb_image"
|
|
10
|
+
spec.description = "A blazing-fast Ruby extension for generating perceptual hashes and comparing them using Hamming distance."
|
|
11
|
+
spec.homepage = "https://github.com/yourusername/phash_native"
|
|
12
|
+
spec.license = "MIT"
|
|
13
|
+
|
|
14
|
+
spec.files = Dir["lib/**/*.rb"] +
|
|
15
|
+
Dir["ext/**/*.{c,h,rb}"] +
|
|
16
|
+
["README.md", "phash_native.gemspec"]
|
|
17
|
+
spec.require_paths = ["lib"]
|
|
18
|
+
spec.extensions = ["ext/phash_native/extconf.rb"]
|
|
19
|
+
|
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
21
|
+
|
|
22
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
|
23
|
+
spec.add_development_dependency "rake-compiler", "~> 1.1"
|
|
24
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
|
25
|
+
spec.required_ruby_version = ">= 3.0"
|
|
26
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: phash_native
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Jon Jenkins
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: rake
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '13.0'
|
|
19
|
+
type: :development
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '13.0'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: rake-compiler
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '1.1'
|
|
33
|
+
type: :development
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '1.1'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: minitest
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '5.0'
|
|
47
|
+
type: :development
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '5.0'
|
|
54
|
+
description: A blazing-fast Ruby extension for generating perceptual hashes and comparing
|
|
55
|
+
them using Hamming distance.
|
|
56
|
+
email:
|
|
57
|
+
- jon@mj12.ch
|
|
58
|
+
executables: []
|
|
59
|
+
extensions:
|
|
60
|
+
- ext/phash_native/extconf.rb
|
|
61
|
+
extra_rdoc_files: []
|
|
62
|
+
files:
|
|
63
|
+
- README.md
|
|
64
|
+
- ext/phash_native/extconf.rb
|
|
65
|
+
- ext/phash_native/phash_native.c
|
|
66
|
+
- ext/phash_native/stb_image.h
|
|
67
|
+
- lib/phash_native.rb
|
|
68
|
+
- lib/phash_native/version.rb
|
|
69
|
+
- phash_native.gemspec
|
|
70
|
+
homepage: https://github.com/yourusername/phash_native
|
|
71
|
+
licenses:
|
|
72
|
+
- MIT
|
|
73
|
+
metadata:
|
|
74
|
+
allowed_push_host: https://rubygems.org
|
|
75
|
+
rdoc_options: []
|
|
76
|
+
require_paths:
|
|
77
|
+
- lib
|
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '3.0'
|
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
|
+
requirements:
|
|
85
|
+
- - ">="
|
|
86
|
+
- !ruby/object:Gem::Version
|
|
87
|
+
version: '0'
|
|
88
|
+
requirements: []
|
|
89
|
+
rubygems_version: 3.6.7
|
|
90
|
+
specification_version: 4
|
|
91
|
+
summary: Native perceptual hash (pHash) implementation using C and stb_image
|
|
92
|
+
test_files: []
|