tork 19.2.0 → 19.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,14 @@
1
+ ## Version 19.2.1 (2013-02-08)
2
+
3
+ Patch:
4
+
5
+ * GH-46: allow reassigning `$tork_*` variable values. Thanks to Joe
6
+ Escalante for reminding me to fix this issue.
7
+
8
+ * GH-48: disable class caching at the ActiveSupport level for Devise.
9
+ Thanks to Ryan Ahearn for fixing this issue and to Jonathan Cairns for
10
+ reporting it.
11
+
1
12
  ## Version 19.2.0 (2012-12-30)
2
13
 
3
14
  Minor:
data/LICENSE CHANGED
@@ -22,6 +22,8 @@ Thanks to 2012 Adam Grant <https://github.com/harmon>
22
22
  Thanks to 2012 Kyle Peyton <https://github.com/weexpectedthis>
23
23
  Thanks to 2012 Ryan Ahearn <https://github.com/rahearn>
24
24
  Thanks to 2012 Thibaud Guillaume-Gentil <https://github.com/thibaudgg>
25
+ Thanks to 2013 Joe Escalante <https://github.com/jescalante>
26
+ Thanks to 2013 Jonathan Cairns <https://github.com/joonty>
25
27
 
26
28
  Permission to use, copy, modify, and/or distribute this software for any
27
29
  purpose with or without fee is hereby granted, provided that the above
@@ -134,8 +134,8 @@ You can monitor your test processes from another terminal:
134
134
  MiniTest 1.3.2 and newer contain a bug where `minitest/autorun` won't run any
135
135
  tests if someone calls `Kernel#exit` explicitly or simply loads a library
136
136
  (such as RSpec) which makes the call implicitly. Use Tork 19.0.2+ to avoid
137
- this problem or [apply this patch to the rspec-core library](
138
- https://github.com/seattlerb/minitest/pull/183 ) to fix the problem.
137
+ this problem or [apply this patch to the minitest library](
138
+ https://github.com/seattlerb/minitest/pull/183/files ) to fix the problem.
139
139
 
140
140
  ### With RSpec
141
141
 
data/bin/tork CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # TORK 1 2012-12-30 19.2.0
4
+ # TORK 1 2013-02-08 19.2.1
5
5
 
6
6
  ## NAME
7
7
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # TORK-DRIVER 1 2012-12-30 19.2.0
4
+ # TORK-DRIVER 1 2013-02-08 19.2.1
5
5
 
6
6
  ## NAME
7
7
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # TORK-ENGINE 1 2012-12-30 19.2.0
4
+ # TORK-ENGINE 1 2013-02-08 19.2.1
5
5
 
6
6
  ## NAME
7
7
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # TORK-HERALD 1 2012-12-30 19.2.0
4
+ # TORK-HERALD 1 2013-02-08 19.2.1
5
5
 
6
6
  ## NAME
7
7
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # TORK-MASTER 1 2012-12-30 19.2.0
4
+ # TORK-MASTER 1 2013-02-08 19.2.1
5
5
 
6
6
  ## NAME
7
7
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # TORK-NOTIFY 1 2012-12-30 19.2.0
4
+ # TORK-NOTIFY 1 2013-02-08 19.2.1
5
5
 
6
6
  ## NAME
7
7
 
@@ -1,2 +1,2 @@
1
1
  dirname, basename = File.split($tork_log_file)
2
- $tork_log_file.replace File.join(dirname, '.' + basename)
2
+ $tork_log_file = File.join(dirname, '.' + basename)
@@ -1,4 +1,4 @@
1
1
  require 'fileutils'
2
2
  dirname, basename = File.split($tork_log_file)
3
3
  FileUtils.mkdir_p log_dir = File.join('log', dirname)
4
- $tork_log_file.replace File.join(log_dir, basename)
4
+ $tork_log_file = File.join(log_dir, basename)
@@ -3,6 +3,7 @@ begin
3
3
  class Tork::Railtie < Rails::Railtie
4
4
  config.before_initialize do |app|
5
5
  app.config.cache_classes = false
6
+ ActiveSupport::Dependencies.mechanism = :load
6
7
  end
7
8
  end
8
9
  rescue LoadError => error
@@ -33,19 +33,15 @@ class Master < Server
33
33
  # throttle forking rate to meet the maximum concurrent workers limit
34
34
  sleep 1 until @command_by_worker_pid.size < @worker_number_pool.size
35
35
 
36
- log_file = test_file + '.log'
37
- worker_number = @worker_number_pool.shift
38
- @command.push log_file, worker_number
39
-
40
36
  $tork_test_file = test_file
41
37
  $tork_line_numbers = line_numbers
42
- $tork_log_file = log_file
43
- $tork_worker_number = worker_number
38
+ $tork_log_file = $tork_test_file + '.log'
39
+ $tork_worker_number = @worker_number_pool.shift
44
40
  Tork.config :onfork
45
41
 
46
42
  worker_pid = fork do
47
43
  # make the process title Test::Unit friendly and ps(1) searchable
48
- $0 = "tork-worker[#{worker_number}] #{test_file}"
44
+ $0 = "tork-worker[#{$tork_worker_number}] #{$tork_test_file}"
49
45
 
50
46
  # detach worker process from master process' group for kill -pgrp
51
47
  Process.setsid
@@ -55,7 +51,7 @@ class Master < Server
55
51
 
56
52
  # capture test output in log file because tests are run in parallel
57
53
  # which makes it difficult to understand interleaved output thereof
58
- STDERR.reopen(STDOUT.reopen(log_file, 'w')).sync = true
54
+ STDERR.reopen(STDOUT.reopen($tork_log_file, 'w')).sync = true
59
55
 
60
56
  Tork.config :worker
61
57
 
@@ -63,9 +59,10 @@ class Master < Server
63
59
  # testing framework will take care of running the tests and reflecting
64
60
  # any failures in the worker process' exit status, which will then be
65
61
  # handled by the reaping thread registered in the master process (below)
66
- Kernel.load test_file if test_file.end_with? '.rb'
62
+ Kernel.load $tork_test_file if $tork_test_file.end_with? '.rb'
67
63
  end
68
64
 
65
+ @command.push $tork_log_file, $tork_worker_number
69
66
  @command_by_worker_pid[worker_pid] = @command
70
67
  send @clients, @command
71
68
 
@@ -1,3 +1,3 @@
1
1
  module Tork
2
- VERSION = "19.2.0"
2
+ VERSION = "19.2.1"
3
3
  end
@@ -1,4 +1,4 @@
1
- .TH TORK\-DRIVER 1 2012\-12\-30 19.2.0
1
+ .TH TORK\-DRIVER 1 2013\-02\-08 19.2.1
2
2
  .SH NAME
3
3
  .PP
4
4
  tork\-driver \- drives
@@ -1,4 +1,4 @@
1
- .TH TORK\-ENGINE 1 2012\-12\-30 19.2.0
1
+ .TH TORK\-ENGINE 1 2013\-02\-08 19.2.1
2
2
  .SH NAME
3
3
  .PP
4
4
  tork\-engine \- wraps
@@ -1,4 +1,4 @@
1
- .TH TORK\-HERALD 1 2012\-12\-30 19.2.0
1
+ .TH TORK\-HERALD 1 2013\-02\-08 19.2.1
2
2
  .SH NAME
3
3
  .PP
4
4
  tork\-herald \- reports modified files
@@ -1,4 +1,4 @@
1
- .TH TORK\-MASTER 1 2012\-12\-30 19.2.0
1
+ .TH TORK\-MASTER 1 2013\-02\-08 19.2.1
2
2
  .SH NAME
3
3
  .PP
4
4
  tork\-master \- absorbs overhead and runs tests
@@ -1,4 +1,4 @@
1
- .TH TORK\-NOTIFY 1 2012\-12\-30 19.2.0
1
+ .TH TORK\-NOTIFY 1 2013\-02\-08 19.2.1
2
2
  .SH NAME
3
3
  .PP
4
4
  tork\-notify \- notifies you of test status changes
@@ -1,4 +1,4 @@
1
- .TH TORK 1 2012\-12\-30 19.2.0
1
+ .TH TORK 1 2013\-02\-08 19.2.1
2
2
  .SH NAME
3
3
  .PP
4
4
  tork \- Continuous testing tool for Ruby
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tork
3
3
  version: !ruby/object:Gem::Version
4
- version: 19.2.0
4
+ version: 19.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-30 00:00:00.000000000 Z
13
+ date: 2013-02-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: binman
@@ -186,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  segments:
188
188
  - 0
189
- hash: 1540708500099086553
189
+ hash: -1155655632951033828
190
190
  required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  none: false
192
192
  requirements:
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  version: '0'
196
196
  segments:
197
197
  - 0
198
- hash: 1540708500099086553
198
+ hash: -1155655632951033828
199
199
  requirements: []
200
200
  rubyforge_project:
201
201
  rubygems_version: 1.8.24