tacky 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/tacky.rb +1 -1
  4. data/tacky.gemspec +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa709c2e4302b035d5fb70587796dbfae3b784955332c8db3ec274eba4b45c69
4
- data.tar.gz: e602b904e63dd8c7914959ae97f87124b66b0635ad4169d88c6fec37b08ca324
3
+ metadata.gz: dd4e8e64a9ed592c8d92d93e08791d8740a8afcc3f8e8128c7153a8511d57758
4
+ data.tar.gz: 800da8fe2687e56b1efc6720c0efe11687f8ee88bab63bffee39ae1910a5ca3a
5
5
  SHA512:
6
- metadata.gz: 57035b02d88b63a987bf6945d3e80ade02bad301d4fcb2f71d5c16327dee271a5def0abaf293cdfed6251a808494979bb9b9fbe3b3291f9943e913ca89a72c0b
7
- data.tar.gz: 4476e756bf79c51df215606282fa9a762b7ca52ceecdcacb54c09beab2a26330018c5c778d30e8d703c9eb30e24d13dbbd76d06e0e9e56adfd3553e8fdc6bd69
6
+ metadata.gz: 208f8c7a6d707221bb14b182c083940175b61f8f854e141f00d6f6e068ad0befd19c70a2229accbb1d35e65ef0c1f2a6f656586c668a3a2ccae218298b044260
7
+ data.tar.gz: 53db9f089722221ae3d510050b520718971ca6abf48b18b8b4b1acd15859413a9dec9134def8d17dd58e38884844f4dc8b05bdce8dc308bec919c2cb350e438d
data/README.md CHANGED
@@ -29,7 +29,7 @@ obj = Tacky.new(obj)
29
29
  That's it, all method calls will be cached.
30
30
 
31
31
  If you want all methods of everything your methods return be cached, you
32
- need to use "deep" caching:
32
+ need to use "deep" caching (it's `true` by default):
33
33
 
34
34
 
35
35
  ```ruby
data/lib/tacky.rb CHANGED
@@ -37,7 +37,7 @@ class Tacky
37
37
  # Deep nesting will stop at these classes.
38
38
  STOP = [Numeric, NilClass, TrueClass, FalseClass, Array, Hash, Time].freeze
39
39
 
40
- def initialize(origin, deep: false)
40
+ def initialize(origin, deep: true)
41
41
  @origin = origin
42
42
  @cache = {}
43
43
  @deep = deep
data/tacky.gemspec CHANGED
@@ -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.3'
34
+ s.version = '0.3.4'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tacky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko