passenger 2.2.5 → 2.2.6

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.

Files changed (100) hide show
  1. data/NEWS +31 -1
  2. data/bin/passenger-install-apache2-module +7 -1
  3. data/bin/passenger-install-nginx-module +1 -1
  4. data/bin/passenger-memory-stats +3 -3
  5. data/doc/Users guide Apache.html +112 -13
  6. data/doc/Users guide Apache.txt +70 -9
  7. data/doc/Users guide Nginx.html +1 -1
  8. data/doc/cxxapi/Bucket_8h-source.html +1 -1
  9. data/doc/cxxapi/Configuration_8h-source.html +1 -1
  10. data/doc/cxxapi/DirectoryMapper_8h-source.html +7 -7
  11. data/doc/cxxapi/Hooks_8h-source.html +1 -1
  12. data/doc/cxxapi/annotated.html +1 -1
  13. data/doc/cxxapi/classHooks-members.html +1 -1
  14. data/doc/cxxapi/classHooks.html +1 -1
  15. data/doc/cxxapi/classPassenger_1_1DirectoryMapper-members.html +1 -1
  16. data/doc/cxxapi/classPassenger_1_1DirectoryMapper.html +1 -1
  17. data/doc/cxxapi/classes.html +1 -1
  18. data/doc/cxxapi/definitions_8h-source.html +1 -1
  19. data/doc/cxxapi/files.html +1 -1
  20. data/doc/cxxapi/functions.html +1 -1
  21. data/doc/cxxapi/functions_func.html +1 -1
  22. data/doc/cxxapi/graph_legend.html +1 -1
  23. data/doc/cxxapi/group__Configuration.html +1 -1
  24. data/doc/cxxapi/group__Core.html +1 -1
  25. data/doc/cxxapi/group__Hooks.html +1 -1
  26. data/doc/cxxapi/group__Support.html +1 -1
  27. data/doc/cxxapi/main.html +1 -1
  28. data/doc/cxxapi/modules.html +1 -1
  29. data/doc/rdoc/classes/ConditionVariable.html +59 -59
  30. data/doc/rdoc/classes/Exception.html +11 -11
  31. data/doc/rdoc/classes/GC.html +4 -4
  32. data/doc/rdoc/classes/IO.html +14 -14
  33. data/doc/rdoc/classes/PhusionPassenger.html +13 -13
  34. data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +8 -8
  35. data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +26 -26
  36. data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +98 -98
  37. data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +61 -61
  38. data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +8 -8
  39. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess.html +32 -32
  40. data/doc/rdoc/classes/PhusionPassenger/Application.html +14 -14
  41. data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +12 -12
  42. data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +4 -4
  43. data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +12 -12
  44. data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +5 -5
  45. data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +42 -42
  46. data/doc/rdoc/classes/PhusionPassenger/NativeSupport.html +24 -24
  47. data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +8 -8
  48. data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +8 -8
  49. data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner.html +62 -66
  50. data/doc/rdoc/classes/PhusionPassenger/Railz/CGIFixed.html +23 -23
  51. data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner.html +30 -30
  52. data/doc/rdoc/classes/PhusionPassenger/Railz/RequestHandler.html +8 -8
  53. data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +23 -23
  54. data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +4 -4
  55. data/doc/rdoc/classes/PhusionPassenger/Utils.html +384 -384
  56. data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +36 -36
  57. data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +4 -4
  58. data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +7 -7
  59. data/doc/rdoc/classes/PlatformInfo.html +234 -200
  60. data/doc/rdoc/classes/RakeExtensions.html +4 -4
  61. data/doc/rdoc/classes/Signal.html +27 -27
  62. data/doc/rdoc/created.rid +1 -1
  63. data/doc/rdoc/files/DEVELOPERS_TXT.html +1 -1
  64. data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +1 -1
  65. data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +1 -1
  66. data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +1 -1
  67. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +1 -1
  68. data/doc/rdoc/files/lib/phusion_passenger/admin_tools/control_process_rb.html +1 -1
  69. data/doc/rdoc/files/lib/phusion_passenger/application_rb.html +1 -1
  70. data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +1 -1
  71. data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +1 -1
  72. data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +1 -1
  73. data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +1 -1
  74. data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +1 -1
  75. data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +1 -1
  76. data/doc/rdoc/files/lib/phusion_passenger/railz/application_spawner_rb.html +1 -3
  77. data/doc/rdoc/files/lib/phusion_passenger/railz/framework_spawner_rb.html +1 -1
  78. data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +1 -1
  79. data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +10 -9
  80. data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +1 -1
  81. data/doc/rdoc/fr_method_index.html +148 -147
  82. data/ext/apache2/DirectoryMapper.h +6 -6
  83. data/ext/common/Utils.cpp +31 -5
  84. data/ext/common/Version.h +1 -1
  85. data/ext/nginx/Configuration.c +4 -8
  86. data/ext/nginx/Configuration.h +2 -2
  87. data/ext/nginx/ContentHandler.c +11 -7
  88. data/ext/oxt/thread.hpp +12 -11
  89. data/lib/phusion_passenger/constants.rb +1 -1
  90. data/lib/phusion_passenger/dependencies.rb +40 -25
  91. data/lib/phusion_passenger/platform_info.rb +28 -11
  92. data/lib/phusion_passenger/railz/application_spawner.rb +3 -7
  93. data/lib/phusion_passenger/templates/apache2/deployment_example.txt.erb +7 -4
  94. data/lib/phusion_passenger/utils.rb +1 -0
  95. data/test/integration_tests/apache2_tests.rb +16 -0
  96. data/test/integration_tests/nginx_tests.rb +46 -0
  97. data/test/stub/MessageServer.dSYM/Contents/Info.plist +25 -0
  98. data/test/stub/MessageServer.dSYM/Contents/Resources/DWARF/MessageServer +0 -0
  99. data/test/stub/wsgi/passenger_wsgi.pyc +0 -0
  100. metadata +4 -2
@@ -1,16 +1,19 @@
1
1
  <banner>Deploying a Ruby on Rails application: an example</banner>
2
2
 
3
- Suppose you have a Ruby on Rails application in <b>/somewhere</b>. Add a virtual host
4
- to your Apache configuration file, and set its DocumentRoot to
5
- <b>/somewhere/public</b>, like this:
3
+ Suppose you have a Rails application in <b>/somewhere</b>. Add a virtual host to your
4
+ Apache configuration file and set its DocumentRoot to <b>/somewhere/public</b>:
6
5
  <b>
7
6
  <VirtualHost *:80>
8
7
  ServerName www.yourhost.com
9
8
  DocumentRoot /somewhere/public # <-- be sure to point to 'public'!
9
+ <Directory /somewhere/public>
10
+ AllowOverride all # <-- relax Apache security settings
11
+ Options -MultiViews # <-- MultiViews must be turned off
12
+ </Directory>
10
13
  </VirtualHost>
11
14
  </b>
12
15
  And that's it! You may also want to check the Users Guide for security and
13
- optimization tips and other useful information:
16
+ optimization tips, troubleshooting and other useful information:
14
17
 
15
18
  <yellow><%= @users_guide %></yellow>
16
19
 
@@ -31,6 +31,7 @@ require 'pathname'
31
31
  require 'etc'
32
32
  require 'fcntl'
33
33
  require 'tempfile'
34
+ require 'stringio'
34
35
  require 'phusion_passenger/exceptions'
35
36
  if !defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby"
36
37
  require 'phusion_passenger/native_support'
@@ -554,6 +554,22 @@ describe "Apache 2 module" do
554
554
  it_should_behave_like "HelloWorld Rack application"
555
555
  end
556
556
 
557
+ describe "Rack application running within Rails directory structure" do
558
+ before :all do
559
+ @stub = setup_rails_stub('mycook')
560
+ FileUtils.cp_r("stub/rack/.", @stub.app_root)
561
+ @apache2.set_vhost('passenger.test', File.expand_path(@stub.app_root) + "/public")
562
+ @apache2.start
563
+ @server = "http://passenger.test:#{@apache2.port}"
564
+ end
565
+
566
+ after :all do
567
+ @stub.destroy
568
+ end
569
+
570
+ it_should_behave_like "HelloWorld Rack application"
571
+ end
572
+
557
573
  describe "WSGI application running in root URI" do
558
574
  before :all do
559
575
  @stub = setup_stub('wsgi')
@@ -94,6 +94,52 @@ describe "Phusion Passenger for Nginx" do
94
94
  end
95
95
  end
96
96
 
97
+ describe "Rack application running in root URI" do
98
+ before :all do
99
+ @server = "http://passenger.test:#{@nginx.port}"
100
+ @stub = setup_stub('rack')
101
+ @nginx.add_server do |server|
102
+ server[:server_name] = "passenger.test"
103
+ server[:root] = File.expand_path("#{@stub.app_root}/public")
104
+ end
105
+ @nginx.start
106
+ end
107
+
108
+ after :all do
109
+ @stub.destroy
110
+ end
111
+
112
+ before :each do
113
+ @stub.reset
114
+ end
115
+
116
+ it_should_behave_like "HelloWorld Rack application"
117
+ end
118
+
119
+ describe "Rack application running within Rails directory structure" do
120
+ before :all do
121
+ @server = "http://passenger.test:#{@nginx.port}"
122
+ @stub = setup_rails_stub('mycook')
123
+ FileUtils.cp_r("stub/rack/.", @stub.app_root)
124
+ @nginx.add_server do |server|
125
+ server[:server_name] = "passenger.test"
126
+ server[:root] = File.expand_path("#{@stub.app_root}/public")
127
+ end
128
+ @nginx.start
129
+ end
130
+
131
+ after :all do
132
+ @stub.destroy
133
+ end
134
+
135
+ before :each do
136
+ @stub.reset
137
+ FileUtils.cp_r("stub/rack/.", @stub.app_root)
138
+ end
139
+
140
+ it_should_behave_like "HelloWorld Rack application"
141
+ end
142
+
97
143
 
98
144
  ##### Helper methods #####
99
145
 
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>English</string>
7
+ <key>CFBundleIdentifier</key>
8
+ <string>com.apple.xcode.dsym.MessageServer</string>
9
+ <key>CFBundleInfoDictionaryVersion</key>
10
+ <string>6.0</string>
11
+ <key>CFBundlePackageType</key>
12
+ <string>dSYM</string>
13
+ <key>CFBundleSignature</key>
14
+ <string>????</string>
15
+ <key>CFBundleShortVersionString</key>
16
+ <string>1.0</string>
17
+ <key>CFBundleVersion</key>
18
+ <string>1</string>
19
+ <key>dSYM_UUID</key>
20
+ <dict>
21
+ <key>i386</key>
22
+ <string>7B7098EA-C075-7166-E6F2-B4822BCD721D</string>
23
+ </dict>
24
+ </dict>
25
+ </plist>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 2.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phusion - http://www.phusion.nl/
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-01 00:00:00 +02:00
12
+ date: 2009-11-18 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -1209,6 +1209,8 @@ files:
1209
1209
  - test/stub/message_channel.rb
1210
1210
  - test/stub/message_channel_2.rb
1211
1211
  - test/stub/message_channel_3.rb
1212
+ - test/stub/MessageServer.dSYM/Contents/Info.plist
1213
+ - test/stub/MessageServer.dSYM/Contents/Resources/DWARF/MessageServer
1212
1214
  - test/stub/nginx/koi-utf
1213
1215
  - test/stub/nginx/koi-win
1214
1216
  - test/stub/nginx/mime.types