grayphash 0.0.2.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/grayhash/grayphash.c +6 -4
- metadata +2 -2
data/ext/grayhash/grayphash.c
CHANGED
@@ -21,7 +21,7 @@ void Init_grayphash() {
|
|
21
21
|
rb_define_method(Grayphash, "close", method_close, 0);
|
22
22
|
rb_define_method(Grayphash, "image_phash", &method_image_phash, -1);
|
23
23
|
rb_define_method(Grayphash, "hamming", &method_hamming, -1);
|
24
|
-
sdl_library = dlopen("/usr/lib/libpHash.so", RTLD_LAZY);
|
24
|
+
//sdl_library = dlopen("/usr/lib/libpHash.so", RTLD_LAZY);
|
25
25
|
}
|
26
26
|
|
27
27
|
VALUE method_hamming(int argc, VALUE * argv, VALUE self) {
|
@@ -60,7 +60,9 @@ VALUE method_close(VALUE self) {
|
|
60
60
|
}
|
61
61
|
|
62
62
|
VALUE method_about(VALUE self) {
|
63
|
-
|
64
|
-
|
65
|
-
|
63
|
+
return rb_str_new_cstr("pHash 0.9.4. Copyright 2008-2010 Aetilius, Inc. Included only some image functions.");
|
64
|
+
//char* (*about)();
|
65
|
+
//about = dlsym(sdl_library, "ph_about");
|
66
|
+
|
67
|
+
//return rb_str_new_cstr((*about)());
|
66
68
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grayphash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -23,7 +23,7 @@ files:
|
|
23
23
|
- ext/grayhash/extconf.rb
|
24
24
|
homepage: http://github.com/tauraloke/grayphash
|
25
25
|
licenses:
|
26
|
-
-
|
26
|
+
- GPL
|
27
27
|
post_install_message:
|
28
28
|
rdoc_options: []
|
29
29
|
require_paths:
|