cucumber-in-the-yard 1.7.4 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,14 @@
1
+ === 1.7.5 / 2010-12-14
2
+
3
+ * Ruby 1.9.2 Support
4
+ * FIX Step Transforms were colliding with Step Definitions in Ruby 1.9.2
5
+
1
6
  === 1.7.4 / 2010-12-11
2
7
 
3
8
  * Ruby 1.9.2 Support
4
9
  * Change to YARD Server support:
5
10
  yard server -e /path/to/gem/lib/server.b
6
11
 
7
-
8
12
  === 1.7.3 / 2010-12-06
9
13
 
10
14
  * Shortcut Keys (t) for tags and (r) for features (f was taken)
@@ -4,7 +4,7 @@ require 'gherkin/formatter/tag_count_formatter'
4
4
 
5
5
 
6
6
  module CucumberInTheYARD
7
- VERSION = '1.7.4' unless defined?(CucumberInTheYARD::VERSION)
7
+ VERSION = '1.7.5' unless defined?(CucumberInTheYARD::VERSION)
8
8
  end
9
9
 
10
10
  require File.dirname(__FILE__) + "/yard/code_objects/cucumber/base.rb"
@@ -66,11 +66,12 @@
66
66
  .scenario .tags { float: right; margin-right: 20px; margin-top: 5px; }
67
67
 
68
68
 
69
- * ul.alpha { font-size: 1.1em; }
69
+ * ul.alpha { padding-left: 50px; font-size: 1.1em; }
70
70
  * ul.alpha { padding-bottom: 10px; list-style: none; }
71
71
  * ul.alpha li.letter { font-size: 1.4em; padding-bottom: 10px; }
72
- * ul.alpha ul { padding-left: 15px; }
72
+ * ul.alpha ul { padding-left: 5px; }
73
73
  * ul small { color: #666; font-size: 0.7em; }
74
+ * ul.alpha ul li { list-style: none; padding-left: 0px;}
74
75
 
75
76
 
76
77
  .scenario .steps {
@@ -9,20 +9,7 @@
9
9
 
10
10
  <div class="requirements">
11
11
 
12
- <div class="summary">
13
- <span class="name">Features:</span><span class="value"><%= features.size %></span>
14
- <span class="name">Scenarios:</span><span class="value"><%= scenarios.size %></span>
15
- <span class="name">Steps:</span><span class="value"><%= steps.size %></span>
16
- <span class="name">Tags:</span><span class="value"><%= tags.size %></span>
17
- </div>
18
- <div class="tags"><span class="name">Tags:</span>
19
- <%= tags.collect {|tag| linkify(tag,tag.value) }.join(",\n") %>
20
- </div>
21
-
22
12
  <% if features && !features.empty? %>
23
- <div id="features" style="margin-left: 40px;">
24
- <div class="title"><span class="name">Features</span></div>
25
- </div>
26
13
  <% i = 0 %>
27
14
  <table style="margin-left: 10px;">
28
15
  <tr>
@@ -7,7 +7,7 @@ class YARD::Handlers::Ruby::StepDefinitionHandler < YARD::Handlers::Ruby::Base
7
7
  process do
8
8
  @@unique_name += 1
9
9
 
10
- instance = StepDefinitionObject.new(YARD::CodeObjects::Cucumber::CUCUMBER_STEPTRANSFORM_NAMESPACE,"step_definition#{@@unique_name}") do |o|
10
+ instance = YARD::CodeObjects::StepDefinitionObject.new(YARD::CodeObjects::Cucumber::CUCUMBER_STEPTRANSFORM_NAMESPACE,"step_definition#{@@unique_name}") do |o|
11
11
  o.source = statement.source
12
12
  o.comments = statement.comments
13
13
  o.keyword = statement[0].source
@@ -19,24 +19,4 @@ class YARD::Handlers::Ruby::StepDefinitionHandler < YARD::Handlers::Ruby::Base
19
19
 
20
20
  end
21
21
 
22
- #
23
- # Step Definitions can contain defined steps within them. While it is likely that they could not
24
- # very easily be parsed because of variables that are only calculated at runtime, it would be nice
25
- # to at least list those in use within a step definition and if you can find a match, go ahead and
26
- # make it
27
- #
28
- def find_steps_defined_in_block(block)
29
- #log.debug "#{block} #{block.class}"
30
- block.each_with_index do |token,index|
31
- #log.debug "Token #{token.class} #{token.text}"
32
- if token.is_a?(YARD::Parser::Ruby::Legacy::RubyToken::TkCONSTANT) &&
33
- token.text =~ /^(given|when|then|and)$/i &&
34
- block[index + 2].is_a?(YARD::Parser::Ruby::Legacy::RubyToken::TkSTRING)
35
- log.debug "Step found in Step Definition: #{block[index + 2].text} "
36
- end
37
-
38
- end
39
-
40
- end
41
-
42
22
  end
@@ -7,7 +7,7 @@ class YARD::Handlers::Ruby::StepTransformHandler < YARD::Handlers::Ruby::Base
7
7
  process do
8
8
  @@unique_name += 1
9
9
 
10
- instance = StepTransformObject.new(YARD::CodeObjects::Cucumber::CUCUMBER_STEPTRANSFORM_NAMESPACE,"step_definition#{@@unique_name}") do |o|
10
+ instance = YARD::CodeObjects::StepTransformObject.new(YARD::CodeObjects::Cucumber::CUCUMBER_STEPTRANSFORM_NAMESPACE,"step_transform#{@@unique_name}") do |o|
11
11
  o.source = statement.source
12
12
  o.comments = statement.comments
13
13
  o.keyword = statement[0].source
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 7
8
- - 4
9
- version: 1.7.4
8
+ - 5
9
+ version: 1.7.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Franklin Webber
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-12 00:00:00 -08:00
17
+ date: 2010-12-16 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -158,7 +158,7 @@ homepage: http://github.com/burtlo/Cucumber-In-The-Yard
158
158
  licenses: []
159
159
 
160
160
  post_install_message: "\n\
161
- (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)\n\n Thank you for installing Cucumber-In-The-YARD 1.7.4 / 2010-12-11.\n \n Changes:\n \n * Ruby 1.9.2 Support\n * Change to YARD Server support:\n yard server -e /path/to/gem/lib/server.b\n \n \n\n\
161
+ (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)\n\n Thank you for installing Cucumber-In-The-YARD 1.7.5 / 2010-12-14.\n \n Changes:\n \n * Ruby 1.9.2 Support\n * FIX Step Transforms were colliding with Step Definitions in Ruby 1.9.2\n \n\n\
162
162
  (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)\n\n"
163
163
  rdoc_options:
164
164
  - --charset=UTF-8