riot 0.12.6 → 0.12.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ module Riot
20
20
  end
21
21
 
22
22
  # Given a {Riot::Situation}, eval the provided block against it and then return a status tuple.
23
- #
23
+ #
24
24
  # @param [Riot::Situation] situation An instance of a {Riot::Situation}
25
25
  # @return [Array<Symbol[, String]>] array containing at least an evaluation state
26
26
  def run(situation)
@@ -39,8 +39,8 @@ module Riot
39
39
  super("setup", &definition)
40
40
  end
41
41
 
42
- # Calls {Riot::Situation#setup} with the predefined block at {Riot::Context} run-time. Though this is
43
- # like every other kind of {Riot::RunnableBlock}, +run+ will not return a meaningful state, which means
42
+ # Calls {Riot::Situation#setup} with the predefined block at {Riot::Context} run-time. Though this is
43
+ # like every other kind of {Riot::RunnableBlock}, +run+ will not return a meaningful state, which means
44
44
  # the reporter will likely not report anything.
45
45
  #
46
46
  # @param [Riot::Situation] situation the situation for the current {Riot::Context} run
@@ -48,13 +48,13 @@ module Riot
48
48
  def run(situation)
49
49
  situation.setup(&definition)
50
50
  [:setup]
51
- rescue Exception => e
51
+ rescue StandardError => e
52
52
  [:setup_error, e]
53
53
  end
54
54
  end # Setup
55
55
 
56
- # Used to decorate a helper. A helper generally ends up being a glorified method that can be referenced
57
- # from within a setup, teardown, hookup, other helpers, assertion blocks, and assertion macro blocks;
56
+ # Used to decorate a helper. A helper generally ends up being a glorified method that can be referenced
57
+ # from within a setup, teardown, hookup, other helpers, assertion blocks, and assertion macro blocks;
58
58
  # basically anywhere the {Riot::Situation} instance is available.
59
59
  #
60
60
  # context "Making dinner" do
@@ -74,8 +74,8 @@ module Riot
74
74
  @name = name
75
75
  end
76
76
 
77
- # Calls {Riot::Situation#helper} with the predefined helper name and block at {Riot::Context} run-time.
78
- # Though this is like every other kind of {Riot::RunnableBlock}, +run+ will not return a meaningful
77
+ # Calls {Riot::Situation#helper} with the predefined helper name and block at {Riot::Context} run-time.
78
+ # Though this is like every other kind of {Riot::RunnableBlock}, +run+ will not return a meaningful
79
79
  # state, which means the reporter will likely not report anything.
80
80
  #
81
81
  # @param [Riot::Situation] situation the situation for the current {Riot::Context} run
@@ -1,4 +1,4 @@
1
1
  module Riot
2
- VERSION = "0.12.6"
2
+ VERSION = "0.12.7"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.6
4
+ version: 0.12.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-10 00:00:00.000000000 Z
12
+ date: 2013-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rr