hydra 0.23.2 → 0.23.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.23.2
1
+ 0.23.3
@@ -10,10 +10,8 @@ Gem::Specification.new do |s|
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nick Gauthier"]
12
12
  s.date = %q{2010-11-03}
13
- s.default_executable = %q{warmsnake.rb}
14
13
  s.description = %q{Spread your tests over multiple machines to test your code faster.}
15
14
  s.email = %q{nick@smartlogicsolutions.com}
16
- s.executables = ["warmsnake.rb"]
17
15
  s.extra_rdoc_files = [
18
16
  "LICENSE",
19
17
  "README.rdoc",
@@ -27,7 +25,6 @@ Gem::Specification.new do |s|
27
25
  "Rakefile",
28
26
  "TODO",
29
27
  "VERSION",
30
- "bin/warmsnake.rb",
31
28
  "caliper.yml",
32
29
  "hydra-icon-64x64.png",
33
30
  "hydra.gemspec",
@@ -36,6 +36,8 @@ module Hydra #:nodoc:
36
36
  # files that may not play nice with others.
37
37
  attr_accessor :serial
38
38
 
39
+ attr_accessor :environment
40
+
39
41
  #
40
42
  # Search for the hydra config file
41
43
  def find_config_file
@@ -91,7 +93,8 @@ module Hydra #:nodoc:
91
93
  :verbose => @verbose,
92
94
  :autosort => @autosort,
93
95
  :files => @files,
94
- :listeners => @listeners
96
+ :listeners => @listeners,
97
+ :environment => @environment
95
98
  }
96
99
  if @config
97
100
  @opts.merge!(:config => @config)
@@ -1,5 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'test/unit'
3
+ gem 'shoulda', '2.10.3'
4
+ gem 'rspec', '2.0.0.beta.19'
3
5
  require 'shoulda'
4
6
  require 'tmpdir'
5
7
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra
3
3
  version: !ruby/object:Gem::Version
4
- hash: 71
5
- prerelease: false
4
+ hash: 69
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 23
9
- - 2
10
- version: 0.23.2
9
+ - 3
10
+ version: 0.23.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nick Gauthier
@@ -15,8 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-03 00:00:00 -04:00
19
- default_executable: warmsnake.rb
18
+ date: 2011-03-22 00:00:00 -04:00
19
+ default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: shoulda
@@ -86,8 +86,8 @@ dependencies:
86
86
  version_requirements: *id004
87
87
  description: Spread your tests over multiple machines to test your code faster.
88
88
  email: nick@smartlogicsolutions.com
89
- executables:
90
- - warmsnake.rb
89
+ executables: []
90
+
91
91
  extensions: []
92
92
 
93
93
  extra_rdoc_files:
@@ -96,13 +96,11 @@ extra_rdoc_files:
96
96
  - TODO
97
97
  files:
98
98
  - .document
99
- - .gitignore
100
99
  - LICENSE
101
100
  - README.rdoc
102
101
  - Rakefile
103
102
  - TODO
104
103
  - VERSION
105
- - bin/warmsnake.rb
106
104
  - caliper.yml
107
105
  - hydra-icon-64x64.png
108
106
  - hydra.gemspec
@@ -162,8 +160,8 @@ homepage: http://github.com/ngauthier/hydra
162
160
  licenses: []
163
161
 
164
162
  post_install_message:
165
- rdoc_options:
166
- - --charset=UTF-8
163
+ rdoc_options: []
164
+
167
165
  require_paths:
168
166
  - lib
169
167
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -187,26 +185,26 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
185
  requirements: []
188
186
 
189
187
  rubyforge_project:
190
- rubygems_version: 1.3.7
188
+ rubygems_version: 1.4.2
191
189
  signing_key:
192
190
  specification_version: 3
193
191
  summary: Distributed testing toolkit
194
192
  test_files:
195
- - test/pipe_test.rb
196
- - test/sync_test.rb
197
- - test/ssh_test.rb
198
- - test/fixtures/write_file_alternate_spec.rb
199
- - test/fixtures/sync_test.rb
200
- - test/fixtures/hello_world.rb
201
- - test/fixtures/features/step_definitions.rb
202
193
  - test/fixtures/assert_true.rb
194
+ - test/fixtures/conflicting.rb
195
+ - test/fixtures/features/step_definitions.rb
196
+ - test/fixtures/hello_world.rb
203
197
  - test/fixtures/slow.rb
198
+ - test/fixtures/sync_test.rb
199
+ - test/fixtures/write_file.rb
200
+ - test/fixtures/write_file_alternate_spec.rb
204
201
  - test/fixtures/write_file_spec.rb
205
- - test/fixtures/conflicting.rb
206
202
  - test/fixtures/write_file_with_pending_spec.rb
207
- - test/fixtures/write_file.rb
208
- - test/message_test.rb
209
- - test/test_helper.rb
210
203
  - test/master_test.rb
204
+ - test/message_test.rb
205
+ - test/pipe_test.rb
211
206
  - test/runner_test.rb
207
+ - test/ssh_test.rb
208
+ - test/sync_test.rb
209
+ - test/test_helper.rb
212
210
  - test/worker_test.rb
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
- tags
21
-
22
- ## PROJECT::SPECIFIC
@@ -1,76 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # warmsnake.rb
4
- #
5
- # This is a first attempt at making a hydra binary.
6
- #
7
- # Currently, all it does is run the files you pass into it. When you
8
- # press Enter it will run them again, maintaining your rails environment.
9
- # When you type 'r' and hit Enter it will reboot the rails environment.
10
- #
11
- # It is extremely specific about its behavior and only works in rails.
12
- #
13
- # It is not really ready for any kind of release, but it is useful, so
14
- # it's included.
15
- #
16
- require 'rubygems'
17
- require 'hydra'
18
-
19
- @files = ARGV.inject([]){|memo,f| memo += Dir.glob f}
20
-
21
- if @files.empty?
22
- puts "You must specify a list of files to run"
23
- puts "If you specify a pattern, it must be in quotes"
24
- puts %{USAGE: #{$0} test/unit/my_test.rb "test/functional/**/*_test.rb"}
25
- exit(1)
26
- end
27
-
28
- Signal.trap("TERM", "KILL") do
29
- puts "Warm Snake says bye bye"
30
- exit(0)
31
- end
32
-
33
- bold_yellow = "\033[1;33m"
34
- reset = "\033[0m"
35
-
36
-
37
- loop do
38
- env_proc = Process.fork do
39
- puts "#{bold_yellow}Booting Environment#{reset}"
40
- start = Time.now
41
- ENV['RAILS_ENV']='test'
42
- require 'config/environment'
43
- require 'test/test_helper'
44
- finish = Time.now
45
- puts "#{bold_yellow}Environment Booted (#{finish-start})#{reset}"
46
-
47
- loop do
48
- puts "#{bold_yellow}Running#{reset} [#{@files.inspect}]"
49
- start = Time.now
50
- Hydra::Master.new(
51
- :files => @files.dup,
52
- :listeners => Hydra::Listener::ProgressBar.new(STDOUT),
53
- :workers => [{:type => :local, :runners => 4}]
54
- )
55
- finish = Time.now
56
- puts "#{bold_yellow}Tests finished#{reset} (#{finish-start})"
57
-
58
- puts ""
59
-
60
- $stdout.write "Press #{bold_yellow}ENTER#{reset} to retest. Type #{bold_yellow}r#{reset} then hit enter to reboot environment. #{bold_yellow}CTRL-C#{reset} to quit\n> "
61
- begin
62
- command = $stdin.gets
63
- rescue Interrupt
64
- exit(0)
65
- end
66
- break if !command.nil? and command.chomp == "r"
67
- end
68
- end
69
- begin
70
- Process.wait env_proc
71
- rescue Interrupt
72
- puts "\n#{bold_yellow}SSsssSsssSSssSs#{reset}"
73
- break
74
- end
75
- end
76
-