unobtainium-cucumber 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 0eb7d2ecabf4bca9fa46b5a490bd3383cff40e47
4
- data.tar.gz: 7890da6b2a045957f5465d2c495628eb9431958a
3
+ metadata.gz: 7a660f75cf627ea026d7b31924c42c21cb35632a
4
+ data.tar.gz: 6e6809ac922ebefdcb4e449733fa8f499ae3bc40
5
5
  SHA512:
6
- metadata.gz: 27efbf017c3342919f597ebd8e796504a666217d8cf4019327ead9620156add0e8bfd0a38927aa4606c94636754adf9cdbdb5c5706cc54b2629e708db8b22100
7
- data.tar.gz: 7ef96b3bf4779ebbd70dc974a24bba4a058546536fddfcb9a32e9807cde60cf9beb97869bc77289161db9994baa96cab0e2042a99c8306eaf21bb397ed9972cd
6
+ metadata.gz: 9b4778f0833d553bf02e17c2ff8b65575aa271bac95aecb7994f8fc641d8b317c9154acefa958e5717f266eebed84b1166a31a296db6e784f300af954953ac05
7
+ data.tar.gz: 72f79736ff5da6ee23cb3e4031edfa7449da826ab0dbe93445d27a2900bcecb24c9d3670f0fb8693ba31604325692389967d4188c5e62dc808e37d4134ca5627
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unobtainium-cucumber (0.2.0)
4
+ unobtainium-cucumber (0.2.1)
5
5
  cucumber (~> 2.0)
6
6
  octiron (~> 0.1)
7
7
  unobtainium (~> 0.10)
@@ -53,7 +53,7 @@ GEM
53
53
  multi_test (0.1.2)
54
54
  nokogiri (1.6.8.1)
55
55
  mini_portile2 (~> 2.1.0)
56
- octiron (0.1.0)
56
+ octiron (0.1.1)
57
57
  collapsium (~> 0.8)
58
58
  rgl (~> 0.5)
59
59
  parser (2.3.3.1)
@@ -12,17 +12,15 @@ require 'cucumber'
12
12
 
13
13
  AfterConfiguration do |config|
14
14
  # Register handlers for all Cucumber events on cucumber's event bus.
15
- CUKE_EVENTS ||= [
16
- :after_test_case,
17
- :after_test_step,
18
- :before_test_case,
19
- :before_test_step,
20
- :finished_testing,
21
- :step_match
22
- ].freeze
23
-
24
- CUKE_EVENTS.each do |event_name|
25
- config.on_event(event_name) do |event|
15
+ # Not all classes in the namespace may be events - but it's better to try
16
+ # a few too many than to have to constantly update this file when Cucumber
17
+ # changes.
18
+ ::Cucumber::Events.constants.each do |const|
19
+ event_type = ::Cucumber::Events.const_get(const)
20
+ if not event_type.is_a? Class
21
+ next
22
+ end
23
+ config.on_event(event_type) do |event|
26
24
  ::Octiron::World.event_bus.publish(event)
27
25
  end
28
26
  end
@@ -9,6 +9,6 @@
9
9
  module Unobtainium
10
10
  module Cucumber
11
11
  # The current release version
12
- VERSION = "0.2.0".freeze
12
+ VERSION = "0.2.1".freeze
13
13
  end # module Cucumber
14
14
  end # module Unobtainium
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unobtainium-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Finkhaeuser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-12 00:00:00.000000000 Z
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler