decode 0.18.1 → 0.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6161432dca8cff543a44aa7077863081acc65e2c30ae5a71a6cee66c8c0ff1fa
4
- data.tar.gz: 6881ade662a2414f923631ff5e34a90c4df6adf7501f9b973fad2a74fc231f74
3
+ metadata.gz: f17b6f1d365d4a2cc7e5dcaaaf1a996bd0310d677857ab6453978c54883b670f
4
+ data.tar.gz: cf683fb056b7b4f28bd6b996bc69f333a500b72255b2199b88608bd39dd9ddcb
5
5
  SHA512:
6
- metadata.gz: 4f3b92e010e0d756e1462702efaef891f148ac804f2aaf9c3df4cd9f5e8a2fc5957c68fe2a9013bef25643805ff30c9c4501c66d2580d43026f5a4fe025ee277
7
- data.tar.gz: 4bfbb2545dba5f1921c5a222bbd7fddb895a7fe29418b5280573a26a82814dee387b3377bfe6738d493059735d7a7ae444a51e3b0a8f0106166aa706b9cc2697
6
+ metadata.gz: cb0ec6721704e0206fbd34c82b58bf260e06001bb9516924f1a694c5daea879fb520cceb8c8772e45cf9fdc0086e7113f35ad45b9f310cbff27cee0b61d4d204
7
+ data.tar.gz: 3ce48d86ab7e0e785849cde5a2e22caa82abf3676538e600e19bb5ca956d22c7db333e8684531ba1a8ac916ea7454dbc2893f70a0bc94acfa88526f9945165cb
checksums.yaml.gz.sig CHANGED
Binary file
@@ -40,10 +40,12 @@ module Decode
40
40
  @qualified_name = nil
41
41
  end
42
42
 
43
- def to_s
43
+ def inspect
44
44
  "\#<#{self.class} #{qualified_name}>"
45
45
  end
46
46
 
47
+ alias to_s inspect
48
+
47
49
  # The symbol name.
48
50
  # e.g. `:Decode`.
49
51
  # @attribute [Symbol]
data/lib/decode/index.rb CHANGED
@@ -37,6 +37,12 @@ module Decode
37
37
  @trie = Trie.new
38
38
  end
39
39
 
40
+ def inspect
41
+ "#<#{self.class} #{@definitions.size} definition(s)>"
42
+ end
43
+
44
+ alias to_s inspect
45
+
40
46
  # All supported languages for this index.
41
47
  # @attribute [Languages]
42
48
  attr :languages
data/lib/decode/trie.rb CHANGED
@@ -30,6 +30,12 @@ module Decode
30
30
  @children = Hash.new
31
31
  end
32
32
 
33
+ def inspect
34
+ "#<#{self.class} #{@children.size} children"
35
+ end
36
+
37
+ alias to_s inspect
38
+
33
39
  # A mutable array of all values that terminate at this node.
34
40
  # @attribute [Array]
35
41
  attr_accessor :values
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Decode
22
- VERSION = "0.18.1"
22
+ VERSION = "0.18.4"
23
23
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.18.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file