macros4cuke 0.3.41 → 0.3.42

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
- ZDkzOGEyMzQ1MzI5ZWFjYWRkMDNkZjc1ZjhkZGRjZWJlNDhiNmRkOA==
4
+ N2ExZjg4MDU0MGUwOTdjYjRmNGI1Yjg2OTk5MzRhMjM3YWNkZjFmYQ==
5
5
  data.tar.gz: !binary |-
6
- M2I1NGFlNjE3Mjg3ZWNkZmFlZDRmYTRiN2ZkM2FjYzE3ZTM3MzhkMA==
6
+ MDgxZTMyMWI5MTU1NzI5NzlmMGU4ZDhiZmY1NjQ4MWEzNDQzMmJkOQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YmFkZDQyNmRiNGU1NTZhN2NlMmQ1MTA1ODM4ZDNmZjI3NDg5OTMzYjRlNjY2
10
- MjUzYzQ4NDU1YjIyNGNiMTkxYjFkMGIwYzg5Yzg3MDY5ZTRhMTE4MTZlYjZm
11
- MGZiM2NkMGI3NjBhNjljN2EyMTJiOTk2N2QxMDlkYjRiYTVkNWQ=
9
+ MzlhNDE3NWUwZTYyZDNjMmMxZTVlNWY1NjNhMmY2NjU4ZjQ0YWI1M2Y5MDlh
10
+ NmNmYTZiNzAwZThhYTM1MWRjYTQ0MmYwMzIyNmRkZmNhOWU1OWFmMTIyZjU1
11
+ ODMwMDFiODFiNjE0OTljZTlmOWQxOWIyNGU3N2RmOGQ3ZjA0YWI=
12
12
  data.tar.gz: !binary |-
13
- NmYzYmIzZGM3YTNjNjNhMWQ5OTA5ZjkzYjBjMTdlYWIzZTgzYWZhY2RjN2Yw
14
- NDJhODNlYzA2Y2ViNDhmMDBlOTNkODVkOTQ1NDJmYmQxMWZkMDdkOTJkOGJm
15
- NzhkNjVhNzEzMDVjZjJlOTRjNmUzMWY4MjA2YTZkYjQ4NmIwZDU=
13
+ MjczZTNjNGY3YzM0Njk3ZGM4OTBkMDYwNmQ4ZDYyNjg0ZDdlYTU5ZjE3ZThh
14
+ M2E3YjI1Y2IxYTVjODcyN2UzMzkwYjMyMmY1NmY0YWRmMGQ3ZjgwM2I5NjUw
15
+ ZGI2NWRkNzZkOTY3YmI4ODE3OWE3ZTY1MDIwM2YyZDlhMDY3ZTY=
data/.simplecov CHANGED
@@ -1,5 +1,5 @@
1
1
  # .simplecov
2
- require 'coveralls'
2
+ # Configuration
3
3
 
4
4
  SimpleCov.start do
5
5
  # Remove all files that match /spec/ in their path
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.3.42 / 2013-10-04
2
+ * [CHANGE] File `macro_steps.rb`: Regular expression for defining step uses now the /x option.
3
+ * [FIX] File `.simplecov` Removal of premataure dependency to 'coveralls' gem
4
+
1
5
  ### 0.3.41 / 2013-10-03
2
6
  * [CHANGE] File `env.rb`: Updated the exception handler when requiring `simplecov` to prevent the
3
7
  `Do not suppress exceptions` warning.
data/lib/macro_steps.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # File: macro_steps.rb
2
2
  # Purpose: step definitions that help to build macro-steps
3
- # (i.e. a step that is equivalent to a sequence of steps)
3
+ # (i.e. a Cucumber step that is equivalent to a sequence of sub-steps)
4
4
 
5
5
 
6
6
 
@@ -16,8 +16,11 @@
16
16
  # """
17
17
  # The regexp has two capturing group: one for the phrase,
18
18
  # a second for the terminating colon (:)
19
- Given(/^I define the step "(?:Given|When|Then|\*) I \[((?:[^\\\]]|\\.)+)\](:?)" to mean:$/) do
20
- |macro_phrase, colon_capture, template|
19
+ # The regular expression uses the /x option in order to split it in pieces
20
+ Given(/^I\sdefine\sthe\sstep\s" # Fixed part of defining step
21
+ (?:Given|When|Then|\*)\s # ... A keyword that starts the new step
22
+ I\s\[((?:[^\\\]]|\\.)+)\](:?) # ...I followed by text in square brackets
23
+ "\sto\smean:$/x) do |macro_phrase, colon_capture, template|
21
24
  use_table = (colon_capture == ':')
22
25
  add_macro(macro_phrase, template, use_table)
23
26
  end
@@ -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.3.41'
6
+ Version = '0.3.42'
7
7
 
8
8
  # Brief description of the gem.
9
9
  Description = 'Macro-steps for Cucumber'
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.3.41
4
+ version: 0.3.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitri Geshef
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-03 00:00:00.000000000 Z
11
+ date: 2013-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber