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 CHANGED
@@ -6,3 +6,7 @@
6
6
  === 0.0.2 2012-10-11
7
7
 
8
8
  * fix build error
9
+
10
+ === 0.0.3 2012-12-03
11
+
12
+ * Detach newgem
data/Manifest.txt CHANGED
@@ -1,12 +1,9 @@
1
1
  History.txt
2
2
  Manifest.txt
3
- PostInstall.txt
4
3
  README.rdoc
5
4
  Rakefile
5
+ ruby-radix.gemspec
6
6
  lib/ruby-radix.rb
7
- script/console
8
- script/destroy
9
- script/generate
10
7
  test/test_helper.rb
11
8
  test/test_ruby-radix.rb
12
9
  ext/radix.c
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 NETBSD FOUNDATION, INC. AND CONTRIBUTORS
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 'rubygems'
2
- gem 'hoe', '>= 2.1.0'
3
- require 'hoe'
4
- require 'fileutils'
5
- require './lib/ruby-radix'
6
-
7
- Hoe.plugin :newgem
8
- # Hoe.plugin :website
9
- # Hoe.plugin :cucumberfeatures
10
-
11
- # Generate all the Rake tasks
12
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
13
- $hoe = Hoe.spec 'ruby-radix' do
14
- self.developer 'Takashi Sogabe', 'sogabe@iij.ad.jp'
15
- self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
16
- self.rubyforge_name = self.name # TODO this is default value
17
- self.spec_extras[:extensions] = "ext/extconf.rb"
18
- # self.extra_deps = [['activesupport','>= 2.0.2']]
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
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module RubyRadix
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
6
6
  end
@@ -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.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Takashi Sogabe
8
+ - sogabe
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-11 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rdoc
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
- - .gemtest
100
- homepage: http://github.com/iij/ruby-radix
35
+ homepage: https://github.com/iij/ruby-radix
101
36
  licenses: []
102
- post_install_message: PostInstall.txt
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: ruby-radix
54
+ rubyforge_project:
122
55
  rubygems_version: 1.8.24
123
56
  signing_key:
124
57
  specification_version: 3
125
- summary: ruby-radix is an implementation of a radix tree data structure for the storage
126
- and retrieval of IPv4 and IPv6 network prefixes
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
@@ -1,3 +0,0 @@
1
-
2
- For more information on ruby-radix, see https://github.com/iij/ruby-radix
3
-
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)