hydra 0.19.2 → 0.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/hydra.gemspec +2 -2
  3. data/lib/hydra/tasks.rb +13 -7
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.19.2
1
+ 0.19.3
data/hydra.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{hydra}
8
- s.version = "0.19.2"
8
+ s.version = "0.19.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nick Gauthier"]
12
- s.date = %q{2010-06-18}
12
+ s.date = %q{2010-07-08}
13
13
  s.description = %q{Spread your tests over multiple machines to test your code faster.}
14
14
  s.email = %q{nick@smartlogicsolutions.com}
15
15
  s.extra_rdoc_files = [
data/lib/hydra/tasks.rb CHANGED
@@ -31,6 +31,11 @@ module Hydra #:nodoc:
31
31
  # t.listeners << Hydra::Listener::Notifier.new
32
32
  attr_accessor :listeners
33
33
 
34
+ # Set to true if you want to run this task only on the local
35
+ # machine with one runner. A "Safe Mode" for some test
36
+ # files that may not play nice with others.
37
+ attr_accessor :serial
38
+
34
39
  #
35
40
  # Search for the hydra config file
36
41
  def find_config_file
@@ -68,20 +73,17 @@ module Hydra #:nodoc:
68
73
  @files = []
69
74
  @verbose = false
70
75
  @autosort = true
76
+ @serial = false
71
77
  @listeners = [Hydra::Listener::ProgressBar.new]
72
78
 
73
79
  yield self if block_given?
74
80
 
75
- if Object.const_defined?('RAILS_ENV') && RAILS_ENV == 'development'
76
- $stderr.puts <<-MSG
77
- WARNING: RAILS_ENV is "development". Make sure to set it properly (ex: "RAILS_ENV=test rake hydra")
78
- MSG
79
- end
80
-
81
81
  # Ensure we override rspec's at_exit
82
82
  require 'hydra/spec/autorun_override'
83
83
 
84
- @config = find_config_file
84
+ unless @serial
85
+ @config = find_config_file
86
+ end
85
87
 
86
88
  @opts = {
87
89
  :verbose => @verbose,
@@ -103,6 +105,10 @@ WARNING: RAILS_ENV is "development". Make sure to set it properly (ex: "RAILS_EN
103
105
  def define
104
106
  desc "Hydra Tests" + (@name == :hydra ? "" : " for #{@name}")
105
107
  task @name do
108
+ if Object.const_defined?('RAILS_ENV') && RAILS_ENV == 'development'
109
+ $stderr.puts %{WARNING: RAILS_ENV is "development". Make sure to set it properly (ex: "RAILS_ENV=test rake hydra")}
110
+ end
111
+
106
112
  Hydra::Master.new(@opts)
107
113
  end
108
114
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 19
8
- - 2
9
- version: 0.19.2
8
+ - 3
9
+ version: 0.19.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nick Gauthier
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-18 00:00:00 -04:00
17
+ date: 2010-07-08 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency