specjour 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.markdown +7 -0
- data/lib/specjour/cucumber/preloader.rb +8 -7
- data/lib/specjour/dispatcher.rb +1 -1
- data/lib/specjour/loader.rb +1 -5
- data/lib/specjour/manager.rb +1 -1
- data/lib/specjour/printer.rb +6 -2
- data/lib/specjour/rspec.rb +1 -0
- data/lib/specjour.rb +1 -1
- metadata +9 -9
data/History.markdown
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
History
|
2
2
|
=======
|
3
3
|
|
4
|
+
0.6.5 / 2012-10-17
|
5
|
+
---------------------------
|
6
|
+
* [fixed] RSpec 2.11 compatible
|
7
|
+
* [fixed] Undefined method errors when printer closes before clients disconnect
|
8
|
+
|
9
|
+
[Full Changelog](https://github.com/sandro/specjour/compare/v0.6.4...v0.6.5)
|
10
|
+
|
4
11
|
0.6.4 / 2012-09-17
|
5
12
|
---------------------------
|
6
13
|
* [added] RSpec formatter configurable via `Specjour::Configuration.rspec\_formatter`
|
@@ -2,13 +2,14 @@ module Specjour
|
|
2
2
|
module Cucumber
|
3
3
|
module Preloader
|
4
4
|
def self.load
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
5
|
+
Specjour.benchmark("Loading Cucumber Environment") do
|
6
|
+
require 'cucumber' unless defined?(::Cucumber::Cli)
|
7
|
+
configuration = ::Cucumber::Cli::Configuration.new
|
8
|
+
configuration.parse! []
|
9
|
+
runtime = ::Cucumber::Runtime.new(configuration)
|
10
|
+
runtime.send :load_step_definitions
|
11
|
+
Cucumber.runtime = runtime
|
12
|
+
end
|
12
13
|
end
|
13
14
|
end
|
14
15
|
end
|
data/lib/specjour/dispatcher.rb
CHANGED
data/lib/specjour/loader.rb
CHANGED
@@ -118,11 +118,7 @@ module Specjour
|
|
118
118
|
end
|
119
119
|
|
120
120
|
def kill_worker_processes
|
121
|
-
|
122
|
-
Process.kill('INT', *worker_pids) rescue Errno::ESRCH
|
123
|
-
else
|
124
|
-
Process.kill('KILL', *worker_pids) rescue Errno::ESRCH
|
125
|
-
end
|
121
|
+
Process.kill('KILL', *worker_pids) rescue Errno::ESRCH
|
126
122
|
end
|
127
123
|
|
128
124
|
def connection
|
data/lib/specjour/manager.rb
CHANGED
data/lib/specjour/printer.rb
CHANGED
@@ -91,7 +91,7 @@ module Specjour
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def disconnecting
|
94
|
-
if
|
94
|
+
if clients.empty?
|
95
95
|
throw(:stop)
|
96
96
|
end
|
97
97
|
end
|
@@ -129,7 +129,7 @@ module Specjour
|
|
129
129
|
summarize_reports
|
130
130
|
unless Specjour.interrupted?
|
131
131
|
record_performance
|
132
|
-
print_missing_tests if
|
132
|
+
print_missing_tests if missing_tests?
|
133
133
|
end
|
134
134
|
end
|
135
135
|
|
@@ -137,6 +137,10 @@ module Specjour
|
|
137
137
|
reporters.each {|r| r.summarize}
|
138
138
|
end
|
139
139
|
|
140
|
+
def missing_tests?
|
141
|
+
tests_to_run.any? || examples_complete != example_size
|
142
|
+
end
|
143
|
+
|
140
144
|
def print_missing_tests
|
141
145
|
puts "*" * 60
|
142
146
|
puts "Oops! The following tests were not run:"
|
data/lib/specjour/rspec.rb
CHANGED
data/lib/specjour.rb
CHANGED
@@ -29,7 +29,7 @@ module Specjour
|
|
29
29
|
autoload :Cucumber, 'specjour/cucumber'
|
30
30
|
autoload :RSpec, 'specjour/rspec'
|
31
31
|
|
32
|
-
VERSION ||= "0.6.
|
32
|
+
VERSION ||= "0.6.5"
|
33
33
|
HOOKS_PATH ||= "./.specjour/hooks.rb"
|
34
34
|
PROGRAM_NAME ||= $PROGRAM_NAME # keep a reference of the original program name
|
35
35
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specjour
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dnssd
|
@@ -48,17 +48,17 @@ dependencies:
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - '='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.
|
53
|
+
version: '2.11'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: '2.11'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: rr
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
requirements:
|
83
83
|
- - ! '>='
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 1.1
|
85
|
+
version: 1.2.1
|
86
86
|
type: :development
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -90,7 +90,7 @@ dependencies:
|
|
90
90
|
requirements:
|
91
91
|
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: 1.1
|
93
|
+
version: 1.2.1
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: yard
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
177
|
version: '0'
|
178
178
|
segments:
|
179
179
|
- 0
|
180
|
-
hash: -
|
180
|
+
hash: -1114893642292991432
|
181
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|