bacon-bits 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gemspec CHANGED
@@ -9,10 +9,10 @@ Gem::Specification.new do |s|
9
9
  s.email = "gabriel.horner@gmail.com"
10
10
  s.homepage = "http://github.com/cldwalker/bacon-bits"
11
11
  s.summary = "Making bacon a little tastier."
12
- s.description = "This extends the bacon testing framework with useful extensions to disable tests, have before and after blocks that run once and more."
12
+ s.description = "This extends the bacon testing framework with useful extensions to disable tests, have before and after blocks that run once and more. For examples in the wild, see the tests for boson or bond."
13
13
  s.required_rubygems_version = ">= 1.3.6"
14
14
  s.rubyforge_project = 'tagaholic'
15
- s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c}]) + %w{Rakefile .gemspec}
15
+ s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
16
16
  s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
17
17
  s.add_dependency 'bacon', '>=1.1.0'
18
18
  s.license = 'MIT'
@@ -1,2 +1,5 @@
1
+ == 0.1.0
2
+ * Add StylishTestUnitOuput
3
+
1
4
  == 0.0.1
2
- * Initial release
5
+ * Initial release
@@ -2,7 +2,7 @@
2
2
 
3
3
  This extends the bacon testing framework with useful extensions to disable tests, have before and after
4
4
  blocks that run once and more. For examples in the wild, see the tests for
5
- boson{http://github.com/cldwalker/boson} or bond{http://github.com/cldwalker/bond}.
5
+ {boson}[http://github.com/cldwalker/boson] or {bond}[http://github.com/cldwalker/bond].
6
6
 
7
7
  == Install
8
8
 
@@ -15,7 +15,11 @@ Install the gem with:
15
15
  Use in tests with:
16
16
 
17
17
  require 'bacon/bits'
18
+
19
+ To use the included StylishTestUnitOuput
20
+
21
+ bacon -r bacon/bits -o StylishTestUnit TEST_FILES
18
22
 
19
23
  == Bugs/Issues
20
24
 
21
- Please report them {on github}[http://github.com/cldwalker/bacon-bits/issues].
25
+ Please report them {on github}[http://github.com/cldwalker/bacon-bits/issues].
@@ -0,0 +1 @@
1
+ bacon >=1.1.0
@@ -1,8 +1,10 @@
1
+ # -*- encoding: utf-8 -*-
2
+
1
3
  require 'bacon'
2
4
 
3
5
  module Bacon
4
6
  module Bits
5
- VERSION = '0.0.1'
7
+ VERSION = '0.1.0'
6
8
 
7
9
  # Will remove this once the latest bacon (which contains this) is released as a gem
8
10
  def self.included(mod)
@@ -30,6 +32,16 @@ module Bacon
30
32
  end
31
33
  end
32
34
  end
35
+
36
+ # Inspired by http://gist.github.com/80533
37
+ module StylishTestUnitOutput
38
+ include TestUnitOutput
39
+
40
+ def handle_requirement(description)
41
+ error = yield
42
+ print error.empty? ? "\e[32m✓ \e[m" : "\e[31m✗ \e[m"
43
+ end
44
+ end
33
45
  end
34
46
 
35
47
  Bacon::Context.send :include, Bacon::Bits
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bacon-bits
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
9
+ - 0
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gabriel Horner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-15 00:00:00 -04:00
18
+ date: 2010-09-27 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: 1.1.0
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
- description: This extends the bacon testing framework with useful extensions to disable tests, have before and after blocks that run once and more.
37
+ description: This extends the bacon testing framework with useful extensions to disable tests, have before and after blocks that run once and more. For examples in the wild, see the tests for boson or bond.
38
38
  email: gabriel.horner@gmail.com
39
39
  executables: []
40
40
 
@@ -48,6 +48,7 @@ files:
48
48
  - LICENSE.txt
49
49
  - CHANGELOG.rdoc
50
50
  - README.rdoc
51
+ - deps.rip
51
52
  - Rakefile
52
53
  - .gemspec
53
54
  has_rdoc: true