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.
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/nyan_cat_formatter.rb +2 -2
- data/lib/rspec1.rb +1 -1
- data/lib/rspec2.rb +3 -3
- data/nyan-cat-formatter.gemspec +1 -1
- metadata +8 -7
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
data/lib/nyan_cat_formatter.rb
CHANGED
@@ -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(@
|
106
|
-
red(@
|
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
|
data/lib/rspec1.rb
CHANGED
@@ -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 "\
|
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
|
|
data/lib/rspec2.rb
CHANGED
@@ -13,13 +13,13 @@ module RSpec2
|
|
13
13
|
|
14
14
|
def example_pending(example)
|
15
15
|
super(example)
|
16
|
-
@pending_count
|
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
|
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 = "\
|
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
|
|
data/nyan-cat-formatter.gemspec
CHANGED
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.
|
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-
|
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: &
|
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: *
|
24
|
+
version_requirements: *70317825820840
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
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: *
|
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.
|
78
|
+
rubygems_version: 1.8.15
|
78
79
|
signing_key:
|
79
80
|
specification_version: 3
|
80
81
|
summary: Nyan Cat inspired RSpec formatter!
|