cuke_puke 0.0.1 → 0.1.0
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/lib/cuke_puke/formatter.rb +22 -2
- data/lib/cuke_puke/version.rb +1 -1
- metadata +3 -4
- data/lib/cuke_puke.rb +0 -3
data/lib/cuke_puke/formatter.rb
CHANGED
@@ -1,11 +1,31 @@
|
|
1
1
|
module CukePuke
|
2
2
|
class Formatter
|
3
|
+
|
4
|
+
VOICE_FOR = {
|
5
|
+
:feature => 'vicki',
|
6
|
+
:scenario => 'ralph',
|
7
|
+
:step => 'fred'
|
8
|
+
}
|
9
|
+
|
3
10
|
def initialize( *args )
|
4
11
|
end
|
5
12
|
|
6
13
|
def before_step( step )
|
7
|
-
|
8
|
-
|
14
|
+
say "#{step.keyword} #{step.name}", VOICE_FOR[:step]
|
15
|
+
end
|
16
|
+
|
17
|
+
def scenario_name(keyword, name, file_colon_line, source_indent)
|
18
|
+
say "scenario: #{name}", VOICE_FOR[:scenario]
|
19
|
+
end
|
20
|
+
|
21
|
+
def before_feature(feature)
|
22
|
+
say "feature: #{feature.name}", VOICE_FOR[:feature]
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def say( what_to_say, voice = 'alex' )
|
28
|
+
system 'say', '-v', voice, what_to_say
|
9
29
|
end
|
10
30
|
end
|
11
31
|
end
|
data/lib/cuke_puke/version.rb
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
- 0
|
8
7
|
- 1
|
9
|
-
|
8
|
+
- 0
|
9
|
+
version: 0.1.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Pete Hodgson
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-02-
|
17
|
+
date: 2011-02-05 00:00:00 -08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -35,7 +35,6 @@ files:
|
|
35
35
|
- example/cucumber.yml
|
36
36
|
- example/step_definitions/steps.rb
|
37
37
|
- example/the.feature
|
38
|
-
- lib/cuke_puke.rb
|
39
38
|
- lib/cuke_puke/formatter.rb
|
40
39
|
- lib/cuke_puke/version.rb
|
41
40
|
has_rdoc: true
|
data/lib/cuke_puke.rb
DELETED