cidrmergerb 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/cidrmergerb/ext.rb +10 -9
- data/lib/cidrmergerb/version.rb +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: e67e5210f210ebaa214a4613ec53876023b60d2d
|
4
|
+
data.tar.gz: ad96318975c07a708ad3cbff9344cc5941b62970
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 630d427ba23d7eb35a834bb50d01702a6a3f5b1b35a554a360014359ede70fe303abc30edd8e6403ad1be7daa98f8b8bd42577b5a9588939b652920420b6c85d
|
7
|
+
data.tar.gz: 75af31f5fd5fe3b45d6769921495fa4a4b0b8bb4269b88a0b0dabe3dfe233cee31c98666363e4144fef57d6b2a9cff2499143715b33e84a174aa0be54f7297ee
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/cidrmergerb/ext.rb
CHANGED
@@ -1,18 +1,19 @@
|
|
1
1
|
require 'ffi'
|
2
2
|
require 'fileutils'
|
3
3
|
|
4
|
-
SHARED_LIBRARY_FOLDER = File.join(File.dirname(__FILE__), '../../ffi')
|
5
|
-
SHARED_LIBRARY_NAME = File.join(SHARED_LIBRARY_FOLDER, 'libcidrmerge.so')
|
6
|
-
|
7
|
-
unless File.exist?(SHARED_LIBRARY_NAME)
|
8
|
-
FileUtils.cd(SHARED_LIBRARY_FOLDER)
|
9
|
-
%x{make}
|
10
|
-
fail "compile shared library fail, try to compile it by manual" if $?.exitstatus < 0
|
11
|
-
end
|
12
|
-
|
13
4
|
module Cidrmergerb
|
14
5
|
class Ext
|
15
6
|
extend FFI::Library
|
7
|
+
|
8
|
+
SHARED_LIBRARY_FOLDER = File.join(File.dirname(__FILE__), '../../ffi')
|
9
|
+
SHARED_LIBRARY_NAME = File.join(SHARED_LIBRARY_FOLDER, 'libcidrmerge.so')
|
10
|
+
|
11
|
+
unless File.exist?(SHARED_LIBRARY_NAME)
|
12
|
+
FileUtils.cd(SHARED_LIBRARY_FOLDER)
|
13
|
+
%x{make}
|
14
|
+
fail "compile shared library fail, try to compile it by manual" if $?.exitstatus < 0
|
15
|
+
end
|
16
|
+
|
16
17
|
ffi_lib SHARED_LIBRARY_NAME
|
17
18
|
|
18
19
|
class Entry < FFI::ManagedStruct
|
data/lib/cidrmergerb/version.rb
CHANGED