cucumber-in-the-yard 1.5.4 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. data/History.txt +6 -0
  2. data/README.md +18 -14
  3. data/city.gemspec +1 -1
  4. data/example/step_definitions/example.step.rb +4 -0
  5. data/example/sub_features/second_example.feature +51 -0
  6. data/lib/city.rb +1 -1
  7. data/lib/cucumber/city_builder.rb +3 -1
  8. data/lib/templates/default/feature/html/outline.erb +49 -17
  9. data/lib/templates/default/feature/html/scenario.erb +7 -9
  10. data/lib/templates/default/feature/html/steps.erb +17 -17
  11. data/lib/templates/default/feature/setup.rb +1 -1
  12. data/lib/templates/default/featuredirectory/html/directory.erb +76 -0
  13. data/lib/templates/default/featuredirectory/html/setup.rb +36 -0
  14. data/lib/templates/default/fulldoc/html/css/common.css +74 -60
  15. data/lib/templates/default/fulldoc/html/full_list_features.erb +3 -0
  16. data/lib/templates/default/fulldoc/html/full_list_tags.erb +4 -15
  17. data/lib/templates/default/fulldoc/html/js/cucumber.js +29 -7
  18. data/lib/templates/default/fulldoc/html/setup.rb +15 -11
  19. data/lib/templates/default/requirements/html/namespace.erb +76 -0
  20. data/lib/templates/default/requirements/html/setup.rb +35 -0
  21. data/lib/templates/default/scenario/html/scenario.erb +0 -3
  22. data/lib/templates/default/tag/html/feature.erb +28 -47
  23. data/lib/templates/default/tag/html/scenario.erb +28 -42
  24. data/lib/templates/default/tag/html/tag.erb +1 -0
  25. data/lib/templates/default/tag/setup.rb +15 -1
  26. data/lib/templates/default/tags/html/namespace.erb +39 -0
  27. data/lib/templates/default/tags/html/setup.rb +21 -0
  28. data/lib/yard/code_objects/cucumber/namespace_object.rb +16 -6
  29. metadata +16 -25
@@ -0,0 +1,21 @@
1
+ def init
2
+ super
3
+ sections.push :namespace
4
+ @namespace = object
5
+ end
6
+
7
+ def namespace
8
+ erb(:namespace)
9
+ end
10
+
11
+ def all_tags_by_letter
12
+ hash = {}
13
+ objects = tags
14
+ objects = run_verifier(objects)
15
+ objects.each {|o| (hash[o.value.to_s[1,1].upcase] ||= []) << o }
16
+ hash
17
+ end
18
+
19
+ def tags
20
+ Registry.all(:tag)
21
+ end
@@ -3,16 +3,26 @@ module YARD::CodeObjects::Cucumber
3
3
 
4
4
  class NamespaceObject < YARD::CodeObjects::NamespaceObject
5
5
  include LocationHelper
6
-
7
6
  def value ; nil ; end
8
7
  end
9
-
10
- CUCUMBER_NAMESPACE = NamespaceObject.new(:root, "requirements")
11
- CUCUMBER_TAG_NAMESPACE = NamespaceObject.new(CUCUMBER_NAMESPACE, "tags")
12
-
8
+
9
+ class Requirements < NamespaceObject ; end
10
+ class Tags < NamespaceObject ; end
13
11
  class StepTransformersObject < NamespaceObject ; end
12
+
13
+ class FeatureDirectory < YARD::CodeObjects::NamespaceObject
14
+
15
+ def location
16
+ files.first.first if files && !files.empty?
17
+ end
18
+
19
+ def value ; name ; end
20
+ end
21
+
22
+ CUCUMBER_NAMESPACE = Requirements.new(:root, "requirements")
14
23
 
15
- CUCUMBER_STEPTRANSFORM_NAMESPACE = StepTransformersObject.new(CUCUMBER_NAMESPACE, "step_transformers")
24
+ CUCUMBER_TAG_NAMESPACE = Tags.new(CUCUMBER_NAMESPACE, "tags")
16
25
 
26
+ CUCUMBER_STEPTRANSFORM_NAMESPACE = StepTransformersObject.new(CUCUMBER_NAMESPACE, "step_transformers")
17
27
 
18
28
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-in-the-yard
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
5
4
  prerelease: false
6
5
  segments:
7
6
  - 1
8
- - 5
9
- - 4
10
- version: 1.5.4
7
+ - 6
8
+ - 0
9
+ version: 1.6.0
11
10
  platform: ruby
12
11
  authors:
13
12
  - Franklin Webber
@@ -15,18 +14,16 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-10-28 00:00:00 -07:00
17
+ date: 2010-11-02 00:00:00 -07:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: gherkin
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
25
  - - ">="
28
26
  - !ruby/object:Gem::Version
29
- hash: 21
30
27
  segments:
31
28
  - 2
32
29
  - 2
@@ -38,11 +35,9 @@ dependencies:
38
35
  name: cucumber
39
36
  prerelease: false
40
37
  requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
39
  - - ">="
44
40
  - !ruby/object:Gem::Version
45
- hash: 9
46
41
  segments:
47
42
  - 0
48
43
  - 7
@@ -54,11 +49,9 @@ dependencies:
54
49
  name: yard
55
50
  prerelease: false
56
51
  requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
53
  - - ">="
60
54
  - !ruby/object:Gem::Version
61
- hash: 5
62
55
  segments:
63
56
  - 0
64
57
  - 6
@@ -91,6 +84,7 @@ files:
91
84
  - example/step_definitions/support/env.rb
92
85
  - example/step_definitions/support/env_support.rb
93
86
  - example/step_definitions/support/support.rb
87
+ - example/sub_features/second_example.feature
94
88
  - lib/city.rb
95
89
  - lib/cucumber/city_builder.rb
96
90
  - lib/templates/default/feature/html/background.erb
@@ -102,6 +96,8 @@ files:
102
96
  - lib/templates/default/feature/html/steps.erb
103
97
  - lib/templates/default/feature/html/table.erb
104
98
  - lib/templates/default/feature/setup.rb
99
+ - lib/templates/default/featuredirectory/html/directory.erb
100
+ - lib/templates/default/featuredirectory/html/setup.rb
105
101
  - lib/templates/default/fulldoc/html/css/common.css
106
102
  - lib/templates/default/fulldoc/html/full_list.erb
107
103
  - lib/templates/default/fulldoc/html/full_list_features.erb
@@ -113,6 +109,8 @@ files:
113
109
  - lib/templates/default/fulldoc/html/setup.rb
114
110
  - lib/templates/default/layout/html/headers.erb
115
111
  - lib/templates/default/layout/html/search.erb
112
+ - lib/templates/default/requirements/html/namespace.erb
113
+ - lib/templates/default/requirements/html/setup.rb
116
114
  - lib/templates/default/scenario/html/scenario.erb
117
115
  - lib/templates/default/scenario/setup.rb
118
116
  - lib/templates/default/steptransformers/html/steptransformers.erb
@@ -122,6 +120,8 @@ files:
122
120
  - lib/templates/default/tag/html/scenario.erb
123
121
  - lib/templates/default/tag/html/tag.erb
124
122
  - lib/templates/default/tag/setup.rb
123
+ - lib/templates/default/tags/html/namespace.erb
124
+ - lib/templates/default/tags/html/setup.rb
125
125
  - lib/yard/code_objects/cucumber/base.rb
126
126
  - lib/yard/code_objects/cucumber/feature.rb
127
127
  - lib/yard/code_objects/cucumber/namespace_object.rb
@@ -156,18 +156,13 @@ post_install_message: |+
156
156
 
157
157
  (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
158
158
 
159
- Thank you for installing Cucumber-In-The-YARD 1.5.4 / 2010-10-28.
159
+ Thank you for installing Cucumber-In-The-YARD 1.6.0 / 2010-11-02.
160
160
 
161
161
  Changes:
162
162
 
163
- * Optimization - Found that for a large test suite that the processing time was
164
- approaching 2 hours (oh boy!). Reduced that time to a few minutes by optimizing
165
- the feature handler to cache all step definitions and step transforms.
166
-
167
- * Step Transforms will now attempt to unpack any constants found within them.
168
- * FIX - Step Transforms were not being parsed because the regex incorrectly included
169
- the block.
170
- * FIX - Features and Scenarios with multiple tags were not being displayed
163
+ * Feature directories, subdirectories, and Tags breadcrumb pages are present
164
+ * Scenario Outlines now display each example inline when the example is pressed
165
+ * 'All Features' and 'All Tags' link in the search fields
171
166
 
172
167
 
173
168
  (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
@@ -177,27 +172,23 @@ rdoc_options:
177
172
  require_paths:
178
173
  - lib
179
174
  required_ruby_version: !ruby/object:Gem::Requirement
180
- none: false
181
175
  requirements:
182
176
  - - ">="
183
177
  - !ruby/object:Gem::Version
184
- hash: 3
185
178
  segments:
186
179
  - 0
187
180
  version: "0"
188
181
  required_rubygems_version: !ruby/object:Gem::Requirement
189
- none: false
190
182
  requirements:
191
183
  - - ">="
192
184
  - !ruby/object:Gem::Version
193
- hash: 3
194
185
  segments:
195
186
  - 0
196
187
  version: "0"
197
188
  requirements: []
198
189
 
199
190
  rubyforge_project:
200
- rubygems_version: 1.3.7
191
+ rubygems_version: 1.3.6
201
192
  signing_key:
202
193
  specification_version: 3
203
194
  summary: Cucumber Features in YARD