ruby-radix 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +4 -0
- data/Manifest.txt +1 -4
- data/README.rdoc +1 -1
- data/Rakefile +19 -27
- data/lib/ruby-radix.rb +1 -1
- data/ruby-radix.gemspec +16 -0
- metadata +14 -84
- data/.gemtest +0 -0
- data/PostInstall.txt +0 -3
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/README.rdoc
CHANGED
@@ -50,7 +50,7 @@ The Ruby binding code is subject to this license:
|
|
50
50
|
* notice, this list of conditions and the following disclaimer in the
|
51
51
|
* documentation and/or other materials provided with the distribution.
|
52
52
|
*
|
53
|
-
* THIS SOFTWARE IS PROVIDED BY THE
|
53
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS. AND CONTRIBUTORS
|
54
54
|
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
55
55
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
56
56
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
data/Rakefile
CHANGED
@@ -1,27 +1,19 @@
|
|
1
|
-
require
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
end
|
21
|
-
|
22
|
-
require 'newgem/tasks'
|
23
|
-
Dir['tasks/**/*.rake'].each { |t| load t }
|
24
|
-
|
25
|
-
# TODO - want other tests/tasks run by default? Add them to the list
|
26
|
-
# remove_task :default
|
27
|
-
# task :default => [:spec, :features]
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rake/testtask"
|
3
|
+
|
4
|
+
task :manifest do
|
5
|
+
File.open("Manifest.txt", "w") do |f|
|
6
|
+
f.puts `git ls-files`.split("\n")
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
Rake::TestTask.new
|
11
|
+
|
12
|
+
task :test => ['test:unit']
|
13
|
+
namespace :test do
|
14
|
+
Rake::TestTask.new(:unit) do |t|
|
15
|
+
t.libs << 'lib'
|
16
|
+
t.pattern = 'test/*_test.rb'
|
17
|
+
t.verbose = true
|
18
|
+
end
|
19
|
+
end
|
data/lib/ruby-radix.rb
CHANGED
data/ruby-radix.gemspec
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "ruby-radix"
|
3
|
+
s.version = "0.0.3"
|
4
|
+
s.authors = ["sogabe"]
|
5
|
+
s.email = ["sogabe@iij.ad.jp"]
|
6
|
+
s.homepage = "https://github.com/iij/ruby-radix"
|
7
|
+
s.summary = "Radix tree data structure for the storage"
|
8
|
+
s.description = "ruby-radix is an implementation of a radix tree data structure for the storage and retrieval of IPv4 and IPv6 network prefixes."
|
9
|
+
s.extensions = ["ext/extconf.rb"]
|
10
|
+
|
11
|
+
|
12
|
+
s.files = `cat Manifest.txt`.split("\n")
|
13
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
15
|
+
s.require_paths = ["lib"]
|
16
|
+
end
|
metadata
CHANGED
@@ -1,108 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-radix
|
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:
|
8
|
-
-
|
8
|
+
- sogabe
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
13
|
-
dependencies:
|
14
|
-
-
|
15
|
-
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '3.10'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '3.10'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: newgem
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 1.5.3
|
38
|
-
type: :development
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 1.5.3
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: hoe
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '3.0'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.0'
|
62
|
-
description: ! 'ruby-radix is an implementation of a radix tree data structure for
|
63
|
-
the storage
|
64
|
-
|
65
|
-
and retrieval of IPv4 and IPv6 network prefixes.
|
66
|
-
|
67
|
-
|
68
|
-
The radix tree is the data structure most commonly used for routing table
|
69
|
-
|
70
|
-
lookups. It efficiently stores network prefixes of varying lengths and
|
71
|
-
|
72
|
-
allows fast lookups of containing networks.'
|
12
|
+
date: 2012-12-03 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: ruby-radix is an implementation of a radix tree data structure for the
|
15
|
+
storage and retrieval of IPv4 and IPv6 network prefixes.
|
73
16
|
email:
|
74
17
|
- sogabe@iij.ad.jp
|
75
18
|
executables: []
|
76
19
|
extensions:
|
77
20
|
- ext/extconf.rb
|
78
|
-
extra_rdoc_files:
|
79
|
-
- History.txt
|
80
|
-
- Manifest.txt
|
81
|
-
- PostInstall.txt
|
82
|
-
- README.rdoc
|
21
|
+
extra_rdoc_files: []
|
83
22
|
files:
|
84
23
|
- History.txt
|
85
24
|
- Manifest.txt
|
86
|
-
- PostInstall.txt
|
87
25
|
- README.rdoc
|
88
26
|
- Rakefile
|
27
|
+
- ruby-radix.gemspec
|
89
28
|
- lib/ruby-radix.rb
|
90
|
-
- script/console
|
91
|
-
- script/destroy
|
92
|
-
- script/generate
|
93
29
|
- test/test_helper.rb
|
94
30
|
- test/test_ruby-radix.rb
|
95
31
|
- ext/radix.c
|
96
32
|
- ext/radixlib.c
|
97
33
|
- ext/radixlib.h
|
98
34
|
- ext/extconf.rb
|
99
|
-
|
100
|
-
homepage: http://github.com/iij/ruby-radix
|
35
|
+
homepage: https://github.com/iij/ruby-radix
|
101
36
|
licenses: []
|
102
|
-
post_install_message:
|
103
|
-
rdoc_options:
|
104
|
-
- --main
|
105
|
-
- README.rdoc
|
37
|
+
post_install_message:
|
38
|
+
rdoc_options: []
|
106
39
|
require_paths:
|
107
40
|
- lib
|
108
41
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -118,12 +51,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
51
|
- !ruby/object:Gem::Version
|
119
52
|
version: '0'
|
120
53
|
requirements: []
|
121
|
-
rubyforge_project:
|
54
|
+
rubyforge_project:
|
122
55
|
rubygems_version: 1.8.24
|
123
56
|
signing_key:
|
124
57
|
specification_version: 3
|
125
|
-
summary:
|
126
|
-
|
127
|
-
test_files:
|
128
|
-
- test/test_ruby-radix.rb
|
129
|
-
- test/test_helper.rb
|
58
|
+
summary: Radix tree data structure for the storage
|
59
|
+
test_files: []
|
data/.gemtest
DELETED
File without changes
|
data/PostInstall.txt
DELETED
data/script/console
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# File: script/console
|
3
|
-
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
-
|
5
|
-
libs = " -r irb/completion"
|
6
|
-
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
-
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
-
libs << " -r #{File.dirname(__FILE__) + '/../lib/ruby-radix.rb'}"
|
9
|
-
puts "Loading ruby-radix gem"
|
10
|
-
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/destroy'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/generate'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Generate.new.run(ARGV)
|