spork 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/geminstaller.yml ADDED
@@ -0,0 +1,9 @@
1
+ defaults:
2
+ install_options: "--no-ri --no-rdoc"
3
+ gems:
4
+ - { name: 'ruby-sqlite3', version: '>= 1.2.5' }
5
+ - { name: 'cucumber', version: '>= 0.3.101' }
6
+ - { name: 'rspec', version: '>= 1.2.8' }
7
+ - { name: 'rspec-rails', version: '>= 1.2.7.1' }
8
+ - { name: 'rails', version: '>= 2.3' }
9
+
@@ -62,7 +62,8 @@ class SporkDebugger
62
62
  Kernel.class_eval do
63
63
  alias :debugger_without_spork_hook :debugger
64
64
  def debugger(steps = 1)
65
- SporkDebugger.instance.prepare_debugger
65
+ SporkDebugger.instance.prepare_debugger unless @debugger_invoked
66
+ @debugger_invoked = true
66
67
  debugger_without_spork_hook
67
68
  end
68
69
  end
@@ -88,12 +89,15 @@ class SporkDebugger
88
89
  socket.close
89
90
  end
90
91
  rescue => e
91
- puts "#{$$} - error: #{e}"
92
+ puts "error: #{e.class} - #{e}"
92
93
  end
93
94
 
94
95
  def connect_rdebug_client(port = Debugger::PORT)
95
96
  puts "\n\n - Debug Session Started - \n\n\n"
96
- Debugger.start_client(SporkDebugger::HOST, port)
97
+ begin
98
+ Debugger.start_client(SporkDebugger::HOST, port)
99
+ rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ECONNREFUSED
100
+ end
97
101
  puts "\n\n - Debug Session Terminated - \n\n\n"
98
102
  end
99
103
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Harper
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-23 00:00:00 -06:00
12
+ date: 2009-09-24 00:00:00 -06:00
13
13
  default_executable: spork
14
14
  dependencies: []
15
15
 
@@ -38,6 +38,7 @@ files:
38
38
  - features/support/background_job.rb
39
39
  - features/support/env.rb
40
40
  - features/unknown_app_framework.feature
41
+ - geminstaller.yml
41
42
  - lib/spork.rb
42
43
  - lib/spork/app_framework.rb
43
44
  - lib/spork/app_framework/rails.rb