Bacon_Colored 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ab4a15c1e75784ed61227af2ab76555812f5f5af
4
+ data.tar.gz: 9ddb7e1543c643485694eff22cab36677639cd18
5
+ SHA512:
6
+ metadata.gz: 276fa7cb5e7fbc89b71199b13a8f3bb65ff19a1af69c9cd55e63bd1d2acc8698c5bcc5c07a55931b01e4ef6e01a75f58e6c31117f00a027499564a67d5901d5a
7
+ data.tar.gz: 346586b753d36f839db18588961b83dae3a13621d896d113b291bc7803c898ecc6058f91cb11423bb6a191acd249e652ca0c620648aa7df8cbaf27a363f388a4
@@ -1,13 +1,12 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- require "Bacon_Colored/version"
4
3
 
5
4
  Gem::Specification.new do |s|
6
5
  s.name = "Bacon_Colored"
7
- s.version = Bacon_Colored::VERSION
6
+ s.version = `cat VERSION`
8
7
  s.authors = ["da99"]
9
8
  s.email = ["i-hate-spam-45671204@mailinator.com"]
10
- s.homepage = ""
9
+ s.homepage = "https://github.com/da99/Bacon_Colored"
11
10
  s.summary = %q{Adds color to your spec runs.}
12
11
  s.description = %q{
13
12
  Adds color to your spec runs.
@@ -22,8 +21,7 @@ Gem::Specification.new do |s|
22
21
  s.require_paths = ["lib"]
23
22
 
24
23
  s.add_development_dependency 'rake'
25
-
24
+
26
25
  s.add_runtime_dependency 'bacon'
27
26
  s.add_runtime_dependency 'colored'
28
-
29
27
  end
File without changes
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ Bacon\_Colored
2
+ ==================
3
+
4
+ Inspired by GreenEggs: https://github.com/fantasticmf/greeneggs
5
+ (which apparantly is gone.)
6
+
7
+ Use It:
8
+ =====
9
+
10
+ ```rb
11
+ gem install Bacon_Colored
12
+ ```
13
+
14
+ ```rb
15
+ require "bacon"
16
+ require "Bacon_Colored"
17
+
18
+ describe ....
19
+ ....
20
+ end
21
+
22
+ ```
23
+
24
+ Alternatives:
25
+ ======
26
+
27
+ * [https://github.com/whitequark/bacon-colored_output](https://github.com/whitequark/bacon-colored_output)
28
+
29
+ Copyright
30
+ ==============
31
+
32
+ Copyright (c) 2010 da99. See LICENSE for further details.
33
+
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.1
data/lib/Bacon_Colored.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
- #
3
- require "Bacon_Colored/version"
2
+ #
4
3
 
5
4
  unless defined?(Bacon)
6
5
  require 'bacon'
@@ -18,7 +17,7 @@ module Bacon
18
17
  :red
19
18
  else
20
19
  :yellow
21
- end
20
+ end
22
21
 
23
22
  mark = error.empty? ? "✓ ".green : "✗ ".send(color)
24
23
  print " #{mark}#{description}"
@@ -29,10 +28,10 @@ module Bacon
29
28
 
30
29
  def handle_summary
31
30
  specs, reqs, fails, errs = Counter.values_at(:specifications, :requirements, :failed, :errors)
32
- all_pass = reqs > 1 && (fails == errs) && (errs == 0)
31
+ all_pass = reqs > 1 && (fails == errs) && (errs == 0)
33
32
 
34
33
  print ErrorLog if Backtraces
35
-
34
+
36
35
  print "%d specifications (%d requirements)".send(all_pass ? :green : :to_s ) % [ specs, reqs ]
37
36
 
38
37
  if all_pass
@@ -44,10 +43,10 @@ module Bacon
44
43
  print "#{errs} errors".send( errs > 0 ? :yellow : :to_s )
45
44
  print ". "
46
45
  end
47
-
48
- puts
46
+
47
+ puts
49
48
  puts
50
- end
51
-
49
+ end
50
+
52
51
  end # === module
53
52
  end # === module
metadata CHANGED
@@ -1,50 +1,58 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Bacon_Colored
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - da99
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2011-10-12 00:00:00.000000000Z
11
+ date: 2013-08-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
- requirement: &8379640 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *8379640
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: bacon
27
- requirement: &8378960 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *8378960
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: colored
38
- requirement: &8378220 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - '>='
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :runtime
45
49
  prerelease: false
46
- version_requirements: *8378220
47
- description: ! "\n Adds color to your spec runs.\n Inspired by GreenEggs: https://github.com/fantasticmf/greeneggs\n
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: "\n Adds color to your spec runs.\n Inspired by GreenEggs: https://github.com/fantasticmf/greeneggs\n
48
56
  \ "
49
57
  email:
50
58
  - i-hate-spam-45671204@mailinator.com
@@ -56,38 +64,37 @@ files:
56
64
  - .gitignore
57
65
  - Bacon_Colored.gemspec
58
66
  - Gemfile
59
- - LICENSE.txt
60
- - README.rdoc
67
+ - LICENSE
68
+ - README.md
61
69
  - Rakefile
70
+ - VERSION
62
71
  - lib/Bacon_Colored.rb
63
- - lib/Bacon_Colored/version.rb
64
72
  - spec/helper.rb
65
73
  - spec/main.rb
66
74
  - spec/tests/fail.rb
67
75
  - spec/tests/pass.rb
68
76
  - spec/tests/pass_fail.rb
69
- homepage: ''
77
+ homepage: https://github.com/da99/Bacon_Colored
70
78
  licenses: []
79
+ metadata: {}
71
80
  post_install_message:
72
81
  rdoc_options: []
73
82
  require_paths:
74
83
  - lib
75
84
  required_ruby_version: !ruby/object:Gem::Requirement
76
- none: false
77
85
  requirements:
78
- - - ! '>='
86
+ - - '>='
79
87
  - !ruby/object:Gem::Version
80
88
  version: '0'
81
89
  required_rubygems_version: !ruby/object:Gem::Requirement
82
- none: false
83
90
  requirements:
84
- - - ! '>='
91
+ - - '>='
85
92
  - !ruby/object:Gem::Version
86
93
  version: '0'
87
94
  requirements: []
88
95
  rubyforge_project: Bacon_Colored
89
- rubygems_version: 1.8.11
96
+ rubygems_version: 2.0.7
90
97
  signing_key:
91
- specification_version: 3
98
+ specification_version: 4
92
99
  summary: Adds color to your spec runs.
93
100
  test_files: []
data/README.rdoc DELETED
@@ -1,19 +0,0 @@
1
- = Bacon_Colored
2
-
3
- Inspired by GreenEggs: https://github.com/fantasticmf/greeneggs
4
-
5
- == Contributing to Bacon_Colored
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
- * Fork the project
10
- * Start a feature/bugfix branch
11
- * Commit and push until you are happy with your contribution
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2010 da99. See LICENSE.txt for
18
- further details.
19
-
@@ -1,3 +0,0 @@
1
- module Bacon_Colored
2
- VERSION = "0.1.0"
3
- end