nfclib 0.0.137 → 0.0.140
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/extconf.rb +2 -2
- data/lib/nfc.rb +1 -1
- data/nfclib.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17cbf42f3759bf294904ac3daf01cd1db45455eb
|
4
|
+
data.tar.gz: 2172d0dc4d978819c8a4d8a3129dfa803e8d2313
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 588cf69ac999cca4b0f39a5a22447343fbe84cf02ea6d7096e7f880e5ab3649c8a1e08a3f905895309be96c4dfe2b85e437936a09e70d78de3b7e716a36e93a9
|
7
|
+
data.tar.gz: 9d349f573ab26b49df760a77b2cffec3838a33dbf3daa93b084c964d723431243c431255c75c7cc6ad43289de1e27b83357cfa9be1fffa8908e19850e95be884
|
data/ext/extconf.rb
CHANGED
@@ -3,8 +3,8 @@ require 'mkmf'
|
|
3
3
|
spec = eval(File.read(File.dirname(__FILE__) + '/../nfclib.gemspec'))
|
4
4
|
PKG_NAME="nfclib"
|
5
5
|
|
6
|
-
$CFLAGS = '-Wall -pedantic -O3 -c -fPIC' + $CFLAGS
|
7
|
-
$LDFLAGS = '-pthread ' + $LDFLAGS
|
6
|
+
$CFLAGS = ' -Wall -pedantic -O3 -c -fPIC ' + $CFLAGS
|
7
|
+
$LDFLAGS = ' -pthread ' + $LDFLAGS
|
8
8
|
$LIBPATH.push(RbConfig::CONFIG['libdir'])
|
9
9
|
|
10
10
|
|
data/lib/nfc.rb
CHANGED
@@ -3,7 +3,7 @@ require 'ffi'
|
|
3
3
|
module NFC
|
4
4
|
# FFI #{{{
|
5
5
|
extend FFI::Library
|
6
|
-
ffi_lib ::File.dirname(__FILE__) + '/nfclib.so'
|
6
|
+
ffi_lib ::File.dirname(__FILE__) + '../ext/nfclib.so'
|
7
7
|
callback :on_tag_callback, [:pointer], :void
|
8
8
|
attach_function :nfc_reader_on_tag, [:pointer,:on_tag_callback], :pointer
|
9
9
|
attach_function :nfc_reader_init, [:string], :pointer
|
data/nfclib.gemspec
CHANGED