tacky 0.3.4 → 0.3.5

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: dd4e8e64a9ed592c8d92d93e08791d8740a8afcc3f8e8128c7153a8511d57758
4
- data.tar.gz: 800da8fe2687e56b1efc6720c0efe11687f8ee88bab63bffee39ae1910a5ca3a
3
+ metadata.gz: 40598eee1ed82e2e5006eecc35038a4bab02536fa749765e3d938ab79cb3d881
4
+ data.tar.gz: f5502a63ac7ed1c7f9930973c97ac10054e61e75a3597d7be57c0df61c662739
5
5
  SHA512:
6
- metadata.gz: 208f8c7a6d707221bb14b182c083940175b61f8f854e141f00d6f6e068ad0befd19c70a2229accbb1d35e65ef0c1f2a6f656586c668a3a2ccae218298b044260
7
- data.tar.gz: 53db9f089722221ae3d510050b520718971ca6abf48b18b8b4b1acd15859413a9dec9134def8d17dd58e38884844f4dc8b05bdce8dc308bec919c2cb350e438d
6
+ metadata.gz: dd4948163e7a0a876bd22eef5b16d82149eca20a78994c876966f669906c0806a0d03ac8d8aaaa5516bbf344b1b789e1da84a0227d2d2f85b290ac360ce858c9
7
+ data.tar.gz: 0bd64a36d50f834ca9ca3ed7eb8bdea38897a23480a29b4d7aa7e56fc18f303d187ecdae2c7f51ba838c71b8af6eb8783ea31ed42486e6fec27b21be0062c6da
@@ -35,7 +35,13 @@ class Tacky
35
35
  undef_method :send
36
36
 
37
37
  # Deep nesting will stop at these classes.
38
- STOP = [Numeric, NilClass, TrueClass, FalseClass, Array, Hash, Time].freeze
38
+ STOP = [
39
+ Numeric, NilClass,
40
+ TrueClass, FalseClass,
41
+ Array, Hash,
42
+ Time,
43
+ String
44
+ ].freeze
39
45
 
40
46
  def initialize(origin, deep: true)
41
47
  @origin = origin
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.rubygems_version = '2.3.3'
32
32
  s.required_ruby_version = '>=2.3'
33
33
  s.name = 'tacky'
34
- s.version = '0.3.4'
34
+ s.version = '0.3.5'
35
35
  s.license = 'MIT'
36
36
  s.summary = 'Primitive Object Memoization for Ruby'
37
37
  s.description = 'Decorate your existing Ruby object with Tacky
@@ -54,4 +54,13 @@ class TackyTest < Minitest::Test
54
54
  assert(first.is_a?(Numeric))
55
55
  assert(bar.child.value == first)
56
56
  end
57
+
58
+ def test_stops_on_string
59
+ foo = Object.new
60
+ def foo.value
61
+ 'hello'
62
+ end
63
+ bar = Tacky.new(foo)
64
+ assert(bar.value.is_a?(String))
65
+ end
57
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tacky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-26 00:00:00.000000000 Z
11
+ date: 2020-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest