vulcan 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vulcan/version.rb +1 -1
- data/server/Procfile +1 -0
- data/server/bin/make +39 -0
- data/server/lib/on.js +13 -0
- data/server/lib/spawner.js +101 -0
- data/server/node_modules/connect-form/History.md +28 -0
- data/server/node_modules/connect-form/LICENSE +22 -0
- data/server/node_modules/connect-form/Makefile +11 -0
- data/server/node_modules/connect-form/Readme.md +35 -0
- data/server/node_modules/connect-form/index.html +213 -0
- data/server/node_modules/connect-form/index.js +100 -0
- data/server/node_modules/connect-form/lib/connect-form.js +100 -0
- data/server/node_modules/connect-form/node_modules/formidable/Makefile +14 -0
- data/server/node_modules/connect-form/node_modules/formidable/Readme.md +264 -0
- data/server/node_modules/connect-form/node_modules/formidable/TODO +3 -0
- data/server/node_modules/connect-form/node_modules/formidable/benchmark/bench-multipart-parser.js +70 -0
- data/server/node_modules/connect-form/node_modules/formidable/example/post.js +43 -0
- data/server/node_modules/connect-form/node_modules/formidable/example/upload.js +48 -0
- data/server/node_modules/connect-form/node_modules/formidable/index.js +1 -0
- data/server/node_modules/connect-form/node_modules/formidable/lib/file.js +61 -0
- data/server/node_modules/connect-form/node_modules/formidable/lib/incoming_form.js +362 -0
- data/server/node_modules/connect-form/node_modules/formidable/lib/index.js +3 -0
- data/server/node_modules/connect-form/node_modules/formidable/lib/multipart_parser.js +301 -0
- data/server/node_modules/connect-form/node_modules/formidable/lib/querystring_parser.js +25 -0
- data/server/node_modules/connect-form/node_modules/formidable/lib/util.js +6 -0
- data/server/node_modules/connect-form/node_modules/formidable/package.json +19 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/common.js +20 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fast/test-incoming-form.js +45 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/file/: // ? % * | /" < > . /342/230/203 ; ' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt" +1 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md +3 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-chrome-13.http +36 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-firefox-3.6.http +24 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-safari-5.http +23 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-chrome-12.http +33 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-ie-7.http +22 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-ie-8.http +22 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-safari-5.http +22 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js +21 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/multi_video.upload +0 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/multipart.js +72 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/legacy/common.js +24 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/legacy/integration/test-multipart-parser.js +80 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/legacy/simple/test-file.js +104 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/legacy/simple/test-incoming-form.js +715 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/legacy/simple/test-multipart-parser.js +50 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/legacy/simple/test-querystring-parser.js +45 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/legacy/system/test-multi-video-upload.js +72 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/run.js +7 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/slow/test-fixtures.js +84 -0
- data/server/node_modules/connect-form/node_modules/formidable/tool/record.js +47 -0
- data/server/node_modules/connect-form/package.json +9 -0
- data/server/node_modules/connect-form/support/connect/History.md +120 -0
- data/server/node_modules/connect-form/support/connect/Makefile +85 -0
- data/server/node_modules/connect-form/support/connect/README.md +121 -0
- data/server/node_modules/connect-form/support/connect/benchmarks/graph +79 -0
- data/server/node_modules/connect-form/support/connect/benchmarks/hello-world/connect.js +19 -0
- data/server/node_modules/connect-form/support/connect/benchmarks/hello-world/node.js +16 -0
- data/server/node_modules/connect-form/support/connect/benchmarks/hello-world/rack.thin.ru +9 -0
- data/server/node_modules/connect-form/support/connect/benchmarks/hello-world/sinatra.thin.ru +10 -0
- data/server/node_modules/connect-form/support/connect/benchmarks/public/jquery.js +19 -0
- data/server/node_modules/connect-form/support/connect/benchmarks/run +60 -0
- data/server/node_modules/connect-form/support/connect/benchmarks/static/connect.js +10 -0
- data/server/node_modules/connect-form/support/connect/benchmarks/static/node.js +17 -0
- data/server/node_modules/connect-form/support/connect/benchmarks/static/sinatra.thin.ru +10 -0
- data/server/node_modules/connect-form/support/connect/docs/api.html +1973 -0
- data/server/node_modules/connect-form/support/connect/docs/bodyDecoder.1 +27 -0
- data/server/node_modules/connect-form/support/connect/docs/bodyDecoder.html +164 -0
- data/server/node_modules/connect-form/support/connect/docs/bodyDecoder.md +11 -0
- data/server/node_modules/connect-form/support/connect/docs/compiler.1 +66 -0
- data/server/node_modules/connect-form/support/connect/docs/compiler.html +193 -0
- data/server/node_modules/connect-form/support/connect/docs/compiler.md +32 -0
- data/server/node_modules/connect-form/support/connect/docs/conditionalGet.1 +16 -0
- data/server/node_modules/connect-form/support/connect/docs/conditionalGet.html +158 -0
- data/server/node_modules/connect-form/support/connect/docs/conditionalGet.md +7 -0
- data/server/node_modules/connect-form/support/connect/docs/cookieDecoder.1 +27 -0
- data/server/node_modules/connect-form/support/connect/docs/cookieDecoder.html +164 -0
- data/server/node_modules/connect-form/support/connect/docs/cookieDecoder.md +11 -0
- data/server/node_modules/connect-form/support/connect/docs/errorHandler.1 +58 -0
- data/server/node_modules/connect-form/support/connect/docs/errorHandler.html +181 -0
- data/server/node_modules/connect-form/support/connect/docs/errorHandler.md +28 -0
- data/server/node_modules/connect-form/support/connect/docs/format.1 +7 -0
- data/server/node_modules/connect-form/support/connect/docs/format.html +152 -0
- data/server/node_modules/connect-form/support/connect/docs/format.md +3 -0
- data/server/node_modules/connect-form/support/connect/docs/index.1 +260 -0
- data/server/node_modules/connect-form/support/connect/docs/index.html +332 -0
- data/server/node_modules/connect-form/support/connect/docs/index.md +171 -0
- data/server/node_modules/connect-form/support/connect/docs/jsonrpc.1 +62 -0
- data/server/node_modules/connect-form/support/connect/docs/jsonrpc.html +192 -0
- data/server/node_modules/connect-form/support/connect/docs/jsonrpc.md +39 -0
- data/server/node_modules/connect-form/support/connect/docs/layout/api.foot.html +3 -0
- data/server/node_modules/connect-form/support/connect/docs/layout/api.head.html +142 -0
- data/server/node_modules/connect-form/support/connect/docs/lint.1 +102 -0
- data/server/node_modules/connect-form/support/connect/docs/lint.html +232 -0
- data/server/node_modules/connect-form/support/connect/docs/lint.md +79 -0
- data/server/node_modules/connect-form/support/connect/docs/logger.1 +66 -0
- data/server/node_modules/connect-form/support/connect/docs/logger.html +184 -0
- data/server/node_modules/connect-form/support/connect/docs/logger.md +31 -0
- data/server/node_modules/connect-form/support/connect/docs/methodOverride.1 +31 -0
- data/server/node_modules/connect-form/support/connect/docs/methodOverride.html +171 -0
- data/server/node_modules/connect-form/support/connect/docs/methodOverride.md +17 -0
- data/server/node_modules/connect-form/support/connect/docs/responseTime.1 +7 -0
- data/server/node_modules/connect-form/support/connect/docs/responseTime.html +152 -0
- data/server/node_modules/connect-form/support/connect/docs/responseTime.md +3 -0
- data/server/node_modules/connect-form/support/connect/docs/router.1 +75 -0
- data/server/node_modules/connect-form/support/connect/docs/router.html +211 -0
- data/server/node_modules/connect-form/support/connect/docs/router.md +58 -0
- data/server/node_modules/connect-form/support/connect/docs/session.1 +115 -0
- data/server/node_modules/connect-form/support/connect/docs/session.html +214 -0
- data/server/node_modules/connect-form/support/connect/docs/session.md +55 -0
- data/server/node_modules/connect-form/support/connect/docs/staticProvider.1 +28 -0
- data/server/node_modules/connect-form/support/connect/docs/staticProvider.html +162 -0
- data/server/node_modules/connect-form/support/connect/docs/staticProvider.md +11 -0
- data/server/node_modules/connect-form/support/connect/examples/error/app.js +13 -0
- data/server/node_modules/connect-form/support/connect/examples/jsonrpc/app.js +38 -0
- data/server/node_modules/connect-form/support/connect/examples/less/app.js +21 -0
- data/server/node_modules/connect-form/support/connect/examples/less/public/index.html +8 -0
- data/server/node_modules/connect-form/support/connect/examples/less/public/style.less +8 -0
- data/server/node_modules/connect-form/support/connect/examples/lint/app.js +40 -0
- data/server/node_modules/connect-form/support/connect/examples/multitouch/app.js +61 -0
- data/server/node_modules/connect-form/support/connect/examples/multitouch/public/client.js +73 -0
- data/server/node_modules/connect-form/support/connect/examples/multitouch/public/favicon.ico +0 -0
- data/server/node_modules/connect-form/support/connect/examples/multitouch/public/index.html +16 -0
- data/server/node_modules/connect-form/support/connect/examples/multitouch/public/raphael.js +113 -0
- data/server/node_modules/connect-form/support/connect/examples/multitouch/public/style.css +23 -0
- data/server/node_modules/connect-form/support/connect/examples/router/app.js +63 -0
- data/server/node_modules/connect-form/support/connect/examples/sass/app.js +21 -0
- data/server/node_modules/connect-form/support/connect/examples/sass/public/index.html +8 -0
- data/server/node_modules/connect-form/support/connect/examples/sass/public/style.sass +4 -0
- data/server/node_modules/connect-form/support/connect/examples/session/app.js +60 -0
- data/server/node_modules/connect-form/support/connect/examples/stack-middleware/app.js +15 -0
- data/server/node_modules/connect-form/support/connect/examples/stack-middleware/hello.js +13 -0
- data/server/node_modules/connect-form/support/connect/examples/stack-middleware/world.js +13 -0
- data/server/node_modules/connect-form/support/connect/examples/static/app.js +10 -0
- data/server/node_modules/connect-form/support/connect/examples/static/public/style.css +3 -0
- data/server/node_modules/connect-form/support/connect/examples/url-rewrite/app.js +44 -0
- data/server/node_modules/connect-form/support/connect/examples/vhost/app.js +25 -0
- data/server/node_modules/connect-form/support/connect/install.sh +6 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/index.js +309 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/bodyDecoder.js +69 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/cache.js +142 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/cacheManifest.js +71 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/compiler.js +150 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/conditionalGet.js +71 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/cookieDecoder.js +37 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/errorHandler.js +91 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/format.js +46 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/gzip-compress.js +79 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/gzip-proc.js +73 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/gzip.js +8 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/jsonrpc.js +235 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/lint.js +136 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/logger.js +107 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/methodOverride.js +54 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/pubsub.js +107 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/repl.js +43 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/responseTime.js +28 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/router.js +158 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/session.js +129 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/session/memory.js +141 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/session/session.js +71 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/session/store.js +59 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/staticProvider.js +144 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/middleware/vhost.js +43 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/public/error.html +13 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/public/style.css +98 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/response.js +56 -0
- data/server/node_modules/connect-form/support/connect/lib/connect/utils.js +428 -0
- data/server/node_modules/connect-form/support/connect/package.json +21 -0
- data/server/node_modules/connect-form/support/connect/support/highlight.js +26 -0
- data/server/node_modules/connect-form/support/connect/test/bodyDecoder.test.js +69 -0
- data/server/node_modules/connect-form/support/connect/test/compiler.test.js +23 -0
- data/server/node_modules/connect-form/support/connect/test/connect.test.js +187 -0
- data/server/node_modules/connect-form/support/connect/test/cookieDecoder.test.js +31 -0
- data/server/node_modules/connect-form/support/connect/test/errorHandler.test.js +60 -0
- data/server/node_modules/connect-form/support/connect/test/filters/uppercase.js +14 -0
- data/server/node_modules/connect-form/support/connect/test/fixtures/foo.bar.baz.sass +2 -0
- data/server/node_modules/connect-form/support/connect/test/fixtures/index.html +1 -0
- data/server/node_modules/connect-form/support/connect/test/fixtures/some text.txt +1 -0
- data/server/node_modules/connect-form/support/connect/test/fixtures/style.less +2 -0
- data/server/node_modules/connect-form/support/connect/test/fixtures/style.sass +3 -0
- data/server/node_modules/connect-form/support/connect/test/fixtures/user.json +4 -0
- data/server/node_modules/connect-form/support/connect/test/format.test.js +37 -0
- data/server/node_modules/connect-form/support/connect/test/gzip.test.js +55 -0
- data/server/node_modules/connect-form/support/connect/test/helpers/http.js +87 -0
- data/server/node_modules/connect-form/support/connect/test/helpers/index.js +12 -0
- data/server/node_modules/connect-form/support/connect/test/jsonrpc.test.js +225 -0
- data/server/node_modules/connect-form/support/connect/test/logger.test.js +52 -0
- data/server/node_modules/connect-form/support/connect/test/methodOverride.test.js +69 -0
- data/server/node_modules/connect-form/support/connect/test/providers/echo.js +10 -0
- data/server/node_modules/connect-form/support/connect/test/responseTime.test.js +29 -0
- data/server/node_modules/connect-form/support/connect/test/router.test.js +154 -0
- data/server/node_modules/connect-form/support/connect/test/session.test.js +127 -0
- data/server/node_modules/connect-form/support/connect/test/static.test.js +66 -0
- data/server/node_modules/connect-form/support/connect/test/utils.test.js +65 -0
- data/server/node_modules/connect-form/support/connect/test/vhost.test.js +46 -0
- data/server/node_modules/connect-form/support/expresso/History.md +54 -0
- data/server/node_modules/connect-form/support/expresso/Makefile +30 -0
- data/server/node_modules/connect-form/support/expresso/Readme.md +208 -0
- data/server/node_modules/connect-form/support/expresso/bin/expresso +647 -0
- data/server/node_modules/connect-form/support/expresso/lib/bar.js +4 -0
- data/server/node_modules/connect-form/support/expresso/lib/foo.js +16 -0
- data/server/node_modules/connect-form/support/expresso/package.json +9 -0
- data/server/node_modules/connect-form/support/expresso/seed.yml +6 -0
- data/server/node_modules/connect-form/support/expresso/test/assert.test.js +64 -0
- data/server/node_modules/connect-form/support/expresso/test/bar.test.js +12 -0
- data/server/node_modules/connect-form/support/expresso/test/foo.test.js +13 -0
- data/server/node_modules/connect-form/support/expresso/test/http.test.js +61 -0
- data/server/node_modules/connect-form/test/form.test.js +148 -0
- data/server/node_modules/cradle/LICENSE +20 -0
- data/server/node_modules/cradle/Makefile +10 -0
- data/server/node_modules/cradle/README.md +377 -0
- data/server/node_modules/cradle/lib/cradle.js +688 -0
- data/server/node_modules/cradle/lib/cradle/cache.js +102 -0
- data/server/node_modules/cradle/lib/cradle/response.js +127 -0
- data/server/node_modules/cradle/node_modules/vargs/LICENSE +20 -0
- data/server/node_modules/cradle/node_modules/vargs/README.md +34 -0
- data/server/node_modules/cradle/node_modules/vargs/lib/vargs.js +70 -0
- data/server/node_modules/cradle/node_modules/vargs/package.json +12 -0
- data/server/node_modules/cradle/node_modules/vows/LICENSE +20 -0
- data/server/node_modules/cradle/node_modules/vows/Makefile +7 -0
- data/server/node_modules/cradle/node_modules/vows/README.md +39 -0
- data/server/node_modules/cradle/node_modules/vows/bin/vows +515 -0
- data/server/node_modules/cradle/node_modules/vows/lib/assert/error.js +27 -0
- data/server/node_modules/cradle/node_modules/vows/lib/assert/macros.js +215 -0
- data/server/node_modules/cradle/node_modules/vows/lib/assert/utils.js +77 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows.js +193 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/console.js +131 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/context.js +55 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/file.js +29 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/fragments/coverage-foot.html +2 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/fragments/coverage-head.html +61 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/report-html.js +54 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/report-json.js +54 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/report-plain.js +38 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/extras.js +28 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/dot-matrix.js +67 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/json.js +16 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/silent.js +8 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js +44 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js +39 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/xunit.js +90 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/suite.js +319 -0
- data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/LICENSE +20 -0
- data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/Makefile +4 -0
- data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/README.md +72 -0
- data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/lib/eyes.js +233 -0
- data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/package.json +14 -0
- data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/test/eyes-test.js +55 -0
- data/server/node_modules/cradle/node_modules/vows/package.json +14 -0
- data/server/node_modules/cradle/node_modules/vows/test/assert-test.js +135 -0
- data/server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/failing.js +18 -0
- data/server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/log.js +18 -0
- data/server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/passing.js +17 -0
- data/server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/stderr.js +18 -0
- data/server/node_modules/cradle/node_modules/vows/test/isolate-test.js +140 -0
- data/server/node_modules/cradle/node_modules/vows/test/testInherit.js +133 -0
- data/server/node_modules/cradle/node_modules/vows/test/vows-error-test.js +51 -0
- data/server/node_modules/cradle/node_modules/vows/test/vows-test.js +374 -0
- data/server/node_modules/cradle/package.json +14 -0
- data/server/node_modules/cradle/test/cache-test.js +102 -0
- data/server/node_modules/cradle/test/cradle-test.js +651 -0
- data/server/node_modules/cradle/test/fixtures/databases.json +25 -0
- data/server/node_modules/cradle/test/helpers/seed.js +56 -0
- data/server/node_modules/cradle/test/response-test.js +73 -0
- data/server/node_modules/express/History.md +743 -0
- data/server/node_modules/express/LICENSE +22 -0
- data/server/node_modules/express/Makefile +35 -0
- data/server/node_modules/express/Readme.md +143 -0
- data/server/node_modules/express/bin/express +417 -0
- data/server/node_modules/express/index.js +2 -0
- data/server/node_modules/express/lib/express.js +79 -0
- data/server/node_modules/express/lib/http.js +583 -0
- data/server/node_modules/express/lib/https.js +52 -0
- data/server/node_modules/express/lib/request.js +309 -0
- data/server/node_modules/express/lib/response.js +459 -0
- data/server/node_modules/express/lib/router/collection.js +53 -0
- data/server/node_modules/express/lib/router/index.js +398 -0
- data/server/node_modules/express/lib/router/methods.js +70 -0
- data/server/node_modules/express/lib/router/route.js +88 -0
- data/server/node_modules/express/lib/utils.js +139 -0
- data/server/node_modules/express/lib/view.js +457 -0
- data/server/node_modules/express/lib/view/partial.js +40 -0
- data/server/node_modules/express/lib/view/view.js +209 -0
- data/server/node_modules/express/node_modules/connect/LICENSE +24 -0
- data/server/node_modules/express/node_modules/connect/index.js +2 -0
- data/server/node_modules/express/node_modules/connect/lib/cache.js +81 -0
- data/server/node_modules/express/node_modules/connect/lib/connect.js +106 -0
- data/server/node_modules/express/node_modules/connect/lib/http.js +215 -0
- data/server/node_modules/express/node_modules/connect/lib/https.js +47 -0
- data/server/node_modules/express/node_modules/connect/lib/index.js +46 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/basicAuth.js +93 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js +92 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/compiler.js +163 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/cookieParser.js +46 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/csrf.js +105 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/directory.js +222 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/errorHandler.js +100 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/favicon.js +76 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/limit.js +78 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/logger.js +299 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/methodOverride.js +38 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/profiler.js +100 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/query.js +40 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/responseTime.js +34 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/router.js +379 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/session.js +346 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/session/cookie.js +126 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/session/memory.js +131 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/session/session.js +137 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/session/store.js +87 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/static.js +220 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/staticCache.js +122 -0
- data/server/node_modules/express/node_modules/connect/lib/middleware/vhost.js +44 -0
- data/server/node_modules/express/node_modules/connect/lib/patch.js +79 -0
- data/server/node_modules/express/node_modules/connect/lib/public/directory.html +75 -0
- data/server/node_modules/express/node_modules/connect/lib/public/error.html +13 -0
- data/server/node_modules/express/node_modules/connect/lib/public/favicon.ico +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_add.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_attach.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_code.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_copy.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_delete.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_edit.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_error.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_excel.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_find.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_gear.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_go.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_green.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_key.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_lightning.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_link.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_paintbrush.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_paste.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_red.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_refresh.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_save.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_acrobat.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_actionscript.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_add.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_c.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_camera.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_cd.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_code.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_code_red.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_coldfusion.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_compressed.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_copy.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_cplusplus.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_csharp.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_cup.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_database.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_delete.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_dvd.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_edit.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_error.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_excel.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_find.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_flash.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_freehand.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_gear.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_get.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_go.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_h.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_horizontal.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_key.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_lightning.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_link.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_magnify.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_medal.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_office.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_paint.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_paintbrush.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_paste.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_php.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_picture.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_powerpoint.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_put.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_ruby.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_stack.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_star.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_swoosh.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_text.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_text_width.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_tux.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_vector.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_visualstudio.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_width.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_word.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_world.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_wrench.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_white_zip.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_word.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/icons/page_world.png +0 -0
- data/server/node_modules/express/node_modules/connect/lib/public/style.css +141 -0
- data/server/node_modules/express/node_modules/connect/lib/utils.js +444 -0
- data/server/node_modules/express/node_modules/connect/package.json +24 -0
- data/server/node_modules/express/node_modules/connect/test.js +39 -0
- data/server/node_modules/express/node_modules/mime/LICENSE +19 -0
- data/server/node_modules/express/node_modules/mime/README.md +50 -0
- data/server/node_modules/express/node_modules/mime/index.js +1 -0
- data/server/node_modules/express/node_modules/mime/mime.js +92 -0
- data/server/node_modules/express/node_modules/mime/mime.types +1479 -0
- data/server/node_modules/express/node_modules/mime/node.types +26 -0
- data/server/node_modules/express/node_modules/mime/package.json +11 -0
- data/server/node_modules/express/node_modules/mime/test.js +80 -0
- data/server/node_modules/express/node_modules/qs/History.md +52 -0
- data/server/node_modules/express/node_modules/qs/Makefile +7 -0
- data/server/node_modules/express/node_modules/qs/Readme.md +49 -0
- data/server/node_modules/express/node_modules/qs/benchmark.js +17 -0
- data/server/node_modules/express/node_modules/qs/examples.js +48 -0
- data/server/node_modules/express/node_modules/qs/index.js +2 -0
- data/server/node_modules/express/node_modules/qs/lib/querystring.js +236 -0
- data/server/node_modules/express/node_modules/qs/package.json +9 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/History.md +128 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/Makefile +53 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/Readme.md +61 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/bin/expresso +856 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/docs/api.html +1080 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/docs/index.html +377 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/docs/index.md +290 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/docs/layout/foot.html +3 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/docs/layout/head.html +42 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/lib/bar.js +4 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/lib/foo.js +16 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/package.json +12 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/assert.test.js +91 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/async.test.js +12 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/bar.test.js +13 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/foo.test.js +14 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/http.test.js +146 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/serial/async.test.js +39 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/serial/http.test.js +48 -0
- data/server/node_modules/express/node_modules/qs/support/should/History.md +22 -0
- data/server/node_modules/express/node_modules/qs/support/should/Makefile +6 -0
- data/server/node_modules/express/node_modules/qs/support/should/Readme.md +248 -0
- data/server/node_modules/express/node_modules/qs/support/should/examples/runner.js +53 -0
- data/server/node_modules/express/node_modules/qs/support/should/index.js +2 -0
- data/server/node_modules/express/node_modules/qs/support/should/lib/eql.js +91 -0
- data/server/node_modules/express/node_modules/qs/support/should/lib/should.js +548 -0
- data/server/node_modules/express/node_modules/qs/support/should/package.json +8 -0
- data/server/node_modules/express/node_modules/qs/support/should/test/should.test.js +358 -0
- data/server/node_modules/express/node_modules/qs/test/parse.test.js +156 -0
- data/server/node_modules/express/node_modules/qs/test/stringify.test.js +95 -0
- data/server/node_modules/express/package.json +38 -0
- data/server/node_modules/knox/History.md +41 -0
- data/server/node_modules/knox/Makefile +21 -0
- data/server/node_modules/knox/Readme.md +144 -0
- data/server/node_modules/knox/index.html +483 -0
- data/server/node_modules/knox/index.js +2 -0
- data/server/node_modules/knox/lib/knox/auth.js +190 -0
- data/server/node_modules/knox/lib/knox/client.js +355 -0
- data/server/node_modules/knox/lib/knox/index.js +36 -0
- data/server/node_modules/knox/lib/knox/mime/README.md +19 -0
- data/server/node_modules/knox/lib/knox/mime/index.js +308 -0
- data/server/node_modules/knox/lib/knox/mime/mime.js +308 -0
- data/server/node_modules/knox/lib/knox/mime/package.json +12 -0
- data/server/node_modules/knox/lib/knox/mime/test.js +59 -0
- data/server/node_modules/knox/lib/knox/utils.js +55 -0
- data/server/node_modules/knox/package.json +13 -0
- data/server/node_modules/knox/support/expresso/History.md +87 -0
- data/server/node_modules/knox/support/expresso/Makefile +53 -0
- data/server/node_modules/knox/support/expresso/Readme.md +39 -0
- data/server/node_modules/knox/support/expresso/bin/expresso +835 -0
- data/server/node_modules/knox/support/expresso/docs/api.html +1048 -0
- data/server/node_modules/knox/support/expresso/docs/index.html +373 -0
- data/server/node_modules/knox/support/expresso/docs/index.md +290 -0
- data/server/node_modules/knox/support/expresso/docs/layout/foot.html +3 -0
- data/server/node_modules/knox/support/expresso/docs/layout/head.html +42 -0
- data/server/node_modules/knox/support/expresso/lib/bar.js +4 -0
- data/server/node_modules/knox/support/expresso/lib/foo.js +16 -0
- data/server/node_modules/knox/support/expresso/package.json +9 -0
- data/server/node_modules/knox/support/expresso/test/assert.test.js +84 -0
- data/server/node_modules/knox/support/expresso/test/async.test.js +6 -0
- data/server/node_modules/knox/support/expresso/test/bar.test.js +12 -0
- data/server/node_modules/knox/support/expresso/test/foo.test.js +13 -0
- data/server/node_modules/knox/support/expresso/test/http.test.js +76 -0
- data/server/node_modules/knox/support/expresso/test/serial/async.test.js +38 -0
- data/server/node_modules/knox/support/expresso/test/serial/http.test.js +47 -0
- data/server/node_modules/knox/test/auth.test.js +59 -0
- data/server/node_modules/knox/test/fixtures/user.json +1 -0
- data/server/node_modules/knox/test/knox.test.js +188 -0
- data/server/node_modules/knox/test/utils.test.js +17 -0
- data/server/node_modules/node-uuid/LICENSE.md +3 -0
- data/server/node_modules/node-uuid/README.md +100 -0
- data/server/node_modules/node-uuid/package.json +12 -0
- data/server/node_modules/node-uuid/test/benchmark-native.c +34 -0
- data/server/node_modules/node-uuid/test/benchmark.js +27 -0
- data/server/node_modules/node-uuid/test/test.html +14 -0
- data/server/node_modules/node-uuid/test/test.js +83 -0
- data/server/node_modules/node-uuid/uuid.js +80 -0
- data/server/node_modules/restler/MIT-LICENSE +20 -0
- data/server/node_modules/restler/README.md +147 -0
- data/server/node_modules/restler/bin/restler +23 -0
- data/server/node_modules/restler/index.js +1 -0
- data/server/node_modules/restler/lib/multipartform.js +202 -0
- data/server/node_modules/restler/lib/restler.js +300 -0
- data/server/node_modules/restler/package.json +10 -0
- data/server/node_modules/restler/test/all.js +1 -0
- data/server/node_modules/restler/test/restler.js +148 -0
- data/server/node_modules/restler/test/test_helper.js +144 -0
- data/server/package.json +12 -0
- data/server/vendor/gems/bin/restclient +19 -0
- data/server/vendor/gems/cache/couchrest-1.1.2.gem +0 -0
- data/server/vendor/gems/cache/mime-types-1.16.gem +0 -0
- data/server/vendor/gems/cache/multi_json-1.0.3.gem +0 -0
- data/server/vendor/gems/cache/rest-client-1.6.7.gem +0 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/Gemfile +4 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/LICENSE +176 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/README.md +65 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/Rakefile +38 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/THANKS.md +21 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/VERSION +1 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/couchrest.gemspec +34 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/examples/word_count/markov +38 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/examples/word_count/views/books/chunked-map.js +3 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/examples/word_count/views/books/united-map.js +1 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/examples/word_count/views/markov/chain-map.js +6 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/examples/word_count/views/markov/chain-reduce.js +7 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/examples/word_count/views/word_count/count-map.js +6 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/examples/word_count/views/word_count/count-reduce.js +3 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/examples/word_count/word_count.rb +46 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/examples/word_count/word_count_query.rb +40 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/examples/word_count/word_count_views.rb +26 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/history.txt +194 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/init.rb +1 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest.rb +134 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/attributes.rb +89 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/commands/generate.rb +71 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/commands/push.rb +103 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/database.rb +396 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/design.rb +91 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/document.rb +105 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/helper/attachments.rb +29 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/helper/pager.rb +103 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/helper/streamer.rb +58 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/helper/upgrade.rb +51 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/middlewares/logger.rb +263 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/monkeypatches.rb +25 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/rest_api.rb +159 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/server.rb +90 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/lib/couchrest/support/inheritable_attributes.rb +107 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/couchrest/couchrest_spec.rb +202 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/couchrest/database_spec.rb +921 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/couchrest/design_spec.rb +206 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/couchrest/document_spec.rb +400 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/couchrest/helpers/pager_spec.rb +115 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/couchrest/helpers/streamer_spec.rb +59 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/couchrest/rest_api_spec.rb +212 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/couchrest/server_spec.rb +35 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/fixtures/attachments/README +3 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/fixtures/attachments/couchdb.png +0 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/fixtures/attachments/test.html +11 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/fixtures/views/lib.js +3 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/fixtures/views/test_view/lib.js +3 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/fixtures/views/test_view/only-map.js +4 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/fixtures/views/test_view/test-map.js +3 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/fixtures/views/test_view/test-reduce.js +3 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/spec.opts +5 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/spec/spec_helper.rb +46 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/utils/remap.rb +27 -0
- data/server/vendor/gems/gems/couchrest-1.1.2/utils/subset.rb +30 -0
- data/server/vendor/gems/gems/mime-types-1.16/History.txt +107 -0
- data/server/vendor/gems/gems/mime-types-1.16/Install.txt +17 -0
- data/server/vendor/gems/gems/mime-types-1.16/Licence.txt +15 -0
- data/server/vendor/gems/gems/mime-types-1.16/Manifest.txt +12 -0
- data/server/vendor/gems/gems/mime-types-1.16/README.txt +28 -0
- data/server/vendor/gems/gems/mime-types-1.16/Rakefile +316 -0
- data/server/vendor/gems/gems/mime-types-1.16/lib/mime/types.rb +751 -0
- data/server/vendor/gems/gems/mime-types-1.16/lib/mime/types.rb.data +1324 -0
- data/server/vendor/gems/gems/mime-types-1.16/mime-types.gemspec +43 -0
- data/server/vendor/gems/gems/mime-types-1.16/setup.rb +1585 -0
- data/server/vendor/gems/gems/mime-types-1.16/test/test_mime_type.rb +356 -0
- data/server/vendor/gems/gems/mime-types-1.16/test/test_mime_types.rb +122 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/Gemfile +7 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/LICENSE.md +20 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/README.md +70 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/Rakefile +23 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/lib/multi_json.rb +74 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/lib/multi_json/engines/json_gem.rb +21 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/lib/multi_json/engines/json_pure.rb +21 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/lib/multi_json/engines/ok_json.rb +48 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/lib/multi_json/engines/yajl.rb +18 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/lib/multi_json/vendor/ok_json.rb +581 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/lib/multi_json/version.rb +3 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/multi_json.gemspec +23 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/spec/helper.rb +11 -0
- data/server/vendor/gems/gems/multi_json-1.0.3/spec/multi_json_spec.rb +134 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/README.rdoc +285 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/Rakefile +66 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/VERSION +1 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/bin/restclient +93 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/history.md +134 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/lib/rest-client.rb +2 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/lib/rest_client.rb +2 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/lib/restclient.rb +174 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb +106 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/lib/restclient/exceptions.rb +193 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb +55 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/lib/restclient/payload.rb +235 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/lib/restclient/raw_response.rb +34 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/lib/restclient/request.rb +316 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb +169 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/lib/restclient/response.rb +24 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/abstract_response_spec.rb +85 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/base.rb +16 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/exceptions_spec.rb +98 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/integration/certs/equifax.crt +19 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/integration/certs/verisign.crt +14 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/integration/request_spec.rb +25 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/integration_spec.rb +38 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/master_shake.jpg +0 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/payload_spec.rb +234 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/raw_response_spec.rb +17 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/request2_spec.rb +40 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/request_spec.rb +529 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/resource_spec.rb +134 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/response_spec.rb +169 -0
- data/server/vendor/gems/gems/rest-client-1.6.7/spec/restclient_spec.rb +73 -0
- data/server/vendor/gems/specifications/couchrest-1.1.2.gemspec +43 -0
- data/server/vendor/gems/specifications/mime-types-1.16.gemspec +42 -0
- data/server/vendor/gems/specifications/multi_json-1.0.3.gemspec +40 -0
- data/server/vendor/gems/specifications/rest-client-1.6.7.gemspec +37 -0
- data/server/web.js +93 -0
- metadata +633 -7
@@ -0,0 +1,46 @@
|
|
1
|
+
require "bundler/setup"
|
2
|
+
require "rubygems"
|
3
|
+
require "rspec"
|
4
|
+
|
5
|
+
require File.join(File.dirname(__FILE__), '..','lib','couchrest')
|
6
|
+
# check the following file to see how to use the spec'd features.
|
7
|
+
|
8
|
+
unless defined?(FIXTURE_PATH)
|
9
|
+
FIXTURE_PATH = File.join(File.dirname(__FILE__), '/fixtures')
|
10
|
+
SCRATCH_PATH = File.join(File.dirname(__FILE__), '/tmp')
|
11
|
+
|
12
|
+
COUCHHOST = ENV['COUCHHOST'] || "http://127.0.0.1:5984"
|
13
|
+
TESTDB = 'couchrest-test'
|
14
|
+
REPLICATIONDB = 'couchrest-test-replication'
|
15
|
+
TEST_SERVER = CouchRest.new COUCHHOST
|
16
|
+
TEST_SERVER.default_database = TESTDB
|
17
|
+
DB = TEST_SERVER.database(TESTDB)
|
18
|
+
end
|
19
|
+
|
20
|
+
def reset_test_db!
|
21
|
+
DB.recreate! rescue nil
|
22
|
+
DB
|
23
|
+
end
|
24
|
+
|
25
|
+
RSpec.configure do |config|
|
26
|
+
config.before(:all) { reset_test_db! }
|
27
|
+
|
28
|
+
config.after(:all) do
|
29
|
+
cr = TEST_SERVER
|
30
|
+
test_dbs = cr.databases.select { |db| db =~ /^#{TESTDB}/ }
|
31
|
+
test_dbs.each do |db|
|
32
|
+
cr.database(db).delete! rescue nil
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def couchdb_lucene_available?
|
38
|
+
lucene_path = "http://localhost:5985/"
|
39
|
+
url = URI.parse(lucene_path)
|
40
|
+
req = Net::HTTP::Get.new(url.path)
|
41
|
+
res = Net::HTTP.new(url.host, url.port).start { |http| http.request(req) }
|
42
|
+
true
|
43
|
+
rescue Exception => e
|
44
|
+
false
|
45
|
+
end
|
46
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'couchrest'
|
3
|
+
|
4
|
+
# set the source db and map view
|
5
|
+
source = CouchRest.new("http://127.0.0.1:5984").database('source-db')
|
6
|
+
source_view = 'mydesign/view-map'
|
7
|
+
|
8
|
+
# set the target db
|
9
|
+
target = CouchRest.new("http://127.0.0.1:5984").database('target-db')
|
10
|
+
|
11
|
+
|
12
|
+
pager = CouchRest::Pager.new(source)
|
13
|
+
|
14
|
+
# pager will yield once per uniq key in the source view
|
15
|
+
|
16
|
+
pager.key_reduce(source_view, 10000) do |key, values|
|
17
|
+
# create a doc from the key and the values
|
18
|
+
example_doc = {
|
19
|
+
:key => key,
|
20
|
+
:values => values.uniq
|
21
|
+
}
|
22
|
+
|
23
|
+
target.save(example_doc)
|
24
|
+
|
25
|
+
# keep us up to date with progress
|
26
|
+
puts k if (rand > 0.9)
|
27
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'couchrest'
|
3
|
+
|
4
|
+
# subset.rb replicates a percentage of a database to a fresh database.
|
5
|
+
# use it to create a smaller dataset on which to prototype views.
|
6
|
+
|
7
|
+
# specify the source database
|
8
|
+
source = CouchRest.new("http://127.0.0.1:5984").database('source-db')
|
9
|
+
|
10
|
+
# specify the target database
|
11
|
+
target = CouchRest.new("http://127.0.0.1:5984").database('target-db')
|
12
|
+
|
13
|
+
# pager efficiently yields all view rows
|
14
|
+
pager = CouchRest::Pager.new(source)
|
15
|
+
|
16
|
+
pager.all_docs(1000) do |rows|
|
17
|
+
docs = rows.collect do |r|
|
18
|
+
# the percentage of docs to clone
|
19
|
+
next if rand > 0.1
|
20
|
+
doc = source.get(r['id'])
|
21
|
+
doc.delete('_rev')
|
22
|
+
doc
|
23
|
+
end.compact
|
24
|
+
puts docs.length
|
25
|
+
next if docs.empty?
|
26
|
+
|
27
|
+
puts docs.first['_id']
|
28
|
+
target.bulk_save(docs)
|
29
|
+
end
|
30
|
+
|
@@ -0,0 +1,107 @@
|
|
1
|
+
== MIME::Types 1.16
|
2
|
+
* Made compatible with Ruby 1.8.6, 1.8.7, and 1.9.1.
|
3
|
+
* Switched to the 'hoe' gem system and added a lot of build-time tools.
|
4
|
+
* Updated the MIME types to the list based on the values in the Perl library
|
5
|
+
version 1.27. Also updated based on external source information and bug
|
6
|
+
reports.
|
7
|
+
* This is the last planned version of MIME::Types 1.x. Work will be
|
8
|
+
starting soon on MIME::Types 2.x with richer data querying mechanisms
|
9
|
+
and support for external data sources.
|
10
|
+
|
11
|
+
== MIME::Types 1.15
|
12
|
+
* Removed lib/mime/type.rb to form a single MIME::Types database source. It
|
13
|
+
is unlikely that one will ever need MIME::Type without MIME::Types.
|
14
|
+
* Re-synchronized the MIME type list with the sources, focusing primarily on
|
15
|
+
the IANA list.
|
16
|
+
* Added more detailed source information for MIME::Type objects.
|
17
|
+
* Changed MIME::Types from a module to a class with a default instance. There
|
18
|
+
should be no difference in usage.
|
19
|
+
* Removed MIME::Types::DATA_VERSION; it is now an attribute on the
|
20
|
+
MIME::Types instance.
|
21
|
+
* NOTE: Synchronization with the Perl version of MIME::Types is no longer a
|
22
|
+
priority as of this release. The data format and information has changed.
|
23
|
+
* Removed MIME::Types.by_suffix and MIME::Types.by_mediatype.
|
24
|
+
|
25
|
+
== MIME::Types 1.13.1
|
26
|
+
* Fixed a problem with the installer running tests. This now works.
|
27
|
+
* Improved the implementation of MIME::Type.signature?
|
28
|
+
* Moved code around to use the class << self idiom instead of always
|
29
|
+
prepending the module/class name.
|
30
|
+
* Added two new best-guess implementations of functions found in Perl's
|
31
|
+
MIME::Types implementation (1.13). Do not rely on these until the purpose
|
32
|
+
and implementation is stabilised.
|
33
|
+
* Updated the MIME list to reflect changes noted by
|
34
|
+
Ville Skyttä <ville.skytta@iki.fi>.
|
35
|
+
* Added a new constant to MIME::Types, DATA_VERSION. This will allow the Ruby
|
36
|
+
version number to be updated separately from the Perl version while keeping
|
37
|
+
the MIME Type list version in sync.
|
38
|
+
|
39
|
+
== MIME::Types 1.13
|
40
|
+
! WARNING: This version changes the API of MIME::Types !
|
41
|
+
! WARNING: This version is compatible with Ruby 1.8 and higher ONLY !
|
42
|
+
* Removed dependency on InstallPackage; offering 1.13 as either .tar.gz or
|
43
|
+
.gem.
|
44
|
+
* Split into two files, mime/type.rb and mime/types.rb. This will make
|
45
|
+
maintaining the list of changes easier.
|
46
|
+
* Changed the MIME::Type construction API. Accepts only a single String
|
47
|
+
argument (but does no named type-checking) and yields self.
|
48
|
+
* Removed private methods #init_extensions, #init_encoding, and #init_system
|
49
|
+
and replaced with #extensions=, #encoding=, and #system=.
|
50
|
+
* Added #default_encoding to return 'quoted-printable' or 'base64' depending
|
51
|
+
on the media type of the MIME type.
|
52
|
+
* Added #raw_media_type and #raw_sub_type to provide the non-simplified
|
53
|
+
versions of the media type and subtype.
|
54
|
+
* Alternative constructors MIME::Type.from_array, MIME::Type.from_hash, and
|
55
|
+
MIME::Type.from_mime_type added to compensate for the removal of named type
|
56
|
+
checking in the original constructor.
|
57
|
+
* Added #to_str, #to_a, and #to_hash methods. The latter two will provide
|
58
|
+
output suitable for use in #from_array and #from_hash.
|
59
|
+
* Removed "binary" encoding and enforced the use of a valid encoding string.
|
60
|
+
* Added #system? returning true if the MIME::Type is an OS-specific
|
61
|
+
MIME::Type.
|
62
|
+
* Added #platform? returning true if the MIME::Type is an OS-specific
|
63
|
+
MIME::Type for the current RUBY_PLATFORM.
|
64
|
+
* Added #like? returning true if the simplified type matches the other value
|
65
|
+
provided. #<'application/x-excel'>.like?('application/excel') is true.
|
66
|
+
* Added #complete? returning true if the MIME::Type specifies an extension
|
67
|
+
list.
|
68
|
+
* Updated the MIME type list to reflect additions by Mark Overmeer for Perl's
|
69
|
+
MIME::Types 1.12 and the official IANA list as of 2004.04.06. A number of
|
70
|
+
formerly "registered" MIME types are now no longer registered (e.g.,
|
71
|
+
application/excel is now application/x-excel). This ensures that the
|
72
|
+
simplified type still works with applications, but does not report an
|
73
|
+
unregistered type as registered.
|
74
|
+
* Restored MIME type list to Mark Overmeer's format to facilitate easy
|
75
|
+
exchange between the two projects.
|
76
|
+
* Added additional unit tests from Mark Overmeer's 1.12 version.
|
77
|
+
|
78
|
+
== MIME::Types 1.07
|
79
|
+
* Changed version numbering to match Perl MIME::Types 1.07.
|
80
|
+
* Re-synchronized with Mark Overmeer's list in Perl PMIME::Types 1.07.
|
81
|
+
* [NN Poster] updated the attributes for the PGP types.
|
82
|
+
|
83
|
+
== MIME::Types 1.005
|
84
|
+
* Changed to Phil Thomson's InstallPackage.
|
85
|
+
* Added several types from Perl MIME::Types 1.005.
|
86
|
+
* Cleaned up data format; some data formats will show up with proper data now.
|
87
|
+
|
88
|
+
== MIME::Types 1.004
|
89
|
+
* Updated to match Perl MIME::Types 1.004, links credited to Dan Puro. Adds
|
90
|
+
new reference list to http://www.indiana.edu/cgi-bin-local/mimetypes
|
91
|
+
* Removed InvalidType and replaced with TypeError.
|
92
|
+
* Changed instances of #type to #class.
|
93
|
+
* Cleaned up how simplified versions are created.
|
94
|
+
|
95
|
+
== MIME::Types 1.003
|
96
|
+
* Initial release based on Perl MIME::Types 1.003.
|
97
|
+
|
98
|
+
== Copyright
|
99
|
+
MIME::Types
|
100
|
+
A Ruby implementation of a MIME Types information library. Based in spirit
|
101
|
+
on the Perl MIME::Types information library by Mark Overmeer.
|
102
|
+
http://rubyforge.org/projects/mime-types/
|
103
|
+
|
104
|
+
Licensed under the Ruby disjunctive licence with the GNU GPL or the Perl
|
105
|
+
Artistic licence. See Licence.txt for more information.
|
106
|
+
|
107
|
+
Copyright 2003 - 2009 Austin Ziegler
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Installing this package is as simple as:
|
2
|
+
|
3
|
+
% ruby setup.rb
|
4
|
+
|
5
|
+
Alternatively, you can use the Gem version of MIME::Types available as
|
6
|
+
mime-types-1.16.gem from the usual sources.
|
7
|
+
|
8
|
+
== Copyright
|
9
|
+
MIME::Types
|
10
|
+
A Ruby implementation of a MIME Types information library. Based in spirit
|
11
|
+
on the Perl MIME::Types information library by Mark Overmeer.
|
12
|
+
http://rubyforge.org/projects/mime-types/
|
13
|
+
|
14
|
+
Licensed under the Ruby disjunctive licence with the GNU GPL or the Perl
|
15
|
+
Artistic licence. See Licence.txt for more information.
|
16
|
+
|
17
|
+
Copyright 2003 - 2009 Austin Ziegler
|
@@ -0,0 +1,15 @@
|
|
1
|
+
= MIME::Types for Ruby
|
2
|
+
Homepage:: http://rubyforge.org/projects/mime-types/
|
3
|
+
Copyright:: Copyright (c) 2003 - 2006 Austin Ziegler.
|
4
|
+
Summary:: Ruby's licence, Perl Aristic Licence,
|
5
|
+
GNU GPL version 2 (or later)
|
6
|
+
|
7
|
+
The text of the Ruby licence can be found at:
|
8
|
+
http://www.ruby-lang.org/en/LICENSE.txt
|
9
|
+
|
10
|
+
The text of the Perl Artistic Licence can be found at:
|
11
|
+
http://www.perl.com/pub/a/language/misc/Artistic.html
|
12
|
+
|
13
|
+
The text of the GNU GPL can be found at: http://www.gnu.org/copyleft/gpl.html
|
14
|
+
|
15
|
+
If you do not accept one of these licences, you may not use this software.
|
@@ -0,0 +1,28 @@
|
|
1
|
+
= README: Mime::Types for Ruby
|
2
|
+
This library allows for the identification of a file's likely MIME content
|
3
|
+
type. This is release 1.16. The identification of MIME content type is based
|
4
|
+
on a file's filename extensions.
|
5
|
+
|
6
|
+
MIME::Types for Ruby originally based on and synchronized with MIME::Types
|
7
|
+
for Perl by Mark Overmeer, copyright 2001 - 2009. As of version 1.15, the
|
8
|
+
data format for the MIME::Type list has changed and the synchronization will
|
9
|
+
no longer happen.
|
10
|
+
|
11
|
+
Homepage:: http://mime-types.rubyforge.org/
|
12
|
+
Copyright:: 2002 - 2009, Austin Ziegler
|
13
|
+
Based in part on prior work copyright Mark Overmeer
|
14
|
+
|
15
|
+
== Licensing
|
16
|
+
MIME::Types is available under three disjunctive licences, as detailed in the
|
17
|
+
Licence.txt file.
|
18
|
+
|
19
|
+
== Copyright
|
20
|
+
MIME::Types
|
21
|
+
A Ruby implementation of a MIME Types information library. Based in spirit
|
22
|
+
on the Perl MIME::Types information library by Mark Overmeer.
|
23
|
+
http://rubyforge.org/projects/mime-types/
|
24
|
+
|
25
|
+
Licensed under the Ruby disjunctive licence with the GNU GPL or the Perl
|
26
|
+
Artistic licence. See Licence.txt for more information.
|
27
|
+
|
28
|
+
Copyright 2003 - 2009 Austin Ziegler
|
@@ -0,0 +1,316 @@
|
|
1
|
+
#! /usr/bin/env rake
|
2
|
+
#--
|
3
|
+
# MIME::Types
|
4
|
+
# A Ruby implementation of a MIME Types information library. Based in spirit
|
5
|
+
# on the Perl MIME::Types information library by Mark Overmeer.
|
6
|
+
# http://rubyforge.org/projects/mime-types/
|
7
|
+
#
|
8
|
+
# Licensed under the Ruby disjunctive licence with the GNU GPL or the Perl
|
9
|
+
# Artistic licence. See Licence.txt for more information.
|
10
|
+
#
|
11
|
+
# Copyright 2003 - 2009 Austin Ziegler
|
12
|
+
#++
|
13
|
+
|
14
|
+
require 'rubygems'
|
15
|
+
require 'hoe'
|
16
|
+
|
17
|
+
$LOAD_PATH.unshift('lib')
|
18
|
+
|
19
|
+
require 'mime/types'
|
20
|
+
|
21
|
+
PKG_NAME = 'mime-types'
|
22
|
+
PKG_VERSION = MIME::Types::VERSION
|
23
|
+
PKG_DIST = "#{PKG_NAME}-#{PKG_VERSION}"
|
24
|
+
PKG_TAR = "pkg/#{PKG_DIST}.tar.gz"
|
25
|
+
MANIFEST = File.read("Manifest.txt").split
|
26
|
+
|
27
|
+
hoe = Hoe.new PKG_NAME, PKG_VERSION do |p|
|
28
|
+
p.rubyforge_name = PKG_NAME
|
29
|
+
# This is a lie because I will continue to use Archive::Tar::Minitar.
|
30
|
+
p.need_tar = false
|
31
|
+
# need_zip - Should package create a zipfile? [default: false]
|
32
|
+
|
33
|
+
p.author = [ "Austin Ziegler" ]
|
34
|
+
p.email = %W(austin@rubyforge.org)
|
35
|
+
p.url = "http://mime-types.rubyforge.org/"
|
36
|
+
p.summary = %q{Manages a MIME Content-Type database that will return the Content-Type for a given filename.}
|
37
|
+
p.changes = p.paragraphs_of("History.txt", 0..0).join("\n\n")
|
38
|
+
p.description = p.paragraphs_of("README.txt", 1..1).join("\n\n")
|
39
|
+
|
40
|
+
p.extra_dev_deps << %w(archive-tar-minitar ~>0.5)
|
41
|
+
p.extra_dev_deps << %w(nokogiri ~>1.2)
|
42
|
+
p.extra_dev_deps << %w(rcov ~>0.8)
|
43
|
+
|
44
|
+
p.clean_globs << "coverage"
|
45
|
+
|
46
|
+
p.spec_extras[:extra_rdoc_files] = MANIFEST.grep(/txt$/) - ["Manifest.txt"]
|
47
|
+
end
|
48
|
+
|
49
|
+
begin
|
50
|
+
require 'rcov/rcovtask'
|
51
|
+
Rcov::RcovTask.new do |t|
|
52
|
+
t.libs << 'test'
|
53
|
+
t.test_files = hoe.test_files
|
54
|
+
t.verbose = true
|
55
|
+
end
|
56
|
+
rescue LoadError
|
57
|
+
puts "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
58
|
+
end
|
59
|
+
|
60
|
+
=begin
|
61
|
+
require 'cucumber/rake/task'
|
62
|
+
Cucumber::Rake::Task.new(:features)
|
63
|
+
rescue LoadError
|
64
|
+
puts "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
|
65
|
+
=end
|
66
|
+
|
67
|
+
desc "Build a MIME::Types .tar.gz distribution."
|
68
|
+
task :tar => [ PKG_TAR ]
|
69
|
+
file PKG_TAR => [ :test ] do |t|
|
70
|
+
require 'archive/tar/minitar'
|
71
|
+
require 'zlib'
|
72
|
+
files = MANIFEST.map { |f|
|
73
|
+
fn = File.join(PKG_DIST, f)
|
74
|
+
tm = File.stat(f).mtime
|
75
|
+
|
76
|
+
if File.directory?(f)
|
77
|
+
{ :name => fn, :mode => 0755, :dir => true, :mtime => tm }
|
78
|
+
else
|
79
|
+
mode = if f =~ %r{^bin}
|
80
|
+
0755
|
81
|
+
else
|
82
|
+
0644
|
83
|
+
end
|
84
|
+
data = File.read(f)
|
85
|
+
{ :name => fn, :mode => mode, :data => data, :size => data.size,
|
86
|
+
:mtime => tm }
|
87
|
+
end
|
88
|
+
}
|
89
|
+
|
90
|
+
begin
|
91
|
+
unless File.directory?(File.dirname(t.name))
|
92
|
+
require 'fileutils'
|
93
|
+
FileUtils.mkdir_p File.dirname(t.name)
|
94
|
+
end
|
95
|
+
tf = File.open(t.name, 'wb')
|
96
|
+
gz = Zlib::GzipWriter.new(tf)
|
97
|
+
tw = Archive::Tar::Minitar::Writer.new(gz)
|
98
|
+
|
99
|
+
files.each do |entry|
|
100
|
+
if entry[:dir]
|
101
|
+
tw.mkdir(entry[:name], entry)
|
102
|
+
else
|
103
|
+
tw.add_file_simple(entry[:name], entry) { |os|
|
104
|
+
os.write(entry[:data])
|
105
|
+
}
|
106
|
+
end
|
107
|
+
end
|
108
|
+
ensure
|
109
|
+
tw.close if tw
|
110
|
+
gz.close if gz
|
111
|
+
end
|
112
|
+
end
|
113
|
+
task :package => [ PKG_TAR ]
|
114
|
+
|
115
|
+
desc "Build the manifest file from the current set of files."
|
116
|
+
task :build_manifest do |t|
|
117
|
+
require 'find'
|
118
|
+
|
119
|
+
hoerc = File.join(File.dirname(__FILE__), ".hoerc")
|
120
|
+
hoerc = File.open(hoerc, "rb") { |f| f.read }
|
121
|
+
hoerc = YAML::load(hoerc)
|
122
|
+
|
123
|
+
paths = []
|
124
|
+
Find.find(".") do |path|
|
125
|
+
next if File.directory?(path) || path =~ hoerc["exclude"]
|
126
|
+
paths << path.sub(%r{^\./}, '')
|
127
|
+
end
|
128
|
+
|
129
|
+
paths = paths.sort.join("\n")
|
130
|
+
|
131
|
+
File.open("Manifest.txt", "w") do |f|
|
132
|
+
f.puts paths
|
133
|
+
end
|
134
|
+
|
135
|
+
puts paths
|
136
|
+
end
|
137
|
+
|
138
|
+
desc "Download the current MIME type registrations from IANA."
|
139
|
+
task :iana, :save, :destination do |t, args|
|
140
|
+
save_type = args.save || :text
|
141
|
+
save_type = save_type.to_sym
|
142
|
+
|
143
|
+
case save_type
|
144
|
+
when :text, :both, :html
|
145
|
+
nil
|
146
|
+
else
|
147
|
+
raise "Unknown save type provided. Must be one of text, both, or html."
|
148
|
+
end
|
149
|
+
|
150
|
+
destination = args.destination || "type-lists"
|
151
|
+
|
152
|
+
require 'open-uri'
|
153
|
+
require 'nokogiri'
|
154
|
+
require 'cgi'
|
155
|
+
|
156
|
+
class IANAParser
|
157
|
+
include Comparable
|
158
|
+
|
159
|
+
INDEX = %q(http://www.iana.org/assignments/media-types/)
|
160
|
+
CONTACT_PEOPLE = %r{http://www.iana.org/assignments/contact-people.html?#(.*)}
|
161
|
+
RFC_EDITOR = %r{http://www.rfc-editor.org/rfc/rfc(\d+).txt}
|
162
|
+
IETF_RFC = %r{http://www.ietf.org/rfc/rfc(\d+).txt}
|
163
|
+
IETF_RFC_TOOLS = %r{http://tools.ietf.org/html/rfc(\d+)}
|
164
|
+
|
165
|
+
class << self
|
166
|
+
def load_index
|
167
|
+
@types ||= {}
|
168
|
+
|
169
|
+
Nokogiri::HTML(open(INDEX) { |f| f.read }).xpath('//p/a').each do |tag|
|
170
|
+
href_match = %r{^/assignments/media-types/(.+)/$}.match(tag['href'])
|
171
|
+
next if href_match.nil?
|
172
|
+
type = href_match.captures[0]
|
173
|
+
@types[tag.content] = IANAParser.new(tag.content, type)
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
attr_reader :types
|
178
|
+
end
|
179
|
+
|
180
|
+
def initialize(name, type)
|
181
|
+
@name = name
|
182
|
+
@type = type
|
183
|
+
@url = File.join(INDEX, @type)
|
184
|
+
end
|
185
|
+
|
186
|
+
attr_reader :name
|
187
|
+
attr_reader :type
|
188
|
+
attr_reader :url
|
189
|
+
attr_reader :html
|
190
|
+
|
191
|
+
def download(name = nil)
|
192
|
+
@html = Nokogiri::HTML(open(name || @url) { |f| f.read })
|
193
|
+
end
|
194
|
+
|
195
|
+
def save_html
|
196
|
+
File.open("#@name.html", "wb") { |w| w.write @html }
|
197
|
+
end
|
198
|
+
|
199
|
+
def <=>(o)
|
200
|
+
self.name <=> o.name
|
201
|
+
end
|
202
|
+
|
203
|
+
def parse
|
204
|
+
nodes = html.xpath("//table//table//tr")
|
205
|
+
|
206
|
+
# How many <td> children does the first node have?
|
207
|
+
node_count = nodes.first.children.select { |node| node.elem? }.size
|
208
|
+
|
209
|
+
@mime_types = nodes.map do |node|
|
210
|
+
next if node == nodes.first
|
211
|
+
elems = node.children.select { |n| n.elem? }
|
212
|
+
next if elems.size.zero?
|
213
|
+
raise "size mismatch #{elems.size} != #{node_count}" if node_count != elems.size
|
214
|
+
|
215
|
+
case elems.size
|
216
|
+
when 3
|
217
|
+
subtype_index = 1
|
218
|
+
refnode_index = 2
|
219
|
+
when 4
|
220
|
+
subtype_index = 1
|
221
|
+
refnode_index = 3
|
222
|
+
else
|
223
|
+
raise "Unknown element size."
|
224
|
+
end
|
225
|
+
|
226
|
+
subtype = elems[subtype_index].content.chomp.strip
|
227
|
+
refnodes = elems[refnode_index].children.select { |n| n.elem? }.map { |ref|
|
228
|
+
case ref['href']
|
229
|
+
when CONTACT_PEOPLE
|
230
|
+
tag = CGI::unescape($1).chomp.strip
|
231
|
+
if tag == ref.content
|
232
|
+
"[#{ref.content}]"
|
233
|
+
else
|
234
|
+
"[#{ref.content}=#{tag}]"
|
235
|
+
end
|
236
|
+
when RFC_EDITOR, IETF_RFC, IETF_RFC_TOOLS
|
237
|
+
"RFC#$1"
|
238
|
+
when %r{(https?://.*)}
|
239
|
+
"{#{ref.content}=#$1}"
|
240
|
+
else
|
241
|
+
ref
|
242
|
+
end
|
243
|
+
}
|
244
|
+
refs = refnodes.join(',')
|
245
|
+
|
246
|
+
"#@type/#{subtype} 'IANA,#{refs}"
|
247
|
+
end.compact
|
248
|
+
|
249
|
+
@mime_types
|
250
|
+
end
|
251
|
+
|
252
|
+
def save_text
|
253
|
+
File.open("#@name.txt", "wb") { |w| w.write @mime_types.join("\n") }
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
puts "Downloading index of MIME types from #{IANAParser::INDEX}."
|
258
|
+
IANAParser.load_index
|
259
|
+
|
260
|
+
require 'fileutils'
|
261
|
+
FileUtils.mkdir_p destination
|
262
|
+
Dir.chdir destination do
|
263
|
+
IANAParser.types.values.sort.each do |parser|
|
264
|
+
next if parser.name == "example" or parser.name == "mime"
|
265
|
+
puts "Downloading #{parser.name} from #{parser.url}"
|
266
|
+
parser.download
|
267
|
+
|
268
|
+
if :html == save_type || :both == save_type
|
269
|
+
puts "Saving #{parser.name}.html"
|
270
|
+
parser.save_html
|
271
|
+
end
|
272
|
+
|
273
|
+
puts "Parsing #{parser.name} HTML"
|
274
|
+
parser.parse
|
275
|
+
|
276
|
+
if :text == save_type || :both == save_type
|
277
|
+
puts "Saving #{parser.name}.txt"
|
278
|
+
parser.save_text
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
284
|
+
desc "Shows known MIME type sources."
|
285
|
+
task :mime_type_sources do
|
286
|
+
puts <<-EOS
|
287
|
+
http://www.ltsw.se/knbase/internet/mime.htp
|
288
|
+
http://www.webmaster-toolkit.com/mime-types.shtml
|
289
|
+
http://plugindoc.mozdev.org/winmime.php
|
290
|
+
http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html
|
291
|
+
http://www.feedforall.com/mime-types.htm
|
292
|
+
http://www.iana.org/assignments/media-types/
|
293
|
+
EOS
|
294
|
+
end
|
295
|
+
|
296
|
+
desc "Validate the RubyGem spec for GitHub."
|
297
|
+
task :github_validate_spec do |t|
|
298
|
+
require 'yaml'
|
299
|
+
|
300
|
+
require 'rubygems/specification'
|
301
|
+
data = File.read("#{PKG_NAME}.gemspec")
|
302
|
+
spec = nil
|
303
|
+
|
304
|
+
if data !~ %r{!ruby/object:Gem::Specification}
|
305
|
+
code = "$SAFE = 3\n#{data}"
|
306
|
+
p code.split($/)[44]
|
307
|
+
Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
|
308
|
+
else
|
309
|
+
spec = YAML.load(data)
|
310
|
+
end
|
311
|
+
|
312
|
+
spec.validate
|
313
|
+
|
314
|
+
puts spec
|
315
|
+
puts "OK"
|
316
|
+
end
|