rambling-trie 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/lib/rambling/trie.rb +1 -1
- data/lib/rambling/trie/configuration/provider_collection.rb +1 -1
- data/lib/rambling/trie/container.rb +1 -1
- data/lib/rambling/trie/forwardable.rb +21 -21
- data/lib/rambling/trie/node.rb +1 -1
- data/lib/rambling/trie/serializers/zip.rb +1 -1
- data/lib/rambling/trie/version.rb +1 -1
- data/spec/spec_helper.rb +0 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fbe7aefce157bea83016a914b7749e186c72540
|
4
|
+
data.tar.gz: 1f52c7e165aea5fbca8aa8343815bcda27f340bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2737f2e4a9e9f65610493b10310441145d284f378aafe047ab4c1759703e44ced97bfc0f1a06e113564bef8bb4cdff68776a520d63c6a55d72ef6bc44c057048
|
7
|
+
data.tar.gz: f74aedcb8d72c8836257f7f37fdcbe24480be16c34bee02b6be0d519a28b4045944edb4a9ae8b099862b3c1564c130b7137471c8739ccabc9d268ce20630d26f
|
data/Gemfile
CHANGED
data/lib/rambling/trie.rb
CHANGED
@@ -3,7 +3,7 @@ module Rambling
|
|
3
3
|
module Configuration
|
4
4
|
# Collection of configurable providers.
|
5
5
|
class ProviderCollection
|
6
|
-
extend
|
6
|
+
extend ::Forwardable
|
7
7
|
|
8
8
|
# The name of this provider collection.
|
9
9
|
# @return [String] the name of this provider collection.
|
@@ -1,21 +1,21 @@
|
|
1
|
-
module Rambling
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
end
|
1
|
+
# module Rambling
|
2
|
+
# module Trie
|
3
|
+
# # Provides delegation behavior.
|
4
|
+
# module Forwardable
|
5
|
+
# # Custom delegation behavior due to Ruby 2.4 delegation performance
|
6
|
+
# # degradation. See {https://bugs.ruby-lang.org/issues/13111 Bug #13111}.
|
7
|
+
# # @param [Hash] methods_to_target a Hash consisting of the methods to be
|
8
|
+
# # delegated and the target to delegate those methods to.
|
9
|
+
# # @return [Hash] the `methods_to_target` parameter.
|
10
|
+
# def delegate methods_to_target
|
11
|
+
# methods_to_target.each do |methods, target|
|
12
|
+
# methods.each do |method|
|
13
|
+
# define_method method do |*args|
|
14
|
+
# send(target).send method, *args
|
15
|
+
# end
|
16
|
+
# end
|
17
|
+
# end
|
18
|
+
# end
|
19
|
+
# end
|
20
|
+
# end
|
21
|
+
# end
|
data/lib/rambling/trie/node.rb
CHANGED
@@ -2,7 +2,7 @@ module Rambling
|
|
2
2
|
module Trie
|
3
3
|
# A representation of a node in the trie data structure.
|
4
4
|
class Node
|
5
|
-
extend
|
5
|
+
extend ::Forwardable
|
6
6
|
include Rambling::Trie::Compressable
|
7
7
|
include Rambling::Trie::Enumerable
|
8
8
|
include Rambling::Trie::Comparable
|
@@ -4,7 +4,7 @@ module Rambling
|
|
4
4
|
# Zip file serializer. Dumps/loads contents from zip files. Automatically
|
5
5
|
# detects if zip file contains `.marshal` or `.yml` file
|
6
6
|
class Zip
|
7
|
-
extend
|
7
|
+
extend ::Forwardable
|
8
8
|
|
9
9
|
# Creates a new Zip serializer.
|
10
10
|
# @param [Properties] properties the configuration properties set up so
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rambling-trie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edgar Gonzalez
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-06-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.6.
|
144
|
+
rubygems_version: 2.6.12
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: A Ruby implementation of the trie data structure.
|