passenger 1.0.1 → 1.0.2

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 (123) hide show
  1. data/LICENSE +3 -1
  2. data/Rakefile +17 -12
  3. data/bin/passenger-config +22 -0
  4. data/bin/passenger-install-apache2-module +2 -31
  5. data/bin/passenger-make-enterprisey +66 -0
  6. data/bin/passenger-memory-stats +192 -0
  7. data/doc/Users guide.html +150 -66
  8. data/doc/Users guide.txt +141 -51
  9. data/doc/cxxapi/ApplicationPoolClientServer_8h-source.html +1 -1
  10. data/doc/cxxapi/ApplicationPoolServer_8h-source.html +545 -0
  11. data/doc/cxxapi/ApplicationPool_8h-source.html +1 -1
  12. data/doc/cxxapi/Application_8h-source.html +1 -1
  13. data/doc/cxxapi/Configuration_8h-source.html +2 -2
  14. data/doc/cxxapi/DummySpawnManager_8h-source.html +1 -1
  15. data/doc/cxxapi/Exceptions_8h-source.html +1 -1
  16. data/doc/cxxapi/Hooks_8h-source.html +1 -1
  17. data/doc/cxxapi/Logging_8h-source.html +1 -1
  18. data/doc/cxxapi/MessageChannel_8h-source.html +210 -205
  19. data/doc/cxxapi/SpawnManager_8h-source.html +1 -1
  20. data/doc/cxxapi/StandardApplicationPool_8h-source.html +1 -1
  21. data/doc/cxxapi/Utils_8h-source.html +1 -1
  22. data/doc/cxxapi/annotated.html +1 -1
  23. data/doc/cxxapi/classClient-members.html +30 -0
  24. data/doc/cxxapi/classClient.html +112 -0
  25. data/doc/cxxapi/classPassenger_1_1Application-members.html +1 -1
  26. data/doc/cxxapi/classPassenger_1_1Application.html +1 -1
  27. data/doc/cxxapi/classPassenger_1_1ApplicationPool-members.html +1 -1
  28. data/doc/cxxapi/classPassenger_1_1ApplicationPool.html +1 -1
  29. data/doc/cxxapi/classPassenger_1_1ApplicationPoolServer-members.html +1 -1
  30. data/doc/cxxapi/classPassenger_1_1ApplicationPoolServer.html +1 -1
  31. data/doc/cxxapi/classPassenger_1_1Application_1_1Session-members.html +1 -1
  32. data/doc/cxxapi/classPassenger_1_1Application_1_1Session.html +1 -1
  33. data/doc/cxxapi/classPassenger_1_1ConfigurationException-members.html +28 -0
  34. data/doc/cxxapi/classPassenger_1_1ConfigurationException.html +41 -0
  35. data/doc/cxxapi/classPassenger_1_1DummySpawnManager-members.html +1 -1
  36. data/doc/cxxapi/classPassenger_1_1DummySpawnManager.html +1 -1
  37. data/doc/cxxapi/classPassenger_1_1FileNotFoundException-members.html +1 -1
  38. data/doc/cxxapi/classPassenger_1_1FileNotFoundException.html +1 -1
  39. data/doc/cxxapi/classPassenger_1_1IOException-members.html +1 -1
  40. data/doc/cxxapi/classPassenger_1_1IOException.html +1 -1
  41. data/doc/cxxapi/classPassenger_1_1MessageChannel-members.html +1 -1
  42. data/doc/cxxapi/classPassenger_1_1MessageChannel.html +1 -1
  43. data/doc/cxxapi/classPassenger_1_1SpawnException-members.html +1 -1
  44. data/doc/cxxapi/classPassenger_1_1SpawnException.html +1 -1
  45. data/doc/cxxapi/classPassenger_1_1SpawnManager-members.html +1 -1
  46. data/doc/cxxapi/classPassenger_1_1SpawnManager.html +1 -1
  47. data/doc/cxxapi/classPassenger_1_1StandardApplicationPool-members.html +1 -1
  48. data/doc/cxxapi/classPassenger_1_1StandardApplicationPool.html +1 -1
  49. data/doc/cxxapi/classPassenger_1_1SystemException-members.html +1 -1
  50. data/doc/cxxapi/classPassenger_1_1SystemException.html +1 -1
  51. data/doc/cxxapi/definitions_8h-source.html +1 -1
  52. data/doc/cxxapi/files.html +1 -1
  53. data/doc/cxxapi/functions.html +1 -1
  54. data/doc/cxxapi/functions_func.html +1 -1
  55. data/doc/cxxapi/functions_type.html +1 -1
  56. data/doc/cxxapi/graph_legend.html +1 -1
  57. data/doc/cxxapi/graph_legend.png +0 -0
  58. data/doc/cxxapi/group__Configuration.html +3 -3
  59. data/doc/cxxapi/group__Configuration.png +0 -0
  60. data/doc/cxxapi/group__Core.html +1 -1
  61. data/doc/cxxapi/group__Core.png +0 -0
  62. data/doc/cxxapi/group__Exceptions.html +1 -1
  63. data/doc/cxxapi/group__Hooks.html +1 -1
  64. data/doc/cxxapi/group__Hooks.png +0 -0
  65. data/doc/cxxapi/group__Support.html +1 -1
  66. data/doc/cxxapi/hierarchy.html +1 -1
  67. data/doc/cxxapi/inherit__graph__0.png +0 -0
  68. data/doc/cxxapi/inherit__graph__1.png +0 -0
  69. data/doc/cxxapi/inherit__graph__10.map +1 -0
  70. data/doc/cxxapi/inherit__graph__10.md5 +1 -0
  71. data/doc/cxxapi/inherit__graph__10.png +0 -0
  72. data/doc/cxxapi/inherit__graph__2.png +0 -0
  73. data/doc/cxxapi/inherit__graph__3.png +0 -0
  74. data/doc/cxxapi/inherit__graph__4.png +0 -0
  75. data/doc/cxxapi/inherit__graph__5.png +0 -0
  76. data/doc/cxxapi/inherit__graph__6.png +0 -0
  77. data/doc/cxxapi/inherit__graph__7.png +0 -0
  78. data/doc/cxxapi/inherit__graph__8.png +0 -0
  79. data/doc/cxxapi/inherit__graph__9.png +0 -0
  80. data/doc/cxxapi/inherits.html +1 -1
  81. data/doc/cxxapi/main.html +1 -1
  82. data/doc/cxxapi/modules.html +1 -1
  83. data/doc/cxxapi/structPassenger_1_1AnythingToString-members.html +1 -1
  84. data/doc/cxxapi/structPassenger_1_1AnythingToString.html +1 -1
  85. data/doc/cxxapi/structPassenger_1_1AnythingToString_3_01vector_3_01string_01_4_01_4-members.html +1 -1
  86. data/doc/cxxapi/structPassenger_1_1AnythingToString_3_01vector_3_01string_01_4_01_4.html +1 -1
  87. data/doc/rdoc/classes/Passenger/RequestHandler.html +84 -74
  88. data/doc/rdoc/classes/Passenger/SpawnManager.html +54 -49
  89. data/doc/rdoc/classes/PlatformInfo.html +25 -12
  90. data/doc/rdoc/created.rid +1 -1
  91. data/doc/rdoc/files/DEVELOPERS_TXT.html +1 -1
  92. data/doc/rdoc/files/ext/passenger/native_support_c.html +1 -1
  93. data/doc/rdoc/files/lib/passenger/abstract_server_rb.html +1 -1
  94. data/doc/rdoc/files/lib/passenger/application_spawner_rb.html +1 -1
  95. data/doc/rdoc/files/lib/passenger/dependencies_rb.html +1 -1
  96. data/doc/rdoc/files/lib/passenger/framework_spawner_rb.html +1 -1
  97. data/doc/rdoc/files/lib/passenger/platform_info_rb.html +1 -1
  98. data/doc/rdoc/files/lib/passenger/request_handler_rb.html +1 -1
  99. data/doc/rdoc/files/lib/passenger/spawn_manager_rb.html +1 -1
  100. data/ext/apache2/Configuration.h +1 -1
  101. data/ext/apache2/Hooks.cpp +68 -16
  102. data/ext/apache2/Logging.cpp +1 -1
  103. data/ext/apache2/MessageChannel.h +48 -43
  104. data/ext/passenger/native_support.c +46 -43
  105. data/lib/passenger/application_spawner.rb +37 -4
  106. data/lib/passenger/dependencies.rb +5 -1
  107. data/lib/passenger/framework_spawner.rb +2 -0
  108. data/lib/passenger/platform_info.rb +32 -17
  109. data/lib/passenger/request_handler.rb +10 -1
  110. data/lib/passenger/spawn_manager.rb +14 -8
  111. data/lib/passenger/templates/error_layout.html.erb +2 -2
  112. data/test/CxxTestMain.cpp +1 -0
  113. data/test/MessageChannelTest.cpp +3 -1
  114. data/test/application_spawner_spec.rb +2 -0
  115. data/test/framework_spawner_spec.rb +2 -0
  116. data/test/integration_tests.rb +1 -0
  117. data/test/spawn_manager_spec.rb +2 -0
  118. data/test/spawner_privilege_lowering_spec.rb +1 -0
  119. data/test/stub/minimal-railsapp/vendor/rails/actionpack/lib/action_controller.rb +4 -0
  120. data/test/stub/minimal-railsapp/vendor/rails/activerecord/lib/active_record.rb +7 -0
  121. data/test/stub/rails_apps/foobar/config/environments/test.rb +22 -0
  122. metadata +28 -22
  123. data/lib/passenger/templates/osx_broken_apache_warning.txt.erb +0 -23
@@ -9,6 +9,8 @@ require 'spawner_error_handling_spec'
9
9
  include Passenger
10
10
  include Passenger::Utils
11
11
 
12
+ # TODO: test whether SpawnManager restarts FrameworkSpawner if it crashed
13
+
12
14
  describe SpawnManager do
13
15
  before :each do
14
16
  @manager = SpawnManager.new
@@ -26,6 +26,7 @@ shared_examples_for "a spawner that supports lowering of privileges" do
26
26
  expected_gid = Etc.getpwnam(CONFIG['normal_user_1']).gid
27
27
  expected_group = Etc.getgrgid(expected_gid).name
28
28
  group_of_process(app.pid).should == expected_group
29
+ # TODO: check supplementary group list
29
30
  end
30
31
  end
31
32
 
@@ -1,5 +1,9 @@
1
1
  module ActionController
2
2
  class Base
3
+ def self.page_cache_directory
4
+ nil
5
+ end
6
+
3
7
  def self.page_cache_directory=(dir)
4
8
  end
5
9
  end
@@ -0,0 +1,7 @@
1
+ class ActiveRecord
2
+ class Base
3
+ def self.connected?
4
+ return false
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,22 @@
1
+ # Settings specified here will take precedence over those in config/environment.rb
2
+
3
+ # The test environment is used exclusively to run your application's
4
+ # test suite. You never need to work with it otherwise. Remember that
5
+ # your test database is "scratch space" for the test suite and is wiped
6
+ # and recreated between test runs. Don't rely on the data there!
7
+ config.cache_classes = true
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.action_controller.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Disable request forgery protection in test environment
17
+ config.action_controller.allow_forgery_protection = false
18
+
19
+ # Tell ActionMailer not to deliver emails to the real world.
20
+ # The :test delivery method accumulates sent emails in the
21
+ # ActionMailer::Base.deliveries array.
22
+ config.action_mailer.delivery_method = :test
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: 1.0.1
4
+ version: 1.0.2
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: 2008-04-11 00:00:00 +02:00
12
+ date: 2008-04-29 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,29 +30,14 @@ dependencies:
30
30
  - !ruby/object:Gem::Version
31
31
  version: 1.0.1
32
32
  version:
33
- - !ruby/object:Gem::Dependency
34
- name: rspec
35
- version_requirement:
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 1.1.2
41
- version:
42
- - !ruby/object:Gem::Dependency
43
- name: rails
44
- version_requirement:
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 1.2.0
50
- version:
51
33
  description: Passenger is an Apache module for Ruby on Rails support.
52
34
  email: info@phusion.nl
53
35
  executables:
54
36
  - passenger-spawn-server
55
37
  - passenger-install-apache2-module
38
+ - passenger-config
39
+ - passenger-memory-stats
40
+ - passenger-make-enterprisey
56
41
  extensions:
57
42
  - ext/passenger/extconf.rb
58
43
  extra_rdoc_files:
@@ -99,9 +84,11 @@ files:
99
84
  - lib/passenger/templates/app_init_error.html.erb
100
85
  - lib/passenger/templates/no_write_permission_to_passenger_root.txt.erb
101
86
  - lib/passenger/templates/possible_solutions_for_compilation_and_installation_problems.txt.erb
102
- - lib/passenger/templates/osx_broken_apache_warning.txt.erb
103
87
  - bin/passenger-install-apache2-module
88
+ - bin/passenger-config
89
+ - bin/passenger-memory-stats
104
90
  - bin/passenger-spawn-server
91
+ - bin/passenger-make-enterprisey
105
92
  - doc/Doxyfile
106
93
  - doc/cxxapi
107
94
  - doc/definitions.h
@@ -121,6 +108,7 @@ files:
121
108
  - doc/cxxapi/inherit__graph__9.png
122
109
  - doc/cxxapi/inherit__graph__5.png
123
110
  - doc/cxxapi/graph_legend.dot
111
+ - doc/cxxapi/ApplicationPoolServer_8h-source.html
124
112
  - doc/cxxapi/inherit__graph__6.map
125
113
  - doc/cxxapi/inherit__graph__5.map
126
114
  - doc/cxxapi/structPassenger_1_1AnythingToString-members.html
@@ -130,6 +118,7 @@ files:
130
118
  - doc/cxxapi/group__Core.png
131
119
  - doc/cxxapi/ftv2folderopen.png
132
120
  - doc/cxxapi/graph_legend.png
121
+ - doc/cxxapi/inherit__graph__10.map
133
122
  - doc/cxxapi/group__Core.html
134
123
  - doc/cxxapi/classPassenger_1_1SpawnException-members.html
135
124
  - doc/cxxapi/inherit__graph__6.png
@@ -190,6 +179,7 @@ files:
190
179
  - doc/cxxapi/structPassenger_1_1AnythingToString_3_01vector_3_01string_01_4_01_4-members.html
191
180
  - doc/cxxapi/classPassenger_1_1Application-members.html
192
181
  - doc/cxxapi/group__Exceptions.html
182
+ - doc/cxxapi/classPassenger_1_1ConfigurationException-members.html
193
183
  - doc/cxxapi/inherit__graph__0.map
194
184
  - doc/cxxapi/ftv2doc.png
195
185
  - doc/cxxapi/tab_b.gif
@@ -216,13 +206,16 @@ files:
216
206
  - doc/cxxapi/main.html
217
207
  - doc/cxxapi/StandardApplicationPool_8h-source.html
218
208
  - doc/cxxapi/hierarchy.html
209
+ - doc/cxxapi/classClient-members.html
219
210
  - doc/cxxapi/classPassenger_1_1FileNotFoundException.html
220
211
  - doc/cxxapi/inherit__graph__2.md5
221
212
  - doc/cxxapi/ftv2folderclosed.png
213
+ - doc/cxxapi/classClient.html
222
214
  - doc/cxxapi/inherit__graph__9.map
223
215
  - doc/cxxapi/ftv2node.png
224
216
  - doc/cxxapi/classPassenger_1_1StandardApplicationPool__inherit__graph.png
225
217
  - doc/cxxapi/classPassenger_1_1IOException__inherit__graph.png
218
+ - doc/cxxapi/classPassenger_1_1ConfigurationException.html
226
219
  - doc/cxxapi/structPassenger_1_1AnythingToString.html
227
220
  - doc/cxxapi/Exceptions_8h-source.html
228
221
  - doc/cxxapi/Application_8h-source.html
@@ -230,6 +223,7 @@ files:
230
223
  - doc/cxxapi/Utils_8h-source.html
231
224
  - doc/cxxapi/doxygen.css
232
225
  - doc/cxxapi/group__Configuration.png
226
+ - doc/cxxapi/inherit__graph__10.md5
233
227
  - doc/cxxapi/inherits.html
234
228
  - doc/cxxapi/tabs.css
235
229
  - doc/cxxapi/ftv2lastnode.png
@@ -238,6 +232,7 @@ files:
238
232
  - doc/cxxapi/classPassenger_1_1ApplicationPool__inherit__graph.map
239
233
  - doc/cxxapi/classPassenger_1_1StandardApplicationPool-members.html
240
234
  - doc/cxxapi/functions_type.html
235
+ - doc/cxxapi/inherit__graph__10.png
241
236
  - doc/images/typical_isolated_web_application.svg
242
237
  - doc/images/icons
243
238
  - doc/images/typical_isolated_web_application.png
@@ -1923,6 +1918,7 @@ files:
1923
1918
  - test/stub/railsapp2
1924
1919
  - test/stub/message_channel_2.rb
1925
1920
  - test/stub/http_request.yml
1921
+ - test/stub/rails_apps
1926
1922
  - test/stub/broken-railsapp5
1927
1923
  - test/stub/garbage1.dat
1928
1924
  - test/stub/broken-railsapp4/public
@@ -1964,6 +1960,7 @@ files:
1964
1960
  - test/stub/railsapp2/app
1965
1961
  - test/stub/railsapp2/tmp
1966
1962
  - test/stub/railsapp2/vendor
1963
+ - test/stub/rails_apps/foobar
1967
1964
  - test/stub/broken-railsapp5/public
1968
1965
  - test/stub/broken-railsapp5/config
1969
1966
  - test/stub/broken-railsapp5/vendor
@@ -2052,6 +2049,9 @@ files:
2052
2049
  - test/stub/railsapp2/tmp/sessions
2053
2050
  - test/stub/railsapp2/tmp/sockets
2054
2051
  - test/stub/railsapp2/vendor/plugins
2052
+ - test/stub/rails_apps/foobar/config
2053
+ - test/stub/rails_apps/foobar/app
2054
+ - test/stub/rails_apps/foobar/vendor
2055
2055
  - test/stub/broken-railsapp5/public/useless.txt
2056
2056
  - test/stub/broken-railsapp5/config/environment.rb
2057
2057
  - test/stub/broken-railsapp5/vendor/rails
@@ -2114,6 +2114,10 @@ files:
2114
2114
  - test/stub/railsapp2/app/controllers/application.rb
2115
2115
  - test/stub/railsapp2/app/helpers/application_helper.rb
2116
2116
  - test/stub/railsapp2/app/views/layouts
2117
+ - test/stub/rails_apps/foobar/config/environments
2118
+ - test/stub/rails_apps/foobar/app/models
2119
+ - test/stub/rails_apps/foobar/app/views
2120
+ - test/stub/rails_apps/foobar/vendor/plugins
2117
2121
  - test/stub/broken-railsapp5/vendor/rails/railties
2118
2122
  - test/stub/broken-railsapp5/vendor/rails/actionmailer
2119
2123
  - test/stub/broken-railsapp5/vendor/rails/actionpack
@@ -2134,6 +2138,8 @@ files:
2134
2138
  - test/stub/minimal-railsapp/vendor/rails/activesupport/lib
2135
2139
  - test/stub/minimal-railsapp/vendor/rails/activerecord/lib
2136
2140
  - test/stub/minimal-railsapp/vendor/rails/activeresource/lib
2141
+ - test/stub/rails_apps/foobar/config/environments/test.rb
2142
+ - test/stub/rails_apps/foobar/app/views/layouts
2137
2143
  - test/stub/broken-railsapp5/vendor/rails/railties/lib
2138
2144
  - test/stub/broken-railsapp5/vendor/rails/actionmailer/lib
2139
2145
  - test/stub/broken-railsapp5/vendor/rails/actionpack/lib
@@ -2165,7 +2171,7 @@ files:
2165
2171
  - test/stub/minimal-railsapp/vendor/rails/activesupport/lib/active_support/whiny_nil.rb
2166
2172
  - test/stub/broken-railsapp5/vendor/rails/activesupport/lib/active_support/whiny_nil.rb
2167
2173
  has_rdoc: true
2168
- homepage: http://passenger.phusion.nl/
2174
+ homepage: http://www.modrails.com/
2169
2175
  post_install_message:
2170
2176
  rdoc_options:
2171
2177
  - -S
@@ -1,23 +0,0 @@
1
- <%= "<banner>WARNING</banner> <red>WARNING</red> " * 3 %>
2
-
3
- You seem to be running MacOS X. Testers have reported that the default Apache
4
- installation, as provided by MacOS X, is broken. Passenger seems to crash for
5
- unknown reasons on OS X's default Apache installation.
6
-
7
- And it seems that you are about to install Passenger against OS X's default
8
- Apache installation (/usr/sbin/apxs).
9
-
10
- We recommend you to install Apache manually, and to install Passenger against
11
- that Apache instead. To tell Passenger to use a different Apache installation,
12
- please set the <b>APXS2</b> environment variable, and run this installer again.
13
- For example, if Apache is installed in /opt/apache2, then please set:
14
-
15
- APXS2=/opt/apache2/bin/apxs
16
- -or-
17
- APXS2=/opt/apache2/bin/apxs2
18
-
19
- ...depending on whether your Apache installation's apxs is called 'apxs' or
20
- 'apxs2'.
21
-
22
- <b>Press Enter if you want to install Passenger against OS X's default Apache.</b>
23
- <b>Press Ctrl-C to abort this installer.</b>