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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0f99a511e85ed2b6f1232ca2ffa53e296ab97be13bdaecadce83657b33e6915
4
- data.tar.gz: 16e8d91f9c89f33a82a1d2e1b6c8917e016c132df1f101c6953d50c4ab1f7f89
3
+ metadata.gz: 90e75e14a7693927e30b7b23bd7866745baad5d347ae53506fbc91a1c0028ab1
4
+ data.tar.gz: b6b0827211322a950f065b0adb4417397797ff0dd69da5aaa508d062cf04a1a0
5
5
  SHA512:
6
- metadata.gz: 072bf89ce61351a3fcab0bc150cfe7319e10d60c67bffd8a056637f0a62c884cb5eae84a324dcfbabdc65755bc881c20fc192f2567364fab858cde0ae33d5c88
7
- data.tar.gz: a34105be1cb51ef91a904f650befc987d49cdf3150e170264811b0106f3355f2f79749ba461d5d7a6c76d2d7cf88c1c17505e447ab2f25b5e1b7b9ec1300a1a5
6
+ metadata.gz: ae4b0d7aa6a4943fa8484258389a33899a72f566ca130347270e88ba9e490e9083e56d999be03fdd19b354875160432e5c987070bfc43b066eb2bdaaa8c756ec
7
+ data.tar.gz: acd49c049e3e2cf7e2b75a0909f484fa699f8f2cf9c5f09bcc12652b4f849745a0f91e37fb02867624c80062c87a015322a943560f752662e9bb54f3dee8359e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 0.7.2 (2019-04-25)
6
+
7
+ ### New Features
8
+
9
+ * Improved error message when a fact cannot be recalled.
10
+
5
11
  ## 0.7.1 (2019-04-20)
6
12
 
7
13
  ### Bug fixes
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Screengem
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
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.7.1
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-20 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport