critbit 0.5.0-java → 0.5.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/config.rb +39 -108
- data/doc/Critbit.html +3351 -0
- data/doc/Critbit/Cursor.html +360 -0
- data/doc/Critbit/DeleteCursor.html +294 -0
- data/doc/Critbit/EachCursor.html +228 -0
- data/doc/Critbit/EachKeyCursor.html +228 -0
- data/doc/Critbit/EachValueCursor.html +228 -0
- data/doc/Critbit/ListCursor.html +456 -0
- data/doc/_index.html +176 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +250 -0
- data/doc/file_list.html +60 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +250 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +345 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/critbit.rb +1 -3
- data/test/test_critbit.rb +3 -4
- data/version.rb +1 -1
- metadata +30 -23
- data/lib/env.rb +0 -12
- data/test/crit.rb +0 -6
@@ -0,0 +1,112 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Top Level Namespace
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!top-level-namespace.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">Top Level Namespace</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Top Level Namespace
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
</dl>
|
82
|
+
<div class="clear"></div>
|
83
|
+
|
84
|
+
<h2>Defined Under Namespace</h2>
|
85
|
+
<p class="children">
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Critbit.html" title="Critbit (class)">Critbit</a></span>
|
91
|
+
|
92
|
+
|
93
|
+
</p>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
<div id="footer">
|
106
|
+
Generated on Wed Jul 22 14:04:04 2015 by
|
107
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
|
+
0.8.7.6 (ruby-2.2.2).
|
109
|
+
</div>
|
110
|
+
|
111
|
+
</body>
|
112
|
+
</html>
|
data/lib/critbit.rb
CHANGED
@@ -21,9 +21,7 @@
|
|
21
21
|
# OR MODIFICATIONS.
|
22
22
|
##########################################################################################
|
23
23
|
|
24
|
-
|
25
|
-
require_relative 'env'
|
26
|
-
|
24
|
+
require_relative '../config'
|
27
25
|
|
28
26
|
##########################################################################################
|
29
27
|
#
|
data/test/test_critbit.rb
CHANGED
@@ -44,8 +44,9 @@ class CritbitTest < Test::Unit::TestCase
|
|
44
44
|
|
45
45
|
# Associates "a" to 1, "b" to 2, etc...
|
46
46
|
crit = Critbit["a", 1, "b", 2, "c", 3, "d", 4]
|
47
|
+
p "printing crit: #{crit}"
|
47
48
|
|
48
|
-
# Critbit will have the same
|
49
|
+
# Critbit will have the same content as the given hash
|
49
50
|
crit2 = Critbit["a" => 1, "b" => 2, "c" => 3, "d" => 4, "e" => 5]
|
50
51
|
|
51
52
|
# Create a Cribit from another Critbit, this will do a copy
|
@@ -171,8 +172,6 @@ class CritbitTest < Test::Unit::TestCase
|
|
171
172
|
#-------------------------------------------------------------------------------------
|
172
173
|
|
173
174
|
should "merge critbits" do
|
174
|
-
|
175
|
-
|
176
175
|
|
177
176
|
h1 = Critbit["a" => 100, "b" => 200]
|
178
177
|
h2 = Critbit["b" => 254, "c" => 300]
|
@@ -322,7 +321,7 @@ class CritbitTest < Test::Unit::TestCase
|
|
322
321
|
end
|
323
322
|
print "]"
|
324
323
|
|
325
|
-
p ""
|
324
|
+
p "unin"
|
326
325
|
crit.prefix = "unin"
|
327
326
|
# Does each for all elements in the critbit
|
328
327
|
print "["
|
data/version.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
$gem_name = "critbit"
|
2
|
-
$version="0.5.
|
2
|
+
$version="0.5.1"
|
metadata
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: critbit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Rodrigo Botafogo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
16
|
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: '
|
18
|
+
version: '0'
|
19
19
|
name: shoulda
|
20
20
|
prerelease: false
|
21
21
|
type: :development
|
@@ -23,16 +23,13 @@ dependencies:
|
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
30
|
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0
|
33
|
-
- - ">="
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: 0.7.1
|
32
|
+
version: '0'
|
36
33
|
name: simplecov
|
37
34
|
prerelease: false
|
38
35
|
type: :development
|
@@ -40,19 +37,13 @@ dependencies:
|
|
40
37
|
requirements:
|
41
38
|
- - "~>"
|
42
39
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 0.7.1
|
40
|
+
version: '0'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
requirement: !ruby/object:Gem::Requirement
|
49
43
|
requirements:
|
50
44
|
- - "~>"
|
51
45
|
- !ruby/object:Gem::Version
|
52
|
-
version: '0
|
53
|
-
- - ">="
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: 0.8.5.2
|
46
|
+
version: '0'
|
56
47
|
name: yard
|
57
48
|
prerelease: false
|
58
49
|
type: :development
|
@@ -60,10 +51,7 @@ dependencies:
|
|
60
51
|
requirements:
|
61
52
|
- - "~>"
|
62
53
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0
|
64
|
-
- - ">="
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: 0.8.5.2
|
54
|
+
version: '0'
|
67
55
|
description: "\nA crit bit tree, also known as a Binary Patricia Trie is a trie\n\
|
68
56
|
(https://en.wikipedia.org/wiki/Trie), also called digital tree and sometimes radix\
|
69
57
|
\ tree\nor prefix tree (as they can be searched by prefixes), is an ordered tree\
|
@@ -86,10 +74,29 @@ files:
|
|
86
74
|
- README.md
|
87
75
|
- Rakefile
|
88
76
|
- config.rb
|
77
|
+
- doc/Critbit.html
|
78
|
+
- doc/Critbit/Cursor.html
|
79
|
+
- doc/Critbit/DeleteCursor.html
|
80
|
+
- doc/Critbit/EachCursor.html
|
81
|
+
- doc/Critbit/EachKeyCursor.html
|
82
|
+
- doc/Critbit/EachValueCursor.html
|
83
|
+
- doc/Critbit/ListCursor.html
|
84
|
+
- doc/_index.html
|
85
|
+
- doc/class_list.html
|
86
|
+
- doc/css/common.css
|
87
|
+
- doc/css/full_list.css
|
88
|
+
- doc/css/style.css
|
89
|
+
- doc/file.README.html
|
90
|
+
- doc/file_list.html
|
91
|
+
- doc/frames.html
|
92
|
+
- doc/index.html
|
93
|
+
- doc/js/app.js
|
94
|
+
- doc/js/full_list.js
|
95
|
+
- doc/js/jquery.js
|
96
|
+
- doc/method_list.html
|
97
|
+
- doc/top-level-namespace.html
|
89
98
|
- lib/critbit.rb
|
90
|
-
- lib/env.rb
|
91
99
|
- target/critbit.jar
|
92
|
-
- test/crit.rb
|
93
100
|
- test/test_critbit.rb
|
94
101
|
- version.rb
|
95
102
|
homepage: http://github.com/rbotafogo/critbit/wiki
|
@@ -118,4 +125,4 @@ specification_version: 4
|
|
118
125
|
summary: A crit-bit tree is a data structure for storage of key-value pairs similar to a hash or a heap.
|
119
126
|
test_files:
|
120
127
|
- test/test_critbit.rb
|
121
|
-
|
128
|
+
has_rdoc:
|
data/lib/env.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'java'
|
2
|
-
require_relative '../config.rb'
|
3
|
-
|
4
|
-
$CLASSPATH << "#{File.dirname(__FILE__)}/../vendor/"
|
5
|
-
|
6
|
-
Dir["#{File.dirname(__FILE__)}/../vendor/*.jar"].each do |jar|
|
7
|
-
require jar
|
8
|
-
end
|
9
|
-
|
10
|
-
Dir["#{File.dirname(__FILE__)}/../target/*.jar"].each do |jar|
|
11
|
-
require jar
|
12
|
-
end
|