qwik2md 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/README.md +36 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/qwik2md +17 -0
- data/lib/qwik2md/version.rb +3 -0
- data/lib/qwik2md.rb +39 -0
- data/qwik2md.gemspec +30 -0
- data/vendor/qwik/AUTHORS +10 -0
- data/vendor/qwik/COPYING +340 -0
- data/vendor/qwik/COPYRIGHT +346 -0
- data/vendor/qwik/lib/qwik/Makefile +63 -0
- data/vendor/qwik/lib/qwik/Rakefile +17 -0
- data/vendor/qwik/lib/qwik/act-aa.rb +83 -0
- data/vendor/qwik/lib/qwik/act-archive.rb +386 -0
- data/vendor/qwik/lib/qwik/act-attach.rb +304 -0
- data/vendor/qwik/lib/qwik/act-backup.rb +236 -0
- data/vendor/qwik/lib/qwik/act-basic.rb +325 -0
- data/vendor/qwik/lib/qwik/act-book.rb +161 -0
- data/vendor/qwik/lib/qwik/act-calc.rb +371 -0
- data/vendor/qwik/lib/qwik/act-charset.rb +251 -0
- data/vendor/qwik/lib/qwik/act-christel.rb +112 -0
- data/vendor/qwik/lib/qwik/act-chronology.rb +149 -0
- data/vendor/qwik/lib/qwik/act-code.rb +155 -0
- data/vendor/qwik/lib/qwik/act-comment.rb +554 -0
- data/vendor/qwik/lib/qwik/act-config.rb +49 -0
- data/vendor/qwik/lib/qwik/act-counter.rb +125 -0
- data/vendor/qwik/lib/qwik/act-day.rb +96 -0
- data/vendor/qwik/lib/qwik/act-describe.rb +135 -0
- data/vendor/qwik/lib/qwik/act-diary.rb +109 -0
- data/vendor/qwik/lib/qwik/act-edit.rb +317 -0
- data/vendor/qwik/lib/qwik/act-embed-html.rb +296 -0
- data/vendor/qwik/lib/qwik/act-emode.rb +150 -0
- data/vendor/qwik/lib/qwik/act-event.rb +187 -0
- data/vendor/qwik/lib/qwik/act-file.rb +303 -0
- data/vendor/qwik/lib/qwik/act-files.rb +771 -0
- data/vendor/qwik/lib/qwik/act-getpass.rb +295 -0
- data/vendor/qwik/lib/qwik/act-history.rb +136 -0
- data/vendor/qwik/lib/qwik/act-html.rb +204 -0
- data/vendor/qwik/lib/qwik/act-httpauth.rb +147 -0
- data/vendor/qwik/lib/qwik/act-include.rb +142 -0
- data/vendor/qwik/lib/qwik/act-interwiki.rb +189 -0
- data/vendor/qwik/lib/qwik/act-isearch.rb +109 -0
- data/vendor/qwik/lib/qwik/act-keywords.rb +137 -0
- data/vendor/qwik/lib/qwik/act-lang.rb +81 -0
- data/vendor/qwik/lib/qwik/act-license.rb +63 -0
- data/vendor/qwik/lib/qwik/act-list.rb +287 -0
- data/vendor/qwik/lib/qwik/act-login.rb +410 -0
- data/vendor/qwik/lib/qwik/act-logout.rb +60 -0
- data/vendor/qwik/lib/qwik/act-mail.rb +159 -0
- data/vendor/qwik/lib/qwik/act-map.rb +292 -0
- data/vendor/qwik/lib/qwik/act-md5.rb +42 -0
- data/vendor/qwik/lib/qwik/act-mdlb.rb +741 -0
- data/vendor/qwik/lib/qwik/act-media.rb +416 -0
- data/vendor/qwik/lib/qwik/act-member.rb +157 -0
- data/vendor/qwik/lib/qwik/act-menu.rb +142 -0
- data/vendor/qwik/lib/qwik/act-metadata.rb +323 -0
- data/vendor/qwik/lib/qwik/act-mlsubmitform.rb +49 -0
- data/vendor/qwik/lib/qwik/act-monitor.rb +167 -0
- data/vendor/qwik/lib/qwik/act-new.rb +418 -0
- data/vendor/qwik/lib/qwik/act-pagelist.rb +248 -0
- data/vendor/qwik/lib/qwik/act-password.rb +145 -0
- data/vendor/qwik/lib/qwik/act-plan.rb +210 -0
- data/vendor/qwik/lib/qwik/act-povray.rb +230 -0
- data/vendor/qwik/lib/qwik/act-presen.rb +380 -0
- data/vendor/qwik/lib/qwik/act-redirect.rb +133 -0
- data/vendor/qwik/lib/qwik/act-ring.rb +1071 -0
- data/vendor/qwik/lib/qwik/act-rrefs.rb +255 -0
- data/vendor/qwik/lib/qwik/act-ruby.rb +116 -0
- data/vendor/qwik/lib/qwik/act-sample.rb +170 -0
- data/vendor/qwik/lib/qwik/act-save.rb +295 -0
- data/vendor/qwik/lib/qwik/act-schedule.rb +374 -0
- data/vendor/qwik/lib/qwik/act-search.rb +180 -0
- data/vendor/qwik/lib/qwik/act-searchwords.rb +51 -0
- data/vendor/qwik/lib/qwik/act-sendpass.rb +83 -0
- data/vendor/qwik/lib/qwik/act-site.rb +89 -0
- data/vendor/qwik/lib/qwik/act-sitebackup.rb +419 -0
- data/vendor/qwik/lib/qwik/act-sitelog.rb +118 -0
- data/vendor/qwik/lib/qwik/act-smil.rb +299 -0
- data/vendor/qwik/lib/qwik/act-status.rb +220 -0
- data/vendor/qwik/lib/qwik/act-style.rb +608 -0
- data/vendor/qwik/lib/qwik/act-table.rb +263 -0
- data/vendor/qwik/lib/qwik/act-tableform.rb +241 -0
- data/vendor/qwik/lib/qwik/act-tag.rb +103 -0
- data/vendor/qwik/lib/qwik/act-text.rb +70 -0
- data/vendor/qwik/lib/qwik/act-textarea.rb +164 -0
- data/vendor/qwik/lib/qwik/act-theme.rb +346 -0
- data/vendor/qwik/lib/qwik/act-toc.rb +112 -0
- data/vendor/qwik/lib/qwik/act-typekey.rb +198 -0
- data/vendor/qwik/lib/qwik/act-under-const.rb +94 -0
- data/vendor/qwik/lib/qwik/act-webservice.rb +321 -0
- data/vendor/qwik/lib/qwik/act-wema.rb +558 -0
- data/vendor/qwik/lib/qwik/act-wysiwyg.rb +238 -0
- data/vendor/qwik/lib/qwik/action.rb +325 -0
- data/vendor/qwik/lib/qwik/autoreload.rb +98 -0
- data/vendor/qwik/lib/qwik/bench-bench.rb +28 -0
- data/vendor/qwik/lib/qwik/bench-emode.rb +47 -0
- data/vendor/qwik/lib/qwik/bench-format-xml.rb +70 -0
- data/vendor/qwik/lib/qwik/bench-large-table.rb +62 -0
- data/vendor/qwik/lib/qwik/bench-md5.rb +14 -0
- data/vendor/qwik/lib/qwik/bench-module-session.rb +19 -0
- data/vendor/qwik/lib/qwik/bench-page.rb +50 -0
- data/vendor/qwik/lib/qwik/bench-s-md5.rb +28 -0
- data/vendor/qwik/lib/qwik/bench-session.rb +25 -0
- data/vendor/qwik/lib/qwik/bench-textformat.rb +31 -0
- data/vendor/qwik/lib/qwik/catalog-factory.rb +91 -0
- data/vendor/qwik/lib/qwik/catalog-ja.rb +479 -0
- data/vendor/qwik/lib/qwik/catalog-ml-ja.rb +145 -0
- data/vendor/qwik/lib/qwik/check-act-monitor.rb +112 -0
- data/vendor/qwik/lib/qwik/check-act-monitor2.rb +46 -0
- data/vendor/qwik/lib/qwik/check-act-theme.rb +27 -0
- data/vendor/qwik/lib/qwik/check-event.rb +112 -0
- data/vendor/qwik/lib/qwik/check-event2.rb +55 -0
- data/vendor/qwik/lib/qwik/check-htree-rexml.rb +77 -0
- data/vendor/qwik/lib/qwik/check-htree.rb +51 -0
- data/vendor/qwik/lib/qwik/check-libxml.rb +135 -0
- data/vendor/qwik/lib/qwik/check-many-pages.rb +47 -0
- data/vendor/qwik/lib/qwik/check-monitor.rb +33 -0
- data/vendor/qwik/lib/qwik/check-observer.rb +67 -0
- data/vendor/qwik/lib/qwik/check-server.rb +61 -0
- data/vendor/qwik/lib/qwik/check-uuencode.rb +33 -0
- data/vendor/qwik/lib/qwik/check-webdav.rb +65 -0
- data/vendor/qwik/lib/qwik/check-xml-xpath.rb +27 -0
- data/vendor/qwik/lib/qwik/common-backtrace.rb +94 -0
- data/vendor/qwik/lib/qwik/common-basic.rb +111 -0
- data/vendor/qwik/lib/qwik/common-condition.rb +142 -0
- data/vendor/qwik/lib/qwik/common-error.rb +48 -0
- data/vendor/qwik/lib/qwik/common-gettext.rb +50 -0
- data/vendor/qwik/lib/qwik/common-javascript.rb +45 -0
- data/vendor/qwik/lib/qwik/common-notice.rb +132 -0
- data/vendor/qwik/lib/qwik/common-plain.rb +105 -0
- data/vendor/qwik/lib/qwik/common-plugin.rb +111 -0
- data/vendor/qwik/lib/qwik/common-res.rb +76 -0
- data/vendor/qwik/lib/qwik/common-resolve.rb +92 -0
- data/vendor/qwik/lib/qwik/common-send.rb +171 -0
- data/vendor/qwik/lib/qwik/common-session.rb +139 -0
- data/vendor/qwik/lib/qwik/common-surface.rb +261 -0
- data/vendor/qwik/lib/qwik/common-url.rb +90 -0
- data/vendor/qwik/lib/qwik/compat/Makefile +12 -0
- data/vendor/qwik/lib/qwik/compat/add_load_path.rb +1 -0
- data/vendor/qwik/lib/qwik/config.rb +299 -0
- data/vendor/qwik/lib/qwik/db-b-backup.rb +142 -0
- data/vendor/qwik/lib/qwik/db-backup.rb +184 -0
- data/vendor/qwik/lib/qwik/db-berkeley.rb +306 -0
- data/vendor/qwik/lib/qwik/db-filesystem.rb +305 -0
- data/vendor/qwik/lib/qwik/db-indexer.rb +154 -0
- data/vendor/qwik/lib/qwik/db-searchwords.rb +238 -0
- data/vendor/qwik/lib/qwik/description-ja.rb +267 -0
- data/vendor/qwik/lib/qwik/description.rb +256 -0
- data/vendor/qwik/lib/qwik/dev-add-copyright.rb +23 -0
- data/vendor/qwik/lib/qwik/dev-backup.rb +24 -0
- data/vendor/qwik/lib/qwik/dev-bench.rb +175 -0
- data/vendor/qwik/lib/qwik/dev-calctime.rb +52 -0
- data/vendor/qwik/lib/qwik/dev-css-compressor.rb +60 -0
- data/vendor/qwik/lib/qwik/dev-extract-catalog.rb +102 -0
- data/vendor/qwik/lib/qwik/dev-js-compressor.rb +73 -0
- data/vendor/qwik/lib/qwik/dev-release.rb +235 -0
- data/vendor/qwik/lib/qwik/dev-replace.rb +353 -0
- data/vendor/qwik/lib/qwik/dev-sendmail.rb +25 -0
- data/vendor/qwik/lib/qwik/farm.rb +283 -0
- data/vendor/qwik/lib/qwik/gettext.rb +56 -0
- data/vendor/qwik/lib/qwik/group-cond.rb +157 -0
- data/vendor/qwik/lib/qwik/group-config.rb +247 -0
- data/vendor/qwik/lib/qwik/group-confirm.rb +147 -0
- data/vendor/qwik/lib/qwik/group-db.rb +326 -0
- data/vendor/qwik/lib/qwik/group-mail.rb +195 -0
- data/vendor/qwik/lib/qwik/group-member.rb +307 -0
- data/vendor/qwik/lib/qwik/group-sendmail.rb +231 -0
- data/vendor/qwik/lib/qwik/group-site.rb +374 -0
- data/vendor/qwik/lib/qwik/group-sweep.rb +63 -0
- data/vendor/qwik/lib/qwik/group.rb +157 -0
- data/vendor/qwik/lib/qwik/helper.rb +6 -0
- data/vendor/qwik/lib/qwik/html-generator.rb +104 -0
- data/vendor/qwik/lib/qwik/html-to-wabisabi.rb +148 -0
- data/vendor/qwik/lib/qwik/htree-diff.rb +87 -0
- data/vendor/qwik/lib/qwik/htree-format-xml.rb +57 -0
- data/vendor/qwik/lib/qwik/htree-generator.rb +144 -0
- data/vendor/qwik/lib/qwik/htree-get.rb +251 -0
- data/vendor/qwik/lib/qwik/htree-html-generator.rb +179 -0
- data/vendor/qwik/lib/qwik/htree-template.rb +263 -0
- data/vendor/qwik/lib/qwik/htree-to-wabisabi.rb +171 -0
- data/vendor/qwik/lib/qwik/loadlib.rb +79 -0
- data/vendor/qwik/lib/qwik/logger.rb +115 -0
- data/vendor/qwik/lib/qwik/mail-body.rb +171 -0
- data/vendor/qwik/lib/qwik/mail-header.rb +474 -0
- data/vendor/qwik/lib/qwik/mail-multipart.rb +193 -0
- data/vendor/qwik/lib/qwik/mail-parse.rb +147 -0
- data/vendor/qwik/lib/qwik/mail.rb +341 -0
- data/vendor/qwik/lib/qwik/mailaddress.rb +83 -0
- data/vendor/qwik/lib/qwik/mdlb-model.rb +81 -0
- data/vendor/qwik/lib/qwik/mdlb-sample.rb +324 -0
- data/vendor/qwik/lib/qwik/ml-catalog-factory.rb +27 -0
- data/vendor/qwik/lib/qwik/ml-exception.rb +15 -0
- data/vendor/qwik/lib/qwik/ml-generator.rb +28 -0
- data/vendor/qwik/lib/qwik/ml-gettext.rb +137 -0
- data/vendor/qwik/lib/qwik/ml-logger.rb +82 -0
- data/vendor/qwik/lib/qwik/ml-memory.rb +65 -0
- data/vendor/qwik/lib/qwik/ml-msg-validator.rb +86 -0
- data/vendor/qwik/lib/qwik/ml-processor.rb +609 -0
- data/vendor/qwik/lib/qwik/ml-quickml-server.rb +122 -0
- data/vendor/qwik/lib/qwik/ml-sendmail.rb +0 -0
- data/vendor/qwik/lib/qwik/ml-server.rb +107 -0
- data/vendor/qwik/lib/qwik/ml-session.rb +348 -0
- data/vendor/qwik/lib/qwik/ml-sweeper.rb +101 -0
- data/vendor/qwik/lib/qwik/mock-logger.rb +65 -0
- data/vendor/qwik/lib/qwik/mock-sendmail.rb +78 -0
- data/vendor/qwik/lib/qwik/mock-socket.rb +82 -0
- data/vendor/qwik/lib/qwik/modulobe.rb +406 -0
- data/vendor/qwik/lib/qwik/mongrel-server.rb +72 -0
- data/vendor/qwik/lib/qwik/page-files.rb +249 -0
- data/vendor/qwik/lib/qwik/page-generate.rb +82 -0
- data/vendor/qwik/lib/qwik/page-get.rb +262 -0
- data/vendor/qwik/lib/qwik/page-images.rb +168 -0
- data/vendor/qwik/lib/qwik/page-put.rb +128 -0
- data/vendor/qwik/lib/qwik/page-rrefs.rb +154 -0
- data/vendor/qwik/lib/qwik/page-title.rb +0 -0
- data/vendor/qwik/lib/qwik/page-wikidb.rb +234 -0
- data/vendor/qwik/lib/qwik/page.rb +67 -0
- data/vendor/qwik/lib/qwik/pages.rb +444 -0
- data/vendor/qwik/lib/qwik/parse-plugin.rb +249 -0
- data/vendor/qwik/lib/qwik/parser-emode.rb +116 -0
- data/vendor/qwik/lib/qwik/parser-inline.rb +272 -0
- data/vendor/qwik/lib/qwik/parser.rb +349 -0
- data/vendor/qwik/lib/qwik/password.rb +183 -0
- data/vendor/qwik/lib/qwik/periodic.rb +79 -0
- data/vendor/qwik/lib/qwik/qp.rb +56 -0
- data/vendor/qwik/lib/qwik/qwik-service.rb +341 -0
- data/vendor/qwik/lib/qwik/qwik.rb +5 -0
- data/vendor/qwik/lib/qwik/qwikweb-adduser.rb +34 -0
- data/vendor/qwik/lib/qwik/qwikweb-catalog-validator.rb +110 -0
- data/vendor/qwik/lib/qwik/qwikweb-incgen.rb +28 -0
- data/vendor/qwik/lib/qwik/qwikweb-makesite.rb +41 -0
- data/vendor/qwik/lib/qwik/qwikweb-server.rb +44 -0
- data/vendor/qwik/lib/qwik/qwikweb-showpassword.rb +26 -0
- data/vendor/qwik/lib/qwik/qwikweb-watchlog.rb +67 -0
- data/vendor/qwik/lib/qwik/request-path.rb +304 -0
- data/vendor/qwik/lib/qwik/request-ua.rb +76 -0
- data/vendor/qwik/lib/qwik/request-webrick.rb +81 -0
- data/vendor/qwik/lib/qwik/request.rb +91 -0
- data/vendor/qwik/lib/qwik/resolve-tdiary.rb +292 -0
- data/vendor/qwik/lib/qwik/resolve.rb +121 -0
- data/vendor/qwik/lib/qwik/response.rb +228 -0
- data/vendor/qwik/lib/qwik/server-memory.rb +57 -0
- data/vendor/qwik/lib/qwik/server-webrick.rb +102 -0
- data/vendor/qwik/lib/qwik/server.rb +252 -0
- data/vendor/qwik/lib/qwik/site-config.rb +149 -0
- data/vendor/qwik/lib/qwik/site-db.rb +136 -0
- data/vendor/qwik/lib/qwik/site-event.rb +162 -0
- data/vendor/qwik/lib/qwik/site-files.rb +86 -0
- data/vendor/qwik/lib/qwik/site-group.rb +103 -0
- data/vendor/qwik/lib/qwik/site-index.rb +47 -0
- data/vendor/qwik/lib/qwik/site-log.rb +64 -0
- data/vendor/qwik/lib/qwik/site-member.rb +230 -0
- data/vendor/qwik/lib/qwik/site-monitor.rb +97 -0
- data/vendor/qwik/lib/qwik/site-pages.rb +62 -0
- data/vendor/qwik/lib/qwik/site-plan.rb +139 -0
- data/vendor/qwik/lib/qwik/site-report.rb +282 -0
- data/vendor/qwik/lib/qwik/site-resolve.rb +230 -0
- data/vendor/qwik/lib/qwik/site-rrefs.rb +18 -0
- data/vendor/qwik/lib/qwik/site-search.rb +180 -0
- data/vendor/qwik/lib/qwik/site-timeline.rb +153 -0
- data/vendor/qwik/lib/qwik/site-url.rb +189 -0
- data/vendor/qwik/lib/qwik/site.rb +76 -0
- data/vendor/qwik/lib/qwik/smil-time.rb +105 -0
- data/vendor/qwik/lib/qwik/smtp-session.rb +331 -0
- data/vendor/qwik/lib/qwik/template-generator.rb +149 -0
- data/vendor/qwik/lib/qwik/template.rb +85 -0
- data/vendor/qwik/lib/qwik/test-common.rb +10 -0
- data/vendor/qwik/lib/qwik/test-ml-info.rb +225 -0
- data/vendor/qwik/lib/qwik/test-module-ml.rb +142 -0
- data/vendor/qwik/lib/qwik/test-module-path.rb +110 -0
- data/vendor/qwik/lib/qwik/test-module-public.rb +70 -0
- data/vendor/qwik/lib/qwik/test-module-server.rb +98 -0
- data/vendor/qwik/lib/qwik/test-module-session.rb +264 -0
- data/vendor/qwik/lib/qwik/test-module-suite.rb +91 -0
- data/vendor/qwik/lib/qwik/test-ms-applemail.rb +59 -0
- data/vendor/qwik/lib/qwik/test-ms-attach.rb +174 -0
- data/vendor/qwik/lib/qwik/test-ms-basic.rb +40 -0
- data/vendor/qwik/lib/qwik/test-ms-close.rb +35 -0
- data/vendor/qwik/lib/qwik/test-ms-confirm.rb +75 -0
- data/vendor/qwik/lib/qwik/test-ms-ignore-spam.rb +57 -0
- data/vendor/qwik/lib/qwik/test-ms-japanese.rb +97 -0
- data/vendor/qwik/lib/qwik/test-ms-jfilename.rb +82 -0
- data/vendor/qwik/lib/qwik/test-ms-large.rb +58 -0
- data/vendor/qwik/lib/qwik/test-ms-member.rb +103 -0
- data/vendor/qwik/lib/qwik/test-ms-multipart.rb +84 -0
- data/vendor/qwik/lib/qwik/test-ms-org.rb +129 -0
- data/vendor/qwik/lib/qwik/test-ms-plan.rb +130 -0
- data/vendor/qwik/lib/qwik/test-ms-post.rb +53 -0
- data/vendor/qwik/lib/qwik/test-ms-quopri.rb +76 -0
- data/vendor/qwik/lib/qwik/test-sub-quopri.rb +45 -0
- data/vendor/qwik/lib/qwik/test-submit-base64.rb +59 -0
- data/vendor/qwik/lib/qwik/test-submit-forward.rb +61 -0
- data/vendor/qwik/lib/qwik/test-submit-html-mail.rb +52 -0
- data/vendor/qwik/lib/qwik/test-submit-japanese.rb +135 -0
- data/vendor/qwik/lib/qwik/test-submit-jfilename.rb +144 -0
- data/vendor/qwik/lib/qwik/test-submit-uuencode.rb +71 -0
- data/vendor/qwik/lib/qwik/test-suite-all.rb +8 -0
- data/vendor/qwik/lib/qwik/test-suite-basic.rb +9 -0
- data/vendor/qwik/lib/qwik/test-suite-ml.rb +9 -0
- data/vendor/qwik/lib/qwik/test-typekey.rb +64 -0
- data/vendor/qwik/lib/qwik/testunit.rb +45 -0
- data/vendor/qwik/lib/qwik/tokenizer-inline.rb +288 -0
- data/vendor/qwik/lib/qwik/tokenizer.rb +331 -0
- data/vendor/qwik/lib/qwik/typekey.rb +160 -0
- data/vendor/qwik/lib/qwik/util-basic.rb +135 -0
- data/vendor/qwik/lib/qwik/util-charset.rb +331 -0
- data/vendor/qwik/lib/qwik/util-css.rb +56 -0
- data/vendor/qwik/lib/qwik/util-csv-tokenizer.rb +113 -0
- data/vendor/qwik/lib/qwik/util-filename.rb +112 -0
- data/vendor/qwik/lib/qwik/util-pathname.rb +202 -0
- data/vendor/qwik/lib/qwik/util-pid.rb +58 -0
- data/vendor/qwik/lib/qwik/util-safe.rb +67 -0
- data/vendor/qwik/lib/qwik/util-sendmail.rb +273 -0
- data/vendor/qwik/lib/qwik/util-string.rb +202 -0
- data/vendor/qwik/lib/qwik/util-time.rb +125 -0
- data/vendor/qwik/lib/qwik/util-webrick.rb +176 -0
- data/vendor/qwik/lib/qwik/version.rb +11 -0
- data/vendor/qwik/lib/qwik/wabisabi-basic.rb +163 -0
- data/vendor/qwik/lib/qwik/wabisabi-diff.rb +130 -0
- data/vendor/qwik/lib/qwik/wabisabi-format-xml.rb +310 -0
- data/vendor/qwik/lib/qwik/wabisabi-generator.rb +262 -0
- data/vendor/qwik/lib/qwik/wabisabi-index.rb +174 -0
- data/vendor/qwik/lib/qwik/wabisabi-table.rb +212 -0
- data/vendor/qwik/lib/qwik/wabisabi-template.rb +295 -0
- data/vendor/qwik/lib/qwik/wabisabi-to-htree.rb +111 -0
- data/vendor/qwik/lib/qwik/wabisabi-to-wiki.rb +690 -0
- data/vendor/qwik/lib/qwik/wabisabi-traverse.rb +207 -0
- data/vendor/qwik/lib/qwik/wabisabi-validator.rb +116 -0
- data/vendor/qwik/lib/qwik/wabisabi.rb +5 -0
- metadata +492 -0
@@ -0,0 +1,180 @@
|
|
1
|
+
# Copyright (C) 2003-2006 Kouichirou Eto, All rights reserved.
|
2
|
+
# This is free software with ABSOLUTELY NO WARRANTY.
|
3
|
+
# You can redistribute it and/or modify it under the terms of the GNU GPL 2.
|
4
|
+
|
5
|
+
$LOAD_PATH.unshift '..' unless $LOAD_PATH.include? '..'
|
6
|
+
require 'qwik/site-search'
|
7
|
+
require 'qwik/site-index'
|
8
|
+
|
9
|
+
module Qwik
|
10
|
+
class Action
|
11
|
+
D_PluginSearch = {
|
12
|
+
:dt => 'Search plugin',
|
13
|
+
:dd => 'You can show a search form.',
|
14
|
+
:dc => '* Example
|
15
|
+
{{search}}
|
16
|
+
{{search}}
|
17
|
+
'
|
18
|
+
}
|
19
|
+
|
20
|
+
D_PluginSearch_ja = {
|
21
|
+
:dt => '検索プラグイン',
|
22
|
+
:dd => '検索窓を作れます。',
|
23
|
+
:dc => '* 例
|
24
|
+
{{search}}
|
25
|
+
{{search}}
|
26
|
+
'
|
27
|
+
}
|
28
|
+
|
29
|
+
# ============================== search
|
30
|
+
def plg_side_search_form
|
31
|
+
return [
|
32
|
+
[:h2, _('Search')],
|
33
|
+
plg_search_form,
|
34
|
+
# plg_search_word_cloud
|
35
|
+
]
|
36
|
+
end
|
37
|
+
|
38
|
+
def plg_search_form(focus = false)
|
39
|
+
return search_form(focus)
|
40
|
+
end
|
41
|
+
alias plg_search plg_search_form
|
42
|
+
|
43
|
+
def search_form(focus = false, query = nil)
|
44
|
+
query_attr = {:name=>'q'}
|
45
|
+
query_attr[:class] = 'focus' if focus
|
46
|
+
query_attr[:value] = query if query
|
47
|
+
return [:form, {:action=>'.search'},
|
48
|
+
[:input, query_attr],
|
49
|
+
[:input, {:type=>'submit', :value=>_('Search')}]]
|
50
|
+
end
|
51
|
+
|
52
|
+
def act_search
|
53
|
+
query = search_get_query
|
54
|
+
if query.nil?
|
55
|
+
return search_form_page
|
56
|
+
end
|
57
|
+
|
58
|
+
ar = @site.search(query)
|
59
|
+
if ar.empty?
|
60
|
+
return search_notfound_page(query)
|
61
|
+
end
|
62
|
+
|
63
|
+
return search_result(@site, ar, query)
|
64
|
+
end
|
65
|
+
alias ext_search act_search
|
66
|
+
|
67
|
+
def search_get_query
|
68
|
+
query = @req.query['q']
|
69
|
+
return query if query && ! query.empty?
|
70
|
+
|
71
|
+
query = @req.base
|
72
|
+
return query if query && ! query.empty? && query != "FrontPage"
|
73
|
+
#return query if query && ! query.empty?
|
74
|
+
|
75
|
+
return nil
|
76
|
+
end
|
77
|
+
|
78
|
+
def search_form_page(title = _('Search'), notice = nil, query = nil)
|
79
|
+
body = []
|
80
|
+
body << [:h2, notice] if notice
|
81
|
+
body << [:div, {:class => 'form'}, search_form(true, query)]
|
82
|
+
return c_notice(title) { body }
|
83
|
+
end
|
84
|
+
|
85
|
+
# called also from act-isearch.rb
|
86
|
+
def search_notfound_page(query)
|
87
|
+
return search_form_page(_('Search result'), _('No match.'), query)
|
88
|
+
end
|
89
|
+
|
90
|
+
def search_result(site, ar, query = nil)
|
91
|
+
ul = [:ul]
|
92
|
+
ar.each {|key, line, i|
|
93
|
+
page = site[key]
|
94
|
+
url = page.url
|
95
|
+
ul << [:li,
|
96
|
+
[:h3, [:a, {:href => url}, page.get_title]],
|
97
|
+
[:span, {:class => 'content'}, line],
|
98
|
+
[:div, [:a, {:href => url}, url]]]
|
99
|
+
}
|
100
|
+
div = []
|
101
|
+
div << [:div, {:class => 'day'},
|
102
|
+
[:div, {:class => 'section'},
|
103
|
+
[:div, {:class=>'form'}, search_form(true, query)]]]
|
104
|
+
div << [:div, {:class => 'day'},
|
105
|
+
[:div, {:class => 'section'},
|
106
|
+
[:div, {:class => 'search_result'}, ul]]]
|
107
|
+
title = _('Search result') + ": " + query
|
108
|
+
return c_plain(title) { div }
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
if $0 == __FILE__
|
114
|
+
require 'qwik/test-common'
|
115
|
+
$test = true
|
116
|
+
end
|
117
|
+
|
118
|
+
if defined?($test) && $test
|
119
|
+
class TestActSearch < Test::Unit::TestCase
|
120
|
+
include TestSession
|
121
|
+
|
122
|
+
def test_plg_search_form
|
123
|
+
ok_wi([:form, {:action=>'.search'},
|
124
|
+
[:input, {:name=>'q'}],
|
125
|
+
[:input, {:value=>'Search', :type=>'submit'}]],
|
126
|
+
"{{search_form}}")
|
127
|
+
ok_wi([:form, {:action=>'.search'},
|
128
|
+
[:input, {:name=>'q', :class=>'focus'}],
|
129
|
+
[:input, {:value=>'Search', :type=>'submit'}]],
|
130
|
+
"{{search_form(true)}}")
|
131
|
+
end
|
132
|
+
|
133
|
+
def test_search
|
134
|
+
t_add_user
|
135
|
+
|
136
|
+
# test_act_search
|
137
|
+
res = session('/test/.search')
|
138
|
+
ok_xp([:form, {:action=>'.search'},
|
139
|
+
[:input, {:class=>'focus', :name=>'q'}],
|
140
|
+
[:input, {:value=>'Search', :type=>'submit'}]],
|
141
|
+
'//form')
|
142
|
+
|
143
|
+
res = session("/test/.search?q=nosuchkey")
|
144
|
+
assert_text('Search result', 'h1')
|
145
|
+
ok_in(['No match.'], '//h2')
|
146
|
+
|
147
|
+
page = @site.create_new
|
148
|
+
page.store('This is a keyword.')
|
149
|
+
res = session("/test/.search?q=keyword")
|
150
|
+
ok_in([:ul, [:li,
|
151
|
+
[:h3, [:a, {:href=>'1.html'}, '1']],
|
152
|
+
[:span, {:class=>'content'}, 'This is a keyword.'],
|
153
|
+
[:div, [:a, {:href=>'1.html'},"1.html"]]]],
|
154
|
+
"//div[@class='search_result']")
|
155
|
+
|
156
|
+
res = session("/test/keyword.search") # Both OK.
|
157
|
+
ok_in([:ul, [:li,
|
158
|
+
[:h3, [:a, {:href=>'1.html'}, '1']],
|
159
|
+
[:span, {:class=>'content'}, 'This is a keyword.'],
|
160
|
+
[:div, [:a, {:href => '1.html'},"1.html"]]]],
|
161
|
+
"//div[@class='search_result']")
|
162
|
+
|
163
|
+
page = @site.create_new # 2.txt
|
164
|
+
page.store("漢字")
|
165
|
+
res = session("/test/.search?q=字")
|
166
|
+
ok_in([:ul, [:li,
|
167
|
+
[:h3, [:a, {:href=>'2.html'}, '2']],
|
168
|
+
[:span, {:class=>'content'}, "漢字"],
|
169
|
+
[:div, [:a, {:href=>'2.html'}, '2.html']]]],
|
170
|
+
"//div[@class='search_result']")
|
171
|
+
|
172
|
+
res = session("/test/字.search") # Both OK.
|
173
|
+
ok_in([:ul, [:li,
|
174
|
+
[:h3, [:a, {:href=>'2.html'}, '2']],
|
175
|
+
[:span, {:class=>'content'}, "漢字"],
|
176
|
+
[:div, [:a, {:href=>'2.html'}, '2.html']]]],
|
177
|
+
"//div[@class='search_result']")
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# Copyright (C) 2003-2006 Kouichirou Eto, All rights reserved.
|
2
|
+
# This is free software with ABSOLUTELY NO WARRANTY.
|
3
|
+
# You can redistribute it and/or modify it under the terms of the GNU GPL 2.
|
4
|
+
|
5
|
+
$LOAD_PATH.unshift '..' unless $LOAD_PATH.include? '..'
|
6
|
+
require "qwik/act-search"
|
7
|
+
|
8
|
+
module Qwik
|
9
|
+
class Action
|
10
|
+
def plg_search_word_cloud
|
11
|
+
list = @site.get_search_words
|
12
|
+
[:span] + list.map{|em|
|
13
|
+
w = em.word.to_s.escape
|
14
|
+
if em.nil?
|
15
|
+
em = Word.new(w, 1, Time.new)
|
16
|
+
end
|
17
|
+
[[:span, {:class => "search_word#{em.count}"},
|
18
|
+
[:a, {:href => ".search?q=#{w}"}, em.word]],
|
19
|
+
[:span, {:class => "search_word_delete"},
|
20
|
+
[:a, {:href => ".delete?q=#{w}"},
|
21
|
+
[:img, {:src => ".theme/css/delete.png",:border =>"0",
|
22
|
+
:alt => "del"}]]]]
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# search word delete action
|
27
|
+
def act_delete
|
28
|
+
query = search_get_query
|
29
|
+
if query
|
30
|
+
@site.delete_search_word(query)
|
31
|
+
end
|
32
|
+
return c_notice("Deleted",@req.header["referer"]) { "deleted" }
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
if $0 == __FILE__
|
38
|
+
require 'qwik/test-common'
|
39
|
+
$test = true
|
40
|
+
end
|
41
|
+
|
42
|
+
if defined?($test) && $test
|
43
|
+
class TestActSearchWords < Test::Unit::TestCase
|
44
|
+
include TestSession
|
45
|
+
|
46
|
+
def test_dummy
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# Copyright (C) 2003-2006 Kouichirou Eto, All rights reserved.
|
2
|
+
# This is free software with ABSOLUTELY NO WARRANTY.
|
3
|
+
# You can redistribute it and/or modify it under the terms of the GNU GPL 2.
|
4
|
+
|
5
|
+
$LOAD_PATH.unshift '..' unless $LOAD_PATH.include? '..'
|
6
|
+
require 'qwik/act-getpass'
|
7
|
+
require 'qwik/mailaddress'
|
8
|
+
|
9
|
+
module Qwik
|
10
|
+
class Action
|
11
|
+
def act_sendpass
|
12
|
+
c_require_member
|
13
|
+
|
14
|
+
return sendpass_show_form if ! @req.is_post?
|
15
|
+
|
16
|
+
status = {}
|
17
|
+
members = @site.member.list
|
18
|
+
@req.query.each {|mail, v|
|
19
|
+
if ! MailAddress.valid?(mail) || v != 'on'
|
20
|
+
status[mail] = _('Wrong format.')
|
21
|
+
next
|
22
|
+
end
|
23
|
+
|
24
|
+
if ! members.include?(mail)
|
25
|
+
status[mail] = _('Not a member.')
|
26
|
+
next
|
27
|
+
end
|
28
|
+
|
29
|
+
passmail = generate_password_mail(mail)
|
30
|
+
sendmail = Sendmail.new(@config.smtp_host, @config.smtp_port,
|
31
|
+
@config.test)
|
32
|
+
begin
|
33
|
+
sendmail.send(passmail)
|
34
|
+
status[mail] = _('Succeeded.')
|
35
|
+
rescue
|
36
|
+
status[mail] = _('Failed.')
|
37
|
+
end
|
38
|
+
}
|
39
|
+
|
40
|
+
ar = []
|
41
|
+
status.each {|mail, result|
|
42
|
+
ar << [:li, mail, ' : ', result.to_s]
|
43
|
+
}
|
44
|
+
return c_notice(_('Send Password done')) {
|
45
|
+
[:ul, ar]
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
def sendpass_show_form
|
50
|
+
members = @site.member.list.sort
|
51
|
+
return c_notice(_('Send Password')) {
|
52
|
+
[[:h2, _('You can send password for the members.')],
|
53
|
+
[:p, _('Please select members to send password.')],
|
54
|
+
[:form, {:action=>'.sendpass', :method=>'post',
|
55
|
+
:style=>'text-align: center; margin: 32px 0 48px;'},
|
56
|
+
[:ul, members.map {|member|
|
57
|
+
[:li, [:input, {:type=>'checkbox', :name=>member}, ' '+member]]
|
58
|
+
}
|
59
|
+
],
|
60
|
+
[:input, {:type=>'submit', :value=>_('Send Password')}]]]
|
61
|
+
}
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
if $0 == __FILE__
|
67
|
+
require 'qwik/test-common'
|
68
|
+
require 'qwik/test-module-public'
|
69
|
+
$test = true
|
70
|
+
end
|
71
|
+
|
72
|
+
if defined?($test) && $test
|
73
|
+
class TestActSendPass < Test::Unit::TestCase
|
74
|
+
include TestSession
|
75
|
+
|
76
|
+
def test_all
|
77
|
+
t_add_user
|
78
|
+
|
79
|
+
res = session '/test/.sendpass'
|
80
|
+
ok_title 'Send Password'
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
# Copyright (C) 2003-2009 Kouichirou Eto, All rights reserved.
|
2
|
+
# This is free software with ABSOLUTELY NO WARRANTY.
|
3
|
+
# You can redistribute it and/or modify it under the terms of the GNU GPL 2.
|
4
|
+
|
5
|
+
$LOAD_PATH.unshift '..' unless $LOAD_PATH.include? '..'
|
6
|
+
require "qwik/act-status"
|
7
|
+
|
8
|
+
module Qwik
|
9
|
+
class Action
|
10
|
+
def site_delete_unused_config_files
|
11
|
+
files1 = %w{
|
12
|
+
,members
|
13
|
+
,count
|
14
|
+
,config
|
15
|
+
,charset
|
16
|
+
,alerted
|
17
|
+
,forward
|
18
|
+
,permanent
|
19
|
+
,unlimited
|
20
|
+
,waiting-members
|
21
|
+
,waiting-message
|
22
|
+
}
|
23
|
+
|
24
|
+
files1.each {|f1, i|
|
25
|
+
p1 = (sitepath + f1)
|
26
|
+
if p1.exist?
|
27
|
+
p1.unlink
|
28
|
+
li << "deleted. "
|
29
|
+
li << [:a, {:href=>"/#{sitename}/"}, "/#{sitename}/"]
|
30
|
+
ul << li
|
31
|
+
end
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
def act_site
|
36
|
+
c_require_login
|
37
|
+
return c_nerror("You are not administrator.") if ! is_administrator?
|
38
|
+
|
39
|
+
farm = @memory.farm
|
40
|
+
ul = [:ul]
|
41
|
+
|
42
|
+
farm.list.each {|sitename|
|
43
|
+
# next unless /\A[0-9]/ =~ sitename
|
44
|
+
|
45
|
+
# site = farm.get_site(sitename)
|
46
|
+
sitepath = "#{@config.sites_dir}/#{sitename}".path
|
47
|
+
|
48
|
+
li = [:li]
|
49
|
+
li << [:a, {:href=>"/#{sitename}/"}, "/#{sitename}/"]
|
50
|
+
ul << li
|
51
|
+
}
|
52
|
+
|
53
|
+
div = [:div, {:class => 'day'},
|
54
|
+
[:div, {:class => 'section'},
|
55
|
+
[:h2, _("Site list.")], ul]]
|
56
|
+
|
57
|
+
return c_plain(_("Site list. __qwik_page_generate_time__ sec. past.")) {
|
58
|
+
div
|
59
|
+
}
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
if $0 == __FILE__
|
65
|
+
require "pp"
|
66
|
+
require 'qwik/test-common'
|
67
|
+
$test = true
|
68
|
+
end
|
69
|
+
|
70
|
+
if defined?($test) && $test
|
71
|
+
class TestActSite < Test::Unit::TestCase
|
72
|
+
include TestSession
|
73
|
+
|
74
|
+
def test_all
|
75
|
+
t_add_user
|
76
|
+
|
77
|
+
file = @config.etc_dir.path + "administrator.txt"
|
78
|
+
file.write("")
|
79
|
+
|
80
|
+
res = session("/test/.site")
|
81
|
+
ok_title("You are not administrator.")
|
82
|
+
|
83
|
+
file.write("user@e.com\n")
|
84
|
+
|
85
|
+
res = session("/test/.site")
|
86
|
+
ok_title "Site list. __qwik_page_generate_time__ sec. past."
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|