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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1963940428772eca9b32c994738d25e3f482a892ad7f135fa885dfa83e72fecd
4
- data.tar.gz: fd5d06de4249c2a066e1e28702de267f0d587eb364f923e7b9338b60ed4d11c4
3
+ metadata.gz: 141d024be1f546789a6548c4914599211f407da59e02361f02cfdeba7dda41be
4
+ data.tar.gz: b240524a0a1ac1c76ae30c5f74c20d9ee738d93a5b01a56b2c476725f23e394b
5
5
  SHA512:
6
- metadata.gz: def8c0d84aa671c392e5cfee0072546390167e3ddb3ac62cf7afa9f8e41481b3eb6183b76aed2ede8f8d5b59ca56d4312388f15095d529ab9816116cb9f95767
7
- data.tar.gz: 95b21f5e82c69c1a3150ceaf425a475817d5e69c1f8036bdd8599eba32450dd8b549b7b29aa21cdb002563b1e60ab3d3f574c88b32f2b2a73f794ade2fdd64ac
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] [![Dependency Status][gemnasium_badge]][gemnasium_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]
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.3.0 or up
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.3.x
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.slice!(0).to_sym
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.slice!(0).to_sym
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.slice!(0).to_sym
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.slice!(0).to_sym
70
+ letter = chars.shift.to_sym
71
71
  child = children_tree[letter]
72
72
 
73
73
  return unless child
@@ -19,7 +19,7 @@ module Rambling
19
19
  # String representation of the current node.
20
20
  # @return [String] the string representation of the current node.
21
21
  def to_s
22
- parent.to_s << letter.to_s
22
+ parent.to_s + letter.to_s
23
23
  end
24
24
  end
25
25
  end
@@ -3,6 +3,6 @@
3
3
  module Rambling
4
4
  module Trie
5
5
  # Current version of the rambling-trie.
6
- VERSION = '2.1.0'
6
+ VERSION = '2.1.1'
7
7
  end
8
8
  end
@@ -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', '~> 12.3'
35
- gem.add_development_dependency 'rspec', '~> 3.7'
36
- gem.add_development_dependency 'yard', '~> 0.9.12'
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 eq formatted_content.size
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.0
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: 2019-07-28 00:00:00.000000000 Z
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: '12.3'
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: '12.3'
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.7'
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.7'
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.12
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.12
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.0.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: