passenger 5.0.4 → 5.0.5
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/.editorconfig +10 -0
- data/CHANGELOG +21 -0
- data/build/agents.rb +2 -2
- data/build/apache2.rb +6 -5
- data/build/common_library.rb +22 -7
- data/build/cxx_tests.rb +0 -3
- data/build/misc.rb +1 -1
- data/dev/parse_file_descriptor_log +119 -0
- data/doc/CloudLicensingConfiguration.html +387 -0
- data/doc/Design and Architecture.html +2430 -0
- data/doc/Packaging.html +488 -0
- data/doc/Security of user switching support.html +1833 -0
- data/doc/ServerOptimizationGuide.html +659 -0
- data/doc/ServerOptimizationGuide.txt.md +8 -0
- data/doc/Users guide Apache.html +9116 -0
- data/doc/Users guide Apache.idmap.txt +6 -2
- data/doc/Users guide Apache.txt +26 -7
- data/doc/Users guide Nginx.html +9025 -0
- data/doc/Users guide Nginx.idmap.txt +7 -3
- data/doc/Users guide Nginx.txt +29 -6
- data/doc/Users guide Standalone.html +3983 -0
- data/doc/Users guide.html +1748 -0
- data/doc/users_guide_snippets/installation.txt +4 -4
- data/ext/apache2/Configuration.cpp +16 -5
- data/ext/apache2/Configuration.hpp +4 -2
- data/ext/apache2/Hooks.cpp +44 -19
- data/ext/boost/libs/thread/src/pthread/once.cpp +2 -0
- data/ext/boost/libs/thread/src/pthread/once_atomic.cpp +6 -0
- data/ext/common/AgentsStarter.h +3 -2
- data/ext/common/ApplicationPool2/DirectSpawner.h +14 -4
- data/ext/common/ApplicationPool2/DummySpawner.h +12 -7
- data/ext/common/ApplicationPool2/Implementation.cpp +1 -1
- data/ext/common/ApplicationPool2/Process.h +2 -1
- data/ext/common/ApplicationPool2/Session.h +6 -6
- data/ext/common/ApplicationPool2/SmartSpawner.h +19 -4
- data/ext/common/ApplicationPool2/Socket.h +59 -27
- data/ext/common/ApplicationPool2/Spawner.h +2 -2
- data/ext/common/BackgroundEventLoop.cpp +6 -1
- data/ext/common/Constants.h +1 -1
- data/ext/common/EventedClient.h +1 -1
- data/ext/common/EventedServer.h +2 -2
- data/ext/common/FileDescriptor.h +25 -6
- data/ext/common/Logging.cpp +107 -52
- data/ext/common/Logging.h +146 -19
- data/ext/common/MessageClient.h +2 -2
- data/ext/common/MessageServer.h +3 -2
- data/ext/common/RandomGenerator.h +8 -7
- data/ext/common/SafeLibev.h +5 -1
- data/ext/common/ServerKit/AcceptLoadBalancer.h +9 -4
- data/ext/common/ServerKit/FdSinkChannel.h +5 -2
- data/ext/common/ServerKit/FdSourceChannel.h +5 -2
- data/ext/common/ServerKit/FileBufferedChannel.h +2 -0
- data/ext/common/ServerKit/FileBufferedFdSinkChannel.h +7 -2
- data/ext/common/ServerKit/HttpServer.h +6 -0
- data/ext/common/ServerKit/Server.h +40 -3
- data/ext/common/StaticString.h +20 -0
- data/ext/common/UnionStation/Connection.h +3 -1
- data/ext/common/UnionStation/Core.h +6 -4
- data/ext/common/Utils.cpp +4 -3
- data/ext/common/Utils/DateParsing.h +19 -5
- data/ext/common/Utils/FastStringStream.h +183 -0
- data/ext/common/Utils/IOUtils.cpp +47 -28
- data/ext/common/Utils/IOUtils.h +56 -12
- data/ext/common/Utils/MessagePassing.h +3 -3
- data/ext/common/Utils/ProcessMetricsCollector.h +2 -2
- data/ext/common/Utils/ScopeGuard.h +16 -5
- data/ext/common/Utils/SpeedMeter.h +2 -2
- data/ext/common/Utils/StrIntUtils.cpp +6 -6
- data/ext/common/Utils/StrIntUtils.h +2 -1
- data/ext/common/agents/Base.cpp +56 -4
- data/ext/common/agents/Base.h +2 -1
- data/ext/common/agents/HelperAgent/AdminServer.h +122 -11
- data/ext/common/agents/HelperAgent/Main.cpp +16 -5
- data/ext/common/agents/HelperAgent/OptionParser.h +7 -1
- data/ext/common/agents/HelperAgent/RequestHandler.h +1 -1
- data/ext/common/agents/HelperAgent/RequestHandler/Hooks.cpp +10 -1
- data/ext/common/agents/HelperAgent/RequestHandler/Request.h +8 -0
- data/ext/common/agents/HelperAgent/RequestHandler/TurboCaching.h +4 -3
- data/ext/common/agents/LoggingAgent/AdminServer.h +57 -11
- data/ext/common/agents/LoggingAgent/LoggingServer.h +3 -3
- data/ext/common/agents/LoggingAgent/Main.cpp +11 -3
- data/ext/common/agents/Watchdog/AdminServer.h +53 -11
- data/ext/common/agents/Watchdog/AgentWatcher.cpp +3 -3
- data/ext/common/agents/Watchdog/Main.cpp +13 -6
- data/ext/libeio/ecb.h +1 -1
- data/ext/libev/ev.c +13 -1
- data/ext/libev/ev.h +3 -0
- data/ext/nginx/Configuration.c +28 -6
- data/ext/nginx/Configuration.h +2 -1
- data/ext/nginx/ngx_http_passenger_module.c +5 -4
- data/ext/oxt/dynamic_thread_group.hpp +38 -5
- data/lib/phusion_passenger.rb +1 -1
- data/lib/phusion_passenger/common_library.rb +9 -5
- data/lib/phusion_passenger/config/reopen_logs_command.rb +2 -2
- data/lib/phusion_passenger/packaging.rb +23 -37
- data/passenger.gemspec +21 -21
- metadata +4 -453
- metadata.gz.asc +7 -7
- data/.gitignore +0 -68
- data/.travis.yml +0 -16
- data/Gemfile +0 -17
- data/Gemfile.lock +0 -39
- data/Vagrantfile +0 -54
- data/debian.template/README.Debian +0 -15
- data/debian.template/changelog +0 -316
- data/debian.template/compat +0 -1
- data/debian.template/control.erb +0 -91
- data/debian.template/copyright +0 -385
- data/debian.template/libapache2-mod-passenger.install +0 -3
- data/debian.template/libapache2-mod-passenger.postinst +0 -36
- data/debian.template/libapache2-mod-passenger.prerm +0 -15
- data/debian.template/locations.ini.erb +0 -14
- data/debian.template/passenger-dev.install.erb +0 -3
- data/debian.template/passenger-doc.install.erb +0 -2
- data/debian.template/passenger.conf +0 -6
- data/debian.template/passenger.docs +0 -4
- data/debian.template/passenger.install.erb +0 -14
- data/debian.template/passenger.load +0 -3
- data/debian.template/passenger.manpages +0 -3
- data/debian.template/patches/series +0 -0
- data/debian.template/rules.erb +0 -76
- data/debian.template/source/format +0 -1
- data/ext/common/EventedBufferedInput.h +0 -458
- data/packaging/rpm/LICENSE.txt +0 -19
- data/packaging/rpm/Makefile +0 -13
- data/packaging/rpm/README.md +0 -41
- data/packaging/rpm/Vagrantfile +0 -38
- data/packaging/rpm/Vagrantfile.centos +0 -30
- data/packaging/rpm/build +0 -170
- data/packaging/rpm/create_project +0 -41
- data/packaging/rpm/git_update +0 -88
- data/packaging/rpm/image/Dockerfile +0 -37
- data/packaging/rpm/image/Gemfile +0 -3
- data/packaging/rpm/image/Gemfile.lock +0 -12
- data/packaging/rpm/image/RPM-GPG-KEY-amazon-ga +0 -19
- data/packaging/rpm/image/amazon2014-i386.cfg +0 -96
- data/packaging/rpm/image/amazon2014-x86_64.cfg +0 -96
- data/packaging/rpm/image/site-defaults.cfg +0 -168
- data/packaging/rpm/internal/build_tasks.rb +0 -238
- data/packaging/rpm/internal/dummygpg +0 -11
- data/packaging/rpm/internal/exec_build +0 -42
- data/packaging/rpm/internal/get_distro_arch +0 -14
- data/packaging/rpm/internal/get_distro_id +0 -10
- data/packaging/rpm/internal/git_update +0 -27
- data/packaging/rpm/internal/inituidgid +0 -17
- data/packaging/rpm/internal/my_init +0 -344
- data/packaging/rpm/internal/python27 +0 -3
- data/packaging/rpm/internal/repo_update +0 -46
- data/packaging/rpm/internal/setuser +0 -26
- data/packaging/rpm/internal/tracking_helper +0 -40
- data/packaging/rpm/jenkins_release +0 -99
- data/packaging/rpm/lib/build_tasks_support.rb +0 -402
- data/packaging/rpm/lib/preprocessor.rb +0 -341
- data/packaging/rpm/nginx_spec/404.html +0 -119
- data/packaging/rpm/nginx_spec/50x.html +0 -119
- data/packaging/rpm/nginx_spec/index.html +0 -116
- data/packaging/rpm/nginx_spec/nginx-auto-cc-gcc.patch +0 -13
- data/packaging/rpm/nginx_spec/nginx-logo.png +0 -0
- data/packaging/rpm/nginx_spec/nginx-upgrade +0 -13
- data/packaging/rpm/nginx_spec/nginx-upgrade.8 +0 -151
- data/packaging/rpm/nginx_spec/nginx.conf +0 -131
- data/packaging/rpm/nginx_spec/nginx.init +0 -144
- data/packaging/rpm/nginx_spec/nginx.logrotate +0 -13
- data/packaging/rpm/nginx_spec/nginx.service +0 -15
- data/packaging/rpm/nginx_spec/nginx.spec.template +0 -560
- data/packaging/rpm/nginx_spec/nginx.sysconfig +0 -4
- data/packaging/rpm/nginx_spec/passenger.conf +0 -9
- data/packaging/rpm/nginx_spec/poweredby.png +0 -0
- data/packaging/rpm/passenger_spec/apache-passenger.conf.in +0 -26
- data/packaging/rpm/passenger_spec/config.json +0 -30
- data/packaging/rpm/passenger_spec/passenger.logrotate +0 -7
- data/packaging/rpm/passenger_spec/passenger.spec.template +0 -478
- data/packaging/rpm/passenger_spec/passenger_dynamic_thread_group.patch +0 -16
- data/packaging/rpm/passenger_spec/passenger_tests_default_config_example.patch +0 -44
- data/packaging/rpm/passenger_spec/rubygem-passenger-4.0.18-GLIBC_HAVE_LONG_LONG.patch +0 -21
- data/packaging/rpm/repo_update +0 -114
- data/packaging/rpm/setup-system +0 -61
- data/packaging/rpm/shell +0 -10
- data/test/.rspec +0 -4
- data/test/config.json.example +0 -42
- data/test/config.json.rpm-automation +0 -15
- data/test/config.json.travis +0 -15
- data/test/config.json.vagrant +0 -30
- data/test/cxx/ApplicationPool2/DirectSpawnerTest.cpp +0 -124
- data/test/cxx/ApplicationPool2/OptionsTest.cpp +0 -30
- data/test/cxx/ApplicationPool2/PoolTest.cpp +0 -2062
- data/test/cxx/ApplicationPool2/ProcessTest.cpp +0 -130
- data/test/cxx/ApplicationPool2/SmartSpawnerTest.cpp +0 -243
- data/test/cxx/ApplicationPool2/SpawnerTestCases.cpp +0 -823
- data/test/cxx/BufferedIOTest.cpp +0 -364
- data/test/cxx/CachedFileStatTest.cpp +0 -402
- data/test/cxx/CxxTestMain.cpp +0 -181
- data/test/cxx/DataStructures/LStringTest.cpp +0 -275
- data/test/cxx/DataStructures/StringKeyTableTest.cpp +0 -199
- data/test/cxx/DateParsingTest.cpp +0 -75
- data/test/cxx/DechunkerTest.cpp +0 -250
- data/test/cxx/EventedBufferedInputTest.cpp +0 -758
- data/test/cxx/EventedClientTest.cpp +0 -523
- data/test/cxx/FileChangeCheckerTest.cpp +0 -331
- data/test/cxx/FileDescriptorTest.cpp +0 -69
- data/test/cxx/FilterSupportTest.cpp +0 -433
- data/test/cxx/IOUtilsTest.cpp +0 -861
- data/test/cxx/MemoryKit/MbufTest.cpp +0 -213
- data/test/cxx/MessageIOTest.cpp +0 -360
- data/test/cxx/MessagePassingTest.cpp +0 -81
- data/test/cxx/MessageReadersWritersTest.cpp +0 -576
- data/test/cxx/MessageServerTest.cpp +0 -393
- data/test/cxx/ProcessMetricsCollectorTest.cpp +0 -123
- data/test/cxx/RequestHandlerTest.cpp +0 -1463
- data/test/cxx/ResponseCacheTest.cpp +0 -322
- data/test/cxx/ServerKit/ChannelTest.cpp +0 -1467
- data/test/cxx/ServerKit/CookieUtilsTest.cpp +0 -274
- data/test/cxx/ServerKit/FileBufferedChannelTest.cpp +0 -992
- data/test/cxx/ServerKit/HeaderTableTest.cpp +0 -177
- data/test/cxx/ServerKit/HttpServerTest.cpp +0 -1580
- data/test/cxx/ServerKit/ServerTest.cpp +0 -408
- data/test/cxx/StaticStringTest.cpp +0 -220
- data/test/cxx/StringMapTest.cpp +0 -131
- data/test/cxx/SystemTimeTest.cpp +0 -37
- data/test/cxx/TemplateTest.cpp +0 -118
- data/test/cxx/TestSupport.cpp +0 -207
- data/test/cxx/TestSupport.h +0 -333
- data/test/cxx/UnionStationTest.cpp +0 -741
- data/test/cxx/Utils/StrIntUtilsTest.cpp +0 -39
- data/test/cxx/UtilsTest.cpp +0 -672
- data/test/cxx/VariantMapTest.cpp +0 -191
- data/test/gdbinit.example +0 -34
- data/test/integration_tests/apache2_tests.rb +0 -585
- data/test/integration_tests/downloaded_binaries_tests.rb +0 -185
- data/test/integration_tests/native_packaging_spec.rb +0 -368
- data/test/integration_tests/nginx_tests.rb +0 -402
- data/test/integration_tests/shared/example_webapp_tests.rb +0 -289
- data/test/integration_tests/source_packaging_test.rb +0 -201
- data/test/integration_tests/spec_helper.rb +0 -22
- data/test/integration_tests/standalone_tests.rb +0 -392
- data/test/node/line_reader_spec.js +0 -338
- data/test/node/spec_helper.js +0 -65
- data/test/oxt/backtrace_test.cpp +0 -88
- data/test/oxt/counter.hpp +0 -55
- data/test/oxt/dynamic_thread_group_test.cpp +0 -131
- data/test/oxt/oxt_test_main.cpp +0 -27
- data/test/oxt/spin_lock_test.cpp +0 -59
- data/test/oxt/syscall_interruption_test.cpp +0 -39
- data/test/ruby/debug_logging_spec.rb +0 -145
- data/test/ruby/message_channel_spec.rb +0 -196
- data/test/ruby/rack/loader_spec.rb +0 -42
- data/test/ruby/rack/preloader_spec.rb +0 -48
- data/test/ruby/rails3.0/loader_spec.rb +0 -26
- data/test/ruby/rails3.0/preloader_spec.rb +0 -32
- data/test/ruby/rails3.1/loader_spec.rb +0 -26
- data/test/ruby/rails3.1/preloader_spec.rb +0 -32
- data/test/ruby/rails3.2/loader_spec.rb +0 -26
- data/test/ruby/rails3.2/preloader_spec.rb +0 -32
- data/test/ruby/rails4.0/loader_spec.rb +0 -28
- data/test/ruby/rails4.0/preloader_spec.rb +0 -34
- data/test/ruby/rails4.1/loader_spec.rb +0 -28
- data/test/ruby/rails4.1/preloader_spec.rb +0 -34
- data/test/ruby/request_handler_spec.rb +0 -747
- data/test/ruby/shared/loader_sharedspec.rb +0 -247
- data/test/ruby/shared/rails/union_station_extensions_sharedspec.rb +0 -357
- data/test/ruby/shared/ruby_loader_sharedspec.rb +0 -55
- data/test/ruby/spec_helper.rb +0 -114
- data/test/ruby/standalone/runtime_installer_spec.rb +0 -402
- data/test/ruby/union_station_spec.rb +0 -288
- data/test/ruby/utils/file_system_watcher_spec.rb +0 -229
- data/test/ruby/utils/hosts_file_parser.rb +0 -258
- data/test/ruby/utils/tee_input_spec.rb +0 -235
- data/test/ruby/utils/unseekable_socket_spec.rb +0 -66
- data/test/ruby/utils_spec.rb +0 -41
- data/test/stub/apache2/httpd.conf.erb +0 -122
- data/test/stub/apache2/mime.types +0 -748
- data/test/stub/garbage1.dat +0 -0
- data/test/stub/garbage2.dat +0 -0
- data/test/stub/garbage3.dat +0 -0
- data/test/stub/http_request.yml +0 -23
- data/test/stub/index.html +0 -1
- data/test/stub/nginx/koi-utf +0 -109
- data/test/stub/nginx/koi-win +0 -103
- data/test/stub/nginx/mime.types +0 -70
- data/test/stub/nginx/nginx.conf.erb +0 -70
- data/test/stub/nginx/win-utf +0 -126
- data/test/stub/node/app.js +0 -133
- data/test/stub/node/public/.gitignore +0 -0
- data/test/stub/node/tmp/.gitignore +0 -0
- data/test/stub/rack/config.ru +0 -95
- data/test/stub/rack/library.rb +0 -16
- data/test/stub/rack/public/.gitignore +0 -0
- data/test/stub/rack/start.rb +0 -52
- data/test/stub/rack/tmp/.gitignore +0 -0
- data/test/stub/rails3.0/.gitignore +0 -4
- data/test/stub/rails3.0/Gemfile +0 -22
- data/test/stub/rails3.0/Gemfile.lock +0 -80
- data/test/stub/rails3.0/Rakefile +0 -10
- data/test/stub/rails3.0/app/controllers/application_controller.rb +0 -4
- data/test/stub/rails3.0/app/helpers/application_helper.rb +0 -2
- data/test/stub/rails3.0/app/views/layouts/application.html.erb +0 -14
- data/test/stub/rails3.0/config.ru +0 -4
- data/test/stub/rails3.0/config/application.rb +0 -48
- data/test/stub/rails3.0/config/boot.rb +0 -13
- data/test/stub/rails3.0/config/database.yml +0 -22
- data/test/stub/rails3.0/config/environment.rb +0 -5
- data/test/stub/rails3.0/config/environments/development.rb +0 -19
- data/test/stub/rails3.0/config/environments/production.rb +0 -48
- data/test/stub/rails3.0/config/environments/test.rb +0 -32
- data/test/stub/rails3.0/config/initializers/backtrace_silencers.rb +0 -7
- data/test/stub/rails3.0/config/initializers/inflections.rb +0 -10
- data/test/stub/rails3.0/config/initializers/mime_types.rb +0 -5
- data/test/stub/rails3.0/config/initializers/passenger.rb +0 -2
- data/test/stub/rails3.0/config/initializers/secret_token.rb +0 -7
- data/test/stub/rails3.0/config/initializers/session_store.rb +0 -8
- data/test/stub/rails3.0/config/locales/en.yml +0 -5
- data/test/stub/rails3.0/config/routes.rb +0 -58
- data/test/stub/rails3.0/db/seeds.rb +0 -7
- data/test/stub/rails3.0/doc/README_FOR_APP +0 -2
- data/test/stub/rails3.0/lib/tasks/.gitkeep +0 -0
- data/test/stub/rails3.0/log/.gitignore +0 -0
- data/test/stub/rails3.0/public/404.html +0 -26
- data/test/stub/rails3.0/public/422.html +0 -26
- data/test/stub/rails3.0/public/500.html +0 -26
- data/test/stub/rails3.0/public/favicon.ico +0 -0
- data/test/stub/rails3.0/public/index.html +0 -279
- data/test/stub/rails3.0/public/robots.txt +0 -5
- data/test/stub/rails3.0/public/stylesheets/.gitkeep +0 -0
- data/test/stub/rails3.0/script/rails +0 -9
- data/test/stub/rails3.0/test/performance/browsing_test.rb +0 -9
- data/test/stub/rails3.0/test/test_helper.rb +0 -13
- data/test/stub/rails3.0/vendor/plugins/.gitkeep +0 -0
- data/test/stub/rails3.1/.gitignore +0 -15
- data/test/stub/rails3.1/Gemfile +0 -37
- data/test/stub/rails3.1/Gemfile.lock +0 -115
- data/test/stub/rails3.1/README +0 -261
- data/test/stub/rails3.1/Rakefile +0 -7
- data/test/stub/rails3.1/app/assets/images/rails.png +0 -0
- data/test/stub/rails3.1/app/assets/stylesheets/application.css +0 -7
- data/test/stub/rails3.1/app/controllers/application_controller.rb +0 -3
- data/test/stub/rails3.1/app/helpers/application_helper.rb +0 -2
- data/test/stub/rails3.1/app/mailers/.gitkeep +0 -0
- data/test/stub/rails3.1/app/models/.gitkeep +0 -0
- data/test/stub/rails3.1/app/views/layouts/application.html.erb +0 -14
- data/test/stub/rails3.1/config.ru +0 -4
- data/test/stub/rails3.1/config/application.rb +0 -48
- data/test/stub/rails3.1/config/boot.rb +0 -6
- data/test/stub/rails3.1/config/database.yml +0 -25
- data/test/stub/rails3.1/config/environment.rb +0 -5
- data/test/stub/rails3.1/config/environments/development.rb +0 -30
- data/test/stub/rails3.1/config/environments/production.rb +0 -60
- data/test/stub/rails3.1/config/environments/test.rb +0 -39
- data/test/stub/rails3.1/config/initializers/backtrace_silencers.rb +0 -7
- data/test/stub/rails3.1/config/initializers/inflections.rb +0 -10
- data/test/stub/rails3.1/config/initializers/mime_types.rb +0 -5
- data/test/stub/rails3.1/config/initializers/passenger.rb +0 -2
- data/test/stub/rails3.1/config/initializers/secret_token.rb +0 -7
- data/test/stub/rails3.1/config/initializers/session_store.rb +0 -8
- data/test/stub/rails3.1/config/initializers/wrap_parameters.rb +0 -14
- data/test/stub/rails3.1/config/locales/en.yml +0 -5
- data/test/stub/rails3.1/config/routes.rb +0 -58
- data/test/stub/rails3.1/db/seeds.rb +0 -7
- data/test/stub/rails3.1/doc/README_FOR_APP +0 -2
- data/test/stub/rails3.1/lib/assets/.gitkeep +0 -0
- data/test/stub/rails3.1/lib/tasks/.gitkeep +0 -0
- data/test/stub/rails3.1/log/.gitkeep +0 -0
- data/test/stub/rails3.1/public/404.html +0 -26
- data/test/stub/rails3.1/public/422.html +0 -26
- data/test/stub/rails3.1/public/500.html +0 -26
- data/test/stub/rails3.1/public/favicon.ico +0 -0
- data/test/stub/rails3.1/public/index.html +0 -241
- data/test/stub/rails3.1/public/robots.txt +0 -5
- data/test/stub/rails3.1/script/rails +0 -6
- data/test/stub/rails3.1/test/fixtures/.gitkeep +0 -0
- data/test/stub/rails3.1/test/functional/.gitkeep +0 -0
- data/test/stub/rails3.1/test/integration/.gitkeep +0 -0
- data/test/stub/rails3.1/test/performance/browsing_test.rb +0 -12
- data/test/stub/rails3.1/test/test_helper.rb +0 -13
- data/test/stub/rails3.1/test/unit/.gitkeep +0 -0
- data/test/stub/rails3.1/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/stub/rails3.1/vendor/plugins/.gitkeep +0 -0
- data/test/stub/rails3.2/.gitignore +0 -15
- data/test/stub/rails3.2/Gemfile +0 -39
- data/test/stub/rails3.2/Gemfile.lock +0 -113
- data/test/stub/rails3.2/Rakefile +0 -7
- data/test/stub/rails3.2/app/assets/images/rails.png +0 -0
- data/test/stub/rails3.2/app/assets/stylesheets/application.css +0 -13
- data/test/stub/rails3.2/app/controllers/application_controller.rb +0 -3
- data/test/stub/rails3.2/app/helpers/application_helper.rb +0 -2
- data/test/stub/rails3.2/app/mailers/.gitkeep +0 -0
- data/test/stub/rails3.2/app/models/.gitkeep +0 -0
- data/test/stub/rails3.2/app/views/layouts/application.html.erb +0 -14
- data/test/stub/rails3.2/config.ru +0 -4
- data/test/stub/rails3.2/config/application.rb +0 -62
- data/test/stub/rails3.2/config/boot.rb +0 -6
- data/test/stub/rails3.2/config/database.yml +0 -25
- data/test/stub/rails3.2/config/environment.rb +0 -5
- data/test/stub/rails3.2/config/environments/development.rb +0 -37
- data/test/stub/rails3.2/config/environments/production.rb +0 -67
- data/test/stub/rails3.2/config/environments/test.rb +0 -37
- data/test/stub/rails3.2/config/initializers/backtrace_silencers.rb +0 -7
- data/test/stub/rails3.2/config/initializers/inflections.rb +0 -15
- data/test/stub/rails3.2/config/initializers/mime_types.rb +0 -5
- data/test/stub/rails3.2/config/initializers/passenger.rb +0 -2
- data/test/stub/rails3.2/config/initializers/secret_token.rb +0 -7
- data/test/stub/rails3.2/config/initializers/session_store.rb +0 -8
- data/test/stub/rails3.2/config/initializers/wrap_parameters.rb +0 -14
- data/test/stub/rails3.2/config/locales/en.yml +0 -5
- data/test/stub/rails3.2/config/routes.rb +0 -58
- data/test/stub/rails3.2/db/seeds.rb +0 -7
- data/test/stub/rails3.2/doc/README_FOR_APP +0 -2
- data/test/stub/rails3.2/lib/assets/.gitkeep +0 -0
- data/test/stub/rails3.2/lib/tasks/.gitkeep +0 -0
- data/test/stub/rails3.2/log/.gitkeep +0 -0
- data/test/stub/rails3.2/public/404.html +0 -26
- data/test/stub/rails3.2/public/422.html +0 -26
- data/test/stub/rails3.2/public/500.html +0 -25
- data/test/stub/rails3.2/public/favicon.ico +0 -0
- data/test/stub/rails3.2/public/index.html +0 -241
- data/test/stub/rails3.2/public/robots.txt +0 -5
- data/test/stub/rails3.2/script/rails +0 -6
- data/test/stub/rails3.2/test/fixtures/.gitkeep +0 -0
- data/test/stub/rails3.2/test/functional/.gitkeep +0 -0
- data/test/stub/rails3.2/test/integration/.gitkeep +0 -0
- data/test/stub/rails3.2/test/performance/browsing_test.rb +0 -12
- data/test/stub/rails3.2/test/test_helper.rb +0 -13
- data/test/stub/rails3.2/test/unit/.gitkeep +0 -0
- data/test/stub/rails3.2/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/stub/rails3.2/vendor/plugins/.gitkeep +0 -0
- data/test/stub/rails4.0/.gitignore +0 -16
- data/test/stub/rails4.0/Gemfile +0 -45
- data/test/stub/rails4.0/Gemfile.lock +0 -126
- data/test/stub/rails4.0/README.rdoc +0 -28
- data/test/stub/rails4.0/Rakefile +0 -6
- data/test/stub/rails4.0/app/assets/images/.keep +0 -0
- data/test/stub/rails4.0/app/assets/javascripts/application.js +0 -16
- data/test/stub/rails4.0/app/assets/stylesheets/application.css +0 -13
- data/test/stub/rails4.0/app/controllers/application_controller.rb +0 -5
- data/test/stub/rails4.0/app/controllers/concerns/.keep +0 -0
- data/test/stub/rails4.0/app/helpers/application_helper.rb +0 -2
- data/test/stub/rails4.0/app/mailers/.keep +0 -0
- data/test/stub/rails4.0/app/models/.keep +0 -0
- data/test/stub/rails4.0/app/models/concerns/.keep +0 -0
- data/test/stub/rails4.0/app/views/layouts/application.html.erb +0 -14
- data/test/stub/rails4.0/bin/bundle +0 -3
- data/test/stub/rails4.0/bin/rails +0 -4
- data/test/stub/rails4.0/bin/rake +0 -4
- data/test/stub/rails4.0/config.ru +0 -4
- data/test/stub/rails4.0/config/application.rb +0 -23
- data/test/stub/rails4.0/config/boot.rb +0 -4
- data/test/stub/rails4.0/config/database.yml +0 -25
- data/test/stub/rails4.0/config/environment.rb +0 -5
- data/test/stub/rails4.0/config/environments/development.rb +0 -29
- data/test/stub/rails4.0/config/environments/production.rb +0 -80
- data/test/stub/rails4.0/config/environments/test.rb +0 -36
- data/test/stub/rails4.0/config/initializers/backtrace_silencers.rb +0 -7
- data/test/stub/rails4.0/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/stub/rails4.0/config/initializers/inflections.rb +0 -16
- data/test/stub/rails4.0/config/initializers/mime_types.rb +0 -5
- data/test/stub/rails4.0/config/initializers/passenger.rb +0 -2
- data/test/stub/rails4.0/config/initializers/secret_token.rb +0 -12
- data/test/stub/rails4.0/config/initializers/session_store.rb +0 -3
- data/test/stub/rails4.0/config/initializers/wrap_parameters.rb +0 -14
- data/test/stub/rails4.0/config/locales/en.yml +0 -23
- data/test/stub/rails4.0/config/routes.rb +0 -57
- data/test/stub/rails4.0/db/seeds.rb +0 -7
- data/test/stub/rails4.0/lib/assets/.keep +0 -0
- data/test/stub/rails4.0/lib/tasks/.keep +0 -0
- data/test/stub/rails4.0/log/.keep +0 -0
- data/test/stub/rails4.0/public/404.html +0 -58
- data/test/stub/rails4.0/public/422.html +0 -58
- data/test/stub/rails4.0/public/500.html +0 -57
- data/test/stub/rails4.0/public/favicon.ico +0 -0
- data/test/stub/rails4.0/public/robots.txt +0 -5
- data/test/stub/rails4.0/test/controllers/.keep +0 -0
- data/test/stub/rails4.0/test/fixtures/.keep +0 -0
- data/test/stub/rails4.0/test/helpers/.keep +0 -0
- data/test/stub/rails4.0/test/integration/.keep +0 -0
- data/test/stub/rails4.0/test/mailers/.keep +0 -0
- data/test/stub/rails4.0/test/models/.keep +0 -0
- data/test/stub/rails4.0/test/test_helper.rb +0 -15
- data/test/stub/rails4.0/vendor/assets/javascripts/.keep +0 -0
- data/test/stub/rails4.0/vendor/assets/stylesheets/.keep +0 -0
- data/test/stub/rails4.1/.gitignore +0 -16
- data/test/stub/rails4.1/Gemfile +0 -45
- data/test/stub/rails4.1/Gemfile.lock +0 -129
- data/test/stub/rails4.1/README.rdoc +0 -28
- data/test/stub/rails4.1/Rakefile +0 -6
- data/test/stub/rails4.1/app/assets/images/.keep +0 -0
- data/test/stub/rails4.1/app/assets/javascripts/application.js +0 -16
- data/test/stub/rails4.1/app/assets/stylesheets/application.css +0 -13
- data/test/stub/rails4.1/app/controllers/application_controller.rb +0 -5
- data/test/stub/rails4.1/app/controllers/concerns/.keep +0 -0
- data/test/stub/rails4.1/app/helpers/application_helper.rb +0 -2
- data/test/stub/rails4.1/app/mailers/.keep +0 -0
- data/test/stub/rails4.1/app/models/.keep +0 -0
- data/test/stub/rails4.1/app/models/concerns/.keep +0 -0
- data/test/stub/rails4.1/app/views/layouts/application.html.erb +0 -14
- data/test/stub/rails4.1/bin/bundle +0 -3
- data/test/stub/rails4.1/bin/rails +0 -4
- data/test/stub/rails4.1/bin/rake +0 -4
- data/test/stub/rails4.1/config.ru +0 -4
- data/test/stub/rails4.1/config/application.rb +0 -23
- data/test/stub/rails4.1/config/boot.rb +0 -4
- data/test/stub/rails4.1/config/database.yml +0 -25
- data/test/stub/rails4.1/config/environment.rb +0 -5
- data/test/stub/rails4.1/config/environments/development.rb +0 -29
- data/test/stub/rails4.1/config/environments/production.rb +0 -80
- data/test/stub/rails4.1/config/environments/test.rb +0 -36
- data/test/stub/rails4.1/config/initializers/backtrace_silencers.rb +0 -7
- data/test/stub/rails4.1/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/stub/rails4.1/config/initializers/inflections.rb +0 -16
- data/test/stub/rails4.1/config/initializers/mime_types.rb +0 -5
- data/test/stub/rails4.1/config/initializers/passenger.rb +0 -5
- data/test/stub/rails4.1/config/initializers/secret_token.rb +0 -12
- data/test/stub/rails4.1/config/initializers/session_store.rb +0 -3
- data/test/stub/rails4.1/config/initializers/wrap_parameters.rb +0 -14
- data/test/stub/rails4.1/config/locales/en.yml +0 -23
- data/test/stub/rails4.1/config/routes.rb +0 -57
- data/test/stub/rails4.1/db/seeds.rb +0 -7
- data/test/stub/rails4.1/lib/assets/.keep +0 -0
- data/test/stub/rails4.1/lib/tasks/.keep +0 -0
- data/test/stub/rails4.1/log/.keep +0 -0
- data/test/stub/rails4.1/public/404.html +0 -58
- data/test/stub/rails4.1/public/422.html +0 -58
- data/test/stub/rails4.1/public/500.html +0 -57
- data/test/stub/rails4.1/public/favicon.ico +0 -0
- data/test/stub/rails4.1/public/robots.txt +0 -5
- data/test/stub/rails4.1/test/controllers/.keep +0 -0
- data/test/stub/rails4.1/test/fixtures/.keep +0 -0
- data/test/stub/rails4.1/test/helpers/.keep +0 -0
- data/test/stub/rails4.1/test/integration/.keep +0 -0
- data/test/stub/rails4.1/test/mailers/.keep +0 -0
- data/test/stub/rails4.1/test/models/.keep +0 -0
- data/test/stub/rails4.1/test/test_helper.rb +0 -15
- data/test/stub/rails4.1/vendor/assets/javascripts/.keep +0 -0
- data/test/stub/rails4.1/vendor/assets/stylesheets/.keep +0 -0
- data/test/stub/start_error.pl +0 -24
- data/test/stub/upload_data.txt +0 -494
- data/test/stub/wsgi/passenger_wsgi.py +0 -212
- data/test/stub/wsgi/public/.gitignore +0 -0
- data/test/stub/wsgi/tmp/.gitignore +0 -0
- data/test/support/allocate_memory.c +0 -14
- data/test/support/apache2_controller.rb +0 -258
- data/test/support/multipart.rb +0 -62
- data/test/support/nginx_controller.rb +0 -97
- data/test/support/placebo-preloader.rb +0 -88
- data/test/support/test_helper.rb +0 -455
- data/test/support/valgrind.h +0 -2539
- data/test/tut/tut.h +0 -1310
- data/test/tut/tut_reporter.h +0 -256
- data/test/valgrind-osx.supp +0 -7
data/test/stub/node/app.js
DELETED
@@ -1,133 +0,0 @@
|
|
1
|
-
var fs = require('fs');
|
2
|
-
var url = require('url');
|
3
|
-
var express = require('express');
|
4
|
-
var app = express();
|
5
|
-
var bodyParser = express.bodyParser();
|
6
|
-
|
7
|
-
function textResponse(res, content) {
|
8
|
-
content = String(content);
|
9
|
-
res.setHeader("Content-Type", "text/plain");
|
10
|
-
res.setHeader("Content-Length", content.length);
|
11
|
-
res.end(content);
|
12
|
-
}
|
13
|
-
|
14
|
-
function fileExists(filename) {
|
15
|
-
try {
|
16
|
-
fs.statSync(filename);
|
17
|
-
return true;
|
18
|
-
} catch (e) {
|
19
|
-
return false;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
if (process.env.PASSENGER_BASE_URI) {
|
24
|
-
app.use(process.env.PASSENGER_BASE_URI, app.router);
|
25
|
-
}
|
26
|
-
|
27
|
-
app.all('/', function(req, res) {
|
28
|
-
if (fileExists("front_page.txt")) {
|
29
|
-
textResponse(res, fs.readFileSync("front_page.txt"));
|
30
|
-
} else {
|
31
|
-
textResponse(res, "front page");
|
32
|
-
}
|
33
|
-
});
|
34
|
-
|
35
|
-
app.all('/parameters', function(req, res) {
|
36
|
-
bodyParser(req, res, function() {
|
37
|
-
var first = req.query.first || req.body.first;
|
38
|
-
var second = req.query.second || req.body.second;
|
39
|
-
textResponse(res, "Method: " + req.method + "\n" +
|
40
|
-
"First: " + first + "\n" +
|
41
|
-
"Second: " + second + "\n")
|
42
|
-
});
|
43
|
-
});
|
44
|
-
|
45
|
-
app.all('/chunked', function(req, res) {
|
46
|
-
res.setHeader("Content-Type", "text/plain");
|
47
|
-
res.setHeader("Transfer-Encoding", "chunked");
|
48
|
-
res.write("chunk1\n");
|
49
|
-
res.write("chunk2\n");
|
50
|
-
res.write("chunk3\n");
|
51
|
-
res.end();
|
52
|
-
});
|
53
|
-
|
54
|
-
app.all('/pid', function(req, res) {
|
55
|
-
textResponse(res, process.pid);
|
56
|
-
});
|
57
|
-
|
58
|
-
app.all(/^\/env/, function(req, res) {
|
59
|
-
var result = [];
|
60
|
-
var requestUri = req.url;
|
61
|
-
var urlParts = url.parse(req.url);
|
62
|
-
|
63
|
-
if (process.env.PASSENGER_BASE_URI) {
|
64
|
-
requestUri = process.env.PASSENGER_BASE_URI + requestUri;
|
65
|
-
result.push('SCRIPT_NAME = ' + process.env.PASSENGER_BASE_URI);
|
66
|
-
} else {
|
67
|
-
result.push('SCRIPT_NAME = ');
|
68
|
-
}
|
69
|
-
|
70
|
-
result.push('REQUEST_URI = ' + requestUri);
|
71
|
-
result.push('PATH_INFO = ' + req.path);
|
72
|
-
result.push('QUERY_STRING = ' + (urlParts.query || ''));
|
73
|
-
|
74
|
-
for (var key in req.headers) {
|
75
|
-
result.push('HTTP_' + key.toUpperCase().replace(/-/g, '_')
|
76
|
-
+ ' = ' + req.headers[key]);
|
77
|
-
}
|
78
|
-
|
79
|
-
result.sort();
|
80
|
-
textResponse(res, result.join("\n") + "\n");
|
81
|
-
});
|
82
|
-
|
83
|
-
app.all('/touch_file', function(req, res) {
|
84
|
-
bodyParser(req, res, function() {
|
85
|
-
var filename = req.query.file || req.body.file;
|
86
|
-
fs.writeFileSync(filename, "");
|
87
|
-
textResponse(res, "ok")
|
88
|
-
});
|
89
|
-
});
|
90
|
-
|
91
|
-
app.all('/extra_header', function(req, res) {
|
92
|
-
res.setHeader("Content-Type", "text/html");
|
93
|
-
res.setHeader("Content-Length", "2");
|
94
|
-
res.setHeader("X-Foo", "Bar");
|
95
|
-
res.end("ok");
|
96
|
-
});
|
97
|
-
|
98
|
-
app.all('/cached', function(req, res) {
|
99
|
-
textResponse(res, "This is the uncached version of /cached");
|
100
|
-
});
|
101
|
-
|
102
|
-
app.all('/upload_with_params', function(req, res) {
|
103
|
-
bodyParser(req, res, function() {
|
104
|
-
var name1 = req.query.name1 || req.body.name1;
|
105
|
-
var name2 = req.query.name2 || req.body.name2;
|
106
|
-
var data = req.body.data ? new Buffer(req.body.data) : fs.readFileSync(req.files.data.path);
|
107
|
-
var preamble = new Buffer(
|
108
|
-
"name 1 = " + name1 + "\n" +
|
109
|
-
"name 2 = " + name2 + "\n" +
|
110
|
-
"data = ");
|
111
|
-
|
112
|
-
res.setHeader("Content-Type", "text/plain");
|
113
|
-
res.setHeader("Transfer-Encoding", "chunked");
|
114
|
-
res.write(preamble);
|
115
|
-
res.write(data);
|
116
|
-
res.end();
|
117
|
-
});
|
118
|
-
});
|
119
|
-
|
120
|
-
app.all('/raw_upload_to_file', function(req, res) {
|
121
|
-
var filename = req.headers['x-output'];
|
122
|
-
var stream = fs.createWriteStream(filename);
|
123
|
-
req.on('data', function(data) {
|
124
|
-
stream.write(data);
|
125
|
-
});
|
126
|
-
req.on('end', function() {
|
127
|
-
stream.end(function() {
|
128
|
-
textResponse(res, "ok");
|
129
|
-
});
|
130
|
-
});
|
131
|
-
});
|
132
|
-
|
133
|
-
app.listen(3000);
|
File without changes
|
File without changes
|
data/test/stub/rack/config.ru
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
# encoding: binary
|
2
|
-
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + "/library")
|
4
|
-
|
5
|
-
app = lambda do |env|
|
6
|
-
case env['PATH_INFO']
|
7
|
-
when '/'
|
8
|
-
if File.exist?("front_page.txt")
|
9
|
-
text_response(File.read("front_page.txt"))
|
10
|
-
else
|
11
|
-
text_response("front page")
|
12
|
-
end
|
13
|
-
when '/parameters'
|
14
|
-
req = Rack::Request.new(env)
|
15
|
-
method = env["REQUEST_METHOD"]
|
16
|
-
first = req.params["first"]
|
17
|
-
second = req.params["second"]
|
18
|
-
text_response("Method: #{method}\nFirst: #{first}\nSecond: #{second}\n")
|
19
|
-
when '/chunked'
|
20
|
-
chunks = ["7\r\nchunk1\n\r\n", "7\r\nchunk2\n\r\n", "7\r\nchunk3\n\r\n", "0\r\n\r\n"]
|
21
|
-
[200, { "Content-Type" => "text/html", "Transfer-Encoding" => "chunked" }, chunks]
|
22
|
-
when '/pid'
|
23
|
-
text_response(Process.pid)
|
24
|
-
when /^\/env/
|
25
|
-
body = ''
|
26
|
-
env.sort.each do |key, value|
|
27
|
-
body << "#{key} = #{value}\n"
|
28
|
-
end
|
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)
|
36
|
-
when '/touch_file'
|
37
|
-
req = Rack::Request.new(env)
|
38
|
-
filename = req.params["file"]
|
39
|
-
File.open(filename, "w").close
|
40
|
-
text_response("ok")
|
41
|
-
when '/extra_header'
|
42
|
-
[200, { "Content-Type" => "text/html", "X-Foo" => "Bar" }, ["ok"]]
|
43
|
-
when '/cached'
|
44
|
-
text_response("This is the uncached version of /cached")
|
45
|
-
when '/upload_with_params'
|
46
|
-
req = Rack::Request.new(env)
|
47
|
-
name1 = binary_string(req.params["name1"])
|
48
|
-
name2 = binary_string(req.params["name2"])
|
49
|
-
file = req.params["data"][:tempfile]
|
50
|
-
file.binmode
|
51
|
-
text_response(
|
52
|
-
"name 1 = #{name1}\n" <<
|
53
|
-
"name 2 = #{name2}\n" <<
|
54
|
-
"data = #{file.read}")
|
55
|
-
when '/raw_upload_to_file'
|
56
|
-
File.open(env['HTTP_X_OUTPUT'], 'w') do |f|
|
57
|
-
while line = env['rack.input'].gets
|
58
|
-
f.write(line)
|
59
|
-
f.flush
|
60
|
-
end
|
61
|
-
end
|
62
|
-
text_response("ok")
|
63
|
-
when '/print_stderr'
|
64
|
-
STDERR.puts "hello world!"
|
65
|
-
text_response("ok")
|
66
|
-
when '/print_stdout_and_stderr'
|
67
|
-
STDOUT.puts "hello stdout!"
|
68
|
-
sleep 0.1 # Give HelperAgent the time to process stdout first.
|
69
|
-
STDERR.puts "hello stderr!"
|
70
|
-
text_response("ok")
|
71
|
-
when '/switch_protocol'
|
72
|
-
if env['HTTP_UPGRADE'] != 'raw' || env['HTTP_CONNECTION'].downcase != 'upgrade'
|
73
|
-
return [500, { "Content-Type" => "text/plain" }, ["Invalid headers"]]
|
74
|
-
end
|
75
|
-
env['rack.hijack'].call
|
76
|
-
io = env['rack.hijack_io']
|
77
|
-
begin
|
78
|
-
io.write("Status: 101 Switching Protocols\r\n")
|
79
|
-
io.write("Upgrade: raw\r\n")
|
80
|
-
io.write("Connection: Upgrade\r\n")
|
81
|
-
io.write("\r\n")
|
82
|
-
while !io.eof?
|
83
|
-
line = io.readline
|
84
|
-
io.write("Echo: #{line}")
|
85
|
-
io.flush
|
86
|
-
end
|
87
|
-
ensure
|
88
|
-
io.close
|
89
|
-
end
|
90
|
-
else
|
91
|
-
[404, { "Content-Type" => "text/plain" }, ["Unknown URI"]]
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
run app
|
data/test/stub/rack/library.rb
DELETED
@@ -1,16 +0,0 @@
|
|
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
|
File without changes
|
data/test/stub/rack/start.rb
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'socket'
|
3
|
-
|
4
|
-
STDOUT.sync = true
|
5
|
-
STDERR.sync = true
|
6
|
-
puts "!> I have control 1.0"
|
7
|
-
abort "Invalid initialization header" if STDIN.readline != "You have control 1.0\n"
|
8
|
-
|
9
|
-
options = {}
|
10
|
-
while (line = STDIN.readline) != "\n"
|
11
|
-
name, value = line.strip.split(/: */, 2)
|
12
|
-
options[name] = value
|
13
|
-
end
|
14
|
-
|
15
|
-
if ARGV[0] == "--execself"
|
16
|
-
# Used for testing https://code.google.com/p/phusion-passenger/issues/detail?id=842#c19
|
17
|
-
exec("ruby", $0)
|
18
|
-
end
|
19
|
-
|
20
|
-
server = TCPServer.new('127.0.0.1', 0)
|
21
|
-
puts "!> Ready"
|
22
|
-
puts "!> socket: main;tcp://127.0.0.1:#{server.addr[1]};session;1"
|
23
|
-
puts "!> "
|
24
|
-
|
25
|
-
while true
|
26
|
-
ios = select([server, STDIN])[0]
|
27
|
-
if ios.include?(server)
|
28
|
-
client = server.accept
|
29
|
-
line = client.readline
|
30
|
-
if line == "ping\n"
|
31
|
-
client.write("pong\n")
|
32
|
-
elsif line == "pid\n"
|
33
|
-
client.write("#{Process.pid}\n")
|
34
|
-
elsif line == "envvars\n"
|
35
|
-
str = ""
|
36
|
-
ENV.each_pair do |key, value|
|
37
|
-
str << "#{key} = #{value}\n"
|
38
|
-
end
|
39
|
-
client.write(str)
|
40
|
-
else
|
41
|
-
client.write("unknown request\n")
|
42
|
-
end
|
43
|
-
client.close
|
44
|
-
end
|
45
|
-
if ios.include?(STDIN)
|
46
|
-
begin
|
47
|
-
STDIN.readline
|
48
|
-
rescue EOFError
|
49
|
-
exit
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
File without changes
|
data/test/stub/rails3.0/Gemfile
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gem 'rails', '~> 3.0.0'
|
4
|
-
gem 'sqlite3-ruby', :require => 'sqlite3'
|
5
|
-
|
6
|
-
# Use unicorn as the web server
|
7
|
-
# gem 'unicorn'
|
8
|
-
|
9
|
-
# Deploy with Capistrano
|
10
|
-
# gem 'capistrano'
|
11
|
-
|
12
|
-
# Bundle the extra gems:
|
13
|
-
# gem 'bj'
|
14
|
-
# gem 'nokogiri', '1.4.1'
|
15
|
-
# gem 'sqlite3-ruby', :require => 'sqlite3'
|
16
|
-
# gem 'aws-s3', :require => 'aws/s3'
|
17
|
-
|
18
|
-
# Bundle gems for certain environments:
|
19
|
-
# gem 'rspec', :group => :test
|
20
|
-
# group :test do
|
21
|
-
# gem 'webrat'
|
22
|
-
# end
|
@@ -1,80 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
abstract (1.0.0)
|
5
|
-
actionmailer (3.0.20)
|
6
|
-
actionpack (= 3.0.20)
|
7
|
-
mail (~> 2.2.19)
|
8
|
-
actionpack (3.0.20)
|
9
|
-
activemodel (= 3.0.20)
|
10
|
-
activesupport (= 3.0.20)
|
11
|
-
builder (~> 2.1.2)
|
12
|
-
erubis (~> 2.6.6)
|
13
|
-
i18n (~> 0.5.0)
|
14
|
-
rack (~> 1.2.5)
|
15
|
-
rack-mount (~> 0.6.14)
|
16
|
-
rack-test (~> 0.5.7)
|
17
|
-
tzinfo (~> 0.3.23)
|
18
|
-
activemodel (3.0.20)
|
19
|
-
activesupport (= 3.0.20)
|
20
|
-
builder (~> 2.1.2)
|
21
|
-
i18n (~> 0.5.0)
|
22
|
-
activerecord (3.0.20)
|
23
|
-
activemodel (= 3.0.20)
|
24
|
-
activesupport (= 3.0.20)
|
25
|
-
arel (~> 2.0.10)
|
26
|
-
tzinfo (~> 0.3.23)
|
27
|
-
activeresource (3.0.20)
|
28
|
-
activemodel (= 3.0.20)
|
29
|
-
activesupport (= 3.0.20)
|
30
|
-
activesupport (3.0.20)
|
31
|
-
arel (2.0.10)
|
32
|
-
builder (2.1.2)
|
33
|
-
erubis (2.6.6)
|
34
|
-
abstract (>= 1.0.0)
|
35
|
-
i18n (0.5.0)
|
36
|
-
json (1.8.2)
|
37
|
-
mail (2.2.19)
|
38
|
-
activesupport (>= 2.3.6)
|
39
|
-
i18n (>= 0.4.0)
|
40
|
-
mime-types (~> 1.16)
|
41
|
-
treetop (~> 1.4.8)
|
42
|
-
mime-types (1.20.1)
|
43
|
-
polyglot (0.3.3)
|
44
|
-
rack (1.2.7)
|
45
|
-
rack-mount (0.6.14)
|
46
|
-
rack (>= 1.0.0)
|
47
|
-
rack-test (0.5.7)
|
48
|
-
rack (>= 1.0)
|
49
|
-
rails (3.0.20)
|
50
|
-
actionmailer (= 3.0.20)
|
51
|
-
actionpack (= 3.0.20)
|
52
|
-
activerecord (= 3.0.20)
|
53
|
-
activeresource (= 3.0.20)
|
54
|
-
activesupport (= 3.0.20)
|
55
|
-
bundler (~> 1.0)
|
56
|
-
railties (= 3.0.20)
|
57
|
-
railties (3.0.20)
|
58
|
-
actionpack (= 3.0.20)
|
59
|
-
activesupport (= 3.0.20)
|
60
|
-
rake (>= 0.8.7)
|
61
|
-
rdoc (~> 3.4)
|
62
|
-
thor (~> 0.14.4)
|
63
|
-
rake (10.0.3)
|
64
|
-
rdoc (3.12)
|
65
|
-
json (~> 1.4)
|
66
|
-
sqlite3 (1.3.10)
|
67
|
-
sqlite3-ruby (1.3.3)
|
68
|
-
sqlite3 (>= 1.3.3)
|
69
|
-
thor (0.14.6)
|
70
|
-
treetop (1.4.12)
|
71
|
-
polyglot
|
72
|
-
polyglot (>= 0.3.1)
|
73
|
-
tzinfo (0.3.35)
|
74
|
-
|
75
|
-
PLATFORMS
|
76
|
-
ruby
|
77
|
-
|
78
|
-
DEPENDENCIES
|
79
|
-
rails (~> 3.0.0)
|
80
|
-
sqlite3-ruby
|
data/test/stub/rails3.0/Rakefile
DELETED
@@ -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.expand_path('../config/application', __FILE__)
|
5
|
-
|
6
|
-
require 'rake'
|
7
|
-
require 'rake/testtask'
|
8
|
-
require 'rake/rdoctask'
|
9
|
-
|
10
|
-
Rails::Application.load_tasks
|