nyan-cat-formatter 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -23,9 +23,11 @@ so that you won't have to specify the `--format` option everytime you run the co
23
23
 
24
24
  To use Nyan Cat with a project that uses Bundler (Rails or Sinatra f.e.) you need to add Nyan Cat dependecy to your Gemfile:
25
25
 
26
- group :test do
27
- gem "nyan-cat-formatter"
28
- end
26
+ ```ruby
27
+ group :test do
28
+ gem "nyan-cat-formatter"
29
+ end
30
+ ```
29
31
 
30
32
  And then run `bundle install`.
31
33
 
@@ -108,9 +108,9 @@ NyanCatFormatter = Class.new(parent_class) do
108
108
  @failed_examples ||= []
109
109
  padding = @example_count.to_s.length
110
110
  [ @current.to_s.rjust(padding),
111
- green((@current - @pending_examples.size - @failed_examples.size).to_s.rjust(padding)),
112
- yellow(@pending_examples.size.to_s.rjust(padding)),
113
- red(@failed_examples.size.to_s.rjust(padding)) ]
111
+ success_color((@current - @pending_examples.size - @failed_examples.size).to_s.rjust(padding)),
112
+ pending_color(@pending_examples.size.to_s.rjust(padding)),
113
+ failure_color(@failed_examples.size.to_s.rjust(padding)) ]
114
114
  end
115
115
 
116
116
  # Creates a rainbow trail
@@ -46,11 +46,11 @@ module RSpec1
46
46
  summary << ", #{pending_count} pending" if pending_count > 0
47
47
 
48
48
  if failure_count == 0
49
- @output.puts red(summary)
49
+ @output.puts failure_color(summary)
50
50
  elsif pending_count > 0
51
- @output.puts yellow(summary)
51
+ @output.puts pending_color(summary)
52
52
  else
53
- @output.puts green(summary)
53
+ @output.puts success_color(summary)
54
54
  end
55
55
  @output.flush
56
56
  end
@@ -2,12 +2,12 @@ $:.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.4.0"
5
+ s.version = "0.5.0"
6
6
  s.authors = ["Matt Sears"]
7
7
  s.email = ["matt@mattsears.com"]
8
- s.homepage = "http://mtts.rs/nyancat"
9
- s.summary = %q{Nyan Cat inspired RSpec formatter! }
10
- s.description = %q{Nyan Cat inspired RSpec formatter! }
8
+ s.homepage = "https://github.com/mattsears/nyan-cat-formatter"
9
+ s.summary = %q{Nyan Cat inspired RSpec formatter!}
10
+ s.description = s.summary
11
11
 
12
12
  s.rubyforge_project = "nyan-cat-formatter"
13
13
 
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  s.require_paths = ["lib"]
18
18
 
19
- # specify any dependencies here; for example:
19
+ s.add_dependency "rspec", ">= 2.13"
20
+
20
21
  s.add_development_dependency "rake"
21
- s.add_development_dependency "rspec"
22
22
  end
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.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,26 +9,26 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-17 00:00:00.000000000 Z
12
+ date: 2013-02-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rake
15
+ name: rspec
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :development
21
+ version: '2.13'
22
+ type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: '0'
29
+ version: '2.13'
30
30
  - !ruby/object:Gem::Dependency
31
- name: rspec
31
+ name: rake
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
@@ -43,7 +43,7 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- description: ! 'Nyan Cat inspired RSpec formatter! '
46
+ description: Nyan Cat inspired RSpec formatter!
47
47
  email:
48
48
  - matt@mattsears.com
49
49
  executables: []
@@ -72,7 +72,7 @@ files:
72
72
  - spec/nyan_cat_music_formatter_spec.rb
73
73
  - spec/nyan_cat_wide_formatter_spec.rb
74
74
  - spec/spec_helper.rb
75
- homepage: http://mtts.rs/nyancat
75
+ homepage: https://github.com/mattsears/nyan-cat-formatter
76
76
  licenses: []
77
77
  post_install_message:
78
78
  rdoc_options: []
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project: nyan-cat-formatter
95
- rubygems_version: 1.8.24
95
+ rubygems_version: 1.8.25
96
96
  signing_key:
97
97
  specification_version: 3
98
98
  summary: Nyan Cat inspired RSpec formatter!