aslakhellesoy-cucumber 0.3.7.5 → 0.3.8
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.
- data/History.txt +7 -3
- data/examples/java/build.xml +7 -0
- data/lib/cucumber/formatter/html.rb +8 -4
- data/lib/cucumber/step_match.rb +2 -3
- data/lib/cucumber/version.rb +2 -2
- metadata +2 -2
data/History.txt
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
== 0.3.8
|
|
1
|
+
== 0.3.8 2009-05-27
|
|
2
|
+
|
|
3
|
+
This Cucumber version fixes several bugs related to Ruby on Rails and RSpec. If you
|
|
4
|
+
use Cucumber with a Rails app we *strongly* recommend you bootstrap Cucumber again:
|
|
5
|
+
|
|
6
|
+
ruby script/generate cucumber
|
|
2
7
|
|
|
3
8
|
=== New Features
|
|
4
9
|
* Rails cucumber generator sets up default gem dependencies in cucumber environment.
|
|
5
|
-
* Better error if RSpec's option parser is "accidentally" loaded. (Aslak Hellesøy)
|
|
6
10
|
* The duration of a run is reported by formatters - same format as the Linux time command (#228 Aslak Hellesøy)
|
|
7
11
|
* Scenario and ExampleRow objects (passed to Before and After hooks) have #name and #line methods (#316 Aslak Hellesøy)
|
|
8
12
|
* Rails generator creates a cucumber environment file to avoid potential cache_classes conflicts in test.rb (#165, Ben Mabey)
|
|
9
13
|
* HTML formatter renders @tags (but the CSS is still ugly)
|
|
10
14
|
|
|
11
15
|
=== Removed/changed features
|
|
12
|
-
* The Cucumber Rake task will again fork by default (as
|
|
16
|
+
* The Cucumber Rake task will again fork by default (as 0.3.3 and earlier). Forking must be turned off explicitly. (Aslak Hellesøy)
|
|
13
17
|
|
|
14
18
|
=== Bugfixes
|
|
15
19
|
* Better coexistence with RSpec - Cucumber now *neuters* the part of RSpec that tries to parse ARGV.
|
data/examples/java/build.xml
CHANGED
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
<target name="cucumber" depends="compile" description="Run Cucumber">
|
|
8
8
|
<property environment="ENV" />
|
|
9
|
+
<fail unless="ENV.JRUBY_HOME">
|
|
10
|
+
(::) ERROR (::)
|
|
11
|
+
Define JRUBY_HOME in your shell. For example:
|
|
12
|
+
|
|
13
|
+
export JRUBY_HOME=/usr/local/jruby
|
|
14
|
+
set JRUBY_HOME=C:\jruby
|
|
15
|
+
</fail>
|
|
9
16
|
<java classname="org.jruby.Main" fork="true" failonerror="true">
|
|
10
17
|
<classpath>
|
|
11
18
|
<pathelement path="${ENV.JRUBY_HOME}/lib/jruby.jar"/>
|
|
@@ -123,10 +123,7 @@ module Cucumber
|
|
|
123
123
|
@step_matches << step_match
|
|
124
124
|
|
|
125
125
|
unless @skip_step
|
|
126
|
-
|
|
127
|
-
@builder.div do |div|
|
|
128
|
-
div << h("#{keyword} #{step_name}").gsub(/<span class="(.*?)">/, '<span class="\1">').gsub(/<\/span>/, '</span>')
|
|
129
|
-
end
|
|
126
|
+
build_step(keyword, step_match, status)
|
|
130
127
|
end
|
|
131
128
|
end
|
|
132
129
|
|
|
@@ -183,6 +180,13 @@ module Cucumber
|
|
|
183
180
|
|
|
184
181
|
protected
|
|
185
182
|
|
|
183
|
+
def build_step(keyword, step_match, status)
|
|
184
|
+
step_name = step_match.format_args(lambda{|param| %{<span class="#{status}_param">#{param}</span>}})
|
|
185
|
+
@builder.div do |div|
|
|
186
|
+
div << h("#{keyword} #{step_name}").gsub(/<span class="(.*?)">/, '<span class="\1">').gsub(/<\/span>/, '</span>')
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
186
190
|
def build_cell(cell_type, value, attributes)
|
|
187
191
|
@builder.__send__(cell_type, value, attributes)
|
|
188
192
|
end
|
data/lib/cucumber/step_match.rb
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
module Cucumber
|
|
2
2
|
class StepMatch
|
|
3
|
-
attr_reader :step_definition
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
attr_reader :step_definition, :args, :step_name
|
|
4
|
+
|
|
6
5
|
def initialize(step_definition, step_name, formatted_step_name, args)
|
|
7
6
|
@step_definition, @step_name, @formatted_step_name, @args = step_definition, step_name, formatted_step_name, args
|
|
8
7
|
end
|
data/lib/cucumber/version.rb
CHANGED
|
@@ -2,8 +2,8 @@ module Cucumber #:nodoc:
|
|
|
2
2
|
class VERSION #:nodoc:
|
|
3
3
|
MAJOR = 0
|
|
4
4
|
MINOR = 3
|
|
5
|
-
TINY =
|
|
6
|
-
PATCH =
|
|
5
|
+
TINY = 8
|
|
6
|
+
PATCH = nil # Set to nil for official release
|
|
7
7
|
|
|
8
8
|
STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
|
|
9
9
|
STABLE_STRING = [MAJOR, MINOR, TINY].join('.')
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aslakhellesoy-cucumber
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- "Aslak Helles\xC3\xB8y"
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-05-
|
|
12
|
+
date: 2009-05-27 00:00:00 -07:00
|
|
13
13
|
default_executable: cucumber
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|