tork 18.0.0 → 18.0.1

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/HISTORY.markdown CHANGED
@@ -1,3 +1,19 @@
1
+ ## Version 18.0.1 (2012-02-13)
2
+
3
+ Alert:
4
+
5
+ * If you're on Ruby 1.9, please use 1.9.3 or newer because 1.9.2 is
6
+ known to segfault under RSpec and Rails. See GH-30 and GH-32.
7
+
8
+ Patch:
9
+
10
+ * GH-27: Cucumber features now run correctly under RSpec. Thanks to Scott
11
+ Radcliff for reporting this issue and to David Burrows for solving it!
12
+
13
+ * tork(1): fix undefined method `strip' for nil:NilClass error.
14
+
15
+ * tork/config: ignore directories given as configuration files.
16
+
1
17
  ## Version 18.0.0 (2012-02-06)
2
18
 
3
19
  Alert:
data/LICENSE CHANGED
@@ -13,6 +13,8 @@ Thanks to 2012 Benjamin Quorning <benjamin@quorning.net>
13
13
  Thanks to 2012 Nicolas Fouché <nicolas.fouche@gmail.com>
14
14
  Thanks to 2012 Mark Hayes <mark@deployfx.com>
15
15
  Thanks to 2012 Gumaro Melendez <cloudernew@gmail.com>
16
+ Thanks to 2012 Scott Radcliff <radcliffsc@gmail.com>
17
+ Thanks to 2012 David Burrows <david@imergent.com>
16
18
 
17
19
  Permission to use, copy, modify, and/or distribute this software for any
18
20
  purpose with or without fee is hereby granted, provided that the above
data/README.markdown CHANGED
@@ -65,7 +65,7 @@ tests in your saved file, simply save the file *again* without changing it.
65
65
 
66
66
  ### Prerequisites
67
67
 
68
- * Ruby 1.8.7 or 1.9.2 or newer.
68
+ * Ruby 1.8.7 or 1.9.3 or newer.
69
69
 
70
70
  * Operating system that supports POSIX signals and the `fork()` system call.
71
71
  To check if your system qualifies, launch `irb` and enter the following:
@@ -85,7 +85,7 @@ tests in your saved file, simply save the file *again* without changing it.
85
85
  cd tork
86
86
  bundle install --binstubs=bundle_bin
87
87
  bundle_bin/tork --help # run it directly
88
- bundle exec rake -T # packaging tasks
88
+ bundle_bin/rake --tasks # packaging tasks
89
89
 
90
90
  ## Usage
91
91
 
data/bin/tork CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # TORK 1 2012-02-06 18.0.0
4
+ # TORK 1 2012-02-13 18.0.1
5
5
 
6
6
  ## NAME
7
7
 
@@ -79,8 +79,8 @@ COMMANDS = {
79
79
  }
80
80
 
81
81
  begin
82
- while key = STDIN.gets.strip
83
- if command = COMMANDS[key]
82
+ while key = STDIN.gets
83
+ if command = COMMANDS[key.strip]
84
84
  warn "tork: Sending #{command.to_s.inspect} command..."
85
85
  @driver.send [command]
86
86
  break if command == :quit
data/bin/tork-driver CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # TORK-DRIVER 1 2012-02-06 18.0.0
4
+ # TORK-DRIVER 1 2012-02-13 18.0.1
5
5
 
6
6
  ## NAME
7
7
 
data/bin/tork-engine CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # TORK-ENGINE 1 2012-02-06 18.0.0
4
+ # TORK-ENGINE 1 2012-02-13 18.0.1
5
5
 
6
6
  ## NAME
7
7
 
data/bin/tork-herald CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # TORK-HERALD 1 2012-02-06 18.0.0
4
+ # TORK-HERALD 1 2012-02-13 18.0.1
5
5
 
6
6
  ## NAME
7
7
 
data/bin/tork-master CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # TORK-MASTER 1 2012-02-06 18.0.0
4
+ # TORK-MASTER 1 2012-02-13 18.0.1
5
5
 
6
6
  ## NAME
7
7
 
data/lib/tork/config.rb CHANGED
@@ -89,7 +89,7 @@ module Tork
89
89
  if ENV.key? 'TORK_CONFIGS'
90
90
  require 'json'
91
91
  JSON.load(ENV['TORK_CONFIGS']).each do |config|
92
- if File.exist? config
92
+ if File.file? config
93
93
  load File.expand_path(config)
94
94
  else
95
95
  require "tork/config/#{config}"
@@ -15,17 +15,18 @@ Tork::Config.test_file_globbers.update(
15
15
  Tork::Config.after_fork_hooks.push lambda {
16
16
  |test_file, line_numbers, log_file, worker_number|
17
17
 
18
- if File.extname(test_file) == '.feature'
19
- # pass test_file in ARGV to cucumber(1) for running
20
- ARGV << [test_file, *line_numbers].join(':')
21
- require 'cucumber'
22
- require 'rubygems'
23
- cucumber_bin = Gem.bin_path('cucumber', 'cucumber')
24
- at_exit { load cucumber_bin unless $! }
25
-
26
- # noopify loading of test_file in Tork::Master#test()
27
- # because cucumber feature files are not Ruby scripts
28
- require 'tempfile'
29
- test_file.replace Tempfile.new('tork-cucumber').path
18
+ if test_file.end_with? '.feature'
19
+ original_argv = ARGV.dup
20
+ begin
21
+ # pass the feature file to cucumber(1) in ARGV
22
+ ARGV.push [test_file, *line_numbers].join(':')
23
+ require 'rubygems'
24
+ require 'cucumber'
25
+ load Gem.bin_path('cucumber', 'cucumber')
26
+ ensure
27
+ # Restore ARGV for other at_exit hooks. Otherwise, RSpec's hook will
28
+ # try to load the non-Ruby feature file from ARGV and fail accordingly.
29
+ ARGV.replace original_argv
30
+ end
30
31
  end
31
32
  }
data/lib/tork/master.rb CHANGED
@@ -76,7 +76,7 @@ class Master < Server
76
76
  # testing framework will take care of running the tests and reflecting
77
77
  # any failures in the worker process' exit status, which will then be
78
78
  # handled by the SIGCHLD trap registered in the master process (below)
79
- Kernel.load test_file
79
+ Kernel.load test_file if test_file.end_with? '.rb'
80
80
  end
81
81
 
82
82
  @command_by_worker_pid[worker_pid] = @command.push(log_file, worker_number)
data/lib/tork/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tork
2
- VERSION = "18.0.0"
2
+ VERSION = "18.0.1"
3
3
  end
@@ -1,4 +1,4 @@
1
- .TH TORK\-DRIVER 1 2012\-02\-06 18.0.0
1
+ .TH TORK\-DRIVER 1 2012\-02\-13 18.0.1
2
2
  .SH NAME
3
3
  .PP
4
4
  tork\-driver \- drives
@@ -1,4 +1,4 @@
1
- .TH TORK\-ENGINE 1 2012\-02\-06 18.0.0
1
+ .TH TORK\-ENGINE 1 2012\-02\-13 18.0.1
2
2
  .SH NAME
3
3
  .PP
4
4
  tork\-engine \- wraps
@@ -1,4 +1,4 @@
1
- .TH TORK\-HERALD 1 2012\-02\-06 18.0.0
1
+ .TH TORK\-HERALD 1 2012\-02\-13 18.0.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\-02\-06 18.0.0
1
+ .TH TORK\-MASTER 1 2012\-02\-13 18.0.1
2
2
  .SH NAME
3
3
  .PP
4
4
  tork\-master \- absorbs overhead and runs tests
data/man/man1/tork.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH TORK 1 2012\-02\-06 18.0.0
1
+ .TH TORK 1 2012\-02\-13 18.0.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: 18.0.0
4
+ version: 18.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-06 00:00:00.000000000 Z
13
+ date: 2012-02-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: binman
17
- requirement: &9855300 !ruby/object:Gem::Requirement
17
+ requirement: &7179620 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '3'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *9855300
25
+ version_requirements: *7179620
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: json
28
- requirement: &9854280 !ruby/object:Gem::Requirement
28
+ requirement: &7178500 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -36,10 +36,10 @@ dependencies:
36
36
  version: '2'
37
37
  type: :runtime
38
38
  prerelease: false
39
- version_requirements: *9854280
39
+ version_requirements: *7178500
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: guard
42
- requirement: &9853540 !ruby/object:Gem::Requirement
42
+ requirement: &7177640 !ruby/object:Gem::Requirement
43
43
  none: false
44
44
  requirements:
45
45
  - - ~>
@@ -47,10 +47,10 @@ dependencies:
47
47
  version: '1'
48
48
  type: :runtime
49
49
  prerelease: false
50
- version_requirements: *9853540
50
+ version_requirements: *7177640
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: diff-lcs
53
- requirement: &9852840 !ruby/object:Gem::Requirement
53
+ requirement: &7177060 !ruby/object:Gem::Requirement
54
54
  none: false
55
55
  requirements:
56
56
  - - ! '>='
@@ -61,10 +61,10 @@ dependencies:
61
61
  version: '2'
62
62
  type: :runtime
63
63
  prerelease: false
64
- version_requirements: *9852840
64
+ version_requirements: *7177060
65
65
  - !ruby/object:Gem::Dependency
66
66
  name: md2man
67
- requirement: &9851800 !ruby/object:Gem::Requirement
67
+ requirement: &7176180 !ruby/object:Gem::Requirement
68
68
  none: false
69
69
  requirements:
70
70
  - - ~>
@@ -72,10 +72,10 @@ dependencies:
72
72
  version: '1'
73
73
  type: :development
74
74
  prerelease: false
75
- version_requirements: *9851800
75
+ version_requirements: *7176180
76
76
  - !ruby/object:Gem::Dependency
77
77
  name: rake
78
- requirement: &9851220 !ruby/object:Gem::Requirement
78
+ requirement: &7175240 !ruby/object:Gem::Requirement
79
79
  none: false
80
80
  requirements:
81
81
  - - ! '>='
@@ -86,7 +86,7 @@ dependencies:
86
86
  version: '1'
87
87
  type: :development
88
88
  prerelease: false
89
- version_requirements: *9851220
89
+ version_requirements: *7175240
90
90
  description: Runs your tests as they change, in parallel.
91
91
  email:
92
92
  - sunaku@gmail.com
@@ -126,8 +126,8 @@ files:
126
126
  - lib/tork/server.rb
127
127
  - lib/tork/version.rb
128
128
  - tork.gemspec
129
- - man/man1/tork-engine.1
130
129
  - man/man1/tork-herald.1
130
+ - man/man1/tork-engine.1
131
131
  - man/man1/tork-master.1
132
132
  - man/man1/tork-driver.1
133
133
  - man/man1/tork.1
@@ -143,12 +143,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  - - ! '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
+ segments:
147
+ - 0
148
+ hash: 4154457537204892036
146
149
  required_rubygems_version: !ruby/object:Gem::Requirement
147
150
  none: false
148
151
  requirements:
149
152
  - - ! '>='
150
153
  - !ruby/object:Gem::Version
151
154
  version: '0'
155
+ segments:
156
+ - 0
157
+ hash: 4154457537204892036
152
158
  requirements: []
153
159
  rubyforge_project:
154
160
  rubygems_version: 1.8.11
@@ -156,4 +162,3 @@ signing_key:
156
162
  specification_version: 3
157
163
  summary: test with fork
158
164
  test_files: []
159
- has_rdoc: