yard-cucumber 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +10 -10
- data/History.txt +4 -0
- data/README.md +12 -12
- data/example/step_definitions/first.step.rb +4 -5
- data/lib/yard-cucumber/version.rb +1 -1
- data/lib/yard/code_objects/cucumber/step.rb +10 -7
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b58d87ac7566d7685123e3fda5a99a6ea299fa06
|
4
|
+
data.tar.gz: 9bf863582ace2843e92b79bc6adcfdc11b082aff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98160416fbfbd4623851f24dc25fe9faee21c346f3c00a5d698b82f19835bd802320ba609f102f70bb9644a65879b8b376eabbd6bac9595648db55424bcd5ca2
|
7
|
+
data.tar.gz: 4497d693975391f2b21667acc0bc2c199eadbf792b94548d82941983c0f12a9fdcaf9bfa391dcebbd3eef64367ba8c3698b1df50ab68fd2c58b61ee21dcd3924
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
yard-cucumber (2.3.
|
4
|
+
yard-cucumber (2.3.1)
|
5
5
|
cucumber (~> 1.3)
|
6
6
|
gherkin (~> 2.12)
|
7
7
|
yard (>= 0.8.1)
|
@@ -10,19 +10,19 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
builder (3.2.2)
|
13
|
-
cucumber (1.3.
|
13
|
+
cucumber (1.3.9)
|
14
14
|
builder (>= 2.1.2)
|
15
15
|
diff-lcs (>= 1.1.3)
|
16
|
-
gherkin (~> 2.12
|
17
|
-
multi_json (
|
18
|
-
multi_test (
|
19
|
-
diff-lcs (1.2.
|
20
|
-
gherkin (2.12.
|
16
|
+
gherkin (~> 2.12)
|
17
|
+
multi_json (>= 1.7.5, < 2.0)
|
18
|
+
multi_test (>= 0.0.2)
|
19
|
+
diff-lcs (1.2.5)
|
20
|
+
gherkin (2.12.2)
|
21
21
|
multi_json (~> 1.3)
|
22
|
-
multi_json (1.
|
23
|
-
multi_test (0.0.
|
22
|
+
multi_json (1.8.2)
|
23
|
+
multi_test (0.0.2)
|
24
24
|
redcarpet (2.2.2)
|
25
|
-
yard (0.8.
|
25
|
+
yard (0.8.7.3)
|
26
26
|
|
27
27
|
PLATFORMS
|
28
28
|
ruby
|
data/History.txt
CHANGED
data/README.md
CHANGED
@@ -17,25 +17,25 @@ an example and see if it would assist your project from a multitude of
|
|
17
17
|
perspectives: as the project's core developer; another developer or a new
|
18
18
|
developer; quality assurance engineer; or product owner/stakeholder.
|
19
19
|
|
20
|
-
The implemented example has been deployed at [http://
|
20
|
+
The implemented example has been deployed at [http://franklinwebber.com/cukes/](http://franklinwebber.com/cukes/).
|
21
21
|
|
22
|
-
**1. View Features and Scenarios** [example](http://
|
22
|
+
**1. View Features and Scenarios** [example](http://franklinwebber.com/cukes/requirements.html)
|
23
23
|
|
24
|
-
**2. Search through [features, scenarios](http://
|
24
|
+
**2. Search through [features, scenarios](http://franklinwebber.com/cukes/feature_list.html), and [tags](http://franklinwebber.com/cukes/tag_list.html)**
|
25
25
|
|
26
|
-
**3. Dynamic Tag Unions and Intersections** [example](http://
|
26
|
+
**3. Dynamic Tag Unions and Intersections** [example](http://franklinwebber.com/cukes/requirements/tags.html)
|
27
27
|
|
28
|
-
**4. View all features and scenarios by tag** [example](http://
|
28
|
+
**4. View all features and scenarios by tag** [example](http://franklinwebber.com/cukes/requirements/tags/bvt.html)
|
29
29
|
|
30
|
-
**5. View Step Definitions and Transforms** [example](http://
|
30
|
+
**5. View Step Definitions and Transforms** [example](http://franklinwebber.com/cukes/requirements/step_transformers.html)
|
31
31
|
|
32
|
-
**6. All steps [matched](http://
|
32
|
+
**6. All steps [matched](http://franklinwebber.com/cukes/requirements/step_transformers.html#definition_5-stepdefinition) to step definitions**
|
33
33
|
|
34
|
-
**7. [Steps](http://
|
34
|
+
**7. [Steps](http://franklinwebber.com/cukes/requirements/step_transformers.html#step_transform7-steptransform) that have transforms applied to them**
|
35
35
|
|
36
|
-
**8. [Undefined steps](http://
|
36
|
+
**8. [Undefined steps](http://franklinwebber.com/cukes/requirements/step_transformers.html#undefined_steps) and even [Rubular](http://rubular.com/) links of your step definitions.**
|
37
37
|
|
38
|
-
**9. Feature directories with a README.md will be parsed into the description** [example](http://
|
38
|
+
**9. Feature directories with a README.md will be parsed into the description** [example](http://franklinwebber.com/cukes/requirements/example/child_feature.html)
|
39
39
|
|
40
40
|
**10. Configurable Menus - want a searchable steps menu and remove the tags menu**
|
41
41
|
|
@@ -92,7 +92,7 @@ This can be configured through the yard configuration file `~/.yard/config` to
|
|
92
92
|
add or remove these search fields.
|
93
93
|
|
94
94
|
```yaml
|
95
|
-
--- !map:SymbolHash
|
95
|
+
--- !map:SymbolHash
|
96
96
|
:load_plugins: true
|
97
97
|
:ignored_plugins: []
|
98
98
|
|
@@ -100,7 +100,7 @@ add or remove these search fields.
|
|
100
100
|
|
101
101
|
:safe_mode: false
|
102
102
|
|
103
|
-
:"yard-cucumber":
|
103
|
+
:"yard-cucumber":
|
104
104
|
menus: [ 'features', 'directories', 'tags', 'steps', 'step definitions' ]
|
105
105
|
```
|
106
106
|
|
@@ -8,15 +8,14 @@ end
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# This step transform converts "scenario" to "scenario"
|
11
|
-
#
|
11
|
+
#
|
12
12
|
Transform /^scenario$/ do |scenario|
|
13
13
|
"scenario"
|
14
14
|
end
|
15
15
|
|
16
16
|
#
|
17
17
|
# This step definition is all about steps
|
18
|
-
#
|
19
|
-
Given
|
18
|
+
#
|
19
|
+
Given /^this (scenario|background|#{ORDER}) step$/ do |step|
|
20
20
|
puts "step #{order}"
|
21
|
-
end
|
22
|
-
|
21
|
+
end
|
@@ -3,16 +3,16 @@
|
|
3
3
|
module YARD::CodeObjects::Cucumber
|
4
4
|
|
5
5
|
class Step < Base
|
6
|
-
|
6
|
+
|
7
7
|
attr_accessor :comments, :definition, :examples, :keyword, :scenario, :table, :text, :transforms, :value
|
8
|
-
|
8
|
+
|
9
9
|
def initialize(namespace,name)
|
10
10
|
super(namespace,name.to_s.strip)
|
11
11
|
@comments = @definition = @description = @keyword = @table = @text = @value = nil
|
12
12
|
@examples = {}
|
13
13
|
@transforms = []
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
def has_table?
|
17
17
|
!@table.nil?
|
18
18
|
end
|
@@ -20,16 +20,19 @@ module YARD::CodeObjects::Cucumber
|
|
20
20
|
def has_text?
|
21
21
|
!@text.nil?
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
def definition=(stepdef)
|
25
25
|
@definition = stepdef
|
26
|
-
|
26
|
+
|
27
|
+
unless stepdef.steps.map(&:files).include?(files)
|
28
|
+
stepdef.steps << self
|
29
|
+
end
|
27
30
|
end
|
28
|
-
|
31
|
+
|
29
32
|
def transformed?
|
30
33
|
!@transforms.empty?
|
31
34
|
end
|
32
35
|
|
33
36
|
end
|
34
37
|
|
35
|
-
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franklin Webber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gherkin
|
@@ -160,10 +160,10 @@ licenses:
|
|
160
160
|
- MIT
|
161
161
|
metadata: {}
|
162
162
|
post_install_message: "\n(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
|
163
|
-
(::) (::) (::)\n\n Thank you for installing yard-cucumber 2.3.
|
164
|
-
\ Changes:\n \n *
|
165
|
-
|
166
|
-
(::) (::) (::) (::)
|
163
|
+
(::) (::) (::)\n\n Thank you for installing yard-cucumber 2.3.2 / 2013-11-08.\n\n
|
164
|
+
\ Changes:\n \n * De-duping uses of step definitions when the line number is
|
165
|
+
the same (ipwnstuff)\n \n\n(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
|
166
|
+
(::) (::) (::) (::)\n\n"
|
167
167
|
rdoc_options:
|
168
168
|
- --charset=UTF-8
|
169
169
|
require_paths:
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.1.9
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: Cucumber Features in YARD
|