rambling-trie 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/lib/rambling/trie/nodes/raw.rb +4 -4
- data/lib/rambling/trie/stringifyable.rb +1 -1
- data/lib/rambling/trie/version.rb +1 -1
- data/rambling-trie.gemspec +3 -3
- data/spec/lib/rambling/trie/configuration/provider_collection_spec.rb +1 -1
- data/spec/support/shared_examples/a_serializer.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 141d024be1f546789a6548c4914599211f407da59e02361f02cfdeba7dda41be
|
4
|
+
data.tar.gz: b240524a0a1ac1c76ae30c5f74c20d9ee738d93a5b01a56b2c476725f23e394b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6adf895fb85abea8da053f65656edcb7b29a67b2059832980d0c4aa1fdb6b5858807aac3cd8033fa2c2dd349f152131164c1a17441e3de30c701fdc04089ecb2
|
7
|
+
data.tar.gz: 4eebd5bc4b6cc57df1bc47993f257c2185b0d2d19cf3488cd6a2bdaa101ce8be5721cde2eacc03b5e12bc84a847b7542a684d1425443939c27c7c409c83e03bc
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Rambling Trie
|
2
2
|
|
3
|
-
[![Gem Version][badge_fury_badge]][badge_fury_link] [![
|
3
|
+
[![Gem Version][badge_fury_badge]][badge_fury_link] [![Build Status][travis_ci_badge]][travis_ci_link] [![Code Climate][code_climate_badge]][code_climage_link] [![Coverage Status][coveralls_badge]][coveralls_link] [![Documentation Status][inch_ci_badge]][inch_ci_link] [![License][license_badge]][license_link]
|
4
4
|
|
5
5
|
The Rambling Trie is a Ruby implementation of the [trie data structure][trie_wiki], which includes compression abilities and is designed to be very fast to traverse.
|
6
6
|
|
@@ -10,7 +10,7 @@ The Rambling Trie is a Ruby implementation of the [trie data structure][trie_wik
|
|
10
10
|
|
11
11
|
You will need:
|
12
12
|
|
13
|
-
* Ruby 2.
|
13
|
+
* Ruby 2.5.0 or up
|
14
14
|
* RubyGems
|
15
15
|
|
16
16
|
See [RVM][rvm], [rbenv][rbenv] or [chruby][chruby] for more information on how to manage Ruby versions.
|
@@ -242,13 +242,14 @@ You can find further API documentation on the autogenerated [rambling-trie gem R
|
|
242
242
|
|
243
243
|
The Rambling Trie has been tested with the following Ruby versions:
|
244
244
|
|
245
|
+
* 2.7.x
|
245
246
|
* 2.6.x
|
246
247
|
* 2.5.x
|
247
|
-
* 2.4.x
|
248
248
|
|
249
249
|
**No longer supported**:
|
250
250
|
|
251
|
-
* 2.
|
251
|
+
* 2.4.x (EOL'ed)
|
252
|
+
* 2.3.x (EOL'ed)
|
252
253
|
* 2.2.x
|
253
254
|
* 2.1.x
|
254
255
|
* 2.0.x
|
@@ -39,7 +39,7 @@ module Rambling
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def partial_word_chars? chars = []
|
42
|
-
letter = chars.
|
42
|
+
letter = chars.shift.to_sym
|
43
43
|
child = children_tree[letter]
|
44
44
|
return false unless child
|
45
45
|
|
@@ -47,7 +47,7 @@ module Rambling
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def word_chars? chars = []
|
50
|
-
letter = chars.
|
50
|
+
letter = chars.shift.to_sym
|
51
51
|
child = children_tree[letter]
|
52
52
|
return false unless child
|
53
53
|
|
@@ -55,7 +55,7 @@ module Rambling
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def closest_node chars
|
58
|
-
letter = chars.
|
58
|
+
letter = chars.shift.to_sym
|
59
59
|
child = children_tree[letter]
|
60
60
|
return missing unless child
|
61
61
|
|
@@ -67,7 +67,7 @@ module Rambling
|
|
67
67
|
|
68
68
|
return if chars.empty?
|
69
69
|
|
70
|
-
letter = chars.
|
70
|
+
letter = chars.shift.to_sym
|
71
71
|
child = children_tree[letter]
|
72
72
|
|
73
73
|
return unless child
|
data/rambling-trie.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |gem|
|
|
31
31
|
gem.platform = Gem::Platform::RUBY
|
32
32
|
gem.required_ruby_version = '~> 2.4'
|
33
33
|
|
34
|
-
gem.add_development_dependency 'rake', '~>
|
35
|
-
gem.add_development_dependency 'rspec', '~> 3.
|
36
|
-
gem.add_development_dependency 'yard', '~> 0.9.
|
34
|
+
gem.add_development_dependency 'rake', '~> 13.0'
|
35
|
+
gem.add_development_dependency 'rspec', '~> 3.9'
|
36
|
+
gem.add_development_dependency 'yard', '~> 0.9.25'
|
37
37
|
end
|
@@ -88,7 +88,7 @@ describe Rambling::Trie::Configuration::ProviderCollection do
|
|
88
88
|
context 'when the given value is not in the providers list' do
|
89
89
|
it 'raises an error and keeps the default provider' do
|
90
90
|
expect { provider_collection.default = other_provider }
|
91
|
-
.to raise_error
|
91
|
+
.to raise_error(ArgumentError)
|
92
92
|
.and(not_change { provider_collection.default })
|
93
93
|
end
|
94
94
|
|
@@ -21,7 +21,7 @@ shared_examples_for 'a serializer' do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
it 'converts the contents to the appropriate format' do
|
24
|
-
expect(File.read(filepath).size).to
|
24
|
+
expect(File.read(filepath).size).to be_within(10).of formatted_content.size
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rambling-trie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edgar Gonzalez
|
8
8
|
- Lilibeth De La Cruz
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -17,42 +17,42 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '13.0'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '13.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rspec
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '3.
|
34
|
+
version: '3.9'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '3.
|
41
|
+
version: '3.9'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: yard
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.9.
|
48
|
+
version: 0.9.25
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.9.
|
55
|
+
version: 0.9.25
|
56
56
|
description: 'The Rambling Trie is a Ruby implementation of the trie data structure,
|
57
57
|
which includes compression abilities and is designed to be very fast to traverse. '
|
58
58
|
email:
|
@@ -129,7 +129,7 @@ homepage: http://github.com/gonzedge/rambling-trie
|
|
129
129
|
licenses:
|
130
130
|
- MIT
|
131
131
|
metadata: {}
|
132
|
-
post_install_message:
|
132
|
+
post_install_message:
|
133
133
|
rdoc_options: []
|
134
134
|
require_paths:
|
135
135
|
- lib
|
@@ -144,8 +144,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
148
|
-
signing_key:
|
147
|
+
rubygems_version: 3.1.2
|
148
|
+
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: A Ruby implementation of the trie data structure.
|
151
151
|
test_files:
|