IOWA 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CONTRIBUTORS +14 -0
- data/README.md +23 -0
- data/RELEASE_NOTES +77 -0
- data/ToDo +21 -0
- data/components/CRUDList/CRUDList.html +13 -0
- data/components/CRUDList/CRUDList.iwa +136 -0
- data/components/Content/Content.html +0 -0
- data/components/Content/Content.iwa +143 -0
- data/components/Content/example/README +9 -0
- data/components/Content/example/cgi/iowa.cgi +10 -0
- data/components/Content/example/demo.rb +30 -0
- data/components/Content/example/doc/index.html +7 -0
- data/components/Content/example/iowa/Content.html +1 -0
- data/components/Content/example/iowa/Content.iwa +1 -0
- data/components/Content/example/iowa/Main.html +6 -0
- data/components/Content/example/iowa/Main.iwa +3 -0
- data/components/Content/example/iowa/_content/body +7 -0
- data/components/Content/example/iowa/_content/body2 +3 -0
- data/components/Content/example/iowa/_content/title +2 -0
- data/components/Content/example/iowa/app.cnf +8 -0
- data/components/Content/example/iowa/app.rb +8 -0
- data/components/Content/example/webrick.rb +38 -0
- data/components/Include/Include.html +1 -0
- data/components/Include/Include.iwa +30 -0
- data/components/Include/readme +5 -0
- data/components/JumpTo/JumpTo.html +8 -0
- data/components/JumpTo/JumpTo.iwa +8 -0
- data/components/JumpTo/readme +6 -0
- data/doc/Architecture.txt +6 -0
- data/doc/History.txt +33 -0
- data/doc/StandardDispatcher.txt +19 -0
- data/examples/blog/README +1 -0
- data/examples/hello_world/README +17 -0
- data/examples/hello_world/htdocs/hello_world_html.html +24 -0
- data/examples/hello_world/htdocs/hello_world_ruby.html +41 -0
- data/examples/hello_world/iowa/HelloWorld.html +14 -0
- data/examples/hello_world/iowa/HelloWorld.iwa +31 -0
- data/examples/hello_world/iowa/Index.html +16 -0
- data/examples/hello_world/iowa/Index.iwa +5 -0
- data/examples/hello_world/iowa/iowa_hello_world.cnf +19 -0
- data/examples/hello_world/iowa/iowa_hello_world.rb +5 -0
- data/examples/hello_world/iowa/mapfile.cnf +6 -0
- data/examples/hw1/iowa/Main.html +1 -0
- data/examples/hw1/iowa/README +9 -0
- data/examples/hw1/iowa/hw.rb +4 -0
- data/examples/hw2/iowa/Main.html +10 -0
- data/examples/hw2/iowa/Main.iwa +7 -0
- data/examples/hw2/iowa/README +16 -0
- data/examples/hw2/iowa/hw.rb +4 -0
- data/examples/hw3/iowa/Main.html +11 -0
- data/examples/hw3/iowa/Main.iwa +7 -0
- data/examples/hw3/iowa/README +22 -0
- data/examples/hw3/iowa/hw.rb +4 -0
- data/examples/hw4/iowa/Greetings.html +10 -0
- data/examples/hw4/iowa/Greetings.iwa +9 -0
- data/examples/hw4/iowa/Main.html +12 -0
- data/examples/hw4/iowa/Main.iwa +10 -0
- data/examples/hw4/iowa/README +28 -0
- data/examples/hw4/iowa/hw.rb +4 -0
- data/examples/hw5/iowa/Footer.html +2 -0
- data/examples/hw5/iowa/Greetings.html +4 -0
- data/examples/hw5/iowa/Greetings.iwa +12 -0
- data/examples/hw5/iowa/Header.html +6 -0
- data/examples/hw5/iowa/Main.html +12 -0
- data/examples/hw5/iowa/Main.iwa +13 -0
- data/examples/hw5/iowa/README +16 -0
- data/examples/hw5/iowa/hw.rb +4 -0
- data/examples/template_server/iowa/Content.iwa +121 -0
- data/examples/template_server/iowa/Content.view +0 -0
- data/examples/template_server/iowa/DBContentDispatcher.rb +112 -0
- data/examples/template_server/iowa/DBContentPage.html +3 -0
- data/examples/template_server/iowa/DBContentPage.iwa +85 -0
- data/examples/template_server/iowa/app.cnf +13 -0
- data/examples/template_server/iowa/app.rb +5 -0
- data/ext/Classifier/classifier.c +256 -0
- data/ext/Classifier/ext_help.h +14 -0
- data/ext/Classifier/extconf.rb +5 -0
- data/ext/Classifier/tst.h +40 -0
- data/ext/Classifier/tst_cleanup.c +24 -0
- data/ext/Classifier/tst_delete.c +146 -0
- data/ext/Classifier/tst_grow_node_free_list.c +38 -0
- data/ext/Classifier/tst_init.c +41 -0
- data/ext/Classifier/tst_insert.c +192 -0
- data/ext/Classifier/tst_search.c +68 -0
- data/ext/http11/README +11 -0
- data/ext/http11/ext_help.h +15 -0
- data/ext/http11/extconf.rb +5 -0
- data/ext/http11/http11.c +534 -0
- data/ext/http11/http11.c.dif +422 -0
- data/ext/http11/http11_parser.c +1243 -0
- data/ext/http11/http11_parser.c.dif +193 -0
- data/ext/http11/http11_parser.h +49 -0
- data/ext/http11/http11_parser.h.dif +20 -0
- data/ext/http11/http11_parser.rl +192 -0
- data/ext/httpmachine/Makefile +149 -0
- data/ext/httpmachine/extconf.rb +33 -0
- data/ext/httpmachine/http.cpp +430 -0
- data/ext/httpmachine/http.h +156 -0
- data/ext/httpmachine/rubyhttp.cpp +165 -0
- data/external/mime-types/LICENCE +18 -0
- data/external/mime-types/README +46 -0
- data/external/mime-types/doc/classes/MIME.html +120 -0
- data/external/mime-types/doc/classes/MIME/InvalidContentType.html +119 -0
- data/external/mime-types/doc/classes/MIME/Type.html +866 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000010.html +22 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000011.html +18 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000012.html +19 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000013.html +18 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000014.html +26 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000015.html +33 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000016.html +27 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000017.html +35 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000018.html +34 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000019.html +24 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000020.html +38 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000021.html +22 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000022.html +18 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000023.html +18 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000024.html +18 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000025.html +18 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000026.html +18 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000027.html +18 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000028.html +18 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000029.html +18 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000030.html +19 -0
- data/external/mime-types/doc/classes/MIME/Type.src/M000031.html +26 -0
- data/external/mime-types/doc/classes/MIME/Types.html +459 -0
- data/external/mime-types/doc/classes/MIME/Types.src/M000001.html +19 -0
- data/external/mime-types/doc/classes/MIME/Types.src/M000002.html +32 -0
- data/external/mime-types/doc/classes/MIME/Types.src/M000003.html +21 -0
- data/external/mime-types/doc/classes/MIME/Types.src/M000004.html +18 -0
- data/external/mime-types/doc/classes/MIME/Types.src/M000005.html +26 -0
- data/external/mime-types/doc/classes/MIME/Types.src/M000006.html +18 -0
- data/external/mime-types/doc/classes/MIME/Types.src/M000007.html +18 -0
- data/external/mime-types/doc/classes/MIME/Types.src/M000008.html +18 -0
- data/external/mime-types/doc/classes/MIME/Types.src/M000009.html +18 -0
- data/external/mime-types/doc/created.rid +1 -0
- data/external/mime-types/doc/files/ChangeLog.html +320 -0
- data/external/mime-types/doc/files/README.html +145 -0
- data/external/mime-types/doc/files/lib/mime/types_rb.html +101 -0
- data/external/mime-types/doc/fr_class_index.html +30 -0
- data/external/mime-types/doc/fr_file_index.html +29 -0
- data/external/mime-types/doc/fr_method_index.html +57 -0
- data/external/mime-types/doc/index.html +24 -0
- data/external/mime-types/doc/rdoc-style.css +208 -0
- data/external/mime-types/lib/mime/types.rb +1558 -0
- data/external/package.rb +672 -0
- data/external/test_support.rb +95 -0
- data/external/tmail/README +7 -0
- data/external/tmail/tmail.rb +4 -0
- data/external/tmail/tmail/address.rb +222 -0
- data/external/tmail/tmail/base64.rb +52 -0
- data/external/tmail/tmail/compat.rb +39 -0
- data/external/tmail/tmail/config.rb +50 -0
- data/external/tmail/tmail/encode.rb +447 -0
- data/external/tmail/tmail/header.rb +895 -0
- data/external/tmail/tmail/info.rb +14 -0
- data/external/tmail/tmail/loader.rb +1 -0
- data/external/tmail/tmail/mail.rb +869 -0
- data/external/tmail/tmail/mailbox.rb +386 -0
- data/external/tmail/tmail/mbox.rb +1 -0
- data/external/tmail/tmail/net.rb +260 -0
- data/external/tmail/tmail/obsolete.rb +123 -0
- data/external/tmail/tmail/parser.rb +1475 -0
- data/external/tmail/tmail/parser.y +372 -0
- data/external/tmail/tmail/port.rb +356 -0
- data/external/tmail/tmail/scanner.rb +17 -0
- data/external/tmail/tmail/scanner_r.rb +243 -0
- data/external/tmail/tmail/stringio.rb +256 -0
- data/external/tmail/tmail/textutils.rb +197 -0
- data/external/tmail/tmail/tmail.rb +1 -0
- data/external/tmail/tmail/utils.rb +23 -0
- data/external/win32-process/README +133 -0
- data/external/win32-process/lib/win32/process.rb +561 -0
- data/external/windows-pr/README +145 -0
- data/external/windows-pr/doc/conversion_guide.txt +25 -0
- data/external/windows-pr/lib/windows/clipboard.rb +72 -0
- data/external/windows-pr/lib/windows/console.rb +323 -0
- data/external/windows-pr/lib/windows/device_io.rb +88 -0
- data/external/windows-pr/lib/windows/directory.rb +80 -0
- data/external/windows-pr/lib/windows/error.rb +313 -0
- data/external/windows-pr/lib/windows/eventlog.rb +120 -0
- data/external/windows-pr/lib/windows/file.rb +349 -0
- data/external/windows-pr/lib/windows/filesystem.rb +16 -0
- data/external/windows-pr/lib/windows/handle.rb +31 -0
- data/external/windows-pr/lib/windows/library.rb +76 -0
- data/external/windows-pr/lib/windows/limits.rb +13 -0
- data/external/windows-pr/lib/windows/memory.rb +117 -0
- data/external/windows-pr/lib/windows/msvcrt/buffer.rb +48 -0
- data/external/windows-pr/lib/windows/msvcrt/file.rb +18 -0
- data/external/windows-pr/lib/windows/msvcrt/string.rb +46 -0
- data/external/windows-pr/lib/windows/national.rb +557 -0
- data/external/windows-pr/lib/windows/path.rb +296 -0
- data/external/windows-pr/lib/windows/pipe.rb +77 -0
- data/external/windows-pr/lib/windows/process.rb +171 -0
- data/external/windows-pr/lib/windows/registry.rb +238 -0
- data/external/windows-pr/lib/windows/security.rb +89 -0
- data/external/windows-pr/lib/windows/service.rb +183 -0
- data/external/windows-pr/lib/windows/shell.rb +88 -0
- data/external/windows-pr/lib/windows/sound.rb +52 -0
- data/external/windows-pr/lib/windows/synchronize.rb +161 -0
- data/external/windows-pr/lib/windows/system_info.rb +70 -0
- data/external/windows-pr/lib/windows/unicode.rb +138 -0
- data/external/windows-pr/lib/windows/window.rb +22 -0
- data/iowa.gemspec +45 -0
- data/microprojects/DiskCache/LICENSE +28 -0
- data/microprojects/DiskCache/README +17 -0
- data/microprojects/DiskCache/external/package.rb +608 -0
- data/microprojects/DiskCache/external/test_support.rb +8 -0
- data/microprojects/DiskCache/setup.rb +22 -0
- data/microprojects/DiskCache/src/iowa/Association.rb +67 -0
- data/microprojects/DiskCache/src/iowa/Constants.rb +159 -0
- data/microprojects/DiskCache/src/iowa/DiskStore.rb +377 -0
- data/microprojects/DiskCache/src/iowa/Hash.rb +63 -0
- data/microprojects/DiskCache/src/iowa/Lockfile.rb +575 -0
- data/microprojects/DiskCache/src/iowa/Mutex.rb +142 -0
- data/microprojects/DiskCache/src/iowa/caches/DiskCache.rb +605 -0
- data/microprojects/DiskCache/src/iowa/caches/LRUCache.rb +287 -0
- data/microprojects/DiskCache/test/TC_DiskCache.rb +218 -0
- data/microprojects/LRUCache/LICENSE +28 -0
- data/microprojects/LRUCache/README +13 -0
- data/microprojects/LRUCache/external/package.rb +608 -0
- data/microprojects/LRUCache/external/test_support.rb +8 -0
- data/microprojects/LRUCache/setup.rb +22 -0
- data/microprojects/LRUCache/src/iowa/Association.rb +57 -0
- data/microprojects/LRUCache/src/iowa/Constants.rb +159 -0
- data/microprojects/LRUCache/src/iowa/Hash.rb +63 -0
- data/microprojects/LRUCache/src/iowa/Mutex.rb +129 -0
- data/microprojects/LRUCache/src/iowa/caches/LRUCache.rb +287 -0
- data/microprojects/LRUCache/test/TC_LRUCache.rb +65 -0
- data/microprojects/LinkedList/LICENSE +28 -0
- data/microprojects/LinkedList/README +13 -0
- data/microprojects/LinkedList/external/package.rb +608 -0
- data/microprojects/LinkedList/external/test_support.rb +8 -0
- data/microprojects/LinkedList/setup.rb +22 -0
- data/microprojects/LinkedList/src/iowa/LinkedList.rb +165 -0
- data/microprojects/LinkedList/test/TC_LinkedList.rb +42 -0
- data/microprojects/README +8 -0
- data/setup.rb +116 -0
- data/share/iowa/app_skeleton/Main.html +8 -0
- data/share/iowa/app_skeleton/Main.iwa +15 -0
- data/share/iowa/app_skeleton/app.cnf +48 -0
- data/share/iowa/app_skeleton/app.rb +58 -0
- data/share/iowa/app_skeleton/models/model.rb +49 -0
- data/src/ihc.rb +223 -0
- data/src/iowa.cgi +29 -0
- data/src/iowa.rb +637 -0
- data/src/iowa/AbstractCache.rb +96 -0
- data/src/iowa/AcceptLanguage.rb +76 -0
- data/src/iowa/Application.rb +928 -0
- data/src/iowa/ApplicationStats.rb +72 -0
- data/src/iowa/Association.rb +67 -0
- data/src/iowa/BindingsParser.rb +62 -0
- data/src/iowa/Breakpoint.rb +273 -0
- data/src/iowa/CSS.rb +564 -0
- data/src/iowa/Client.rb +192 -0
- data/src/iowa/Component.rb +405 -0
- data/src/iowa/ComponentProxy.rb +26 -0
- data/src/iowa/Config.rb +21 -0
- data/src/iowa/Constants.rb +226 -0
- data/src/iowa/Context.rb +218 -0
- data/src/iowa/ContextLogger.rb +16 -0
- data/src/iowa/DbPool.rb +222 -0
- data/src/iowa/DetachedComponent.rb +18 -0
- data/src/iowa/Dispatcher.rb +27 -0
- data/src/iowa/DynamicElements.rb +471 -0
- data/src/iowa/Element.rb +100 -0
- data/src/iowa/Email.rb +287 -0
- data/src/iowa/Extensions/AllExtensions.rb +4 -0
- data/src/iowa/Extensions/Class.rb +94 -0
- data/src/iowa/Extensions/Date.rb +88 -0
- data/src/iowa/Extensions/DateTime.rb +88 -0
- data/src/iowa/Extensions/Hash.rb +22 -0
- data/src/iowa/Extensions/Kernel.rb +6 -0
- data/src/iowa/Extensions/Numeric.rb +47 -0
- data/src/iowa/Extensions/Object.rb +11 -0
- data/src/iowa/Extensions/String.rb +60 -0
- data/src/iowa/Extensions/Time.rb +89 -0
- data/src/iowa/Extensions/TimeExtensions.rb +6 -0
- data/src/iowa/Form.rb +368 -0
- data/src/iowa/Hash.rb +85 -0
- data/src/iowa/ISAAC.rb +175 -0
- data/src/iowa/ImageSize.rb +279 -0
- data/src/iowa/IowaComponentMixins.rb +7 -0
- data/src/iowa/JSON-lexer.rb +296 -0
- data/src/iowa/JSON-objects.rb +201 -0
- data/src/iowa/KeyValueCoding.rb +91 -0
- data/src/iowa/LinkedList.rb +175 -0
- data/src/iowa/Loader.rb +22 -0
- data/src/iowa/Lockfile.rb +575 -0
- data/src/iowa/Logger.rb +74 -0
- data/src/iowa/Monkey.rb +20 -0
- data/src/iowa/Mutex.rb +142 -0
- data/src/iowa/Policy.rb +70 -0
- data/src/iowa/Pool.rb +243 -0
- data/src/iowa/PrettyException.rb +1091 -0
- data/src/iowa/Request.rb +244 -0
- data/src/iowa/Response.rb +133 -0
- data/src/iowa/Session.rb +354 -0
- data/src/iowa/SessionStats.rb +78 -0
- data/src/iowa/String.rb +65 -0
- data/src/iowa/Tag.rb +101 -0
- data/src/iowa/TemplateParser.rb +236 -0
- data/src/iowa/Util.rb +314 -0
- data/src/iowa/Webcache.rb +122 -0
- data/src/iowa/caches/BiLevelCache.rb +65 -0
- data/src/iowa/caches/ClassLimitedCache.rb +67 -0
- data/src/iowa/caches/DiskCache.rb +609 -0
- data/src/iowa/caches/DiskStore.rb +380 -0
- data/src/iowa/caches/LRUCache-alternative.rb +155 -0
- data/src/iowa/caches/LRUCache.rb +290 -0
- data/src/iowa/caches/SimpleLRUCache.rb +112 -0
- data/src/iowa/dispatchers/StandardDispatcher.rb +396 -0
- data/src/iowa/dispatchers/StandardDispatcherWithClassifier.rb +93 -0
- data/src/iowa/js/iowa_jsonrpc.js +381 -0
- data/src/iowa/js/jsonrpc.js +187 -0
- data/src/iowa/js/jsonrpc_async.js +261 -0
- data/src/iowa/loaders/DiskLoader.rb +50 -0
- data/src/iowa/loggers/Analogger.rb +54 -0
- data/src/iowa/loggers/AsyncLogger.rb +54 -0
- data/src/iowa/loggers/BitBucket.rb +38 -0
- data/src/iowa/loggers/Log4R.rb +13 -0
- data/src/iowa/loggers/Log4rLogger.rb +48 -0
- data/src/iowa/loggers/Logger.rb +29 -0
- data/src/iowa/loggers/RubyLogger.rb +9 -0
- data/src/iowa/pools/DBConnectionPool.rb +53 -0
- data/src/iowa/request/Apache.rb +90 -0
- data/src/iowa/request/EMHybrid.rb +59 -0
- data/src/iowa/request/ENV.rb +80 -0
- data/src/iowa/request/FCGI.rb +68 -0
- data/src/iowa/request/HTTPMachine.rb +75 -0
- data/src/iowa/request/Mongrel.rb +68 -0
- data/src/iowa/request/WEBrick.rb +48 -0
- data/src/iowa/version.rb +3 -0
- data/src/iowa/webrick/HTTPServer.rb +43 -0
- data/src/iowa/webrick/WEBrickServlet.rb +28 -0
- data/src/iowa_fcgi_handler.rb +101 -0
- data/src/iowa_httpmachine.rb +141 -0
- data/src/iowa_hybrid.rb +193 -0
- data/src/iowa_hybrid_cluster.rb +231 -0
- data/src/iowa_mongrel.rb +136 -0
- data/src/iowa_webrick.rb +194 -0
- data/src/iowa_webrick_legacy.rb +104 -0
- data/src/mod_iowa.rb +104 -0
- data/tcss.rb +61 -0
- data/test/README.windows +12 -0
- data/test/TC_AcceptLanguage.rb +61 -0
- data/test/TC_AppConfig.rb +43 -0
- data/test/TC_AppConfig/cgi/iowa.cgi +7 -0
- data/test/TC_AppConfig/doc/index.html +1 -0
- data/test/TC_AppConfig/iowa/Main.html +4 -0
- data/test/TC_AppConfig/iowa/Main.iwa +17 -0
- data/test/TC_AppConfig/iowa/README +1 -0
- data/test/TC_AppConfig/iowa/app.cnf +19 -0
- data/test/TC_AppConfig/iowa/app.rb +8 -0
- data/test/TC_AppConfig/webrick.rb +38 -0
- data/test/TC_Association.rb +29 -0
- data/test/TC_BiLevelCache.rb +71 -0
- data/test/TC_CGI_Adaptor.rb +55 -0
- data/test/TC_CGI_Adaptor/cgi/iowa.cgi +7 -0
- data/test/TC_CGI_Adaptor/doc/index.html +1 -0
- data/test/TC_CGI_Adaptor/iowa/Main.html +8 -0
- data/test/TC_CGI_Adaptor/iowa/Main.iwa +14 -0
- data/test/TC_CGI_Adaptor/iowa/README +1 -0
- data/test/TC_CGI_Adaptor/iowa/app.cnf +8 -0
- data/test/TC_CGI_Adaptor/iowa/app.rb +8 -0
- data/test/TC_CGI_Adaptor/webrick.rb +38 -0
- data/test/TC_CSS.rb +660 -0
- data/test/TC_ClassLimitedCache.rb +89 -0
- data/test/TC_Classifier.rb +80 -0
- data/test/TC_DbPool.rb +127 -0
- data/test/TC_DiskCache.rb +218 -0
- data/test/TC_Hybrid.rb +58 -0
- data/test/TC_Hybrid/doc/thing.txt +1 -0
- data/test/TC_Hybrid/iowa/Main.html +3 -0
- data/test/TC_Hybrid/iowa/Main.iwa +7 -0
- data/test/TC_Hybrid/iowa/NewPage.html +1 -0
- data/test/TC_Hybrid/iowa/NewPage.iwa +5 -0
- data/test/TC_Hybrid/iowa/app.cnf +10 -0
- data/test/TC_Hybrid/iowa/app.rb +5 -0
- data/test/TC_IOWAFunctions/doc/Ajax1.html +1 -0
- data/test/TC_IOWAFunctions/doc/Ajax1.iwa +1 -0
- data/test/TC_IOWAFunctions/doc/index.html +1 -0
- data/test/TC_IOWAFunctions/doc/js/dojo.js +9686 -0
- data/test/TC_IOWAFunctions/iowa/Ajax1.html +40 -0
- data/test/TC_IOWAFunctions/iowa/Ajax1.iwa +23 -0
- data/test/TC_IOWAFunctions/iowa/AjaxWidget.iwa +19 -0
- data/test/TC_IOWAFunctions/iowa/AjaxWidget.view +22 -0
- data/test/TC_IOWAFunctions/iowa/DanielTest.html +9 -0
- data/test/TC_IOWAFunctions/iowa/DanielTest.iwa +10 -0
- data/test/TC_IOWAFunctions/iowa/IntervalWidget.html +1 -0
- data/test/TC_IOWAFunctions/iowa/IntervalWidget.iwa +14 -0
- data/test/TC_IOWAFunctions/iowa/Main.html +1 -0
- data/test/TC_IOWAFunctions/iowa/NestedRepeat1.html +12 -0
- data/test/TC_IOWAFunctions/iowa/NestedRepeat1.iwa +24 -0
- data/test/TC_IOWAFunctions/iowa/RPCResponse.iwa +7 -0
- data/test/TC_IOWAFunctions/iowa/RPCResponse.view +1 -0
- data/test/TC_IOWAFunctions/iowa/Repeat1.iwa +31 -0
- data/test/TC_IOWAFunctions/iowa/Repeat1.view +9 -0
- data/test/TC_IOWAFunctions/iowa/Repeat2.iwa +32 -0
- data/test/TC_IOWAFunctions/iowa/Repeat2.view +11 -0
- data/test/TC_IOWAFunctions/iowa/Repeat3.iwa +44 -0
- data/test/TC_IOWAFunctions/iowa/Repeat3.view +18 -0
- data/test/TC_IOWAFunctions/iowa/TesCon.html +1 -0
- data/test/TC_IOWAFunctions/iowa/TesCon.iwa +5 -0
- data/test/TC_IOWAFunctions/iowa/app.cnf +19 -0
- data/test/TC_IOWAFunctions/iowa/app.rb +9 -0
- data/test/TC_IOWAFunctions/iowa/mapfile.cnf +8 -0
- data/test/TC_ISAAC.rb +52 -0
- data/test/TC_ImageSize.rb +84 -0
- data/test/TC_ImageSize/img.bmp +0 -0
- data/test/TC_ImageSize/img.gif +0 -0
- data/test/TC_ImageSize/img.jpg +0 -0
- data/test/TC_ImageSize/img.pcx +0 -0
- data/test/TC_ImageSize/img.pgm +7144 -0
- data/test/TC_ImageSize/img.png +0 -0
- data/test/TC_ImageSize/img.ppm +0 -0
- data/test/TC_ImageSize/img.psd +0 -0
- data/test/TC_ImageSize/img.tiff +0 -0
- data/test/TC_ImageSize/img.xbm +22 -0
- data/test/TC_KeyValueCoding.rb +35 -0
- data/test/TC_LRUCache.rb +296 -0
- data/test/TC_LinkedList.rb +46 -0
- data/test/TC_Lockfile.rb +106 -0
- data/test/TC_Minimal.rb +45 -0
- data/test/TC_Minimal/app.cnf +8 -0
- data/test/TC_Minimal/cgi-bin/iowa.cgi +11 -0
- data/test/TC_Minimal/doc/index.html +1 -0
- data/test/TC_Minimal/iowa/Main.html +1 -0
- data/test/TC_Minimal/iowa/README +1 -0
- data/test/TC_Minimal/iowa/app.rb +3 -0
- data/test/TC_Minimal/webrick.rb +38 -0
- data/test/TC_Mongrel.rb +58 -0
- data/test/TC_Mongrel/doc/thing.txt +1 -0
- data/test/TC_Mongrel/iowa/Main.html +3 -0
- data/test/TC_Mongrel/iowa/Main.iwa +7 -0
- data/test/TC_Mongrel/iowa/NewPage.html +1 -0
- data/test/TC_Mongrel/iowa/NewPage.iwa +5 -0
- data/test/TC_Mongrel/iowa/app.cnf +10 -0
- data/test/TC_Mongrel/iowa/app.rb +5 -0
- data/test/TC_NoSubclass.rb +56 -0
- data/test/TC_NoSubclass/cgi/iowa.cgi +7 -0
- data/test/TC_NoSubclass/doc/index.html +1 -0
- data/test/TC_NoSubclass/iowa/Main.html +8 -0
- data/test/TC_NoSubclass/iowa/Main.iwa +14 -0
- data/test/TC_NoSubclass/iowa/README +1 -0
- data/test/TC_NoSubclass/iowa/app.cnf +8 -0
- data/test/TC_NoSubclass/iowa/app.rb +5 -0
- data/test/TC_NoSubclass/webrick.rb +38 -0
- data/test/TC_Pool.rb +139 -0
- data/test/TC_RenderedCache/doc/thing.txt +1 -0
- data/test/TC_RenderedCache/iowa/BigPage.html +1 -0
- data/test/TC_RenderedCache/iowa/BigPage.iwa +12 -0
- data/test/TC_RenderedCache/iowa/Main.html +3 -0
- data/test/TC_RenderedCache/iowa/Main.iwa +7 -0
- data/test/TC_RenderedCache/iowa/NewPage.html +1 -0
- data/test/TC_RenderedCache/iowa/NewPage.iwa +11 -0
- data/test/TC_RenderedCache/iowa/app.cnf +13 -0
- data/test/TC_RenderedCache/iowa/app.rb +5 -0
- data/test/TC_RenderedCache/iowa/mapfile.map +4 -0
- data/test/TC_ResourceURL.rb +73 -0
- data/test/TC_ResourceURL/iowa/Main.html +2 -0
- data/test/TC_ResourceURL/iowa/Main.iwa +10 -0
- data/test/TC_ResourceURL/iowa/app.cnf +10 -0
- data/test/TC_ResourceURL/iowa/app.rb +5 -0
- data/test/TC_SimpleDetached.rb +41 -0
- data/test/TC_StandardDispatcher.rb +362 -0
- data/test/TC_StandardDispatcherWithClassifier.rb +358 -0
- data/test/TC_String.rb +24 -0
- data/test/TC_Tag.rb +41 -0
- data/test/TC_Webrick.rb +56 -0
- data/test/TC_Webrick/doc/thing.txt +1 -0
- data/test/TC_Webrick/iowa/Main.html +3 -0
- data/test/TC_Webrick/iowa/Main.iwa +7 -0
- data/test/TC_Webrick/iowa/NewPage.html +1 -0
- data/test/TC_Webrick/iowa/NewPage.iwa +5 -0
- data/test/TC_Webrick/iowa/app.cnf +10 -0
- data/test/TC_Webrick/iowa/app.rb +5 -0
- data/test/tc_template.rb +15 -0
- data/test/tests.conf +19 -0
- data/utils/CVS/Entries +3 -0
- data/utils/CVS/Repository +1 -0
- data/utils/CVS/Root +1 -0
- data/utils/QuickCert-1.0.2.tar.gz +0 -0
- data/utils/QuickCert-1.0.2/InstalledFiles +7 -0
- data/utils/QuickCert-1.0.2/MANIFEST +10 -0
- data/utils/QuickCert-1.0.2/Makefile +15 -0
- data/utils/QuickCert-1.0.2/README +56 -0
- data/utils/QuickCert-1.0.2/bin/QuickCert +355 -0
- data/utils/QuickCert-1.0.2/config.save +12 -0
- data/utils/QuickCert-1.0.2/data/examples/ruby/QuickCert/README +60 -0
- data/utils/QuickCert-1.0.2/data/examples/ruby/QuickCert/drbssl_c.rb +26 -0
- data/utils/QuickCert-1.0.2/data/examples/ruby/QuickCert/drbssl_s.rb +35 -0
- data/utils/QuickCert-1.0.2/data/examples/ruby/QuickCert/qc_config +21 -0
- data/utils/QuickCert-1.0.2/lib/QuickCert/defaults.rb +28 -0
- data/utils/QuickCert-1.0.2/setup.rb +1312 -0
- data/utils/iowa_apps +422 -0
- data/utils/smtp_sink.rb +9 -0
- data/utils/startup_template.cnf +27 -0
- data/utils/startup_template.rb +73 -0
- metadata +551 -0
@@ -0,0 +1,296 @@
|
|
1
|
+
require 'Win32API'
|
2
|
+
|
3
|
+
module Windows
|
4
|
+
module Path
|
5
|
+
# These constants are for use by the PathGetCharType() function.
|
6
|
+
GCT_INVALID = 0x0000 # The character is not valid in a path.
|
7
|
+
GCT_LFNCHAR = 0x0001 # The character is valid in a long file name.
|
8
|
+
GCT_SHORTCHAR = 0x0002 # The character is valid in a short (8.3) file name.
|
9
|
+
GCT_WILD = 0x0004 # The character is a wildcard character.
|
10
|
+
GCT_SEPARATOR = 0x0008 # The character is a path separator.
|
11
|
+
|
12
|
+
PathAddBackslash = Win32API.new('shlwapi', 'PathAddBackslash', 'P', 'P')
|
13
|
+
PathAddExtension = Win32API.new('shlwapi', 'PathAddExtension', 'PP', 'I')
|
14
|
+
PathAppend = Win32API.new('shlwapi', 'PathAppend', 'PP', 'I')
|
15
|
+
PathBuildRoot = Win32API.new('shlwapi', 'PathBuildRoot', 'PI', 'P')
|
16
|
+
PathCanonicalize = Win32API.new('shlwapi', 'PathCanonicalize', 'PP', 'I')
|
17
|
+
PathCombine = Win32API.new('shlwapi', 'PathCombine', 'PPP', 'P')
|
18
|
+
PathCommonPrefix = Win32API.new('shlwapi', 'PathCommonPrefix', 'PPP', 'I')
|
19
|
+
PathCompactPath = Win32API.new('shlwapi', 'PathCompactPath', 'PPI', 'I')
|
20
|
+
PathCompactPathEx = Win32API.new('shlwapi', 'PathCompactPathEx', 'PPIL', 'I')
|
21
|
+
PathCreateFromUrl = Win32API.new('shlwapi', 'PathCreateFromUrl', 'PPPL', 'L')
|
22
|
+
PathFileExists = Win32API.new('shlwapi', 'PathFileExists', 'P', 'I')
|
23
|
+
PathFindExtension = Win32API.new('shlwapi', 'PathFindExtension', 'P', 'P')
|
24
|
+
PathFindFileName = Win32API.new('shlwapi', 'PathFindFileName', 'P', 'P')
|
25
|
+
|
26
|
+
PathFindNextComponent = Win32API.new('shlwapi', 'PathFindNextComponent', 'P', 'P')
|
27
|
+
PathFindOnPath = Win32API.new('shlwapi', 'PathFindOnPath', 'PP', 'I')
|
28
|
+
PathFindSuffixArray = Win32API.new('shlwapi', 'PathFindSuffixArray', 'PPI', 'P')
|
29
|
+
PathGetArgs = Win32API.new('shlwapi', 'PathGetArgs', 'P', 'P')
|
30
|
+
PathGetCharType = Win32API.new('shlwapi', 'PathGetCharType', 'P', 'I')
|
31
|
+
PathGetDriveNumber = Win32API.new('shlwapi', 'PathGetDriveNumber', 'P', 'I')
|
32
|
+
PathIsContentType = Win32API.new('shlwapi', 'PathIsContentType', 'PP', 'I')
|
33
|
+
PathIsDirectory = Win32API.new('shlwapi', 'PathIsDirectory', 'P', 'I')
|
34
|
+
PathIsDirectoryEmpty = Win32API.new('shlwapi', 'PathIsDirectoryEmpty', 'P', 'I')
|
35
|
+
PathIsFileSpec = Win32API.new('shlwapi', 'PathIsFileSpec', 'P', 'I')
|
36
|
+
#PathIsHTMLFile = Win32API.new('shlwapi', 'PathIsHTMLFile', 'P', 'I')
|
37
|
+
PathIsLFNFileSpec = Win32API.new('shlwapi', 'PathIsLFNFileSpec', 'P', 'I')
|
38
|
+
PathIsNetworkPath = Win32API.new('shlwapi', 'PathIsNetworkPath', 'P', 'I')
|
39
|
+
PathIsPrefix = Win32API.new('shlwapi', 'PathIsPrefix', 'PP', 'I')
|
40
|
+
PathIsRelative = Win32API.new('shlwapi', 'PathIsRelative', 'P', 'I')
|
41
|
+
PathIsRoot = Win32API.new('shlwapi', 'PathIsRoot', 'P', 'I')
|
42
|
+
PathIsSameRoot = Win32API.new('shlwapi', 'PathIsSameRoot', 'PP', 'I')
|
43
|
+
PathIsSystemFolder = Win32API.new('shlwapi', 'PathIsSystemFolder', 'PL', 'I')
|
44
|
+
PathIsUNC = Win32API.new('shlwapi', 'PathIsUNC', 'P', 'I')
|
45
|
+
PathIsUNCServer = Win32API.new('shlwapi', 'PathIsUNCServer', 'P', 'I')
|
46
|
+
PathIsUNCServerShare = Win32API.new('shlwapi', 'PathIsUNCServerShare','P','I')
|
47
|
+
PathIsURL = Win32API.new('shlwapi', 'PathIsURL', 'P', 'I')
|
48
|
+
PathMakePretty = Win32API.new('shlwapi', 'PathMakePretty', 'P', 'I')
|
49
|
+
PathMakeSystemFolder = Win32API.new('shlwapi', 'PathMakeSystemFolder', 'P', 'I')
|
50
|
+
PathMatchSpec = Win32API.new('shlwapi', 'PathMatchSpec', 'PP', 'I')
|
51
|
+
PathParseIconLocation = Win32API.new('shlwapi', 'PathParseIconLocation', 'P', 'I')
|
52
|
+
PathQuoteSpaces = Win32API.new('shlwapi', 'PathQuoteSpaces', 'P', 'V')
|
53
|
+
PathRelativePathTo = Win32API.new('shlwapi', 'PathRelativePathTo', 'PPLPL', 'I')
|
54
|
+
PathRemoveArgs = Win32API.new('shlwapi', 'PathRemoveArgs', 'P', 'V')
|
55
|
+
PathRemoveBackslash = Win32API.new('shlwapi', 'PathRemoveBackslash', 'P', 'P')
|
56
|
+
PathRemoveBlanks = Win32API.new('shlwapi', 'PathRemoveBlanks', 'P', 'V')
|
57
|
+
PathRemoveExtension = Win32API.new('shlwapi', 'PathRemoveExtension', 'P','V')
|
58
|
+
PathRemoveFileSpec = Win32API.new('shlwapi', 'PathRemoveFileSpec', 'P', 'L')
|
59
|
+
PathRenameExtension = Win32API.new('shlwapi', 'PathRenameExtension', 'PP','I')
|
60
|
+
PathSearchAndQualify = Win32API.new('shlwapi', 'PathSearchAndQualify', 'PPI', 'I')
|
61
|
+
PathSetDlgItemPath = Win32API.new('shlwapi', 'PathSetDlgItemPath', 'LIP', 'V')
|
62
|
+
PathSkipRoot = Win32API.new('shlwapi', 'PathSkipRoot', 'P', 'P')
|
63
|
+
PathStripPath = Win32API.new('shlwapi', 'PathStripPath', 'P', 'V')
|
64
|
+
PathStripToRoot = Win32API.new('shlwapi', 'PathStripToRoot', 'P', 'I')
|
65
|
+
PathUndecorate = Win32API.new('shlwapi', 'PathUndecorate', 'P', 'V')
|
66
|
+
PathUnExpandEnvStrings = Win32API.new('shlwapi', 'PathUnExpandEnvStrings', 'PPI', 'I')
|
67
|
+
PathUnmakeSystemFolder = Win32API.new('shlwapi', 'PathUnmakeSystemFolder', 'P', 'I')
|
68
|
+
PathUnquoteSpaces = Win32API.new('shlwapi', 'PathUnquoteSpaces', 'P', 'V')
|
69
|
+
|
70
|
+
def PathAddBackslash(path)
|
71
|
+
PathAddBackslash.call(path)
|
72
|
+
end
|
73
|
+
|
74
|
+
def PathAddExtension(path, ext)
|
75
|
+
PathAddExtension.call(path, ext) > 0
|
76
|
+
end
|
77
|
+
|
78
|
+
def PathAppend(path, more)
|
79
|
+
PathAppend.call(path, more) > 0
|
80
|
+
end
|
81
|
+
|
82
|
+
def PathBuildRoot(root, drive)
|
83
|
+
PathBuildRoot.call(root, drive)
|
84
|
+
end
|
85
|
+
|
86
|
+
def PathCanonicalize(dst, src)
|
87
|
+
PathCanonicalize.call(dst, src) > 0
|
88
|
+
end
|
89
|
+
|
90
|
+
def PathCombine(dest, dir, file)
|
91
|
+
PathCombine.call(dest, dir, file)
|
92
|
+
end
|
93
|
+
|
94
|
+
def PathCommonPrefix(path1, path2, buf)
|
95
|
+
PathCommonPrefix.call(path1, path2, buf)
|
96
|
+
end
|
97
|
+
|
98
|
+
def PathCompactPath(handle, path, px_width)
|
99
|
+
PathCompactPath.call(handle, path, px_width) > 0
|
100
|
+
end
|
101
|
+
|
102
|
+
def PathCompactPathEx(out, src, max, flags = nil)
|
103
|
+
PathCompactPathEx.call(out, src, max, flags) > 0
|
104
|
+
end
|
105
|
+
|
106
|
+
def PathCreateFromUrl(url, path, path_size, reserved = nil)
|
107
|
+
PathCreateFromUrl.call(url, path, path_size, reserved) >= 0
|
108
|
+
end
|
109
|
+
|
110
|
+
def PathFileExists(path)
|
111
|
+
PathFileExists.call(path) > 0
|
112
|
+
end
|
113
|
+
|
114
|
+
def PathFindExtension(path)
|
115
|
+
PathFindExtension.call(path)
|
116
|
+
end
|
117
|
+
|
118
|
+
def PathFindFileName(path)
|
119
|
+
PathFindFileName.call(path)
|
120
|
+
end
|
121
|
+
|
122
|
+
def PathFindNextComponent(path)
|
123
|
+
PathFindNextComponent.call(path)
|
124
|
+
end
|
125
|
+
|
126
|
+
def PathFindOnPath(file, dirs)
|
127
|
+
PathFindOnPath.call(file, dirs)
|
128
|
+
end
|
129
|
+
|
130
|
+
def PathFindSuffixArray(path, suffix_array, suffix_size)
|
131
|
+
PathFindSuffixArray.call(path, suffix_array, suffix_size)
|
132
|
+
end
|
133
|
+
|
134
|
+
def PathGetArgs(path)
|
135
|
+
PathGetArgs.call(path)
|
136
|
+
end
|
137
|
+
|
138
|
+
def PathGetCharType(char)
|
139
|
+
PathGetCharType.call(char)
|
140
|
+
end
|
141
|
+
|
142
|
+
def PathGetDriveNumber(path)
|
143
|
+
PathGetDriveNumber.call(path)
|
144
|
+
end
|
145
|
+
|
146
|
+
def PathIsContentType(path, content_type)
|
147
|
+
PathIsContentType.call(path, content_type) > 0
|
148
|
+
end
|
149
|
+
|
150
|
+
def PathIsDirectory(path)
|
151
|
+
PathIsDirectory.call(path) > 0
|
152
|
+
end
|
153
|
+
|
154
|
+
def PathIsDirectoryEmpty(path)
|
155
|
+
PathIsDirectoryEmpty.call(path) > 0
|
156
|
+
end
|
157
|
+
|
158
|
+
def PathIsFileSpec(path)
|
159
|
+
PathIsFileSpec.call(path) > 0
|
160
|
+
end
|
161
|
+
|
162
|
+
# This appears to be broken with the current MSVC distro. Use
|
163
|
+
# PathIsContentType instead.
|
164
|
+
#def PathIsHTMLFile(path)
|
165
|
+
# PathIsHTMLFile.call(path)
|
166
|
+
#end
|
167
|
+
|
168
|
+
def PathIsLFNFileSpec(path)
|
169
|
+
PathIsLFNFileSpec.call(path) > 0
|
170
|
+
end
|
171
|
+
|
172
|
+
def PathIsNetworkPath(path)
|
173
|
+
PathIsNetworkPath.call(path) > 0
|
174
|
+
end
|
175
|
+
|
176
|
+
def PathIsPrefix(prefix, path)
|
177
|
+
PathIsPrefix.call(prefix, path) > 0
|
178
|
+
end
|
179
|
+
|
180
|
+
def PathIsRelative(path)
|
181
|
+
PathIsRelative.call(path) > 0
|
182
|
+
end
|
183
|
+
|
184
|
+
def PathIsRoot(path)
|
185
|
+
PathIsRoot.call(path) > 0
|
186
|
+
end
|
187
|
+
|
188
|
+
def PathIsSameRoot(path1, path2)
|
189
|
+
PathIsSameRoot.call(path1, path2) > 0
|
190
|
+
end
|
191
|
+
|
192
|
+
def PathIsSystemFolder(path)
|
193
|
+
PathIsSystemFolder.call(path) > 0
|
194
|
+
end
|
195
|
+
|
196
|
+
def PathIsUNC(path)
|
197
|
+
PathIsUNC.call(path) > 0
|
198
|
+
end
|
199
|
+
|
200
|
+
def PathIsUNCServer(path)
|
201
|
+
PathIsUNCServer.call(path) > 0
|
202
|
+
end
|
203
|
+
|
204
|
+
def PathIsUNCServerShare(path)
|
205
|
+
PathIsUNCServerShare.call(path) > 0
|
206
|
+
end
|
207
|
+
|
208
|
+
def PathIsURL(path)
|
209
|
+
PathIsURL.call(path) > 0
|
210
|
+
end
|
211
|
+
|
212
|
+
def PathMakePretty(path)
|
213
|
+
PathMakePretty.call(path) > 0
|
214
|
+
end
|
215
|
+
|
216
|
+
def PathMakeSystemFolder(path)
|
217
|
+
PathMakeSystemFolder.call(path) > 0
|
218
|
+
end
|
219
|
+
|
220
|
+
def PathMatchSpec(path, spec)
|
221
|
+
PathMatchSpec.call(path, spec) > 0
|
222
|
+
end
|
223
|
+
|
224
|
+
def PathParseIconLocation(path)
|
225
|
+
PathParseIconLocation.call(path)
|
226
|
+
end
|
227
|
+
|
228
|
+
def PathQuoteSpaces(path)
|
229
|
+
PathQuoteSpaces.call(path)
|
230
|
+
end
|
231
|
+
|
232
|
+
def PathRelativePathTo(path, from, from_attr, to, to_attr)
|
233
|
+
PathRelativePathTo.call(path, from, from_attr, to, to_attr) > 0
|
234
|
+
end
|
235
|
+
|
236
|
+
def PathRemoveArgs(path)
|
237
|
+
PathRemoveArgs.call(path)
|
238
|
+
end
|
239
|
+
|
240
|
+
def PathRemoveBackslash(path)
|
241
|
+
PathRemoveBackslash.call(path)
|
242
|
+
end
|
243
|
+
|
244
|
+
def PathRemoveBlanks(path)
|
245
|
+
PathRemoveBlanks.call(path)
|
246
|
+
end
|
247
|
+
|
248
|
+
def PathRemoveExtension(path)
|
249
|
+
PathRemoveExtension.call(path)
|
250
|
+
end
|
251
|
+
|
252
|
+
def PathRemoveFileSpec(path)
|
253
|
+
PathRemoveFileSpec.call(path) > 0
|
254
|
+
end
|
255
|
+
|
256
|
+
def PathRenameExtension(path, ext)
|
257
|
+
PathRenameExtension.call(path, ext) > 0
|
258
|
+
end
|
259
|
+
|
260
|
+
def PathSearchAndQualify(path, full_path, full_path_size)
|
261
|
+
PathSearchAndQualify.call(path, full_path, full_path_size) > 0
|
262
|
+
end
|
263
|
+
|
264
|
+
def PathSetDlgItemPath(handle, id, path)
|
265
|
+
PathSetDlgItemPath.call(handle, id, path)
|
266
|
+
end
|
267
|
+
|
268
|
+
def PathSkipRoot(path)
|
269
|
+
PathSkipRoot.call(path)
|
270
|
+
end
|
271
|
+
|
272
|
+
def PathStripPath(path)
|
273
|
+
PathStripPath.call(path)
|
274
|
+
end
|
275
|
+
|
276
|
+
def PathStripToRoot(path)
|
277
|
+
PathStripToRoot.call(path) > 0
|
278
|
+
end
|
279
|
+
|
280
|
+
def PathUndecorate(path)
|
281
|
+
PathUndecorate.call(path)
|
282
|
+
end
|
283
|
+
|
284
|
+
def PathUnExpandEnvStrings(path, buf, buf_size)
|
285
|
+
PathUnExpandEnvStrings.call(path, buf, buf_size) > 0
|
286
|
+
end
|
287
|
+
|
288
|
+
def PathUnmakeSystemFolder(path)
|
289
|
+
PathUnmakeSystemFolder.call(path) > 0
|
290
|
+
end
|
291
|
+
|
292
|
+
def PathUnquoteSpaces(path)
|
293
|
+
PathUnquoteSpaces.call(path)
|
294
|
+
end
|
295
|
+
end
|
296
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'Win32API'
|
2
|
+
|
3
|
+
module Windows
|
4
|
+
module Pipe
|
5
|
+
NMPWAIT_NOWAIT = 0x00000001
|
6
|
+
NMPWAIT_WAIT_FOREVER = 0xffffffff
|
7
|
+
NMPWAIT_USE_DEFAULT_WAIT = 0x00000000
|
8
|
+
|
9
|
+
PIPE_WAIT = 0x00000000
|
10
|
+
PIPE_NOWAIT = 0x00000001
|
11
|
+
PIPE_ACCESS_INBOUND = 0x00000001
|
12
|
+
PIPE_ACCESS_OUTBOUND = 0x00000002
|
13
|
+
PIPE_ACCESS_DUPLEX = 0x00000003
|
14
|
+
PIPE_TYPE_BYTE = 0x00000000
|
15
|
+
PIPE_TYPE_MESSAGE = 0x00000004
|
16
|
+
PIPE_READMODE_BYTE = 0x00000000
|
17
|
+
PIPE_READMODE_MESSAGE = 0x00000002
|
18
|
+
PIPE_CLIENT_END = 0x00000000
|
19
|
+
PIPE_SERVER_END = 0x00000001
|
20
|
+
|
21
|
+
CallNamedPipe = Win32API.new('kernel32', 'CallNamedPipe', 'PPLPLPL', 'I')
|
22
|
+
ConnectNamedPipe = Win32API.new('kernel32', 'ConnectNamedPipe', 'LP', 'I')
|
23
|
+
CreateNamedPipe = Win32API.new('kernel32', 'CreateNamedPipe', 'PLLLLLLL', 'L')
|
24
|
+
CreatePipe = Win32API.new('kernel32', 'CreatePipe', 'PPPL', 'I')
|
25
|
+
DisconnectNamedPipe = Win32API.new('kernel32', 'DisconnectNamedPipe', 'L', 'I')
|
26
|
+
GetNamedPipeHandleState = Win32API.new('kernel32', 'GetNamedPipeHandleState', 'LPPPPPL', 'I')
|
27
|
+
GetNamedPipeInfo = Win32API.new('kernel32', 'GetNamedPipeInfo', 'LPPPP', 'I')
|
28
|
+
PeekNamedPipe = Win32API.new('kernel32', 'PeekNamedPipe', 'LPLPPP', 'I')
|
29
|
+
SetNamedPipeHandleState = Win32API.new('kernel32', 'SetNamedPipeHandleState', 'LPPP', 'I')
|
30
|
+
TransactNamedPipe = Win32API.new('kernel32', 'TransactNamedPipe', 'LPLPLPP', 'I')
|
31
|
+
WaitNamedPipe = Win32API.new('kernel32', 'WaitNamedPipe', 'PL', 'I')
|
32
|
+
|
33
|
+
def CallNamedPipe(name, buf, buf_size, out, out_size, read, timeout)
|
34
|
+
CallNamedPipe.call(name, buf, buf_size, out, out_size, read, timeout) != 0
|
35
|
+
end
|
36
|
+
|
37
|
+
def ConnectNamedPipe(pipe, overlapped = 0)
|
38
|
+
ConnectNamedPipe.call(pipe, overlapped) != 0
|
39
|
+
end
|
40
|
+
|
41
|
+
def CreateNamedPipe(name, open_mode, pipe_mode, max, out_size, in_size, timeout, sec_attr)
|
42
|
+
CreateNamedPipe.call(name, open_mode, pipe_mode, max, out_size, in_size, timeout, sec_attr)
|
43
|
+
end
|
44
|
+
|
45
|
+
def CreatePipe(read_pipe, write_pipe, pipe_attr, size)
|
46
|
+
CreatePipe.call(read_pipe, write_pipe, pipe_attr, size) != 0
|
47
|
+
end
|
48
|
+
|
49
|
+
def DisconnectNamedPipe(name)
|
50
|
+
DisconnectNamedPipe.call(name) != 0
|
51
|
+
end
|
52
|
+
|
53
|
+
def GetNamedPipeHandleState(name, state, instances, count, timeout, user, size)
|
54
|
+
GetNamedPipeHandleState.call(name, state, instances, count, timeout, user, size) != 0
|
55
|
+
end
|
56
|
+
|
57
|
+
def GetNamedPipeInfo(name, flags, out_size, in_size, max)
|
58
|
+
GetNamedPipeInfo.call(name, flags, out_size, in_size, max) != 0
|
59
|
+
end
|
60
|
+
|
61
|
+
def PeekNamedPipe(name, buf, buf_size, bytes_read, bytes_avail, bytes_left)
|
62
|
+
PeekNamedPipe.call(name, buf, buf_size, bytes_read, bytes_avail, bytes_left) != 0
|
63
|
+
end
|
64
|
+
|
65
|
+
def SetNamedPipeHandleState(name, mode, max, timeout)
|
66
|
+
SetNamedPipeHandleState.call(name, mode, max, timeout) != 0
|
67
|
+
end
|
68
|
+
|
69
|
+
def TransactNamedPipe(name, in_buf, in_buf_size, out_buf, out_buf_size, read, overlapped)
|
70
|
+
TransactNamedPipe.call(name, in_buf, in_buf_size, out_buf, out_buf_size, read, overlapped) != 0
|
71
|
+
end
|
72
|
+
|
73
|
+
def WaitNamedPipe(name, timeout)
|
74
|
+
WaitNamedPipe.call(name, timeout) != 0
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,171 @@
|
|
1
|
+
require 'Win32API'
|
2
|
+
|
3
|
+
module Windows
|
4
|
+
module Process
|
5
|
+
PROCESS_ALL_ACCESS = 0x1F0FFF
|
6
|
+
PROCESS_CREATE_PROCESS = 0x0080
|
7
|
+
PROCESS_CREATE_THREAD = 0x0002
|
8
|
+
PROCESS_DUP_HANDLE = 0x0040
|
9
|
+
PROCESS_QUERY_INFORMATION = 0x0400
|
10
|
+
PROCESS_QUERY_LIMITED_INFORMATION = 0x1000
|
11
|
+
PROCESS_SET_QUOTA = 0x0100
|
12
|
+
PROCESS_SET_INFORMATION = 0x0200
|
13
|
+
PROCESS_SUSPEND_RESUME = 0x0800
|
14
|
+
PROCESS_TERMINATE = 0x0001
|
15
|
+
PROCESS_VM_OPERATION = 0x0008
|
16
|
+
PROCESS_VM_READ = 0x0010
|
17
|
+
PROCESS_VM_WRITE = 0x0020
|
18
|
+
SYNCHRONIZE = 1048576
|
19
|
+
STILL_ACTIVE = 259
|
20
|
+
|
21
|
+
ABOVE_NORMAL_PRIORITY_CLASS = 0x00008000
|
22
|
+
BELOW_NORMAL_PRIORITY_CLASS = 0x00004000
|
23
|
+
HIGH_PRIORITY_CLASS = 0x00000080
|
24
|
+
IDLE_PRIORITY_CLASS = 0x00000040
|
25
|
+
NORMAL_PRIORITY_CLASS = 0x00000020
|
26
|
+
REALTIME_PRIORITY_CLASS = 0x00000100
|
27
|
+
|
28
|
+
# Process creation flags
|
29
|
+
CREATE_BREAKAWAY_FROM_JOB = 0x01000000
|
30
|
+
CREATE_DEFAULT_ERROR_MODE = 0x04000000
|
31
|
+
CREATE_NEW_CONSOLE = 0x00000010
|
32
|
+
CREATE_NEW_PROCESS_GROUP = 0x00000200
|
33
|
+
CREATE_NO_WINDOW = 0x08000000
|
34
|
+
CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 0x02000000
|
35
|
+
CREATE_SEPARATE_WOW_VDM = 0x00000800
|
36
|
+
CREATE_SHARED_WOW_VDM = 0x00001000
|
37
|
+
CREATE_SUSPENDED = 0x00000004
|
38
|
+
CREATE_UNICODE_ENVIRONMENT = 0x00000400
|
39
|
+
DEBUG_ONLY_THIS_PROCESS = 0x00000002
|
40
|
+
DEBUG_PROCESS = 0x00000001
|
41
|
+
DETACHED_PROCESS = 0x00000008
|
42
|
+
|
43
|
+
STARTF_USESHOWWINDOW = 0x00000001
|
44
|
+
STARTF_USESIZE = 0x00000002
|
45
|
+
STARTF_USEPOSITION = 0x00000004
|
46
|
+
STARTF_USECOUNTCHARS = 0x00000008
|
47
|
+
STARTF_USEFILLATTRIBUTE = 0x00000010
|
48
|
+
STARTF_RUNFULLSCREEN = 0x00000020
|
49
|
+
STARTF_FORCEONFEEDBACK = 0x00000040
|
50
|
+
STARTF_FORCEOFFFEEDBACK = 0x00000080
|
51
|
+
STARTF_USESTDHANDLES = 0x00000100
|
52
|
+
STARTF_USEHOTKEY = 0x00000200
|
53
|
+
|
54
|
+
CreateProcess = Win32API.new('kernel32', 'CreateProcess', 'LPLLLLLPPP', 'I')
|
55
|
+
CreateRemoteThread = Win32API.new('kernel32', 'CreateRemoteThread', 'LPLLPLP', 'L')
|
56
|
+
CreateThread = Win32API.new('kernel32', 'CreateThread', 'PLPPLP', 'L')
|
57
|
+
ExitProcess = Win32API.new('kernel32', 'ExitProcess', 'L', 'V')
|
58
|
+
GetCommandLine = Win32API.new('kernel32', 'GetCommandLine', 'V', 'P')
|
59
|
+
GetCurrentProcess = Win32API.new('kernel32', 'GetCurrentProcess', 'V', 'L')
|
60
|
+
GetCurrentProcessId = Win32API.new('kernel32', 'GetCurrentProcessId', 'V', 'L')
|
61
|
+
GetEnvironmentStrings = Win32API.new('kernel32', 'GetEnvironmentStrings', 'V', 'L')
|
62
|
+
GetEnvironmentVariable = Win32API.new('kernel32', 'GetEnvironmentVariable', 'PPL', 'L')
|
63
|
+
GetExitCodeProcess = Win32API.new('kernel32', 'GetExitCodeProcess', 'LP', 'I')
|
64
|
+
GetPriorityClass = Win32API.new('kernel32', 'GetPriorityClass', 'L', 'L')
|
65
|
+
GetProcessTimes = Win32API.new('kernel32', 'GetProcessTimes', 'LPPPP', 'I')
|
66
|
+
GetStartupInfo = Win32API.new('kernel32', 'GetStartupInfo', 'P', 'V')
|
67
|
+
OpenProcess = Win32API.new('kernel32', 'OpenProcess', 'LIL', 'L')
|
68
|
+
SetEnvironmentVariable = Win32API.new('kernel32', 'SetEnvironmentVariable', 'PP', 'I')
|
69
|
+
Sleep = Win32API.new('kernel32', 'Sleep', 'L', 'V')
|
70
|
+
SleepEx = Win32API.new('kernel32', 'SleepEx', 'LI', 'L')
|
71
|
+
TerminateProcess = Win32API.new('kernel32', 'TerminateProcess', 'LL', 'I')
|
72
|
+
WaitForInputIdle = Win32API.new('user32', 'WaitForInputIdle', 'LL', 'L')
|
73
|
+
|
74
|
+
# Windows XP or later
|
75
|
+
begin
|
76
|
+
GetProcessId = Win32API.new('kernel32', 'GetProcessId', 'L', 'L')
|
77
|
+
GetProcessHandleCount = Win32API.new('kernel32', 'GetProcessHandleCount', 'LP', 'I')
|
78
|
+
rescue Exception
|
79
|
+
# Do nothing - not supported on current platform. It's up to you to
|
80
|
+
# check for the existence of the constant in your code.
|
81
|
+
end
|
82
|
+
|
83
|
+
def CreateProcess(app, cmd, pattr, tattr, handles, flags, env, dir, sinfo, pinfo)
|
84
|
+
CreateProcess.call(app, cmd, pattr, tattr, handles, flags, env, dir, sinfo, pinfo) != 0
|
85
|
+
end
|
86
|
+
|
87
|
+
def CreateRemoteThread(handle, tattr, size, start, param, flags, tid)
|
88
|
+
CreateRemoteThread.call(handle, tattr, size, start, param, flags, tid)
|
89
|
+
end
|
90
|
+
|
91
|
+
def CreateThread(attr, size, addr, param, flags, id)
|
92
|
+
CreateThread.call(attr, size, addr, param, flags, id)
|
93
|
+
end
|
94
|
+
|
95
|
+
def ExitProcess(exit_code)
|
96
|
+
ExitProcess.call(exit_code)
|
97
|
+
end
|
98
|
+
|
99
|
+
def GetCommandLine
|
100
|
+
GetCommandLine.call
|
101
|
+
end
|
102
|
+
|
103
|
+
def GetCurrentProcess()
|
104
|
+
GetCurrentProcess.call
|
105
|
+
end
|
106
|
+
|
107
|
+
def GetCurrentProcessId()
|
108
|
+
GetCurrentProcessId.call
|
109
|
+
end
|
110
|
+
|
111
|
+
def GetEnvironmentStrings()
|
112
|
+
GetEnvironmentStrings.call
|
113
|
+
end
|
114
|
+
|
115
|
+
def GetEnvironmentVariable(name, buffer, size)
|
116
|
+
GetEnvironmentVariable.call(name, buffer, size)
|
117
|
+
end
|
118
|
+
|
119
|
+
def GetExitCodeProcess(handle, exit_code)
|
120
|
+
GetExitCodeProcess.call(handle, exit_code) != 0
|
121
|
+
end
|
122
|
+
|
123
|
+
def GetPriorityClass(handle)
|
124
|
+
GetPriorityClass.call(handle)
|
125
|
+
end
|
126
|
+
|
127
|
+
def GetProcessTimes(handle, t_creation, t_exit, t_kernel, t_user)
|
128
|
+
GetProcessTimes.call(handle, t_creation, t_exit, t_kernel, t_user) != 0
|
129
|
+
end
|
130
|
+
|
131
|
+
def GetStartupInfo(info_struct)
|
132
|
+
GetStartupInfo.call(info_struct)
|
133
|
+
end
|
134
|
+
|
135
|
+
def OpenProcess(access, handle, pid)
|
136
|
+
OpenProcess.call(access, handle, pid)
|
137
|
+
end
|
138
|
+
|
139
|
+
def SetEnvironmentVariable(name, value)
|
140
|
+
SetEnvironmentVariable.call(name, value)
|
141
|
+
end
|
142
|
+
|
143
|
+
def Sleep(milliseconds)
|
144
|
+
Sleep.call(milliseconds)
|
145
|
+
end
|
146
|
+
|
147
|
+
def SleepEx(milliseconds, alertable)
|
148
|
+
SleepEx.call(milliseconds, alertable)
|
149
|
+
end
|
150
|
+
|
151
|
+
def TerminateProcess(handle, exit_code)
|
152
|
+
TerminateProcess.call(handle, exit_code) != 0
|
153
|
+
end
|
154
|
+
|
155
|
+
def WaitForInputIdle(handle, milliseconds)
|
156
|
+
WaitForInputIdle.call(handle, milliseconds)
|
157
|
+
end
|
158
|
+
|
159
|
+
begin
|
160
|
+
def GetProcessId(handle)
|
161
|
+
GetProcessId.call(handle)
|
162
|
+
end
|
163
|
+
|
164
|
+
def GetProcessHandleCount(handle, count)
|
165
|
+
GetProcessHandleCount.call(handle, count) != 0
|
166
|
+
end
|
167
|
+
rescue Exception
|
168
|
+
# Windows XP or later
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|