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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d1eaf7bb0f73fddd4c5c1832e75ae5201f801d8
4
- data.tar.gz: 7eebdcd2ccf434e84cf62ca0e06395abacf0a936
3
+ metadata.gz: e67e5210f210ebaa214a4613ec53876023b60d2d
4
+ data.tar.gz: ad96318975c07a708ad3cbff9344cc5941b62970
5
5
  SHA512:
6
- metadata.gz: ee282dcf4819ecb41e03962ad7138e463cf9adb4bf0115e88048aec666a84b9b60f5c0deb3e665e9e12874002c7dc57badd72a911e108921c3d2ea0372600d26
7
- data.tar.gz: 3bed5a3f733d7e020bd64ccb309d1abed9f24ada62a9d40fedce6b332f7af3aadbceb0b37d17c5a922b076134df9ab658eb763828299a7c237643dd39a6bfffe
6
+ metadata.gz: 630d427ba23d7eb35a834bb50d01702a6a3f5b1b35a554a360014359ede70fe303abc30edd8e6403ad1be7daa98f8b8bd42577b5a9588939b652920420b6c85d
7
+ data.tar.gz: 75af31f5fd5fe3b45d6769921495fa4a4b0b8bb4269b88a0b0dabe3dfe233cee31c98666363e4144fef57d6b2a9cff2499143715b33e84a174aa0be54f7297ee
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.1.4
2
+
3
+ + Move CONSTANT into Cidrmergerb::Ext
4
+
1
5
  0.1.3
2
6
 
3
7
  + Add helper methods(.netmask_to_int, .host_size_for_netmask, .netmask_valid?, .ip_to_int, .int_to_ip, .cidr_to_ip_netmask, .cidr_to_range)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cidrmergerb (0.1.3)
4
+ cidrmergerb (0.1.4)
5
5
  ffi (~> 1.0)
6
6
 
7
7
  GEM
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Cidrmergerb
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cidrmergerb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Newell Zhu