passenger 2.2.12 → 2.2.13

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of passenger might be problematic. Click here for more details.

@@ -0,0 +1,3 @@
1
+ <map id="structs" name="structs">
2
+ <area shape="rect" id="node1" href="$group__Core.html" title="Core Apache&#45;related classes and functions" alt="" coords="5,5,315,35"/>
3
+ </map>
data/ext/common/Version.h CHANGED
@@ -26,6 +26,6 @@
26
26
  #define _PASSENGER_VERSION_H_
27
27
 
28
28
  /* Don't forget to update lib/phusion_passenger/constants.rb too. */
29
- #define PASSENGER_VERSION "2.2.12"
29
+ #define PASSENGER_VERSION "2.2.13"
30
30
 
31
31
  #endif /* _PASSENGER_VERSION_H */
@@ -24,7 +24,7 @@
24
24
  module PhusionPassenger
25
25
  # Phusion Passenger version number.
26
26
  # Don't forget to edit ext/common/Version.h too.
27
- VERSION_STRING = '2.2.12'
27
+ VERSION_STRING = '2.2.13'
28
28
 
29
29
  DEFAULT_FRAMEWORK_SPAWNER_MAX_IDLE_TIME = 30 * 60
30
30
  DEFAULT_APP_SPAWNER_MAX_IDLE_TIME = 10 * 60
@@ -177,7 +177,14 @@ class ApplicationSpawner < AbstractServer
177
177
  setup_bundler_support
178
178
 
179
179
  require File.expand_path('config/environment')
180
- require 'dispatcher'
180
+ begin
181
+ require 'dispatcher'
182
+ rescue LoadError
183
+ # Early versions of Rails 3 still had the dispatcher, but
184
+ # later versions disposed of it, in which case we'll need
185
+ # to use the application object.
186
+ raise if Rails::VERSION::MAJOR < 3
187
+ end
181
188
  end
182
189
  if success
183
190
  start_request_handler(channel, false)
@@ -316,8 +323,16 @@ private
316
323
  && ActionController::Dispatcher.respond_to?(:error_file_path)
317
324
  ActionController::Dispatcher.error_file_path = "#{RAILS_ROOT}/public"
318
325
  end
326
+ require 'rails/version' if !defined?(::Rails::VERSION)
319
327
  if !defined?(Dispatcher)
320
- require 'dispatcher'
328
+ begin
329
+ require 'dispatcher'
330
+ rescue LoadError
331
+ # Early versions of Rails 3 still had the dispatcher, but
332
+ # later versions disposed of it, in which case we'll need
333
+ # to use the application object.
334
+ raise if Rails::VERSION::MAJOR < 3
335
+ end
321
336
  end
322
337
  # Rails 2.2+ uses application_controller.rb while older versions use application.rb.
323
338
  begin
@@ -353,7 +368,7 @@ private
353
368
  if defined?(Rails::Initializer)
354
369
  return ::Rails::Initializer.method_defined?(:load_application_classes)
355
370
  else
356
- return defined?(::Rails3)
371
+ return Rails::VERSION::MAJOR >= 3
357
372
  end
358
373
  end
359
374
 
@@ -410,7 +425,7 @@ private
410
425
  reader.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
411
426
 
412
427
  if Rails::VERSION::STRING >= '2.3.0'
413
- rack_app = ::ActionController::Dispatcher.new
428
+ rack_app = find_rack_app
414
429
  handler = Rack::RequestHandler.new(reader, rack_app, @options)
415
430
  else
416
431
  handler = RequestHandler.new(reader, @options)
@@ -431,6 +446,16 @@ private
431
446
  PhusionPassenger.call_event(:stopping_worker_process)
432
447
  end
433
448
  end
449
+
450
+ def find_rack_app
451
+ if Rails::VERSION::MAJOR >= 3
452
+ File.read("config/application.rb") =~ /^module (.+)$/
453
+ app_module = Object.const_get($1)
454
+ return app_module::Application
455
+ else
456
+ return ActionController::Dispatcher.new
457
+ end
458
+ end
434
459
  end
435
460
 
436
461
  end # module Railz
@@ -194,7 +194,7 @@ protected
194
194
 
195
195
  # The app developer may also override our strategy with this magic file.
196
196
  elsif File.exist?('config/setup_load_paths.rb')
197
- require File.expand('config/setup_load_paths')
197
+ require File.expand_path('config/setup_load_paths')
198
198
 
199
199
  # If the Bundler lock environment file exists then load that. If it
200
200
  # exists then there's a 99.9% chance that loading it is the correct
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passenger
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 29
4
5
  prerelease: false
5
6
  segments:
6
7
  - 2
7
8
  - 2
8
- - 12
9
- version: 2.2.12
9
+ - 13
10
+ version: 2.2.13
10
11
  platform: ruby
11
12
  authors:
12
13
  - Phusion - http://www.phusion.nl/
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-31 00:00:00 +02:00
18
+ date: 2010-06-01 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: rake
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 61
27
30
  segments:
28
31
  - 0
29
32
  - 8
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: fastthread
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 21
41
46
  segments:
42
47
  - 1
43
48
  - 0
@@ -49,9 +54,11 @@ dependencies:
49
54
  name: rack
50
55
  prerelease: false
51
56
  requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
52
58
  requirements:
53
59
  - - ">="
54
60
  - !ruby/object:Gem::Version
61
+ hash: 3
55
62
  segments:
56
63
  - 0
57
64
  version: "0"
@@ -167,6 +174,7 @@ files:
167
174
  - doc/cxxapi/BCrypt_8h-source.html
168
175
  - doc/cxxapi/Blowfish_8h-source.html
169
176
  - doc/cxxapi/Bucket_8h-source.html
177
+ - doc/cxxapi/Bucket_8h_source.html
170
178
  - doc/cxxapi/CachedFileStat_8h-source.html
171
179
  - doc/cxxapi/classAgentWatcher-members.html
172
180
  - doc/cxxapi/classAgentWatcher.html
@@ -302,10 +310,13 @@ files:
302
310
  - doc/cxxapi/classServerInstanceDirToucher-members.html
303
311
  - doc/cxxapi/classServerInstanceDirToucher.html
304
312
  - doc/cxxapi/Configuration_8h-source.html
313
+ - doc/cxxapi/Configuration_8h_source.html
305
314
  - doc/cxxapi/Constants_8h-source.html
306
315
  - doc/cxxapi/ContentHandler_8h-source.html
307
316
  - doc/cxxapi/definitions_8h-source.html
317
+ - doc/cxxapi/definitions_8h_source.html
308
318
  - doc/cxxapi/DirectoryMapper_8h-source.html
319
+ - doc/cxxapi/DirectoryMapper_8h_source.html
309
320
  - doc/cxxapi/doxygen.css
310
321
  - doc/cxxapi/doxygen.png
311
322
  - doc/cxxapi/EventedServer_8h-source.html
@@ -334,15 +345,19 @@ files:
334
345
  - doc/cxxapi/graph_legend.html
335
346
  - doc/cxxapi/graph_legend.png
336
347
  - doc/cxxapi/group__Configuration.html
348
+ - doc/cxxapi/group__Configuration.map
337
349
  - doc/cxxapi/group__Configuration.png
338
350
  - doc/cxxapi/group__Core.html
351
+ - doc/cxxapi/group__Core.map
339
352
  - doc/cxxapi/group__Core.png
340
353
  - doc/cxxapi/group__Exceptions.html
341
354
  - doc/cxxapi/group__Hooks.html
355
+ - doc/cxxapi/group__Hooks.map
342
356
  - doc/cxxapi/group__Hooks.png
343
357
  - doc/cxxapi/group__Support.html
344
358
  - doc/cxxapi/hierarchy.html
345
359
  - doc/cxxapi/Hooks_8h-source.html
360
+ - doc/cxxapi/Hooks_8h_source.html
346
361
  - doc/cxxapi/HttpStatusExtractor_8h-source.html
347
362
  - doc/cxxapi/index.html
348
363
  - doc/cxxapi/inherit__graph__0.map
@@ -1369,16 +1384,20 @@ require_paths:
1369
1384
  - lib
1370
1385
  - ext
1371
1386
  required_ruby_version: !ruby/object:Gem::Requirement
1387
+ none: false
1372
1388
  requirements:
1373
1389
  - - ">="
1374
1390
  - !ruby/object:Gem::Version
1391
+ hash: 3
1375
1392
  segments:
1376
1393
  - 0
1377
1394
  version: "0"
1378
1395
  required_rubygems_version: !ruby/object:Gem::Requirement
1396
+ none: false
1379
1397
  requirements:
1380
1398
  - - ">="
1381
1399
  - !ruby/object:Gem::Version
1400
+ hash: 3
1382
1401
  segments:
1383
1402
  - 0
1384
1403
  version: "0"
@@ -1386,7 +1405,7 @@ requirements:
1386
1405
  - fastthread
1387
1406
  - Apache 2 with development headers
1388
1407
  rubyforge_project: passenger
1389
- rubygems_version: 1.3.6
1408
+ rubygems_version: 1.3.7
1390
1409
  signing_key:
1391
1410
  specification_version: 3
1392
1411
  summary: Apache module for Ruby on Rails support.