yard-cucumber 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.1.2 / 2011-09-16
2
+
3
+ * JRuby Bug Fix (Thanks @aledalgrande)
4
+
1
5
  === 2.1.1 / 2011-06-17
2
6
 
3
7
  * Gherkin 2.4.0 Compatibility (Thanks @bowsersenior)
data/README.md CHANGED
@@ -55,7 +55,7 @@ YARD 0.7.0 - http://yardoc.org
55
55
 
56
56
  To install `yard-cucumber` use the following command:
57
57
 
58
- $ gem install yard-cucumber
58
+ $ gem install yard-cucumber
59
59
 
60
60
  (Add `sudo` if you're installing under a POSIX system as root)
61
61
 
@@ -65,20 +65,21 @@ Usage
65
65
  YARD supports for automatically including gems with the prefix `yard-`
66
66
  as a plugin. To enable automatic loading yard-cucumber.
67
67
 
68
- $ yard config load_plugins true
69
- $ yardoc 'example/**/*.rb' 'example/**/*.feature'
68
+ $ mkdir ~/.yard
69
+ $ yard config load_plugins true
70
+ $ yardoc 'example/**/*.rb' 'example/**/*.feature'
70
71
 
71
72
  Now you can run YARD as you [normally](https://github.com/lsegal/yard) would and
72
73
  have your features, step definitions and transforms captured.
73
74
 
74
75
  An example with the rake task:
75
76
 
76
- require 'yard'
77
+ require 'yard'
77
78
 
78
- YARD::Rake::YardocTask.new do |t|
79
- t.files = ['features/**/*.feature', 'features/**/*.rb']
80
- t.options = ['--any', '--extra', '--opts'] # optional
81
- end
79
+ YARD::Rake::YardocTask.new do |t|
80
+ t.files = ['features/**/*.feature', 'features/**/*.rb']
81
+ t.options = ['--any', '--extra', '--opts'] # optional
82
+ end
82
83
 
83
84
 
84
85
  Configuration
data/lib/yard-cucumber.rb CHANGED
@@ -4,7 +4,7 @@ require 'gherkin/formatter/tag_count_formatter'
4
4
 
5
5
 
6
6
  module CucumberInTheYARD
7
- VERSION = '2.1.1'
7
+ VERSION = '2.1.2'
8
8
  end
9
9
 
10
10
  require File.dirname(__FILE__) + "/yard/code_objects/cucumber/base.rb"
@@ -38,12 +38,15 @@ module YARD::Parser::Cucumber
38
38
  @parser.parse(@source, @file, 0)
39
39
  @feature = @builder.ast
40
40
  return nil if @feature.nil? # Nothing matched
41
- @feature.language = @parser.i18n_language
41
+
42
+ # The parser used the following keywords when parsing the feature
43
+ # @feature.language = @parser.i18n_language.get_code_keywords.map {|word| word }
44
+
42
45
  rescue Gherkin::Lexer::LexingError, Gherkin::Parser::ParseError => e
43
46
  e.message.insert(0, "#{@file}: ")
44
47
  raise e
45
48
  end
46
-
49
+
47
50
  self
48
51
  end
49
52
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: yard-cucumber
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.1.1
5
+ version: 2.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Franklin Webber
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-17 00:00:00 -07:00
14
- default_executable:
13
+ date: 2011-09-16 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: gherkin
@@ -136,12 +135,11 @@ files:
136
135
  - lib/yard/server/commands/list_command.rb
137
136
  - lib/yard/server/router.rb
138
137
  - lib/yard/templates/helpers/base_helper.rb
139
- has_rdoc: true
140
138
  homepage: http://github.com/burtlo/yard-cucumber
141
139
  licenses: []
142
140
 
143
141
  post_install_message: "\n\
144
- (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)\n\n Thank you for installing yard-cucumber 2.1.1 / 2011-06-17.\n \n Changes:\n \n * Gherkin 2.4.0 Compatibility (Thanks @bowsersenior)\n \n\n\
142
+ (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)\n\n Thank you for installing yard-cucumber 2.1.2 / 2011-09-16.\n \n Changes:\n \n * JRuby Bug Fix (Thanks @aledalgrande)\n \n\n\
145
143
  (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)\n\n"
146
144
  rdoc_options:
147
145
  - --charset=UTF-8
@@ -162,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
160
  requirements: []
163
161
 
164
162
  rubyforge_project:
165
- rubygems_version: 1.6.2
163
+ rubygems_version: 1.8.10
166
164
  signing_key:
167
165
  specification_version: 3
168
166
  summary: Cucumber Features in YARD