cucumber-in-the-yard 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ === 1.5.2 / 2010-10-26
2
+
3
+ * FIX - Step Transform YARD handler regex was poorly formed and raised exceptions
4
+ when a transform contained a forward-slash (even if escaped).
5
+
1
6
  === 1.5.1 / 2010-10-26
2
7
 
3
8
  * Unified Feature/Scenario search field that resembles the Namespace-Class field
data/Manifest CHANGED
@@ -1,61 +1,61 @@
1
- History.txt
2
- Manifest
3
- README.md
4
- Rakefile
5
- example/empty.feature
6
- example/example.feature
7
- example/example.third.feature
8
- example/second_example.feature
9
- example/step_definitions/example.step.rb
10
- example/step_definitions/support/env.rb
11
- example/step_definitions/support/env_support.rb
12
- example/step_definitions/support/support.rb
13
- lib/city.rb
14
- lib/cucumber/city_builder.rb
15
- lib/templates/default/feature/html/background.erb
16
- lib/templates/default/feature/html/feature.erb
17
- lib/templates/default/feature/html/no_steps_defined.erb
18
- lib/templates/default/feature/html/outline.erb
19
- lib/templates/default/feature/html/pystring.erb
20
- lib/templates/default/feature/html/scenario.erb
21
- lib/templates/default/feature/html/steps.erb
22
- lib/templates/default/feature/html/table.erb
23
- lib/templates/default/feature/setup.rb
24
- lib/templates/default/fulldoc/html/css/common.css
25
- lib/templates/default/fulldoc/html/full_list.erb
26
- lib/templates/default/fulldoc/html/full_list_features.erb
27
- lib/templates/default/fulldoc/html/full_list_stepdefinitions.erb
28
- lib/templates/default/fulldoc/html/full_list_steps.erb
29
- lib/templates/default/fulldoc/html/full_list_tags.erb
30
- lib/templates/default/fulldoc/html/index.erb
31
- lib/templates/default/fulldoc/html/js/cucumber.js
32
- lib/templates/default/fulldoc/html/setup.rb
33
- lib/templates/default/layout/html/headers.erb
34
- lib/templates/default/layout/html/search.erb
35
- lib/templates/default/scenario/html/scenario.erb
36
- lib/templates/default/scenario/setup.rb
37
- lib/templates/default/steptransformers/html/steptransformers.erb
38
- lib/templates/default/steptransformers/html/transformers.erb
39
- lib/templates/default/steptransformers/setup.rb
40
- lib/templates/default/tag/html/feature.erb
41
- lib/templates/default/tag/html/scenario.erb
42
- lib/templates/default/tag/html/tag.erb
43
- lib/templates/default/tag/setup.rb
44
- lib/yard/code_objects/cucumber/base.rb
45
- lib/yard/code_objects/cucumber/feature.rb
46
- lib/yard/code_objects/cucumber/namespace_object.rb
47
- lib/yard/code_objects/cucumber/scenario.rb
48
- lib/yard/code_objects/cucumber/scenario_outline.rb
49
- lib/yard/code_objects/cucumber/step.rb
50
- lib/yard/code_objects/cucumber/tag.rb
51
- lib/yard/code_objects/namespace_object.rb
52
- lib/yard/code_objects/step_definition.rb
53
- lib/yard/code_objects/step_transform.rb
54
- lib/yard/handlers/cucumber/base.rb
55
- lib/yard/handlers/cucumber/feature_handler.rb
56
- lib/yard/handlers/step_definition_handler.rb
57
- lib/yard/handlers/step_transform_handler.rb
58
- lib/yard/parser/cucumber/feature.rb
59
- lib/yard/parser/source_parser.rb
60
- lib/yard/rake/city_task.rb
61
- lib/yard/templates/helpers/base_helper.rb
1
+ History.txt
2
+ Manifest
3
+ README.md
4
+ Rakefile
5
+ example/empty.feature
6
+ example/example.feature
7
+ example/example.third.feature
8
+ example/second_example.feature
9
+ example/step_definitions/example.step.rb
10
+ example/step_definitions/support/env.rb
11
+ example/step_definitions/support/env_support.rb
12
+ example/step_definitions/support/support.rb
13
+ lib/city.rb
14
+ lib/cucumber/city_builder.rb
15
+ lib/templates/default/feature/html/background.erb
16
+ lib/templates/default/feature/html/feature.erb
17
+ lib/templates/default/feature/html/no_steps_defined.erb
18
+ lib/templates/default/feature/html/outline.erb
19
+ lib/templates/default/feature/html/pystring.erb
20
+ lib/templates/default/feature/html/scenario.erb
21
+ lib/templates/default/feature/html/steps.erb
22
+ lib/templates/default/feature/html/table.erb
23
+ lib/templates/default/feature/setup.rb
24
+ lib/templates/default/fulldoc/html/css/common.css
25
+ lib/templates/default/fulldoc/html/full_list.erb
26
+ lib/templates/default/fulldoc/html/full_list_features.erb
27
+ lib/templates/default/fulldoc/html/full_list_stepdefinitions.erb
28
+ lib/templates/default/fulldoc/html/full_list_steps.erb
29
+ lib/templates/default/fulldoc/html/full_list_tags.erb
30
+ lib/templates/default/fulldoc/html/index.erb
31
+ lib/templates/default/fulldoc/html/js/cucumber.js
32
+ lib/templates/default/fulldoc/html/setup.rb
33
+ lib/templates/default/layout/html/headers.erb
34
+ lib/templates/default/layout/html/search.erb
35
+ lib/templates/default/scenario/html/scenario.erb
36
+ lib/templates/default/scenario/setup.rb
37
+ lib/templates/default/steptransformers/html/steptransformers.erb
38
+ lib/templates/default/steptransformers/html/transformers.erb
39
+ lib/templates/default/steptransformers/setup.rb
40
+ lib/templates/default/tag/html/feature.erb
41
+ lib/templates/default/tag/html/scenario.erb
42
+ lib/templates/default/tag/html/tag.erb
43
+ lib/templates/default/tag/setup.rb
44
+ lib/yard/code_objects/cucumber/base.rb
45
+ lib/yard/code_objects/cucumber/feature.rb
46
+ lib/yard/code_objects/cucumber/namespace_object.rb
47
+ lib/yard/code_objects/cucumber/scenario.rb
48
+ lib/yard/code_objects/cucumber/scenario_outline.rb
49
+ lib/yard/code_objects/cucumber/step.rb
50
+ lib/yard/code_objects/cucumber/tag.rb
51
+ lib/yard/code_objects/namespace_object.rb
52
+ lib/yard/code_objects/step_definition.rb
53
+ lib/yard/code_objects/step_transform.rb
54
+ lib/yard/handlers/cucumber/base.rb
55
+ lib/yard/handlers/cucumber/feature_handler.rb
56
+ lib/yard/handlers/step_definition_handler.rb
57
+ lib/yard/handlers/step_transform_handler.rb
58
+ lib/yard/parser/cucumber/feature.rb
59
+ lib/yard/parser/source_parser.rb
60
+ lib/yard/rake/city_task.rb
61
+ lib/yard/templates/helpers/base_helper.rb
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ task :gendoc do
8
8
  `yardoc -e lib/city.rb -p lib/templates 'example/**/*' --debug`
9
9
  end
10
10
 
11
- Echoe.new('cucumber-in-the-yard', '1.5.1') do |g|
11
+ Echoe.new('cucumber-in-the-yard', '1.5.2') do |g|
12
12
  g.author = "Franklin Webber"
13
13
  g.email = "franklin.webber@gmail.com"
14
14
  g.url = "http://github.com/burtlo/Cucumber-In-The-Yard"
@@ -1,40 +1,40 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- Gem::Specification.new do |s|
4
- s.name = %q{cucumber-in-the-yard}
5
- s.version = "1.5.1"
6
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Franklin Webber"]
9
- s.date = %q{2010-10-26}
10
- s.description = %q{
11
- Cucumber-In-The-Yard is a YARD extension that processes Cucumber Features, Scenarios, Steps,
12
- Step Definitions, Transforms, and Tags and provides a documentation interface that allows you
13
- easily view and investigate the test suite. This tools hopes to bridge the gap of being able
14
- to provide your feature descriptions to your Product Owners and Stakeholders. }
15
- s.email = %q{franklin.webber@gmail.com}
16
- s.extra_rdoc_files = ["README.md", "lib/city.rb", "lib/cucumber/city_builder.rb", "lib/templates/default/feature/html/background.erb", "lib/templates/default/feature/html/feature.erb", "lib/templates/default/feature/html/no_steps_defined.erb", "lib/templates/default/feature/html/outline.erb", "lib/templates/default/feature/html/pystring.erb", "lib/templates/default/feature/html/scenario.erb", "lib/templates/default/feature/html/steps.erb", "lib/templates/default/feature/html/table.erb", "lib/templates/default/feature/setup.rb", "lib/templates/default/fulldoc/html/css/common.css", "lib/templates/default/fulldoc/html/full_list.erb", "lib/templates/default/fulldoc/html/full_list_features.erb", "lib/templates/default/fulldoc/html/full_list_stepdefinitions.erb", "lib/templates/default/fulldoc/html/full_list_steps.erb", "lib/templates/default/fulldoc/html/full_list_tags.erb", "lib/templates/default/fulldoc/html/index.erb", "lib/templates/default/fulldoc/html/js/cucumber.js", "lib/templates/default/fulldoc/html/setup.rb", "lib/templates/default/layout/html/headers.erb", "lib/templates/default/layout/html/search.erb", "lib/templates/default/scenario/html/scenario.erb", "lib/templates/default/scenario/setup.rb", "lib/templates/default/steptransformers/html/steptransformers.erb", "lib/templates/default/steptransformers/html/transformers.erb", "lib/templates/default/steptransformers/setup.rb", "lib/templates/default/tag/html/feature.erb", "lib/templates/default/tag/html/scenario.erb", "lib/templates/default/tag/html/tag.erb", "lib/templates/default/tag/setup.rb", "lib/yard/code_objects/cucumber/base.rb", "lib/yard/code_objects/cucumber/feature.rb", "lib/yard/code_objects/cucumber/namespace_object.rb", "lib/yard/code_objects/cucumber/scenario.rb", "lib/yard/code_objects/cucumber/scenario_outline.rb", "lib/yard/code_objects/cucumber/step.rb", "lib/yard/code_objects/cucumber/tag.rb", "lib/yard/code_objects/namespace_object.rb", "lib/yard/code_objects/step_definition.rb", "lib/yard/code_objects/step_transform.rb", "lib/yard/handlers/cucumber/base.rb", "lib/yard/handlers/cucumber/feature_handler.rb", "lib/yard/handlers/step_definition_handler.rb", "lib/yard/handlers/step_transform_handler.rb", "lib/yard/parser/cucumber/feature.rb", "lib/yard/parser/source_parser.rb", "lib/yard/rake/city_task.rb", "lib/yard/templates/helpers/base_helper.rb"]
17
- s.files = ["History.txt", "Manifest", "README.md", "Rakefile", "example/empty.feature", "example/example.feature", "example/example.third.feature", "example/second_example.feature", "example/step_definitions/example.step.rb", "example/step_definitions/support/env.rb", "example/step_definitions/support/env_support.rb", "example/step_definitions/support/support.rb", "lib/city.rb", "lib/cucumber/city_builder.rb", "lib/templates/default/feature/html/background.erb", "lib/templates/default/feature/html/feature.erb", "lib/templates/default/feature/html/no_steps_defined.erb", "lib/templates/default/feature/html/outline.erb", "lib/templates/default/feature/html/pystring.erb", "lib/templates/default/feature/html/scenario.erb", "lib/templates/default/feature/html/steps.erb", "lib/templates/default/feature/html/table.erb", "lib/templates/default/feature/setup.rb", "lib/templates/default/fulldoc/html/css/common.css", "lib/templates/default/fulldoc/html/full_list.erb", "lib/templates/default/fulldoc/html/full_list_features.erb", "lib/templates/default/fulldoc/html/full_list_stepdefinitions.erb", "lib/templates/default/fulldoc/html/full_list_steps.erb", "lib/templates/default/fulldoc/html/full_list_tags.erb", "lib/templates/default/fulldoc/html/index.erb", "lib/templates/default/fulldoc/html/js/cucumber.js", "lib/templates/default/fulldoc/html/setup.rb", "lib/templates/default/layout/html/headers.erb", "lib/templates/default/layout/html/search.erb", "lib/templates/default/scenario/html/scenario.erb", "lib/templates/default/scenario/setup.rb", "lib/templates/default/steptransformers/html/steptransformers.erb", "lib/templates/default/steptransformers/html/transformers.erb", "lib/templates/default/steptransformers/setup.rb", "lib/templates/default/tag/html/feature.erb", "lib/templates/default/tag/html/scenario.erb", "lib/templates/default/tag/html/tag.erb", "lib/templates/default/tag/setup.rb", "lib/yard/code_objects/cucumber/base.rb", "lib/yard/code_objects/cucumber/feature.rb", "lib/yard/code_objects/cucumber/namespace_object.rb", "lib/yard/code_objects/cucumber/scenario.rb", "lib/yard/code_objects/cucumber/scenario_outline.rb", "lib/yard/code_objects/cucumber/step.rb", "lib/yard/code_objects/cucumber/tag.rb", "lib/yard/code_objects/namespace_object.rb", "lib/yard/code_objects/step_definition.rb", "lib/yard/code_objects/step_transform.rb", "lib/yard/handlers/cucumber/base.rb", "lib/yard/handlers/cucumber/feature_handler.rb", "lib/yard/handlers/step_definition_handler.rb", "lib/yard/handlers/step_transform_handler.rb", "lib/yard/parser/cucumber/feature.rb", "lib/yard/parser/source_parser.rb", "lib/yard/rake/city_task.rb", "lib/yard/templates/helpers/base_helper.rb", "cucumber-in-the-yard.gemspec"]
18
- s.homepage = %q{http://github.com/burtlo/Cucumber-In-The-Yard}
19
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Cucumber-in-the-yard", "--main", "README.md"]
20
- s.require_paths = ["lib"]
21
- s.rubyforge_project = %q{cucumber-in-the-yard}
22
- s.rubygems_version = %q{1.3.6}
23
- s.summary = %q{Cucumber-In-The-Yard is a YARD extension that processes Cucumber Features, Scenarios, Steps, Step Definitions, Transforms, and Tags and provides a documentation interface that allows you easily view and investigate the test suite. This tools hopes to bridge the gap of being able to provide your feature descriptions to your Product Owners and Stakeholders.}
24
-
25
- if s.respond_to? :specification_version then
26
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
27
- s.specification_version = 3
28
-
29
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
30
- s.add_runtime_dependency(%q<cucumber>, [">= 0.7.5"])
31
- s.add_runtime_dependency(%q<yard>, [">= 0.6.1"])
32
- else
33
- s.add_dependency(%q<cucumber>, [">= 0.7.5"])
34
- s.add_dependency(%q<yard>, [">= 0.6.1"])
35
- end
36
- else
37
- s.add_dependency(%q<cucumber>, [">= 0.7.5"])
38
- s.add_dependency(%q<yard>, [">= 0.6.1"])
39
- end
40
- end
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{cucumber-in-the-yard}
5
+ s.version = "1.5.2"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Franklin Webber"]
9
+ s.date = %q{2010-10-26}
10
+ s.description = %q{
11
+ Cucumber-In-The-Yard is a YARD extension that processes Cucumber Features, Scenarios, Steps,
12
+ Step Definitions, Transforms, and Tags and provides a documentation interface that allows you
13
+ easily view and investigate the test suite. This tools hopes to bridge the gap of being able
14
+ to provide your feature descriptions to your Product Owners and Stakeholders. }
15
+ s.email = %q{franklin.webber@gmail.com}
16
+ s.extra_rdoc_files = ["README.md", "lib/city.rb", "lib/cucumber/city_builder.rb", "lib/templates/default/feature/html/background.erb", "lib/templates/default/feature/html/feature.erb", "lib/templates/default/feature/html/no_steps_defined.erb", "lib/templates/default/feature/html/outline.erb", "lib/templates/default/feature/html/pystring.erb", "lib/templates/default/feature/html/scenario.erb", "lib/templates/default/feature/html/steps.erb", "lib/templates/default/feature/html/table.erb", "lib/templates/default/feature/setup.rb", "lib/templates/default/fulldoc/html/css/common.css", "lib/templates/default/fulldoc/html/full_list.erb", "lib/templates/default/fulldoc/html/full_list_features.erb", "lib/templates/default/fulldoc/html/full_list_stepdefinitions.erb", "lib/templates/default/fulldoc/html/full_list_steps.erb", "lib/templates/default/fulldoc/html/full_list_tags.erb", "lib/templates/default/fulldoc/html/index.erb", "lib/templates/default/fulldoc/html/js/cucumber.js", "lib/templates/default/fulldoc/html/setup.rb", "lib/templates/default/layout/html/headers.erb", "lib/templates/default/layout/html/search.erb", "lib/templates/default/scenario/html/scenario.erb", "lib/templates/default/scenario/setup.rb", "lib/templates/default/steptransformers/html/steptransformers.erb", "lib/templates/default/steptransformers/html/transformers.erb", "lib/templates/default/steptransformers/setup.rb", "lib/templates/default/tag/html/feature.erb", "lib/templates/default/tag/html/scenario.erb", "lib/templates/default/tag/html/tag.erb", "lib/templates/default/tag/setup.rb", "lib/yard/code_objects/cucumber/base.rb", "lib/yard/code_objects/cucumber/feature.rb", "lib/yard/code_objects/cucumber/namespace_object.rb", "lib/yard/code_objects/cucumber/scenario.rb", "lib/yard/code_objects/cucumber/scenario_outline.rb", "lib/yard/code_objects/cucumber/step.rb", "lib/yard/code_objects/cucumber/tag.rb", "lib/yard/code_objects/namespace_object.rb", "lib/yard/code_objects/step_definition.rb", "lib/yard/code_objects/step_transform.rb", "lib/yard/handlers/cucumber/base.rb", "lib/yard/handlers/cucumber/feature_handler.rb", "lib/yard/handlers/step_definition_handler.rb", "lib/yard/handlers/step_transform_handler.rb", "lib/yard/parser/cucumber/feature.rb", "lib/yard/parser/source_parser.rb", "lib/yard/rake/city_task.rb", "lib/yard/templates/helpers/base_helper.rb"]
17
+ s.files = ["History.txt", "Manifest", "README.md", "Rakefile", "example/empty.feature", "example/example.feature", "example/example.third.feature", "example/second_example.feature", "example/step_definitions/example.step.rb", "example/step_definitions/support/env.rb", "example/step_definitions/support/env_support.rb", "example/step_definitions/support/support.rb", "lib/city.rb", "lib/cucumber/city_builder.rb", "lib/templates/default/feature/html/background.erb", "lib/templates/default/feature/html/feature.erb", "lib/templates/default/feature/html/no_steps_defined.erb", "lib/templates/default/feature/html/outline.erb", "lib/templates/default/feature/html/pystring.erb", "lib/templates/default/feature/html/scenario.erb", "lib/templates/default/feature/html/steps.erb", "lib/templates/default/feature/html/table.erb", "lib/templates/default/feature/setup.rb", "lib/templates/default/fulldoc/html/css/common.css", "lib/templates/default/fulldoc/html/full_list.erb", "lib/templates/default/fulldoc/html/full_list_features.erb", "lib/templates/default/fulldoc/html/full_list_stepdefinitions.erb", "lib/templates/default/fulldoc/html/full_list_steps.erb", "lib/templates/default/fulldoc/html/full_list_tags.erb", "lib/templates/default/fulldoc/html/index.erb", "lib/templates/default/fulldoc/html/js/cucumber.js", "lib/templates/default/fulldoc/html/setup.rb", "lib/templates/default/layout/html/headers.erb", "lib/templates/default/layout/html/search.erb", "lib/templates/default/scenario/html/scenario.erb", "lib/templates/default/scenario/setup.rb", "lib/templates/default/steptransformers/html/steptransformers.erb", "lib/templates/default/steptransformers/html/transformers.erb", "lib/templates/default/steptransformers/setup.rb", "lib/templates/default/tag/html/feature.erb", "lib/templates/default/tag/html/scenario.erb", "lib/templates/default/tag/html/tag.erb", "lib/templates/default/tag/setup.rb", "lib/yard/code_objects/cucumber/base.rb", "lib/yard/code_objects/cucumber/feature.rb", "lib/yard/code_objects/cucumber/namespace_object.rb", "lib/yard/code_objects/cucumber/scenario.rb", "lib/yard/code_objects/cucumber/scenario_outline.rb", "lib/yard/code_objects/cucumber/step.rb", "lib/yard/code_objects/cucumber/tag.rb", "lib/yard/code_objects/namespace_object.rb", "lib/yard/code_objects/step_definition.rb", "lib/yard/code_objects/step_transform.rb", "lib/yard/handlers/cucumber/base.rb", "lib/yard/handlers/cucumber/feature_handler.rb", "lib/yard/handlers/step_definition_handler.rb", "lib/yard/handlers/step_transform_handler.rb", "lib/yard/parser/cucumber/feature.rb", "lib/yard/parser/source_parser.rb", "lib/yard/rake/city_task.rb", "lib/yard/templates/helpers/base_helper.rb", "cucumber-in-the-yard.gemspec"]
18
+ s.homepage = %q{http://github.com/burtlo/Cucumber-In-The-Yard}
19
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Cucumber-in-the-yard", "--main", "README.md"]
20
+ s.require_paths = ["lib"]
21
+ s.rubyforge_project = %q{cucumber-in-the-yard}
22
+ s.rubygems_version = %q{1.3.7}
23
+ s.summary = %q{Cucumber-In-The-Yard is a YARD extension that processes Cucumber Features, Scenarios, Steps, Step Definitions, Transforms, and Tags and provides a documentation interface that allows you easily view and investigate the test suite. This tools hopes to bridge the gap of being able to provide your feature descriptions to your Product Owners and Stakeholders.}
24
+
25
+ if s.respond_to? :specification_version then
26
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
27
+ s.specification_version = 3
28
+
29
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
30
+ s.add_runtime_dependency(%q<cucumber>, [">= 0.7.5"])
31
+ s.add_runtime_dependency(%q<yard>, [">= 0.6.1"])
32
+ else
33
+ s.add_dependency(%q<cucumber>, [">= 0.7.5"])
34
+ s.add_dependency(%q<yard>, [">= 0.6.1"])
35
+ end
36
+ else
37
+ s.add_dependency(%q<cucumber>, [">= 0.7.5"])
38
+ s.add_dependency(%q<yard>, [">= 0.6.1"])
39
+ end
40
+ end
@@ -12,6 +12,10 @@ Transform /^the customer$/ do |customer|
12
12
  "the transformed customer"
13
13
  end
14
14
 
15
+ Transform /^((?:\d{1,2}[\/-]){2}(?:\d\d){1,2})?\s*(\w{3})?\s*(\d{1,2}:\d{2}\s*(?:AM|PM)?)$/ do |date,day,time|
16
+ "#{date} #{day} #{time}"
17
+ end
18
+
15
19
  Given /^that (#{CUSTOMER}) is a valid customer$/ do |customer|
16
20
  pending "Customer #{customer} validation"
17
21
  end
@@ -21,8 +25,8 @@ When /^a customer logs in as username '([^']+)' with password '([^']+)'$/ do |us
21
25
  pending "Customer logs in with #{username} and #{password}"
22
26
  end
23
27
 
24
- Then /^I expect them to have logged in successfully$/ do
25
- pending "Validation that the customer has logged in successfully"
28
+ Then /^I expect them to have logged in (successfully|miserably)$/ do |success|
29
+ pending "Validation that the customer has logged in #{success}"
26
30
  end
27
31
 
28
32
  When /^the customer logs out$/ do
@@ -33,7 +37,7 @@ Then /^I expect the customer to be shown the logout page$/ do
33
37
  pending
34
38
  end
35
39
 
36
- And /^this third defined step definition$/ do
40
+ And /^this (third) defined step definition$/ do |number|
37
41
  pending
38
42
  end
39
43
 
@@ -41,8 +45,8 @@ And /^the customer has the following details:$/ do |table|
41
45
  pending "Table of data #{table.hashes}"
42
46
  end
43
47
 
44
- And /^edits their the biography to state:$/ do |bio|
45
- pending "text_field not present for bio #{bio} for this release"
48
+ And /^edits their the (biography) to state:$/ do |section,text|
49
+ pending "text_field not present for #{section} #{bio} for this release"
46
50
  end
47
51
 
48
52
  #
@@ -34,7 +34,7 @@ module YARD
34
34
  rescue YARD::Handlers::NamespaceMissingError
35
35
  rescue Exception => exception
36
36
  log.error "Skipping feature because an error has occurred."
37
- log.debug "#\n{exception}\n#{exception.backtrace.join("\n")}\n"
37
+ log.debug "\n#{exception}\n#{exception.backtrace.join("\n")}\n"
38
38
  end
39
39
 
40
40
 
@@ -23,12 +23,12 @@ class StepDefinitionHandler < YARD::Handlers::Ruby::Legacy::Base
23
23
 
24
24
  begin
25
25
  # Look for all constants within the step definitions
26
- stepdef_instance.constants = stepdef_instance._value_constants.each do |stepdef_constant|
27
- owner.constants.each do |constant|
26
+ stepdef_instance._value_constants.each do |stepdef_constant|
27
+ YARD::Registry.all(:constant).each do |constant|
28
28
  if stepdef_constant.to_sym == constant.name
29
- log.debug "Constant #{constant.name} was found in the step definition #{stepdef_instance.value}, attempting to replace that value"
29
+ #log.debug "Constant #{constant.name} was found in the step definition #{stepdef_instance.value}, attempting to replace that value"
30
30
  returned_constant = unpack_constants(constant.value)
31
- log.debug "Post procedure on CONSTANT looks like #{returned_constant}"
31
+ #log.debug "CONSTANT: #{constant.name}\nFINAL: #{returned_constant}"
32
32
  stepdef_instance.constants[constant.name] = unpack_constants(constant.value)
33
33
  end
34
34
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  class StepTransformHandler < YARD::Handlers::Ruby::Legacy::Base
3
- MATCH = /^Transform\s*(\/[^\/]+\/).+$/
3
+ MATCH = /^Transform\s*(\/.+\/)\s+do\s+\|.+\|\s*$/
4
4
  handles MATCH
5
5
 
6
6
  @@unique_name = 0
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-in-the-yard
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 7
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 5
8
- - 1
9
- version: 1.5.1
9
+ - 2
10
+ version: 1.5.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Franklin Webber
@@ -21,9 +22,11 @@ dependencies:
21
22
  name: cucumber
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 9
27
30
  segments:
28
31
  - 0
29
32
  - 7
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: yard
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 5
41
46
  segments:
42
47
  - 0
43
48
  - 6
@@ -180,16 +185,20 @@ rdoc_options:
180
185
  require_paths:
181
186
  - lib
182
187
  required_ruby_version: !ruby/object:Gem::Requirement
188
+ none: false
183
189
  requirements:
184
190
  - - ">="
185
191
  - !ruby/object:Gem::Version
192
+ hash: 3
186
193
  segments:
187
194
  - 0
188
195
  version: "0"
189
196
  required_rubygems_version: !ruby/object:Gem::Requirement
197
+ none: false
190
198
  requirements:
191
199
  - - ">="
192
200
  - !ruby/object:Gem::Version
201
+ hash: 11
193
202
  segments:
194
203
  - 1
195
204
  - 2
@@ -197,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
206
  requirements: []
198
207
 
199
208
  rubyforge_project: cucumber-in-the-yard
200
- rubygems_version: 1.3.6
209
+ rubygems_version: 1.3.7
201
210
  signing_key:
202
211
  specification_version: 3
203
212
  summary: Cucumber-In-The-Yard is a YARD extension that processes Cucumber Features, Scenarios, Steps, Step Definitions, Transforms, and Tags and provides a documentation interface that allows you easily view and investigate the test suite. This tools hopes to bridge the gap of being able to provide your feature descriptions to your Product Owners and Stakeholders.