macros4cuke 0.3.30 → 0.3.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/CHANGELOG.md +11 -0
- data/README.md +5 -2
- data/Rakefile +14 -0
- data/features/step_definitions/use_macro_steps.rb +1 -1
- data/lib/macros4cuke/constants.rb +1 -1
- metadata +19 -15
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZjlhMDliN2U3MDJiZDBkZDAxNGVhN2RmYjViOTViNjg2MGU0YTk2Zg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YWUyODE0ZWE4MjEwYzFlYjE3OTI1YjZmOWU3ZDVlMjI0NmZlZDczYw==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDUxYTdkYTViMTQ0MTc4NWU3M2JiYTY0MzkxODZmNDJlODIyOWY3M2VmODA5
|
10
|
+
YTcxYWU1NTM3NjVkZDg5ZjAyMDdiZTRkYjRhYWQ5ZjhkNjc5ODc5ZThjMmJm
|
11
|
+
MGM0NzNmZGQ4ZmVmYTQwNzVlYjllNDA5YjRjY2NmOTRkNDQ3ODM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YTYzOTczYWJmYmRlY2YyMjNhMDRkZGY0YzYwODExNjIwYTk5ZDM0YmRhZWI3
|
14
|
+
YzY0ZDljYzk3NDg0ZWQ5NjA2ZDMzNGNmMWY3MzVlMzEwYzRiZDRhMzBkYjhi
|
15
|
+
OWUzM2Q5M2UxZTA4ZTk3MTAyYjVjZDg3N2EzOTM4OGIyZTgwYWQ=
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
### 0.3.32 / 2013-06-19
|
2
|
+
* [FIX] File `macros4cuke.gemspec`: Replaced obsolete code for generating the gem (broken with Rubygem v 2+).
|
3
|
+
* [CHANGE] File `macros4cuke.gemspec`: Added development dependency on rubygem version > 2+
|
4
|
+
|
5
|
+
|
6
|
+
### 0.3.31 / 2013-06-19
|
7
|
+
* [FIX] File `Rakefile`: A bug in Cucumber's Rake task prevented our rake task to complete. We fix temporarily this by monkey-patching Cucumber code until that project has a fix for it.
|
8
|
+
* [CHANGE] File ``
|
9
|
+
* [CHANGE] File `README.md`: Reformulated description in the quick example section.
|
10
|
+
|
11
|
+
|
1
12
|
### 0.3.30 / 2013-06-13
|
2
13
|
* [CHANGE] File `README.md`: Added section `A word on Step Argument Transforms`.
|
3
14
|
* [CHANGE] File `engine.rb`: Changed a few case statements in order to please Rubocop.
|
data/README.md
CHANGED
@@ -34,7 +34,10 @@ Here is a macro-step example taken from our demo files:
|
|
34
34
|
"""
|
35
35
|
```
|
36
36
|
|
37
|
-
|
37
|
+
The first line above specifies the syntax of the macro-step (it is the text between the square brackets).
|
38
|
+
Notice also how the arguments _userid_ and _password_ are enclosed between chevrons (angle brackets) <...>.
|
39
|
+
Finally, the lines delimited by the triple quotes """ represent the Cucumber steps to execute when
|
40
|
+
the macro-step is invoked(used) elsewhere in a feature file.
|
38
41
|
|
39
42
|
|
40
43
|
That macro-step can then be used in a scenario like this:
|
@@ -417,7 +420,7 @@ A first description of this lesser-known functionality is available at
|
|
417
420
|
Does Macros4Cuke provide such a facility for its own macro-step arguments?
|
418
421
|
The answer is no: if macro-steps had their own kind of transformations, then these would have interfere with the ones defined directly in Cucumber.
|
419
422
|
In fact, Cucumber will happily apply transformations on any step, including the macro definition steps and the
|
420
|
-
steps invoking macros. Stated otherwise, the rules pertaining the Step Argument Transforms work as usual. Or almost.
|
423
|
+
steps invoking macros. Stated otherwise, all the rules pertaining to the Step Argument Transforms work as usual. Or almost.
|
421
424
|
There is one very specific case where Cucumber behaves slightly differently: the transforms aren't applied when a sub-step is executed.
|
422
425
|
Internally, Macros4Cuke calls the `Cucumber::RbSupport::RbWorld::#steps` method that allows to run a Gherkin snippet (the substeps),
|
423
426
|
and it appears that this method does not trigger the transforms. In practice, this doesn't prevent the use of transforms together
|
data/Rakefile
CHANGED
@@ -15,6 +15,20 @@ end # namespace
|
|
15
15
|
|
16
16
|
# Cucumber as testing tool
|
17
17
|
require 'cucumber/rake/task'
|
18
|
+
# UGLY workaround for bug in Cucumber's rake task
|
19
|
+
if Gem::VERSION[0].to_i >= 2 && Cucumber::VERSION <= '1.3.2'
|
20
|
+
# Monkey-patch a buggy method
|
21
|
+
class Cucumber::Rake::Task::ForkedCucumberRunner
|
22
|
+
def gem_available?(gemname)
|
23
|
+
if Gem::VERSION[0].to_i >= 2
|
24
|
+
gem_available_new_rubygems?(gemname)
|
25
|
+
else
|
26
|
+
gem_available_old_rubygems?(gemname)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end # class
|
30
|
+
end
|
31
|
+
|
18
32
|
Cucumber::Rake::Task.new do |t|
|
19
33
|
end
|
20
34
|
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: macros4cuke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.32
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Dimitri Geshef
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: cucumber
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ! '>='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rspec
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ! '>='
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ! '>='
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: simplecov
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ! '>='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,11 +62,24 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ! '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: 0.5.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubygems
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.0.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.0.0
|
78
83
|
description: Create your own macro-steps directly in Cucumber scenarios.
|
79
84
|
email: famished.tiger@yahoo.com
|
80
85
|
executables: []
|
@@ -135,6 +140,7 @@ files:
|
|
135
140
|
homepage: https://github.com/famished-tiger/Macros4Cuke
|
136
141
|
licenses:
|
137
142
|
- MIT
|
143
|
+
metadata: {}
|
138
144
|
post_install_message: ! '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
139
145
|
|
140
146
|
Thank you for installing Macros4Cuke...
|
@@ -148,21 +154,19 @@ rdoc_options: []
|
|
148
154
|
require_paths:
|
149
155
|
- lib
|
150
156
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
-
none: false
|
152
157
|
requirements:
|
153
158
|
- - ! '>='
|
154
159
|
- !ruby/object:Gem::Version
|
155
160
|
version: 1.9.1
|
156
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
-
none: false
|
158
162
|
requirements:
|
159
163
|
- - ! '>='
|
160
164
|
- !ruby/object:Gem::Version
|
161
165
|
version: '0'
|
162
166
|
requirements: []
|
163
167
|
rubyforge_project:
|
164
|
-
rubygems_version:
|
168
|
+
rubygems_version: 2.0.3
|
165
169
|
signing_key:
|
166
|
-
specification_version:
|
170
|
+
specification_version: 4
|
167
171
|
summary: Macros for Cucumber
|
168
172
|
test_files: []
|