screengem 0.5.0 → 0.6.0

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: 6a7a41493a4ca0a4c15e7d1ce8a7b41d6a4e5423805c1e004ec6361d4f45b013
4
- data.tar.gz: a7f886c5fdf86ab72a8901758db18bdc79ec3fa88fe70bb3c248511d99caf9e8
3
+ metadata.gz: 21b69c903afb974665c2aa6e4a7bec85d358f77e6098073bc7aa13d1894f9f89
4
+ data.tar.gz: 0a7dfb096d615137892bbcc736157fdd05f804868450bda7768ecb523ed34f4a
5
5
  SHA512:
6
- metadata.gz: f5e5a0c2c42e38c9f6c159f21812d4e68796321184ab384cc9029c433c977644883170a497ad18a640963829c33f662fc3d58004f139f10096bee45d1d97c312
7
- data.tar.gz: 382df31c4b6345a36f40ad36400b86ce1252379618fc3f5d140060072aea12ca63d3f3934e55f6933e7e240b1b05200adb9ad4965e18b645e60dc0be17543282
6
+ metadata.gz: 371bac28fea725a28e8010a772836491991ab49aefe1f542d41b9e8eb5cac5f2cd758044174fe44af906f10eb95e8490974e5f2b9a11637f478f6c8846bed9a5
7
+ data.tar.gz: 60777c62b2ac2e2801a8b9738c01e0418b21b3fbfb07a9e3f5de203887a0025b63f373ca7d1b5bc83b7812cbe81ca0d4d23e49cc3ed9ad460586e94341e45237
data/CHANGELOG.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
- ## 0.5.0 (2019-03-28)
5
+ ## 0.6.0 (2019-04-11)
6
+
7
+ ### New Features
8
+
9
+ * Whenever an actor recalls a value perform a `reload` on the value. Avoid the `reload` by passing `false` to the `reload:` argument.
6
10
 
7
11
  ### New Features
8
12
 
@@ -44,8 +44,10 @@ module Screengem
44
44
  #
45
45
  # Used by an actor to recall a value for the specified tag.
46
46
  #
47
- def recall(tag)
48
- recollections.fetch(tag)
47
+ def recall(tag, reload: true)
48
+ recollections.fetch(tag).tap do |value|
49
+ value.reload if reload && value.respond_to?(:reload)
50
+ end
49
51
  end
50
52
 
51
53
  #
@@ -1,3 +1,3 @@
1
1
  module Screengem
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: screengem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alistair McKinnell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-29 00:00:00.000000000 Z
11
+ date: 2019-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport