cidrmergerb 0.1.1 → 0.1.2

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: 9a5a7b700759d5c3b2a4728c4dc3ddd73052b933
4
- data.tar.gz: 4eb213e7911b7b4baa4ad34932a8bfb8582f33d4
3
+ metadata.gz: 61a72484791fa6a70fabda31cfad10454b80aa03
4
+ data.tar.gz: 0583b3315b9829f120e562ba10d2d310b4feda92
5
5
  SHA512:
6
- metadata.gz: cdd0b9d34b1986b285b9df571837de8e0b44fed6a1f4d560d8d4e27b67e1f6849106f38d0df2708a0f69d6f976d45b639412150b553be34496d2fccd028553b0
7
- data.tar.gz: 0848c7cbfaed075e77b5d8ea8954e3a609f052129e512e4619ef793a4586726d0e2054f9d3f8295eeb7af55efc65fe9a6e7b5eaeb6c54eb7683848f141feb8a8
6
+ metadata.gz: eb8e08e2f82f7b83c080fa7ecb126d66d25cb50112ac5a8979d91524dcc068463b5716b28a2b9ad034d1194614cc487246ff8cccb7b8e1a2bc9d674830d4d41e
7
+ data.tar.gz: 2d1180a36337d7de672bbd3178d600d380b57a892c0b7c1173376c40f2d0066d2874f2dffd96013afc9048297997c040f7414795960ecc296b40b8e632be10b6
data/Gemfile.lock ADDED
@@ -0,0 +1,24 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cidrmergerb (0.1.1)
5
+ ffi (~> 1.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ffi (1.9.10)
11
+ minitest (5.9.0)
12
+ rake (10.5.0)
13
+
14
+ PLATFORMS
15
+ ruby
16
+
17
+ DEPENDENCIES
18
+ bundler (~> 1.11)
19
+ cidrmergerb!
20
+ minitest (~> 5.0)
21
+ rake (~> 10.0)
22
+
23
+ BUNDLED WITH
24
+ 1.11.2
data/README.md CHANGED
@@ -20,4 +20,6 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- Cidrmergerb.optimize(cidrs) #=> optimized cidrs
23
+ Cidrmergerb.optimize(["10.1.1.0/24", "10.1.1.1/32", "192.1.4.5/32", "192.1.4.4/32"]) #=> ['10.1.1.0/24', '192.1.4.4/31']
24
+
25
+ more example: [cidrmergerb_test.rb](./test/cidrmergerb_test.rb)
data/cidrmergerb.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "ffi", '~> 1.9', '>= 1.9.10'
21
+ spec.add_runtime_dependency "ffi", '~> 1.0'
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.11"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
@@ -1,3 +1,3 @@
1
1
  module Cidrmergerb
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Newell Zhu
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.9'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.9.10
19
+ version: '1.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '1.9'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 1.9.10
26
+ version: '1.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: bundler
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -79,15 +73,13 @@ executables: []
79
73
  extensions: []
80
74
  extra_rdoc_files: []
81
75
  files:
82
- - ".gitignore"
83
76
  - ".travis.yml"
84
77
  - Gemfile
78
+ - Gemfile.lock
85
79
  - README.md
86
80
  - Rakefile
87
81
  - bin/console
88
82
  - bin/setup
89
- - chroute
90
- - cidrmergerb-0.1.0.gem
91
83
  - cidrmergerb.gemspec
92
84
  - ffi/Makefile
93
85
  - ffi/cidrmerge.h
@@ -96,7 +88,6 @@ files:
96
88
  - lib/cidrmergerb.rb
97
89
  - lib/cidrmergerb/ext.rb
98
90
  - lib/cidrmergerb/version.rb
99
- - merged_route.txt
100
91
  homepage: https://github.com/kingaxis/cidrmergerb
101
92
  licenses: []
102
93
  metadata: {}
data/.gitignore DELETED
@@ -1,16 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
15
- ext/cidrmergerb/libcidrmerge.o
16
- ext/cidrmergerb/libcidrmerge.so