nyan-cat-formatter 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ 0.0.7 - June 26, 2012
2
+ -------------------------
3
+ * Fixed failure and pending counting bug.
4
+ * Change the summary tag line to read "You've Nyaned for ... seconds"
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Nyan Cat RSpec Formatter [![Build Status](https://secure.travis-ci.org/mattsears/nyan-cat-formatter.png)](http://travis-ci.org/mattsears/nyan-cat-formatter)
2
2
  ========
3
3
 
4
- ```code
4
+ ```
5
5
  -_-_-_-_-_-_-_,------,
6
6
  _-_-_-_-_-_-_-| /\_/\
7
7
  -_-_-_-_-_-_-~|__( ^ .^)
@@ -102,8 +102,8 @@ NyanCatFormatter = Class.new(parent_class) do
102
102
  padding = @example_count.to_s.length
103
103
  [ @current.to_s.rjust(padding),
104
104
  green((@current - @pending_examples.size - @failed_examples.size).to_s.rjust(padding)),
105
- yellow(@pending_count.to_s.rjust(padding)),
106
- red(@failure_count.to_s.rjust(padding)) ]
105
+ yellow(@pending_examples.size.to_s.rjust(padding)),
106
+ red(@failed_examples.size.to_s.rjust(padding)) ]
107
107
  end
108
108
 
109
109
  # Creates a rainbow trail
@@ -40,7 +40,7 @@ module RSpec1
40
40
  end
41
41
 
42
42
  def dump_summary(duration, example_count, failure_count, pending_count)
43
- @output.puts "\nNyan Cat flew #{duration} seconds\n".each_char.map {|c| rainbowify(c)}.join
43
+ @output.puts "\nYou've Nyaned for #{duration} seconds\n".each_char.map {|c| rainbowify(c)}.join
44
44
  summary = "#{example_count} example#{'s' unless example_count == 1}, #{failure_count} failure#{'s' unless failure_count == 1}"
45
45
  summary << ", #{pending_count} pending" if pending_count > 0
46
46
 
@@ -13,13 +13,13 @@ module RSpec2
13
13
 
14
14
  def example_pending(example)
15
15
  super(example)
16
- @pending_count =+1
16
+ @pending_count +=1
17
17
  tick PENDING
18
18
  end
19
19
 
20
20
  def example_failed(example)
21
21
  super(example)
22
- @failure_count =+1
22
+ @failure_count +=1
23
23
  tick FAIL
24
24
  end
25
25
 
@@ -29,7 +29,7 @@ module RSpec2
29
29
 
30
30
  def dump_summary(duration, example_count, failure_count, pending_count)
31
31
  dump_profile if profile_examples? && failure_count == 0
32
- summary = "\nNyan Cat flew #{format_seconds(duration)} seconds".split(//).map { |c| rainbowify(c) }
32
+ summary = "\nYou've Nyaned for #{format_seconds(duration)} seconds\n".split(//).map { |c| rainbowify(c) }
33
33
  output.puts summary.join
34
34
  output.puts colorise_summary(summary_line(example_count, failure_count, pending_count))
35
35
 
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "nyan-cat-formatter"
5
- s.version = "0.0.6"
5
+ s.version = "0.0.7"
6
6
  s.authors = ["Matt Sears"]
7
7
  s.email = ["matt@mattsears.com"]
8
8
  s.homepage = "http://mtts.rs/nyancat"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nyan-cat-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-14 00:00:00.000000000 Z
12
+ date: 2012-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70338037960060 !ruby/object:Gem::Requirement
16
+ requirement: &70317825820840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70338037960060
24
+ version_requirements: *70317825820840
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70338037959620 !ruby/object:Gem::Requirement
27
+ requirement: &70317825820400 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70338037959620
35
+ version_requirements: *70317825820400
36
36
  description: ! 'Nyan Cat inspired RSpec formatter! '
37
37
  email:
38
38
  - matt@mattsears.com
@@ -44,6 +44,7 @@ files:
44
44
  - .rspec
45
45
  - .rvmrc
46
46
  - .travis.yml
47
+ - CHANGELOG.md
47
48
  - Gemfile
48
49
  - LICENSE.md
49
50
  - README.md
@@ -74,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
75
  version: '0'
75
76
  requirements: []
76
77
  rubyforge_project: nyan-cat-formatter
77
- rubygems_version: 1.8.10
78
+ rubygems_version: 1.8.15
78
79
  signing_key:
79
80
  specification_version: 3
80
81
  summary: Nyan Cat inspired RSpec formatter!