cuke_puke 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- desc = "#{step.keyword} #{step.name}"
8
- system( 'say', desc )
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
@@ -1,3 +1,3 @@
1
1
  module CukePuke
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
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
- version: 0.0.1
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-04 00:00:00 -08:00
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
@@ -1,3 +0,0 @@
1
- module CukePuke
2
- # Your code goes here...
3
- end