cuke_puke 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ pkg/*
2
+ *.gem
3
+ .bundle
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in cuke_puke.gemspec
4
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
data/cuke_puke.gemspec ADDED
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "cuke_puke/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "cuke_puke"
7
+ s.version = CukePuke::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Pete Hodgson"]
10
+ s.email = ["rubygems@thepete.net"]
11
+ s.homepage = "http://rubygems.org/gems/cuke_puke"
12
+ s.summary = %q{The most annoying cucumber formatter EVAR!}
13
+ s.description = %q{Uses the OS X 'say' command to inflict verbal diarrhea on all around!}
14
+
15
+ s.rubyforge_project = "cuke_puke"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+ end
@@ -0,0 +1 @@
1
+ default: --format 'CukePuke::Formatter' --out /dev/null --format pretty the.feature
@@ -0,0 +1,4 @@
1
+ Given /^I wait (\d+\.?\d*) seconds$/ do |seconds|
2
+ seconds = seconds.to_f
3
+ sleep(seconds)
4
+ end
@@ -0,0 +1,8 @@
1
+ Feature: demonstration
2
+
3
+ Scenario: Demo
4
+ Given I wait 0.7 seconds
5
+ And I wait 3 seconds
6
+ Then I wait 0.1 seconds
7
+ And I wait 0.1 seconds
8
+
@@ -0,0 +1,11 @@
1
+ module CukePuke
2
+ class Formatter
3
+ def initialize( *args )
4
+ end
5
+
6
+ def before_step( step )
7
+ desc = "#{step.keyword} #{step.name}"
8
+ system( 'say', desc )
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ module CukePuke
2
+ VERSION = "0.0.1"
3
+ end
data/lib/cuke_puke.rb ADDED
@@ -0,0 +1,3 @@
1
+ module CukePuke
2
+ # Your code goes here...
3
+ end
metadata ADDED
@@ -0,0 +1,72 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cuke_puke
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Pete Hodgson
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-02-04 00:00:00 -08:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: Uses the OS X 'say' command to inflict verbal diarrhea on all around!
22
+ email:
23
+ - rubygems@thepete.net
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - .gitignore
32
+ - Gemfile
33
+ - Rakefile
34
+ - cuke_puke.gemspec
35
+ - example/cucumber.yml
36
+ - example/step_definitions/steps.rb
37
+ - example/the.feature
38
+ - lib/cuke_puke.rb
39
+ - lib/cuke_puke/formatter.rb
40
+ - lib/cuke_puke/version.rb
41
+ has_rdoc: true
42
+ homepage: http://rubygems.org/gems/cuke_puke
43
+ licenses: []
44
+
45
+ post_install_message:
46
+ rdoc_options: []
47
+
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ segments:
55
+ - 0
56
+ version: "0"
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ segments:
62
+ - 0
63
+ version: "0"
64
+ requirements: []
65
+
66
+ rubyforge_project: cuke_puke
67
+ rubygems_version: 1.3.6
68
+ signing_key:
69
+ specification_version: 3
70
+ summary: The most annoying cucumber formatter EVAR!
71
+ test_files: []
72
+