tork 15.0.0 → 15.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/Gemfile CHANGED
@@ -2,3 +2,5 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in tork.gemspec
4
4
  gemspec
5
+
6
+ gem 'rake', '>= 0.9.2.2', '< 1'
data/HISTORY.markdown CHANGED
@@ -1,3 +1,29 @@
1
+ ------------------------------------------------------------------------------
2
+ Version 15.0.1 (2012-01-24)
3
+ ------------------------------------------------------------------------------
4
+
5
+ Bug fixes:
6
+
7
+ * GH-21: Ruby 1.9 class_eval() is smarter than 1.8.
8
+
9
+ * GH-20: forgot `require 'thread'` for Mutex class. [Jesse Cooke]
10
+
11
+ Housekeeping:
12
+
13
+ * tork(1): fix shadowed variable names. [Jose Pablo Barrantes]
14
+
15
+ * GH-22: fix command to build & install gem from source.
16
+
17
+ * GH-22: add m2dman as development dependency in gemspec.
18
+
19
+ * GH-18: windows not supported; lacks fork & SIGCHLD.
20
+
21
+ * README: spruce up introduction and features list.
22
+
23
+ * README: missed a testr => tork rename in watch cmd.
24
+
25
+ * README: add tip about Guard's FS watching backends.
26
+
1
27
  ------------------------------------------------------------------------------
2
28
  Version 15.0.0 (2012-01-23)
3
29
  ------------------------------------------------------------------------------
data/LICENSE CHANGED
@@ -7,6 +7,7 @@ Copyright 2011 Jacob Helwig <jacob@technosorcery.net>
7
7
  Copyright 2011 Corné Verbruggen <corne@g-majeur.nl>
8
8
  Copyright 2012 Jose Pablo Barrantes <xjpablobrx@gmail.com>
9
9
  Copyright 2012 Spencer Steffen <spencer@citrusme.com>
10
+ Copyright 2012 Jesse Cooke <jesse@jc00ke.com>
10
11
 
11
12
  Permission to use, copy, modify, and/or distribute this software for any
12
13
  purpose with or without fee is hereby granted, provided that the above
data/README.markdown CHANGED
@@ -13,7 +13,7 @@ tests changes in your Ruby application or test suite in an efficient manner:
13
13
 
14
14
  1. Absorbs your test execution overhead into a master process.
15
15
 
16
- 2. Forks to run your test files in parallel, without overhead.
16
+ 2. Forks to run your test files in parallel; overhead inherited.
17
17
 
18
18
  3. Avoids running unchanged tests inside changed test files.
19
19
 
@@ -21,27 +21,31 @@ tests changes in your Ruby application or test suite in an efficient manner:
21
21
  Features
22
22
  ------------------------------------------------------------------------------
23
23
 
24
- * Executes test files in parallel, making full use of multi-core CPUs.
24
+ * No configuration needed: run `tork` for Ruby, `tork rails` for Rails.
25
25
 
26
- * Tests *changes* in your Ruby application: avoids running (1) unchanged
27
- test files and (2) unchanged tests inside changed test files.
26
+ * Runs test files in parallel using fork for multi-core/CPU utilization.
28
27
 
29
- * Supports MiniTest, Test::Unit, RSpec, and any testing framework that (1)
30
- reflects failures in the process' exit status and (2) is loaded by your
31
- application's `test/test_helper.rb` or `spec/spec_helper.rb` file.
28
+ * Tests *changes* your Ruby application for rapid TDD: avoids running (1)
29
+ unchanged test files and (2) unchanged tests inside changed test files.
30
+
31
+ * Supports MiniTest, Test::Unit, RSpec, and *any testing framework* that (1)
32
+ exits with a nonzero status to indicate test failures (2) is loaded by
33
+ your application's `test/test_helper.rb` or `spec/spec_helper.rb` file.
32
34
 
33
35
  * Logs the output from your tests into separate files: one log per test.
34
36
  The path of a log file is simply the path of its test file plus ".log".
35
37
 
36
38
  * Configurable through a Ruby script in your current working directory.
37
39
 
40
+ * You can override the modular `tork*` programs with your own in $PATH.
41
+
38
42
  * Implemented in less than 400 lines (SLOC) of pure Ruby code! :-)
39
43
 
40
44
  ------------------------------------------------------------------------------
41
45
  Architecture
42
46
  ------------------------------------------------------------------------------
43
47
 
44
- Following UNIX philosophy, Tork is made of simple text-based programs: thus
48
+ Following UNIX philosophy, Tork is composed of simple text-based programs: so
45
49
  you can build your own custom Tork user interface by wrapping `tork-driver`!
46
50
 
47
51
  * `tork` is an interactive command-line user interface (CLI) for driver
@@ -66,12 +70,17 @@ Prerequisites
66
70
  * Ruby 1.8.7 or 1.9.2 or newer.
67
71
 
68
72
  * Operating system that supports POSIX signals and the `fork()` system call.
69
-
70
73
  To check if your system qualifies, launch `irb` and enter the following:
71
74
 
72
75
  Process.respond_to? :fork # must be true
76
+ Signal.list.key? 'CHLD' # must be true
73
77
  Signal.list.key? 'TERM' # must be true
74
78
 
79
+ * To make the `tork-herald` program's filesystem monitoring more efficient:
80
+
81
+ gem install rb-inotify # linux
82
+ gem install rb-fsevent # macosx
83
+
75
84
  ------------------------------------------------------------------------------
76
85
  Installation
77
86
  ------------------------------------------------------------------------------
@@ -84,7 +93,8 @@ As a Git clone:
84
93
 
85
94
  git clone git://github.com/sunaku/tork
86
95
  cd tork
87
- rake install
96
+ bundle install
97
+ bundle exec rake install
88
98
 
89
99
  ------------------------------------------------------------------------------
90
100
  Invocation
@@ -100,7 +110,7 @@ If installed as a Git clone:
100
110
 
101
111
  You can monitor your test processes in another terminal:
102
112
 
103
- watch 'ps xuw | sed -n "1p; /test[r]/p" | fgrep -v sed'
113
+ watch 'ps xuw | sed -n "1p; /tor[k]/p" | fgrep -v sed'
104
114
 
105
115
  You can forcefully terminate Tork from another terminal:
106
116
 
data/bin/tork CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin
3
3
 
4
- TORK 1 2012-01-23 15.0.0
4
+ TORK 1 2012-01-24 15.0.1
5
5
  ==============================================================================
6
6
 
7
7
  NAME
@@ -93,8 +93,8 @@ begin
93
93
  @driver.send [command]
94
94
  break if command == :quit
95
95
  else # invalid command
96
- COMMANDS.each do |key, command|
97
- warn "tork: Type #{key} then ENTER to #{command.to_s.tr('_', ' ')}."
96
+ COMMANDS.each do |k, cmd|
97
+ warn "tork: Type #{k} then ENTER to #{cmd.to_s.tr('_', ' ')}."
98
98
  end
99
99
  end
100
100
  end
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-01-23 15.0.0
4
+ TORK-DRIVER 1 2012-01-24 15.0.1
5
5
  ==============================================================================
6
6
 
7
7
  NAME
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-01-23 15.0.0
4
+ TORK-HERALD 1 2012-01-24 15.0.1
5
5
  ==============================================================================
6
6
 
7
7
  NAME
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-01-23 15.0.0
4
+ TORK-MASTER 1 2012-01-24 15.0.1
5
5
  ==============================================================================
6
6
 
7
7
  NAME
data/lib/tork/client.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'thread'
2
+
1
3
  module Tork
2
4
  module Client
3
5
 
@@ -29,7 +29,7 @@ end
29
29
 
30
30
  begin
31
31
  require 'rails/railtie'
32
- Class.new Rails::Railtie do
32
+ class Tork::Railtie < Rails::Railtie
33
33
  config.before_initialize do |app|
34
34
  if app.config.cache_classes
35
35
  warn "tork/config/rails: Setting #{app.class}.config.cache_classes = false"
data/lib/tork/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tork
2
- VERSION = "15.0.0"
2
+ VERSION = "15.0.1"
3
3
  end
@@ -1,4 +1,4 @@
1
- .TH TORK\-DRIVER 1 2012\-01\-23 15.0.0
1
+ .TH TORK\-DRIVER 1 2012\-01\-24 15.0.1
2
2
  .SH NAME
3
3
  .PP
4
4
  tork\-driver \- drives
@@ -1,4 +1,4 @@
1
- .TH TORK\-HERALD 1 2012\-01\-23 15.0.0
1
+ .TH TORK\-HERALD 1 2012\-01\-24 15.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\-01\-23 15.0.0
1
+ .TH TORK\-MASTER 1 2012\-01\-24 15.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\-01\-23 15.0.0
1
+ .TH TORK 1 2012\-01\-24 15.0.1
2
2
  .SH NAME
3
3
  .PP
4
4
  tork \- Continuous testing tool for Ruby
data/tork.gemspec CHANGED
@@ -20,4 +20,5 @@ Gem::Specification.new do |s|
20
20
  s.add_runtime_dependency 'json', '>= 1.6.1', '< 2'
21
21
  s.add_runtime_dependency 'guard', '>= 0.9.0', '< 1'
22
22
  s.add_runtime_dependency 'diff-lcs', '>= 1.1.2', '< 2'
23
+ s.add_development_dependency 'md2man', '~> 1'
23
24
  end
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: 15.0.0
4
+ version: 15.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,14 +12,15 @@ authors:
12
12
  - Corné Verbruggen
13
13
  - Jose Pablo Barrantes
14
14
  - Spencer Steffen
15
+ - Jesse Cooke
15
16
  autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
- date: 2012-01-23 00:00:00.000000000 Z
19
+ date: 2012-01-25 00:00:00.000000000 Z
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: binman
22
- requirement: &16374880 !ruby/object:Gem::Requirement
23
+ requirement: &15181540 !ruby/object:Gem::Requirement
23
24
  none: false
24
25
  requirements:
25
26
  - - ~>
@@ -27,10 +28,10 @@ dependencies:
27
28
  version: '3'
28
29
  type: :runtime
29
30
  prerelease: false
30
- version_requirements: *16374880
31
+ version_requirements: *15181540
31
32
  - !ruby/object:Gem::Dependency
32
33
  name: json
33
- requirement: &11501340 !ruby/object:Gem::Requirement
34
+ requirement: &15180540 !ruby/object:Gem::Requirement
34
35
  none: false
35
36
  requirements:
36
37
  - - ! '>='
@@ -41,10 +42,10 @@ dependencies:
41
42
  version: '2'
42
43
  type: :runtime
43
44
  prerelease: false
44
- version_requirements: *11501340
45
+ version_requirements: *15180540
45
46
  - !ruby/object:Gem::Dependency
46
47
  name: guard
47
- requirement: &11499600 !ruby/object:Gem::Requirement
48
+ requirement: &15179100 !ruby/object:Gem::Requirement
48
49
  none: false
49
50
  requirements:
50
51
  - - ! '>='
@@ -55,10 +56,10 @@ dependencies:
55
56
  version: '1'
56
57
  type: :runtime
57
58
  prerelease: false
58
- version_requirements: *11499600
59
+ version_requirements: *15179100
59
60
  - !ruby/object:Gem::Dependency
60
61
  name: diff-lcs
61
- requirement: &11496820 !ruby/object:Gem::Requirement
62
+ requirement: &15177700 !ruby/object:Gem::Requirement
62
63
  none: false
63
64
  requirements:
64
65
  - - ! '>='
@@ -69,7 +70,18 @@ dependencies:
69
70
  version: '2'
70
71
  type: :runtime
71
72
  prerelease: false
72
- version_requirements: *11496820
73
+ version_requirements: *15177700
74
+ - !ruby/object:Gem::Dependency
75
+ name: md2man
76
+ requirement: &15176000 !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ~>
80
+ - !ruby/object:Gem::Version
81
+ version: '1'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: *15176000
73
85
  description: ''
74
86
  email:
75
87
  - sunaku@gmail.com
@@ -79,6 +91,7 @@ email:
79
91
  - corne@g-majeur.nl
80
92
  - xjpablobrx@gmail.com
81
93
  - spencer@citrusme.com
94
+ - jesse@jc00ke.com
82
95
  executables:
83
96
  - tork
84
97
  - tork-driver
@@ -122,12 +135,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
135
  - - ! '>='
123
136
  - !ruby/object:Gem::Version
124
137
  version: '0'
138
+ segments:
139
+ - 0
140
+ hash: 3156592810767752913
125
141
  required_rubygems_version: !ruby/object:Gem::Requirement
126
142
  none: false
127
143
  requirements:
128
144
  - - ! '>='
129
145
  - !ruby/object:Gem::Version
130
146
  version: '0'
147
+ segments:
148
+ - 0
149
+ hash: 3156592810767752913
131
150
  requirements: []
132
151
  rubyforge_project:
133
152
  rubygems_version: 1.8.11
@@ -135,4 +154,3 @@ signing_key:
135
154
  specification_version: 3
136
155
  summary: Continuous testing tool for Ruby
137
156
  test_files: []
138
- has_rdoc: