critbit 0.5.1-java → 0.5.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/critbit.rb +10 -0
- data/test/test_critbit.rb +2 -2
- data/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 834740ebf1133c7c070d75d8a914b22275d0d3bc
|
4
|
+
data.tar.gz: ec6e556c922da491ca9d2421b39e1684eb5dc6fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb33cb5971490de079e627505738879ae5ecd6d1893b9d2969e3ebc056248585560a29d8905e05564d38576bb5cb07cde72dddf97390085f813b1bf45c1b8c39
|
7
|
+
data.tar.gz: 129c2659e3f9464815019935ce0b277bc6b743b478151c01ccc48cee4553cc7109e15867f4fe7497d7ad6ce378a6a595912d8209ab81565ca6a0ff6f2c236a9e
|
data/lib/critbit.rb
CHANGED
@@ -21,6 +21,7 @@
|
|
21
21
|
# OR MODIFICATIONS.
|
22
22
|
##########################################################################################
|
23
23
|
|
24
|
+
require 'pp'
|
24
25
|
require_relative '../config'
|
25
26
|
|
26
27
|
##########################################################################################
|
@@ -527,6 +528,15 @@ class Critbit
|
|
527
528
|
#
|
528
529
|
#------------------------------------------------------------------------------------
|
529
530
|
|
531
|
+
# A pretty print for a Hash
|
532
|
+
def pretty_print(pp)
|
533
|
+
pp.pp_hash self
|
534
|
+
end
|
535
|
+
|
536
|
+
#------------------------------------------------------------------------------------
|
537
|
+
#
|
538
|
+
#------------------------------------------------------------------------------------
|
539
|
+
|
530
540
|
# Methods that are not in Hash interface
|
531
541
|
|
532
542
|
#------------------------------------------------------------------------------------
|
data/test/test_critbit.rb
CHANGED
@@ -45,10 +45,10 @@ class CritbitTest < Test::Unit::TestCase
|
|
45
45
|
# Associates "a" to 1, "b" to 2, etc...
|
46
46
|
crit = Critbit["a", 1, "b", 2, "c", 3, "d", 4]
|
47
47
|
p "printing crit: #{crit}"
|
48
|
-
|
48
|
+
|
49
49
|
# Critbit will have the same content as the given hash
|
50
50
|
crit2 = Critbit["a" => 1, "b" => 2, "c" => 3, "d" => 4, "e" => 5]
|
51
|
-
|
51
|
+
|
52
52
|
# Create a Cribit from another Critbit, this will do a copy
|
53
53
|
crit3 = Critbit[crit]
|
54
54
|
|
data/version.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
$gem_name = "critbit"
|
2
|
-
$version="0.5.
|
2
|
+
$version="0.5.2"
|
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.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Rodrigo Botafogo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-10 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: '3.5'
|
19
19
|
name: shoulda
|
20
20
|
prerelease: false
|
21
21
|
type: :development
|
@@ -23,13 +23,13 @@ dependencies:
|
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.5'
|
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'
|
32
|
+
version: '0.11'
|
33
33
|
name: simplecov
|
34
34
|
prerelease: false
|
35
35
|
type: :development
|
@@ -37,13 +37,13 @@ dependencies:
|
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '0.11'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0'
|
46
|
+
version: '0.8'
|
47
47
|
name: yard
|
48
48
|
prerelease: false
|
49
49
|
type: :development
|
@@ -51,7 +51,7 @@ dependencies:
|
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '0.8'
|
55
55
|
description: "\nA crit bit tree, also known as a Binary Patricia Trie is a trie\n\
|
56
56
|
(https://en.wikipedia.org/wiki/Trie), also called digital tree and sometimes radix\
|
57
57
|
\ tree\nor prefix tree (as they can be searched by prefixes), is an ordered tree\
|