cucumber_spinner 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,38 +1,2 @@
1
- require 'rake'
2
- require 'rake/rdoctask'
3
- require 'spec/rake/spectask'
4
-
5
- desc 'Default: Run all specs.'
6
- task :default => :spec
7
-
8
- desc "Run all specs"
9
- Spec::Rake::SpecTask.new() do |t|
10
- t.spec_opts = ['--options', "\"spec/support/spec.opts\""]
11
- t.spec_files = FileList['spec/**/*_spec.rb']
12
- end
13
-
14
- desc 'Generate documentation for the cucumber_spinner gem.'
15
- Rake::RDocTask.new(:rdoc) do |rdoc|
16
- rdoc.rdoc_dir = 'rdoc'
17
- rdoc.title = 'mail_magnet'
18
- rdoc.options << '--line-numbers' << '--inline-source'
19
- rdoc.rdoc_files.include('README')
20
- rdoc.rdoc_files.include('lib/**/*.rb')
21
- end
22
-
23
- begin
24
- require 'jeweler'
25
- Jeweler::Tasks.new do |gemspec|
26
- gemspec.name = "cucumber_spinner"
27
- # gemspec.version = '0.2.0'
28
- gemspec.summary = "Progress bar formatter for cucumber, shows failing scenarios immediately."
29
- gemspec.email = "tobias.kraze@makandra.de"
30
- gemspec.homepage = "http://github.com/makandra/cucumber_spinner"
31
- gemspec.description = "Formatter for cucumber like the RSpecSpinner for RSpec. Shows a progress bar on the command line, prints failing scenarios immediately and can automatically show a browser dump of the error page."
32
- gemspec.authors = ["Tobias Kraze"]
33
- gemspec.add_dependency('rtui', '>=0.2.2')
34
- end
35
- rescue LoadError
36
- puts "Jeweler not available. Install it with: sudo gem install jeweler"
37
- end
38
-
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -1,51 +1,20 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
1
  # -*- encoding: utf-8 -*-
2
+ $: << File.expand_path('../lib', __FILE__)
3
+ require 'cucumber_spinner/version'
5
4
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{cucumber_spinner}
8
- s.version = "0.2.2"
5
+ Gem::Specification.new do |gem|
6
+ gem.name = %q{cucumber_spinner}
7
+ gem.authors = ["Tobias Kraze"]
8
+ gem.description = %q{Formatter for cucumber like the RSpecSpinner for RSpec. Shows a progress bar on the command line, prints failing scenarios immediately and can automatically show a browser dump of the error page.}
9
+ gem.summary = %q{Progress bar formatter for cucumber.}
10
+ gem.email = %q{tobias.kraze@makandra.de}
9
11
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Tobias Kraze"]
12
- s.date = %q{2011-07-08}
13
- s.description = %q{Formatter for cucumber like the RSpecSpinner for RSpec. Shows a progress bar on the command line, prints failing scenarios immediately and can automatically show a browser dump of the error page.}
14
- s.email = %q{tobias.kraze@makandra.de}
15
- s.extra_rdoc_files = [
16
- "README.rdoc"
17
- ]
18
- s.files = [
19
- ".gitignore",
20
- "MIT-LICENSE",
21
- "README.rdoc",
22
- "Rakefile",
23
- "VERSION",
24
- "cucumber_spinner.gemspec",
25
- "lib/cucumber_spinner.rb",
26
- "lib/cucumber_spinner/curious_progress_bar_formatter.rb",
27
- "lib/cucumber_spinner/formatted_io.rb",
28
- "lib/cucumber_spinner/progress_bar_formatter.rb",
29
- "lib/cucumber_spinner/time_judge.rb",
30
- "pkg/cucumber_spinner-0.1.1.gem",
31
- "pkg/cucumber_spinner-0.1.gem"
32
- ]
33
- s.homepage = %q{http://github.com/makandra/cucumber_spinner}
34
- s.rdoc_options = ["--charset=UTF-8"]
35
- s.require_paths = ["lib"]
36
- s.rubygems_version = %q{1.5.0}
37
- s.summary = %q{Progress bar formatter for cucumber, shows failing scenarios immediately.}
12
+ gem.files = `git ls-files`.split($\)
13
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
14
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15
+ gem.require_paths = ["lib"]
16
+ gem.version = CucumberSpinner::VERSION
38
17
 
39
- if s.respond_to? :specification_version then
40
- s.specification_version = 3
41
-
42
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
- s.add_runtime_dependency(%q<rtui>, [">= 0.2.2"])
44
- else
45
- s.add_dependency(%q<rtui>, [">= 0.2.2"])
46
- end
47
- else
48
- s.add_dependency(%q<rtui>, [">= 0.2.2"])
49
- end
18
+ gem.add_runtime_dependency(%q<rtui>, [">= 0.2.2"])
50
19
  end
51
20
 
@@ -2,15 +2,28 @@ module CucumberSpinner
2
2
 
3
3
  class CuriousProgressBarFormatter < ProgressBarFormatter
4
4
 
5
+ def after_table_row(*)
6
+ @in_scenario_outline = true
7
+ super
8
+ ensure
9
+ @in_scenario_outline = false
10
+ end
11
+
5
12
  def failed!
6
13
  super
7
- show_the_page
14
+ if @in_scenario_outline
15
+ puts "Cannot show you the page with the error, that does not work with scenario outlines."
16
+ puts
17
+ else
18
+ show_the_page
19
+ end
8
20
  end
9
21
 
10
22
  def show_the_page
11
23
  step_mother.step_match('show me the page').invoke(nil)
12
24
  rescue StandardError => e
13
- puts "Tried to show you the page the page with the error, but it failed due to #{e.class.name}: #{e.message}"
25
+ puts "Tried to show you the page with the error, but it failed due to #{e.class.name}: #{e.message}"
26
+ puts
14
27
  end
15
28
 
16
29
  end
@@ -39,6 +39,9 @@ module CucumberSpinner
39
39
  def after_table_row(row)
40
40
  increment
41
41
  @pretty_printer.after_table_row(row)
42
+ if row.exception
43
+ failed!
44
+ end
42
45
  end
43
46
 
44
47
  def after_features(features)
@@ -0,0 +1,3 @@
1
+ module CucumberSpinner
2
+ VERSION = '0.2.3'
3
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber_spinner
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Kraze
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-08 00:00:00 +02:00
19
- default_executable:
18
+ date: 2012-10-04 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rtui
@@ -40,8 +39,8 @@ executables: []
40
39
 
41
40
  extensions: []
42
41
 
43
- extra_rdoc_files:
44
- - README.rdoc
42
+ extra_rdoc_files: []
43
+
45
44
  files:
46
45
  - .gitignore
47
46
  - MIT-LICENSE
@@ -54,15 +53,13 @@ files:
54
53
  - lib/cucumber_spinner/formatted_io.rb
55
54
  - lib/cucumber_spinner/progress_bar_formatter.rb
56
55
  - lib/cucumber_spinner/time_judge.rb
57
- - pkg/cucumber_spinner-0.1.1.gem
58
- - pkg/cucumber_spinner-0.1.gem
59
- has_rdoc: true
60
- homepage: http://github.com/makandra/cucumber_spinner
56
+ - lib/cucumber_spinner/version.rb
57
+ homepage:
61
58
  licenses: []
62
59
 
63
60
  post_install_message:
64
- rdoc_options:
65
- - --charset=UTF-8
61
+ rdoc_options: []
62
+
66
63
  require_paths:
67
64
  - lib
68
65
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -86,9 +83,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
83
  requirements: []
87
84
 
88
85
  rubyforge_project:
89
- rubygems_version: 1.5.0
86
+ rubygems_version: 1.8.24
90
87
  signing_key:
91
88
  specification_version: 3
92
- summary: Progress bar formatter for cucumber, shows failing scenarios immediately.
89
+ summary: Progress bar formatter for cucumber.
93
90
  test_files: []
94
91
 
92
+ has_rdoc:
Binary file
Binary file