shindo 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/shindo.rb +7 -3
  2. data/shindo.gemspec +2 -2
  3. metadata +3 -3
data/lib/shindo.rb CHANGED
@@ -5,7 +5,7 @@ require 'gestalt'
5
5
  module Shindo
6
6
 
7
7
  unless const_defined?(:VERSION)
8
- VERSION = '0.1.0'
8
+ VERSION = '0.1.1'
9
9
  end
10
10
 
11
11
  def self.tests(description = nil, tags = [], &block)
@@ -65,8 +65,12 @@ module Shindo
65
65
  if (@if_tagged.empty? || !(@if_tagged & @tag_stack.flatten).empty?) &&
66
66
  (@unless_tagged.empty? || (@unless_tagged & @tag_stack.flatten).empty?)
67
67
  if block_given?
68
- @formatador.display_line(description)
69
- @formatador.indent { instance_eval(&block) }
68
+ begin
69
+ @formatador.display_line(description)
70
+ @formatador.indent { instance_eval(&block) }
71
+ rescue => error
72
+ @formatador.display_line("[red]#{error.message} (#{error.class})[/]")
73
+ end
70
74
  else
71
75
  @description = description
72
76
  end
data/shindo.gemspec CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'shindo'
16
- s.version = '0.1.0'
17
- s.date = '2010-05-21'
16
+ s.version = '0.1.1'
17
+ s.date = '2010-05-22'
18
18
  s.rubyforge_project = 'shindo'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-21 00:00:00 -07:00
17
+ date: 2010-05-22 00:00:00 -07:00
18
18
  default_executable: shindo
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency