nyan-cat-formatter 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -2
- data/lib/nyan_cat_formatter.rb +4 -1
- data/nyan-cat-formatter.gemspec +2 -2
- metadata +51 -30
data/README.md
CHANGED
@@ -10,7 +10,7 @@ _-_-_-_-_-_-_-"" ""
|
|
10
10
|
|
11
11
|
This is my take on the Nyan Cat RSpec Formatter. It simply creates a rainbow trail of test results. It also counts the number of examples as they execute and highlights failed and pending specs.
|
12
12
|
|
13
|
-
The rainbow changes colors as it runs. See it in action [here](http://vimeo.com/
|
13
|
+
The rainbow changes colors as it runs. See it in action [here](http://vimeo.com/32424001).
|
14
14
|
|
15
15
|
```
|
16
16
|
rspec --format NyanCatFormatter
|
@@ -32,7 +32,7 @@ If you want to use Nyan Cat as your default formatter, simply put the options in
|
|
32
32
|
Using with Rails rake spec
|
33
33
|
----------
|
34
34
|
|
35
|
-
To use Nyan Cat with Rails "rake spec" you need to add Nyan Cat dependecy in your Gemfile.
|
35
|
+
To use Nyan Cat with Rails "rake spec" you need to add Nyan Cat dependecy in your Gemfile.
|
36
36
|
|
37
37
|
```
|
38
38
|
group :test do
|
data/lib/nyan_cat_formatter.rb
CHANGED
@@ -45,7 +45,10 @@ class NyanCatFormatter < RSpec::Core::Formatters::BaseTextFormatter
|
|
45
45
|
summary = "\nNyan Cat flew #{format_seconds(duration)} seconds".split(//).map { |c| rainbowify(c) }
|
46
46
|
output.puts summary.join
|
47
47
|
output.puts colorise_summary(summary_line(example_count, failure_count, pending_count))
|
48
|
-
|
48
|
+
|
49
|
+
if respond_to?(:dump_commands_to_rerun_failed_examples)
|
50
|
+
dump_commands_to_rerun_failed_examples
|
51
|
+
end
|
49
52
|
end
|
50
53
|
|
51
54
|
def dump_failures
|
data/nyan-cat-formatter.gemspec
CHANGED
@@ -2,10 +2,10 @@ $:.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.
|
5
|
+
s.version = "0.0.3"
|
6
6
|
s.authors = ["Matt Sears"]
|
7
7
|
s.email = ["matt@mattsears.com"]
|
8
|
-
s.homepage = ""
|
8
|
+
s.homepage = "http://mtts.rs/nyancat"
|
9
9
|
s.summary = %q{Nyan Cat inspired RSpec formatter! }
|
10
10
|
s.description = %q{Nyan Cat inspired RSpec formatter! }
|
11
11
|
|
metadata
CHANGED
@@ -1,34 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: nyan-cat-formatter
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Matt Sears
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2011-11-22 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: rspec
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
22
32
|
type: :development
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
email:
|
33
|
+
version_requirements: *id001
|
34
|
+
description: "Nyan Cat inspired RSpec formatter! "
|
35
|
+
email:
|
27
36
|
- matt@mattsears.com
|
28
37
|
executables: []
|
38
|
+
|
29
39
|
extensions: []
|
40
|
+
|
30
41
|
extra_rdoc_files: []
|
31
|
-
|
42
|
+
|
43
|
+
files:
|
32
44
|
- .gitignore
|
33
45
|
- .rspec
|
34
46
|
- .rvmrc
|
@@ -39,30 +51,39 @@ files:
|
|
39
51
|
- nyan-cat-formatter.gemspec
|
40
52
|
- spec/nyan_cat_formatter_spec.rb
|
41
53
|
- spec/spec_helper.rb
|
42
|
-
homepage:
|
54
|
+
homepage: http://mtts.rs/nyancat
|
43
55
|
licenses: []
|
56
|
+
|
44
57
|
post_install_message:
|
45
58
|
rdoc_options: []
|
46
|
-
|
59
|
+
|
60
|
+
require_paths:
|
47
61
|
- lib
|
48
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
63
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
hash: 3
|
68
|
+
segments:
|
69
|
+
- 0
|
70
|
+
version: "0"
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
72
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
version: "0"
|
60
80
|
requirements: []
|
81
|
+
|
61
82
|
rubyforge_project: nyan-cat-formatter
|
62
83
|
rubygems_version: 1.8.10
|
63
84
|
signing_key:
|
64
85
|
specification_version: 3
|
65
86
|
summary: Nyan Cat inspired RSpec formatter!
|
66
|
-
test_files:
|
87
|
+
test_files:
|
67
88
|
- spec/nyan_cat_formatter_spec.rb
|
68
89
|
- spec/spec_helper.rb
|