screengem 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/screengem/actor.rb +7 -0
- 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: 90e75e14a7693927e30b7b23bd7866745baad5d347ae53506fbc91a1c0028ab1
|
4
|
+
data.tar.gz: b6b0827211322a950f065b0adb4417397797ff0dd69da5aaa508d062cf04a1a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae4b0d7aa6a4943fa8484258389a33899a72f566ca130347270e88ba9e490e9083e56d999be03fdd19b354875160432e5c987070bfc43b066eb2bdaaa8c756ec
|
7
|
+
data.tar.gz: acd49c049e3e2cf7e2b75a0909f484fa699f8f2cf9c5f09bcc12652b4f849745a0f91e37fb02867624c80062c87a015322a943560f752662e9bb54f3dee8359e
|
data/CHANGELOG.md
CHANGED
data/lib/screengem/actor.rb
CHANGED
@@ -45,6 +45,13 @@ module Screengem
|
|
45
45
|
# Used by an actor to recall a value for the specified tag.
|
46
46
|
#
|
47
47
|
def recall(tag, reload: true)
|
48
|
+
unless recollections.key?(tag)
|
49
|
+
raise <<~MSG
|
50
|
+
#{name} does not recall #{tag}
|
51
|
+
#{name} recalls: #{recollections.keys.to_sentence}
|
52
|
+
MSG
|
53
|
+
end
|
54
|
+
|
48
55
|
recollections.fetch(tag).tap do |value|
|
49
56
|
value.reload if reload && value.respond_to?(:reload)
|
50
57
|
end
|
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.7.
|
4
|
+
version: 0.7.2
|
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-04-
|
11
|
+
date: 2019-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|