spork 0.7.7 → 0.7.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,10 +5,6 @@ class ::ApplicationController < ActionController::Base
5
5
  def inherited(klass)
6
6
  (@_descendants ||= []) << klass if @@preloading
7
7
  super
8
- Spork.each_run do
9
- klass.master_helper_module.send(:include, master_helper_module)
10
- klass.send(:default_helper_module!)
11
- end
12
8
  end
13
9
 
14
10
  def reapply_inheritance!
@@ -0,0 +1,14 @@
1
+ Spork.each_run do
2
+ ::ActiveSupport.const_defined?(:Dependencies) ?
3
+ ::ActiveSupport::Dependencies.mechanism = :load :
4
+ ::Dependencies.mechanism = :load
5
+
6
+ require 'action_controller/dispatcher'
7
+ dispatcher = ::ActionController::Dispatcher.new($stdout)
8
+
9
+ if ::ActionController::Dispatcher.respond_to?(:reload_application)
10
+ ::ActionController::Dispatcher.reload_application
11
+ else
12
+ dispatcher.reload_application
13
+ end
14
+ end if Spork.using_spork?
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.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Harper
@@ -49,6 +49,7 @@ files:
49
49
  - lib/spork/app_framework/unknown.rb
50
50
  - lib/spork/custom_io_streams.rb
51
51
  - lib/spork/diagnoser.rb
52
+ - lib/spork/ext/rails-reloader.rb
52
53
  - lib/spork/ext/ruby-debug.rb
53
54
  - lib/spork/forker.rb
54
55
  - lib/spork/run_strategy.rb