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 +8 -8
- data/.simplecov +1 -1
- data/CHANGELOG.md +4 -0
- data/lib/macro_steps.rb +6 -3
- data/lib/macros4cuke/constants.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2ExZjg4MDU0MGUwOTdjYjRmNGI1Yjg2OTk5MzRhMjM3YWNkZjFmYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDgxZTMyMWI5MTU1NzI5NzlmMGU4ZDhiZmY1NjQ4MWEzNDQzMmJkOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzlhNDE3NWUwZTYyZDNjMmMxZTVlNWY1NjNhMmY2NjU4ZjQ0YWI1M2Y5MDlh
|
10
|
+
NmNmYTZiNzAwZThhYTM1MWRjYTQ0MmYwMzIyNmRkZmNhOWU1OWFmMTIyZjU1
|
11
|
+
ODMwMDFiODFiNjE0OTljZTlmOWQxOWIyNGU3N2RmOGQ3ZjA0YWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjczZTNjNGY3YzM0Njk3ZGM4OTBkMDYwNmQ4ZDYyNjg0ZDdlYTU5ZjE3ZThh
|
14
|
+
M2E3YjI1Y2IxYTVjODcyN2UzMzkwYjMyMmY1NmY0YWRmMGQ3ZjgwM2I5NjUw
|
15
|
+
ZGI2NWRkNzZkOTY3YmI4ODE3OWE3ZTY1MDIwM2YyZDlhMDY3ZTY=
|
data/.simplecov
CHANGED
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
|
-
|
20
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2013-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|