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 +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/screengem/actor.rb +4 -2
- data/lib/screengem/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21b69c903afb974665c2aa6e4a7bec85d358f77e6098073bc7aa13d1894f9f89
|
4
|
+
data.tar.gz: 0a7dfb096d615137892bbcc736157fdd05f804868450bda7768ecb523ed34f4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.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
|
|
data/lib/screengem/actor.rb
CHANGED
@@ -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
|
#
|
data/lib/screengem/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|