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 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
- $stdout.puts "Loading Cucumber Environment"
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
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
@@ -81,7 +81,7 @@ module Specjour
81
81
  fetch_manager(manager.drb_uri)
82
82
  at_exit do
83
83
  unless Specjour.interrupted?
84
- Process.kill('KILL', manager.pid) rescue Errno::ESRCH
84
+ Process.kill('TERM', manager.pid) rescue Errno::ESRCH
85
85
  end
86
86
  end
87
87
  end
@@ -118,11 +118,7 @@ module Specjour
118
118
  end
119
119
 
120
120
  def kill_worker_processes
121
- if Specjour.interrupted?
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
@@ -85,7 +85,7 @@ module Specjour
85
85
  if Specjour.interrupted?
86
86
  Process.kill('INT', loader_pid) rescue Errno::ESRCH
87
87
  else
88
- Process.kill('KILL', loader_pid) rescue Errno::ESRCH
88
+ Process.kill('TERM', loader_pid) rescue Errno::ESRCH
89
89
  end
90
90
  @loader_pid = nil
91
91
  end
@@ -91,7 +91,7 @@ module Specjour
91
91
  end
92
92
 
93
93
  def disconnecting
94
- if (examples_complete == example_size) || clients.empty?
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 tests_to_run.any?
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:"
@@ -12,5 +12,6 @@ module Specjour
12
12
 
13
13
  ::RSpec::Core::Runner.disable_autorun!
14
14
  ::RSpec::Core::Runner.class_eval "def self.trap_interrupt;end"
15
+ ::RSpec.class_eval "def self.reset; world.reset; configuration.reset; end"
15
16
  end
16
17
  end
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.4"
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
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-09-17 00:00:00.000000000 Z
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.8.0
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.8.0
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.4
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.4
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: -4156345957160810080
180
+ hash: -1114893642292991432
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements: