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 +4 -0
- data/README.md +9 -8
- data/lib/yard-cucumber.rb +1 -1
- data/lib/yard/parser/cucumber/feature.rb +5 -2
- metadata +4 -6
data/History.txt
CHANGED
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
|
69
|
-
$
|
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
@@ -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
|
-
|
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.
|
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-
|
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.
|
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.
|
163
|
+
rubygems_version: 1.8.10
|
166
164
|
signing_key:
|
167
165
|
specification_version: 3
|
168
166
|
summary: Cucumber Features in YARD
|