macros4cuke 0.5.09 → 0.5.10

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDQ1MjA4MDZkNTBlNTE4YzRiZDNmMDczYzg0Yjk4YmFlNmJjOThlNQ==
4
+ MWQxNDE3M2Q5OWMzMzk5YmI0MDJkZWIxMWVjZGI5NTk1Zjc4YTJhMA==
5
5
  data.tar.gz: !binary |-
6
- ZmMwNzU4NmE0N2M0ODcyMmExOGZkMjc2Yzc0NWFkZmYyYmE3OWZiYw==
6
+ MGY2MDQxZjc0MTgxOWQ3N2U0MTg2MmE2ZmE0ZWZkZGVlMWI4ODZmNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YzVmZjUxY2I3OWE0MzVjMTk3OWE4MTRiZWE4OTg1YjY5OGU2Njc3NjMwYjAz
10
- MzU3Y2QxOGFkNWI3YzE3ZGI1YWJlODEzOWE0ZGE5MjYxMTljNTU1N2I4OTQ2
11
- NjE5ODRmZTlhMjYyZjAwNGQ5ZTZkNmE4Y2RhM2E3OGUzYzQzNTk=
9
+ NGY1NGYxMTQ2M2E4MjgxMmExMzJhOTYxNDdjNDdiMGVmNWJiZTcwOTg1ZTI2
10
+ NTk3NjExMDliOGZjYzBhODdmOTc2MjhmMGY2Y2U3NGE5OWIyY2FiYTg1ODdm
11
+ NDkzMGM2N2YyMTViNzdhODk1MTdmYzBkYWE1MDg4YzMwNGY4MDY=
12
12
  data.tar.gz: !binary |-
13
- ZWU3NzczMjM1MzhkOWU4ZTZlMTRkZDhlMTU3OGVjMjg2ZmE1ZDI4OWNiODg0
14
- YWI3MmUyY2JjM2U0OGQxZTUzZDNkZmI5NWQ3YzllZDgzYjY2MjJiOTJhZDY5
15
- Nzg3MGRkOWM3NmE3MjBjZjRkNGQ2MGFiZTQ0MjhiNDY3YWIxMjg=
13
+ N2I5ZjhmMTJhNjMwOTE5YmE2MDU1ZjA3MGJiMDM5Y2Y1NGQzZDNhNjkwODBi
14
+ Y2M1MjUyNmEyNGMzZmUxNTJiNGNmYjdlMzg0YzQ1ZjMzNjNkOGFiYzk1YTZi
15
+ MjE3ZGU3NWIwYWNkNTVjNWI4OGEzNjJiYzkzOGQxYjYyY2ZmMWE=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 0.5.10 / 2015-03-26
2
+ * [CHANGE] Minimal code layout reformat in `CollWalkerFactory#build_walker` to please Rubocop 0.29.1
3
+
1
4
  ### 0.5.09 / 2015-02-06
2
5
  * [CHANGE] Minimal code layout reformat to please Rubocop 0.29.0
3
6
  * [CHANGE] File `README.md` added licensing badge (MIT license)
@@ -12,14 +12,17 @@ class CollWalkerFactory
12
12
  # Structure used internally by the walker
13
13
  StringNode = Struct.new(:event, :text, :extra)
14
14
 
15
+ # Factory method.
16
+ # @param aMacroCollection [MacroCollection] The collection of macros
17
+ # encountered so far
18
+ # @return [Enumerator]
15
19
  def build_walker(aMacroCollection)
16
20
  level = 0
17
21
  collection = aMacroCollection
18
22
  current_node = collection
19
23
  backlog = collection.macro_steps.values
20
24
 
21
- visitor = Enumerator.new do
22
- |result_receiver| # 'result_receiver' is a Yielder
25
+ visitor = Enumerator.new do |result_receiver| # argument is a Yielder
23
26
  loop do
24
27
  case current_node
25
28
  when MacroCollection
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Macros4Cuke # Module used as a namespace
5
5
  # The version number of the gem.
6
- Version = '0.5.09'
6
+ Version = '0.5.10'
7
7
 
8
8
  # Brief description of the gem.
9
9
  Description = 'Add your own macro-steps to Cucumber scenarios'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macros4cuke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.09
4
+ version: 0.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitri Geshef
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-06 00:00:00.000000000 Z
11
+ date: 2015-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber