shindo 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/bin/shindo CHANGED
@@ -1,4 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  @thread_locals = { :interactive => true }
3
3
  require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'verbose'))
4
- require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
4
+ if Kernel.respond_to?(:require_relative)
5
+ require_relative File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
6
+ else
7
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
8
+ end
@@ -1,4 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  @thread_locals = { :interactive => false }
3
3
  require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'taciturn'))
4
- require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
4
+ if Kernel.respond_to?(:require_relative)
5
+ require_relative File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
6
+ else
7
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
8
+ end
@@ -5,7 +5,7 @@ module Shindo
5
5
  class Pending < StandardError; end
6
6
 
7
7
  unless const_defined?(:VERSION)
8
- VERSION = '0.3.7'
8
+ VERSION = '0.3.8'
9
9
  end
10
10
 
11
11
  def self.tests(description = nil, tags = [], &block)
@@ -62,12 +62,7 @@ def run_in_thread(helpers, tests, thread_locals)
62
62
  end
63
63
  end
64
64
  }
65
- begin
66
- shindo.join
67
- rescue
68
- # continue, even if threads are gone
69
- # see: https://github.com/geemus/shindo/issues/12
70
- end
65
+ shindo.join
71
66
  if shindo[:reload]
72
67
  run_in_thread(helpers, tests, thread_locals)
73
68
  else
@@ -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.3.7'
17
- s.date = '2013-10-09'
16
+ s.version = '0.3.8'
17
+ s.date = '2013-10-10'
18
18
  s.rubyforge_project = 'shindo'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shindo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-09 00:00:00.000000000 Z
12
+ date: 2013-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: formatador