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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dadb00b06fe39a5adcb935bbc8b19ae107d57b89
4
- data.tar.gz: 9edf0cf45fcf345cb1ddbfb5ae50c2797f32be31
3
+ metadata.gz: b58d87ac7566d7685123e3fda5a99a6ea299fa06
4
+ data.tar.gz: 9bf863582ace2843e92b79bc6adcfdc11b082aff
5
5
  SHA512:
6
- metadata.gz: cde12b1824d7a3e6c482950174e3b7d791e40933a3e1a2d16f4f90e0ebc2b29b454edba2d7c9ade84459001b8306ef180e80485ab1dc443533531daa35543b05
7
- data.tar.gz: 7cf3a50d91499464784ce6fd2bf5eeb4046697293778499886f604e2a93570efde5a9aab7bb747c544caa9a644c2c151f3dd57aa4d5e11e70912f51ae8f324b8
6
+ metadata.gz: 98160416fbfbd4623851f24dc25fe9faee21c346f3c00a5d698b82f19835bd802320ba609f102f70bb9644a65879b8b376eabbd6bac9595648db55424bcd5ca2
7
+ data.tar.gz: 4497d693975391f2b21667acc0bc2c199eadbf792b94548d82941983c0f12a9fdcaf9bfa391dcebbd3eef64367ba8c3698b1df50ab68fd2c58b61ee21dcd3924
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yard-cucumber (2.3.0)
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.3)
13
+ cucumber (1.3.9)
14
14
  builder (>= 2.1.2)
15
15
  diff-lcs (>= 1.1.3)
16
- gherkin (~> 2.12.0)
17
- multi_json (~> 1.7.5)
18
- multi_test (~> 0.0.1)
19
- diff-lcs (1.2.4)
20
- gherkin (2.12.0)
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.7.7)
23
- multi_test (0.0.1)
22
+ multi_json (1.8.2)
23
+ multi_test (0.0.2)
24
24
  redcarpet (2.2.2)
25
- yard (0.8.6.2)
25
+ yard (0.8.7.3)
26
26
 
27
27
  PLATFORMS
28
28
  ruby
@@ -1,3 +1,7 @@
1
+ === 2.3.2/ 2013-11-08
2
+
3
+ * De-duping uses of step definitions when the line number is the same (ipwnstuff)
4
+
1
5
  === 2.3.1/ 2013-07-12
2
6
 
3
7
  * Fixes for Cucumber ~> 1.3 and gherkin ~> 2.12 by loading
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://recursivegames.com/cukes/](http://recursivegames.com/cukes/).
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://recursivegames.com/cukes/requirements.html)
22
+ **1. View Features and Scenarios** [example](http://franklinwebber.com/cukes/requirements.html)
23
23
 
24
- **2. Search through [features, scenarios](http://recursivegames.com/cukes/feature_list.html), and [tags](http://recursivegames.com/cukes/tag_list.html)**
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://recursivegames.com/cukes/requirements/tags.html)
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://recursivegames.com/cukes/requirements/tags/bvt.html)
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://recursivegames.com/cukes/requirements/step_transformers.html)
30
+ **5. View Step Definitions and Transforms** [example](http://franklinwebber.com/cukes/requirements/step_transformers.html)
31
31
 
32
- **6. All steps [matched](http://recursivegames.com/cukes/requirements/step_transformers.html#definition_5-stepdefinition) to step definitions**
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://recursivegames.com/cukes/requirements/step_transformers.html#step_transform7-steptransform) that have transforms applied to them**
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://recursivegames.com/cukes/requirements/step_transformers.html#undefined_steps) and even [Rubular](http://rubular.com/) links of your step definitions.**
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://recursivegames.com/cukes/requirements/example/child_feature.html)
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(/^this (scenario|background|#{ORDER}) step$/) do |step|
18
+ #
19
+ Given /^this (scenario|background|#{ORDER}) step$/ do |step|
20
20
  puts "step #{order}"
21
- end
22
-
21
+ end
@@ -1,3 +1,3 @@
1
1
  module CucumberInTheYARD
2
- VERSION = '2.3.1'
2
+ VERSION = '2.3.2'
3
3
  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
- stepdef.steps << self
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.1
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-07-12 00:00:00.000000000 Z
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.1 / 2013-07-12.\n\n
164
- \ Changes:\n \n * Fixes for Cucumber ~> 1.3 and gherkin ~> 2.12 by loading\n
165
- \ a required platform file.\n * Added appropriate MIT license\n \n\n(::) (::)
166
- (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)\n\n"
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.0.3
183
+ rubygems_version: 2.1.9
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Cucumber Features in YARD