passenger 4.0.41 → 4.0.42
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.
- checksums.yaml +8 -8
- checksums.yaml.gz.asc +7 -7
- data.tar.gz.asc +7 -7
- data/.travis.yml +3 -3
- data/CHANGELOG +26 -0
- data/build/agents.rb +1 -1
- data/build/apache2.rb +3 -0
- data/build/debian.rb +1 -1
- data/build/integration_tests.rb +4 -4
- data/build/nginx.rb +3 -0
- data/build/packaging.rb +3 -5
- data/build/preprocessor.rb +2 -1
- data/build/ruby_extension.rb +5 -5
- data/build/test_basics.rb +2 -1
- data/debian.template/control.template +9 -4
- data/debian.template/rules.template +16 -4
- data/dev/run_travis.sh +32 -8
- data/doc/Users guide Apache.txt +55 -10
- data/doc/Users guide Nginx.txt +10 -8
- data/doc/Users guide Standalone.txt +5 -2
- data/doc/users_guide_snippets/installation.txt +14 -0
- data/ext/common/ApplicationPool2/Process.h +8 -0
- data/ext/common/ApplicationPool2/Spawner.h +51 -1
- data/ext/common/Constants.h +1 -1
- data/ext/common/Utils/Curl.h +4 -0
- data/ext/common/agents/HelperAgent/RequestHandler.h +14 -2
- data/ext/common/agents/LoggingAgent/LoggingServer.h +4 -4
- data/ext/common/agents/LoggingAgent/RemoteSender.h +66 -5
- data/ext/nginx/StaticContentHandler.c +0 -7
- data/lib/phusion_passenger.rb +3 -3
- data/lib/phusion_passenger/config/about_command.rb +0 -4
- data/lib/phusion_passenger/config/build_native_support_command.rb +78 -0
- data/lib/phusion_passenger/config/detach_process_command.rb +0 -4
- data/lib/phusion_passenger/config/main.rb +12 -5
- data/lib/phusion_passenger/config/restart_app_command.rb +0 -4
- data/lib/phusion_passenger/config/validate_install_command.rb +0 -4
- data/lib/phusion_passenger/platform_info/compiler.rb +58 -41
- data/lib/phusion_passenger/platform_info/cxx_portability.rb +5 -0
- data/lib/phusion_passenger/standalone/command.rb +29 -10
- data/lib/phusion_passenger/standalone/help_command.rb +2 -2
- data/lib/phusion_passenger/standalone/start_command.rb +5 -1
- data/lib/phusion_passenger/utils/tee_input.rb +1 -0
- data/resources/mime.types +1 -1
- data/resources/oss-binaries.phusionpassenger.com.crt +124 -0
- data/resources/templates/apache2/deployment_example.txt.erb +2 -0
- data/resources/templates/standalone/config.erb +3 -1
- data/resources/templates/undisclosed_error.html.template +38 -1
- data/resources/union_station_gateway.crt +21 -0
- data/test/cxx/ApplicationPool2/SpawnerTestCases.cpp +34 -0
- data/test/cxx/RequestHandlerTest.cpp +10 -3
- data/test/cxx/TemplateTest.cpp +1 -1
- data/test/integration_tests/apache2_tests.rb +90 -106
- data/test/integration_tests/nginx_tests.rb +2 -0
- data/test/stub/rack/config.ru +7 -14
- data/test/stub/rack/library.rb +16 -0
- data/test/support/test_helper.rb +0 -3
- metadata +4 -80
- metadata.gz.asc +7 -7
- data/test/stub/rails2.3-mycook/Rakefile +0 -10
- data/test/stub/rails2.3-mycook/app/controllers/application_controller.rb +0 -12
- data/test/stub/rails2.3-mycook/app/controllers/recipes_controller.rb +0 -5
- data/test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb +0 -15
- data/test/stub/rails2.3-mycook/app/controllers/welcome_controller.rb +0 -71
- data/test/stub/rails2.3-mycook/app/helpers/application_helper.rb +0 -3
- data/test/stub/rails2.3-mycook/app/helpers/recipes_helper.rb +0 -2
- data/test/stub/rails2.3-mycook/app/helpers/test_helper.rb +0 -2
- data/test/stub/rails2.3-mycook/app/helpers/uploads_helper.rb +0 -2
- data/test/stub/rails2.3-mycook/app/helpers/welcome_helper.rb +0 -2
- data/test/stub/rails2.3-mycook/app/views/layouts/default.rhtml +0 -26
- data/test/stub/rails2.3-mycook/app/views/recipes/create.rhtml +0 -13
- data/test/stub/rails2.3-mycook/app/views/recipes/index.rhtml +0 -3
- data/test/stub/rails2.3-mycook/app/views/recipes/new.rhtml +0 -8
- data/test/stub/rails2.3-mycook/app/views/uploads/index.rhtml +0 -1
- data/test/stub/rails2.3-mycook/app/views/uploads/new.html.erb +0 -8
- data/test/stub/rails2.3-mycook/app/views/welcome/cached.rhtml +0 -1
- data/test/stub/rails2.3-mycook/app/views/welcome/index.rhtml +0 -20
- data/test/stub/rails2.3-mycook/config/boot.rb +0 -110
- data/test/stub/rails2.3-mycook/config/database.yml +0 -19
- data/test/stub/rails2.3-mycook/config/environment.rb +0 -61
- data/test/stub/rails2.3-mycook/config/environments/development.rb +0 -18
- data/test/stub/rails2.3-mycook/config/environments/production.rb +0 -19
- data/test/stub/rails2.3-mycook/config/initializers/inflections.rb +0 -10
- data/test/stub/rails2.3-mycook/config/initializers/mime_types.rb +0 -5
- data/test/stub/rails2.3-mycook/config/routes.rb +0 -38
- data/test/stub/rails2.3-mycook/log/useless.txt +0 -1
- data/test/stub/rails2.3-mycook/public/.htaccess +0 -42
- data/test/stub/rails2.3-mycook/public/404.html +0 -30
- data/test/stub/rails2.3-mycook/public/422.html +0 -30
- data/test/stub/rails2.3-mycook/public/500.html +0 -30
- data/test/stub/rails2.3-mycook/public/dispatch.cgi +0 -10
- data/test/stub/rails2.3-mycook/public/dispatch.fcgi +0 -24
- data/test/stub/rails2.3-mycook/public/dispatch.rb +0 -10
- data/test/stub/rails2.3-mycook/public/favicon.ico +0 -0
- data/test/stub/rails2.3-mycook/public/images/angrywizard.gif +0 -0
- data/test/stub/rails2.3-mycook/public/images/cookbook.gif +0 -0
- data/test/stub/rails2.3-mycook/public/images/header.png +0 -0
- data/test/stub/rails2.3-mycook/public/images/rails.png +0 -0
- data/test/stub/rails2.3-mycook/public/robots.txt +0 -5
- data/test/stub/rails2.3-mycook/public/uploads.html +0 -26
- data/test/stub/rails2.3-mycook/public/uploads/.gitignore +0 -0
- data/test/stub/rails2.3-mycook/public/welcome/cached.html +0 -26
- data/test/stub/rails2.3-mycook/script/about +0 -3
- data/test/stub/rails2.3-mycook/script/console +0 -3
- data/test/stub/rails2.3-mycook/script/dbconsole +0 -3
- data/test/stub/rails2.3-mycook/script/destroy +0 -3
- data/test/stub/rails2.3-mycook/script/generate +0 -3
- data/test/stub/rails2.3-mycook/script/performance/benchmarker +0 -3
- data/test/stub/rails2.3-mycook/script/performance/profiler +0 -3
- data/test/stub/rails2.3-mycook/script/performance/request +0 -3
- data/test/stub/rails2.3-mycook/script/plugin +0 -3
- data/test/stub/rails2.3-mycook/script/process/inspector +0 -3
- data/test/stub/rails2.3-mycook/script/process/reaper +0 -3
- data/test/stub/rails2.3-mycook/script/process/spawner +0 -3
- data/test/stub/rails2.3-mycook/script/runner +0 -3
- data/test/stub/rails2.3-mycook/script/server +0 -3
- data/test/stub/rails2.3-mycook/sites/some.site/public/uploads.html +0 -26
- data/test/stub/rails2.3-mycook/sites/some.site/public/welcome/cached.html +0 -26
- data/test/stub/rails2.3-mycook/tmp/cache/useless.txt +0 -1
- data/test/stub/rails2.3-mycook/tmp/pids/useless.txt +0 -1
- data/test/stub/rails2.3-mycook/tmp/sessions/useless.txt +0 -1
- data/test/stub/rails2.3-mycook/tmp/sockets/useless.txt +0 -1
- data/test/stub/vendor_rails/minimal/README +0 -1
- data/test/stub/vendor_rails/minimal/actionmailer/lib/action_mailer.rb +0 -0
- data/test/stub/vendor_rails/minimal/actionpack/lib/action_controller.rb +0 -22
- data/test/stub/vendor_rails/minimal/actionpack/lib/action_pack.rb +0 -0
- data/test/stub/vendor_rails/minimal/actionpack/lib/action_view.rb +0 -0
- data/test/stub/vendor_rails/minimal/activerecord/lib/active_record.rb +0 -7
- data/test/stub/vendor_rails/minimal/activeresource/lib/active_resource.rb +0 -0
- data/test/stub/vendor_rails/minimal/activesupport/lib/active_support.rb +0 -17
- data/test/stub/vendor_rails/minimal/activesupport/lib/active_support/whiny_nil.rb +0 -0
- data/test/stub/vendor_rails/minimal/railties/lib/dispatcher.rb +0 -0
- data/test/stub/vendor_rails/minimal/railties/lib/initializer.rb +0 -57
- data/test/stub/vendor_rails/minimal/railties/lib/ruby_version_check.rb +0 -1
- data/test/stub/zsfa/header.png +0 -0
- data/test/stub/zsfa/index.html +0 -14
- data/test/stub/zsfa/zsfa.png +0 -0
@@ -195,6 +195,7 @@ describe "Phusion Passenger for Nginx" do
|
|
195
195
|
@nginx.add_server do |server|
|
196
196
|
server[:server_name] = "1.passenger.test"
|
197
197
|
server[:root] = "#{PhusionPassenger.source_root}/test/stub"
|
198
|
+
server[:passenger_friendly_error_pages] = 'on'
|
198
199
|
server << %Q{
|
199
200
|
location ~ ^/subapp(/.*|$) {
|
200
201
|
alias #{@stub.full_app_root}/public$1;
|
@@ -234,6 +235,7 @@ describe "Phusion Passenger for Nginx" do
|
|
234
235
|
@nginx.add_server do |server|
|
235
236
|
server[:server_name] = "1.passenger.test"
|
236
237
|
server[:root] = "#{@stub.full_app_root}/public"
|
238
|
+
server[:passenger_friendly_error_pages] = "on"
|
237
239
|
server << %q{
|
238
240
|
location /crash_without_friendly_error_page {
|
239
241
|
passenger_enabled on;
|
data/test/stub/rack/config.ru
CHANGED
@@ -1,19 +1,6 @@
|
|
1
1
|
# encoding: binary
|
2
2
|
|
3
|
-
|
4
|
-
body = binary_string(body.to_s)
|
5
|
-
return [200, { "Content-Type" => "text/plain", "Content-Length" => body.size.to_s }, [body]]
|
6
|
-
end
|
7
|
-
|
8
|
-
if "".respond_to?(:force_encoding)
|
9
|
-
def binary_string(str)
|
10
|
-
return str.force_encoding("binary")
|
11
|
-
end
|
12
|
-
else
|
13
|
-
def binary_string(str)
|
14
|
-
return str
|
15
|
-
end
|
16
|
-
end
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + "/library")
|
17
4
|
|
18
5
|
app = lambda do |env|
|
19
6
|
case env['PATH_INFO']
|
@@ -40,6 +27,12 @@ app = lambda do |env|
|
|
40
27
|
body << "#{key} = #{value}\n"
|
41
28
|
end
|
42
29
|
text_response(body)
|
30
|
+
when '/system_env'
|
31
|
+
body = ''
|
32
|
+
ENV.sort.each do |key, value|
|
33
|
+
body << "#{key} = #{value}\n"
|
34
|
+
end
|
35
|
+
text_response(body)
|
43
36
|
when '/touch_file'
|
44
37
|
req = Rack::Request.new(env)
|
45
38
|
filename = req.params["file"]
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: binary
|
2
|
+
|
3
|
+
def text_response(body)
|
4
|
+
body = binary_string(body.to_s)
|
5
|
+
return [200, { "Content-Type" => "text/plain", "Content-Length" => body.size.to_s }, [body]]
|
6
|
+
end
|
7
|
+
|
8
|
+
if "".respond_to?(:force_encoding)
|
9
|
+
def binary_string(str)
|
10
|
+
return str.force_encoding("binary")
|
11
|
+
end
|
12
|
+
else
|
13
|
+
def binary_string(str)
|
14
|
+
return str
|
15
|
+
end
|
16
|
+
end
|
data/test/support/test_helper.rb
CHANGED
@@ -227,9 +227,6 @@ module TestHelper
|
|
227
227
|
"your hosts file.\n" <<
|
228
228
|
"Please add these to your /etc/hosts:\n\n" <<
|
229
229
|
"127.0.0.1 passenger.test\n" <<
|
230
|
-
"127.0.0.1 mycook.passenger.test\n" <<
|
231
|
-
"127.0.0.1 zsfa.passenger.test\n" <<
|
232
|
-
"127.0.0.1 norails.passenger.test\n" <<
|
233
230
|
"127.0.0.1 1.passenger.test 2.passenger.test 3.passenger.test\n" <<
|
234
231
|
"127.0.0.1 4.passenger.test 5.passenger.test 6.passenger.test\n" <<
|
235
232
|
"127.0.0.1 7.passenger.test 8.passenger.test 9.passenger.test\n"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: passenger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phusion - http://www.phusion.nl/
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -2363,6 +2363,7 @@ files:
|
|
2363
2363
|
- lib/phusion_passenger/classic_rails/thread_handler_extension.rb
|
2364
2364
|
- lib/phusion_passenger/common_library.rb
|
2365
2365
|
- lib/phusion_passenger/config/about_command.rb
|
2366
|
+
- lib/phusion_passenger/config/build_native_support_command.rb
|
2366
2367
|
- lib/phusion_passenger/config/command.rb
|
2367
2368
|
- lib/phusion_passenger/config/detach_process_command.rb
|
2368
2369
|
- lib/phusion_passenger/config/main.rb
|
@@ -2597,72 +2598,10 @@ files:
|
|
2597
2598
|
- test/stub/node/public/.gitignore
|
2598
2599
|
- test/stub/node/tmp/.gitignore
|
2599
2600
|
- test/stub/rack/config.ru
|
2601
|
+
- test/stub/rack/library.rb
|
2600
2602
|
- test/stub/rack/public/.gitignore
|
2601
2603
|
- test/stub/rack/start.rb
|
2602
2604
|
- test/stub/rack/tmp/.gitignore
|
2603
|
-
- test/stub/rails2.3-mycook/Rakefile
|
2604
|
-
- test/stub/rails2.3-mycook/app/controllers/application_controller.rb
|
2605
|
-
- test/stub/rails2.3-mycook/app/controllers/recipes_controller.rb
|
2606
|
-
- test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb
|
2607
|
-
- test/stub/rails2.3-mycook/app/controllers/welcome_controller.rb
|
2608
|
-
- test/stub/rails2.3-mycook/app/helpers/application_helper.rb
|
2609
|
-
- test/stub/rails2.3-mycook/app/helpers/recipes_helper.rb
|
2610
|
-
- test/stub/rails2.3-mycook/app/helpers/test_helper.rb
|
2611
|
-
- test/stub/rails2.3-mycook/app/helpers/uploads_helper.rb
|
2612
|
-
- test/stub/rails2.3-mycook/app/helpers/welcome_helper.rb
|
2613
|
-
- test/stub/rails2.3-mycook/app/views/layouts/default.rhtml
|
2614
|
-
- test/stub/rails2.3-mycook/app/views/recipes/create.rhtml
|
2615
|
-
- test/stub/rails2.3-mycook/app/views/recipes/index.rhtml
|
2616
|
-
- test/stub/rails2.3-mycook/app/views/recipes/new.rhtml
|
2617
|
-
- test/stub/rails2.3-mycook/app/views/uploads/index.rhtml
|
2618
|
-
- test/stub/rails2.3-mycook/app/views/uploads/new.html.erb
|
2619
|
-
- test/stub/rails2.3-mycook/app/views/welcome/cached.rhtml
|
2620
|
-
- test/stub/rails2.3-mycook/app/views/welcome/index.rhtml
|
2621
|
-
- test/stub/rails2.3-mycook/config/boot.rb
|
2622
|
-
- test/stub/rails2.3-mycook/config/database.yml
|
2623
|
-
- test/stub/rails2.3-mycook/config/environment.rb
|
2624
|
-
- test/stub/rails2.3-mycook/config/environments/development.rb
|
2625
|
-
- test/stub/rails2.3-mycook/config/environments/production.rb
|
2626
|
-
- test/stub/rails2.3-mycook/config/initializers/inflections.rb
|
2627
|
-
- test/stub/rails2.3-mycook/config/initializers/mime_types.rb
|
2628
|
-
- test/stub/rails2.3-mycook/config/routes.rb
|
2629
|
-
- test/stub/rails2.3-mycook/log/useless.txt
|
2630
|
-
- test/stub/rails2.3-mycook/public/.htaccess
|
2631
|
-
- test/stub/rails2.3-mycook/public/404.html
|
2632
|
-
- test/stub/rails2.3-mycook/public/422.html
|
2633
|
-
- test/stub/rails2.3-mycook/public/500.html
|
2634
|
-
- test/stub/rails2.3-mycook/public/dispatch.cgi
|
2635
|
-
- test/stub/rails2.3-mycook/public/dispatch.fcgi
|
2636
|
-
- test/stub/rails2.3-mycook/public/dispatch.rb
|
2637
|
-
- test/stub/rails2.3-mycook/public/favicon.ico
|
2638
|
-
- test/stub/rails2.3-mycook/public/images/angrywizard.gif
|
2639
|
-
- test/stub/rails2.3-mycook/public/images/cookbook.gif
|
2640
|
-
- test/stub/rails2.3-mycook/public/images/header.png
|
2641
|
-
- test/stub/rails2.3-mycook/public/images/rails.png
|
2642
|
-
- test/stub/rails2.3-mycook/public/robots.txt
|
2643
|
-
- test/stub/rails2.3-mycook/public/uploads.html
|
2644
|
-
- test/stub/rails2.3-mycook/public/uploads/.gitignore
|
2645
|
-
- test/stub/rails2.3-mycook/public/welcome/cached.html
|
2646
|
-
- test/stub/rails2.3-mycook/script/about
|
2647
|
-
- test/stub/rails2.3-mycook/script/console
|
2648
|
-
- test/stub/rails2.3-mycook/script/dbconsole
|
2649
|
-
- test/stub/rails2.3-mycook/script/destroy
|
2650
|
-
- test/stub/rails2.3-mycook/script/generate
|
2651
|
-
- test/stub/rails2.3-mycook/script/performance/benchmarker
|
2652
|
-
- test/stub/rails2.3-mycook/script/performance/profiler
|
2653
|
-
- test/stub/rails2.3-mycook/script/performance/request
|
2654
|
-
- test/stub/rails2.3-mycook/script/plugin
|
2655
|
-
- test/stub/rails2.3-mycook/script/process/inspector
|
2656
|
-
- test/stub/rails2.3-mycook/script/process/reaper
|
2657
|
-
- test/stub/rails2.3-mycook/script/process/spawner
|
2658
|
-
- test/stub/rails2.3-mycook/script/runner
|
2659
|
-
- test/stub/rails2.3-mycook/script/server
|
2660
|
-
- test/stub/rails2.3-mycook/sites/some.site/public/uploads.html
|
2661
|
-
- test/stub/rails2.3-mycook/sites/some.site/public/welcome/cached.html
|
2662
|
-
- test/stub/rails2.3-mycook/tmp/cache/useless.txt
|
2663
|
-
- test/stub/rails2.3-mycook/tmp/pids/useless.txt
|
2664
|
-
- test/stub/rails2.3-mycook/tmp/sessions/useless.txt
|
2665
|
-
- test/stub/rails2.3-mycook/tmp/sockets/useless.txt
|
2666
2605
|
- test/stub/rails2.3/Rakefile
|
2667
2606
|
- test/stub/rails2.3/app/controllers/application_controller.rb
|
2668
2607
|
- test/stub/rails2.3/app/controllers/bar_controller_1.rb
|
@@ -2893,24 +2832,9 @@ files:
|
|
2893
2832
|
- test/stub/rails4.0/vendor/assets/stylesheets/.keep
|
2894
2833
|
- test/stub/start_error.pl
|
2895
2834
|
- test/stub/upload_data.txt
|
2896
|
-
- test/stub/vendor_rails/minimal/README
|
2897
|
-
- test/stub/vendor_rails/minimal/actionmailer/lib/action_mailer.rb
|
2898
|
-
- test/stub/vendor_rails/minimal/actionpack/lib/action_controller.rb
|
2899
|
-
- test/stub/vendor_rails/minimal/actionpack/lib/action_pack.rb
|
2900
|
-
- test/stub/vendor_rails/minimal/actionpack/lib/action_view.rb
|
2901
|
-
- test/stub/vendor_rails/minimal/activerecord/lib/active_record.rb
|
2902
|
-
- test/stub/vendor_rails/minimal/activeresource/lib/active_resource.rb
|
2903
|
-
- test/stub/vendor_rails/minimal/activesupport/lib/active_support.rb
|
2904
|
-
- test/stub/vendor_rails/minimal/activesupport/lib/active_support/whiny_nil.rb
|
2905
|
-
- test/stub/vendor_rails/minimal/railties/lib/dispatcher.rb
|
2906
|
-
- test/stub/vendor_rails/minimal/railties/lib/initializer.rb
|
2907
|
-
- test/stub/vendor_rails/minimal/railties/lib/ruby_version_check.rb
|
2908
2835
|
- test/stub/wsgi/passenger_wsgi.py
|
2909
2836
|
- test/stub/wsgi/public/.gitignore
|
2910
2837
|
- test/stub/wsgi/tmp/.gitignore
|
2911
|
-
- test/stub/zsfa/header.png
|
2912
|
-
- test/stub/zsfa/index.html
|
2913
|
-
- test/stub/zsfa/zsfa.png
|
2914
2838
|
- test/support/allocate_memory.c
|
2915
2839
|
- test/support/apache2_controller.rb
|
2916
2840
|
- test/support/multipart.rb
|
metadata.gz.asc
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
|
3
3
|
Comment: GPGTools - http://gpgtools.org
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=
|
5
|
+
iQEcBAABAgAGBQJTagHhAAoJECrHRaUKISqMD6cH+wWb6/mBkguwed9UWsjY+LC8
|
6
|
+
42sUBsesd5hlxmVqjFN0jHxuPEE8tpcZSVBTrL3ZUZ1Ie05Eqen7Hv4MwkJvsPxz
|
7
|
+
lUABjMsO8pWsK7Gy+epXYGsfzY47Tgeyc2VaXZsx5BlRRxzTQrnH3vKyPSaRKc12
|
8
|
+
GxZs3I8up/rKek/R+WAkQdiVIu4ciQ7VSRET4QHYzNU4oCAgecSgh8SqXPUbqcHU
|
9
|
+
lt0wSGudNa5o6NrIAkiRJ28mITiEfKHuuDdBV7OuGSeOT6tjSINL3UbANPb81O3x
|
10
|
+
hOLafWUnPmfTgXCv3SFycp7mdIwTOROnx4c/kQfPXXln02TlCYjzkFVHFHG2Lrw=
|
11
|
+
=fwu8
|
12
12
|
-----END PGP SIGNATURE-----
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
|
-
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
3
|
-
|
4
|
-
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
|
5
|
-
|
6
|
-
require 'rake'
|
7
|
-
require 'rake/testtask'
|
8
|
-
require 'rake/rdoctask'
|
9
|
-
|
10
|
-
require 'tasks/rails'
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# Filters added to this controller apply to all controllers in the application.
|
2
|
-
# Likewise, all the methods added will be available for all controllers.
|
3
|
-
|
4
|
-
class ApplicationController < ActionController::Base
|
5
|
-
helper :all # include all helpers, all the time
|
6
|
-
|
7
|
-
# See ActionController::RequestForgeryProtection for details
|
8
|
-
# Uncomment the :secret if you're not using the cookie session store
|
9
|
-
#protect_from_forgery # :secret => '7eb64d7b9c847975d50f1923a12e4896'
|
10
|
-
|
11
|
-
layout 'default'
|
12
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
class UploadsController < ApplicationController
|
2
|
-
caches_page :index
|
3
|
-
|
4
|
-
def create
|
5
|
-
headers["Content-Type"] = "text/plain"
|
6
|
-
render :text =>
|
7
|
-
"name 1 = " + params[:upload][:name1] + "\n" +
|
8
|
-
"name 2 = " + params[:upload][:name2] + "\n" +
|
9
|
-
"data = " + params[:upload][:data].read
|
10
|
-
end
|
11
|
-
|
12
|
-
def single
|
13
|
-
render :text => params[:foo]
|
14
|
-
end
|
15
|
-
end
|
@@ -1,71 +0,0 @@
|
|
1
|
-
class WelcomeController < ApplicationController
|
2
|
-
caches_page :cached
|
3
|
-
|
4
|
-
def parameters_test
|
5
|
-
headers["Content-Type"] = "text/plain"
|
6
|
-
render :text => params.to_xml
|
7
|
-
end
|
8
|
-
|
9
|
-
def headers_test
|
10
|
-
headers["X-Foo"] = "Bar"
|
11
|
-
render :nothing => true
|
12
|
-
end
|
13
|
-
|
14
|
-
def touch
|
15
|
-
File.unlink('public/touch.txt') rescue nil
|
16
|
-
File.open('public/touch.txt', 'w') do end
|
17
|
-
render :nothing => true
|
18
|
-
end
|
19
|
-
|
20
|
-
def in_passenger
|
21
|
-
render :text => !!defined?(PhusionPassenger)
|
22
|
-
end
|
23
|
-
|
24
|
-
def rails_env
|
25
|
-
render :text => RAILS_ENV
|
26
|
-
end
|
27
|
-
|
28
|
-
def backtrace
|
29
|
-
render :text => caller.join("\n")
|
30
|
-
end
|
31
|
-
|
32
|
-
def passenger_name
|
33
|
-
render :text => Passenger.new.name
|
34
|
-
end
|
35
|
-
|
36
|
-
def terminate
|
37
|
-
exit!
|
38
|
-
end
|
39
|
-
|
40
|
-
def show_id
|
41
|
-
render :text => params[:id]
|
42
|
-
end
|
43
|
-
|
44
|
-
def environment
|
45
|
-
text = ""
|
46
|
-
ENV.each_pair do |key, value|
|
47
|
-
text << "#{key} = #{value}\n"
|
48
|
-
end
|
49
|
-
render :text => text
|
50
|
-
end
|
51
|
-
|
52
|
-
def cgi_environment
|
53
|
-
text = ""
|
54
|
-
request.headers.each_pair do |key, value|
|
55
|
-
text << "#{key} = #{value}\n"
|
56
|
-
end
|
57
|
-
render :text => text
|
58
|
-
end
|
59
|
-
|
60
|
-
def request_uri
|
61
|
-
render :text => request.request_uri
|
62
|
-
end
|
63
|
-
|
64
|
-
def sleep_until_exists
|
65
|
-
File.open("#{RAILS_ROOT}/waiting_#{params[:name]}", 'w')
|
66
|
-
while !File.exist?("#{RAILS_ROOT}/#{params[:name]}")
|
67
|
-
sleep 0.1
|
68
|
-
end
|
69
|
-
render :nothing => true
|
70
|
-
end
|
71
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
4
|
-
<title>MyCook™ beta</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body {
|
7
|
-
background: url('<%= image_path('cookbook.gif') %>');
|
8
|
-
}
|
9
|
-
|
10
|
-
#content {
|
11
|
-
margin-top: 2em;
|
12
|
-
margin-left: 20%;
|
13
|
-
margin-right: 20%;
|
14
|
-
padding: 1em;
|
15
|
-
border: solid 5px orange;
|
16
|
-
background: white;
|
17
|
-
}
|
18
|
-
</style>
|
19
|
-
</head>
|
20
|
-
|
21
|
-
<body>
|
22
|
-
<div id="content">
|
23
|
-
<%= yield %>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<h1>Uh oh...</h1>
|
2
|
-
|
3
|
-
<p>
|
4
|
-
Have we already told you that MyCook™ is currently in beta? We haven't implemented saving of recipes yet!
|
5
|
-
But for your information, this is what you submitted:
|
6
|
-
</p>
|
7
|
-
|
8
|
-
<ul>
|
9
|
-
<li>HTTP method: <%=h request.method %></li>
|
10
|
-
<li>Name: <%=h params[:recipe][:name] %></li>
|
11
|
-
<li>Instructions: <%=h params[:recipe][:instructions] %></li>
|
12
|
-
</ul>
|
13
|
-
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<h1>Create a new recipe</h1>
|
2
|
-
<% form_tag(recipes_url, :method => :post) do %>
|
3
|
-
<p>Name:<br><%= text_field :recipe, :name %></p>
|
4
|
-
<p>Instructions:<br><%= text_area :recipe, :instructions, :rows => 15, :cols => 60 %></p>
|
5
|
-
<p>
|
6
|
-
<%= submit_tag('Submit') %>
|
7
|
-
</p>
|
8
|
-
<% end %>
|
@@ -1 +0,0 @@
|
|
1
|
-
This content should not be shown because of page caching.
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<h1>Upload something useless</h1>
|
2
|
-
|
3
|
-
<% form_tag(uploads_path, { :method => :post, :multipart => true }) do %>
|
4
|
-
<p>Name 1:<br><%= text_field :upload, :name1 %></p>
|
5
|
-
<p>Name 2:<br><%= text_field :upload, :name2 %></p>
|
6
|
-
<p>File:<br><%= file_field :upload, :data %></p>
|
7
|
-
<%= submit_tag 'Upload!' %>
|
8
|
-
<% end %>
|
@@ -1 +0,0 @@
|
|
1
|
-
This content should never be displayed because of page caching.
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<h1>Welcome to MyCook™</h1>
|
2
|
-
<h2>Your personal online cookbook</h1>
|
3
|
-
|
4
|
-
<%= image_tag('angrywizard.gif', :style => 'float: right') %>
|
5
|
-
|
6
|
-
<p>We're currently in <strike>alpha</strike> <b>beta</b>. These are the things you can currently do:</p>
|
7
|
-
<ul>
|
8
|
-
<li><%= link_to 'Create a new recipe', new_recipe_url %></li>
|
9
|
-
<li><%= link_to 'See all recipes', recipes_url %></li>
|
10
|
-
<li><%= link_to 'Upload something useless', new_upload_url %></li>
|
11
|
-
</ul>
|
12
|
-
|
13
|
-
<p>Oh and you know what?</p>
|
14
|
-
|
15
|
-
<div style="font-family: 'Times New Roman'; font-size: 40pt; color: red">
|
16
|
-
<blink>We love Zed!</blink>
|
17
|
-
<marquee behavior="alternate" scrolldelay="20" scrollamount="6">He is our hero!</marquee>
|
18
|
-
</div>
|
19
|
-
|
20
|
-
<div><%= image_tag('header.png') %></div>
|