cucumber-step_writer 0.1.1 → 0.1.2
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/cucumber-step_writer.gemspec +1 -1
- data/lib/cucumber/step_writer.rb +1 -1
- metadata +3 -3
data/lib/cucumber/step_writer.rb
CHANGED
|
@@ -28,7 +28,7 @@ module Cucumber
|
|
|
28
28
|
step_name = Cucumber::Undefined === step.exception ? step.exception.step_name : step.name
|
|
29
29
|
step_multiline_class = step.multiline_arg ? step.multiline_arg.class : nil
|
|
30
30
|
|
|
31
|
-
path = Pathname(@io).join(step.actual_keyword.downcase.strip, step_name.
|
|
31
|
+
path = Pathname(@io).join(step.actual_keyword.downcase.strip, step_name.downcase.gsub(%r{[^\w]+}, '_').gsub(%r{^_|_$}, '') + '.rb')
|
|
32
32
|
|
|
33
33
|
if !path.file?
|
|
34
34
|
puts yellow("Writing new step to #{path}.")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cucumber-step_writer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-04-
|
|
12
|
+
date: 2012-04-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Write out step files for undefined Cucumber steps.
|
|
15
15
|
email:
|
|
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
49
49
|
version: '0'
|
|
50
50
|
requirements: []
|
|
51
51
|
rubyforge_project:
|
|
52
|
-
rubygems_version: 1.8.
|
|
52
|
+
rubygems_version: 1.8.11
|
|
53
53
|
signing_key:
|
|
54
54
|
specification_version: 3
|
|
55
55
|
summary: Write out step files for undefined Cucumber steps.
|