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,112 @@
|
|
1
|
+
# -*- coding: cp932 -*-
|
2
|
+
# Copyright (C) 2003-2006 Kouichirou Eto, All rights reserved.
|
3
|
+
# This is free software with ABSOLUTELY NO WARRANTY.
|
4
|
+
# You can redistribute it and/or modify it under the terms of the GNU GPL 2.
|
5
|
+
|
6
|
+
$LOAD_PATH.unshift '..' unless $LOAD_PATH.include? '..'
|
7
|
+
|
8
|
+
module Qwik
|
9
|
+
class Action
|
10
|
+
D_christel = {
|
11
|
+
:dt => 'Takigawa Christel plugin',
|
12
|
+
:dd => 'You can embed Takigawa Christel image.',
|
13
|
+
:dc => "
|
14
|
+
Follow [[PluginChristel.describe]]"
|
15
|
+
}
|
16
|
+
|
17
|
+
D_PluginChristel = {
|
18
|
+
:dt => 'Takigawa Christel plugin',
|
19
|
+
:dd => 'You can embed Takigawa Christel image.',
|
20
|
+
:dc => "* Example
|
21
|
+
{{christel
|
22
|
+
This is Takigawa Christel plugin.
|
23
|
+
}}
|
24
|
+
{{christel
|
25
|
+
This is Takigawa Christel plugin.
|
26
|
+
}}
|
27
|
+
|
28
|
+
{{christel
|
29
|
+
You can embed images.
|
30
|
+
http://qwik.jp/.theme/i/login_qwik_logo.gif
|
31
|
+
}}
|
32
|
+
{{christel
|
33
|
+
You can embed images.
|
34
|
+
http://qwik.jp/.theme/i/login_qwik_logo.gif
|
35
|
+
}}
|
36
|
+
|
37
|
+
{{christel(640)
|
38
|
+
You can see bigger one.
|
39
|
+
}}
|
40
|
+
{{christel(640)
|
41
|
+
You can see bigger one.
|
42
|
+
}}
|
43
|
+
"
|
44
|
+
}
|
45
|
+
|
46
|
+
D_PluginChristel_ja = {
|
47
|
+
:dt => '滝川クリステルプラグイン',
|
48
|
+
:dd => '滝川クリステルさんに代りにしゃべってもらいます。',
|
49
|
+
:dc => "* Example
|
50
|
+
{{christel
|
51
|
+
滝川クリステルプラグインです
|
52
|
+
}}
|
53
|
+
{{christel
|
54
|
+
滝川クリステルプラグインです
|
55
|
+
}}
|
56
|
+
|
57
|
+
{{christel
|
58
|
+
画像も埋め込めます
|
59
|
+
http://qwik.jp/.theme/i/login_qwik_logo.gif
|
60
|
+
}}
|
61
|
+
{{christel
|
62
|
+
画像も埋め込めます
|
63
|
+
http://qwik.jp/.theme/i/login_qwik_logo.gif
|
64
|
+
}}
|
65
|
+
|
66
|
+
{{christel(640)
|
67
|
+
大きくしてみました
|
68
|
+
}}
|
69
|
+
{{christel(640)
|
70
|
+
大きくしてみました
|
71
|
+
}}
|
72
|
+
"
|
73
|
+
}
|
74
|
+
|
75
|
+
def plg_christel(width = 320)
|
76
|
+
width = width.to_i.to_s
|
77
|
+
content = yield
|
78
|
+
message, image_url = content.to_a
|
79
|
+
message.chomp!
|
80
|
+
image_url.chomp! if image_url
|
81
|
+
query_str = {
|
82
|
+
:m => message.set_page_charset.to_euc,
|
83
|
+
:u => image_url
|
84
|
+
}.to_query_string
|
85
|
+
url = "http://gedo-style.com/crstl/crstl.php?#{query_str}"
|
86
|
+
return [:img, {:src=>url, :width=>width}]
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
if $0 == __FILE__
|
92
|
+
require 'qwik/test-common'
|
93
|
+
$test = true
|
94
|
+
end
|
95
|
+
|
96
|
+
if defined?($test) && $test
|
97
|
+
class TestActChristel < Test::Unit::TestCase
|
98
|
+
include TestSession
|
99
|
+
|
100
|
+
def test_all
|
101
|
+
ok_wi([:img, {:width=>'320',
|
102
|
+
:src=>"http://gedo-style.com/crstl/crstl.php?m=a"}],
|
103
|
+
"{{christel\na\n}}")
|
104
|
+
ok_wi([:img, {:width=>'320',
|
105
|
+
:src=>"http://gedo-style.com/crstl/crstl.php?m=a&u=b"}],
|
106
|
+
"{{christel\na\nb\n}}")
|
107
|
+
ok_wi([:img, {:width=>'640',
|
108
|
+
:src=>"http://gedo-style.com/crstl/crstl.php?m=a"}],
|
109
|
+
"{{christel(640)\na\n}}")
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,149 @@
|
|
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-timeline'
|
7
|
+
|
8
|
+
module Qwik
|
9
|
+
class Action
|
10
|
+
D_ExtChronology = {
|
11
|
+
:dt => 'Chronology of site',
|
12
|
+
:dd => "You can see when the pages are created and updated.",
|
13
|
+
:dc => "* How to
|
14
|
+
Please go [[.chronology]] page to see the chronology of this site.
|
15
|
+
"
|
16
|
+
}
|
17
|
+
|
18
|
+
D_ExtChronology_ja = {
|
19
|
+
:dt => '年表機能 ',
|
20
|
+
:dd => "サイトのページがいつ作成され、編集されてきたのかを一覧できます。",
|
21
|
+
:dc => '* 使い方
|
22
|
+
[[.chronology]]ページで、このサイトの年表が表示さます。
|
23
|
+
'
|
24
|
+
}
|
25
|
+
|
26
|
+
def act_chronology
|
27
|
+
c_require_pagename
|
28
|
+
#c_require_member
|
29
|
+
|
30
|
+
timeline = @site.timeline
|
31
|
+
timeline.calc_history
|
32
|
+
divs = chronology_make_divs(timeline)
|
33
|
+
return chronology_show(divs)
|
34
|
+
end
|
35
|
+
alias act_time_walker act_chronology # Obsolete
|
36
|
+
|
37
|
+
CHRONOLOGY_WIDTH = 950
|
38
|
+
CHRONOLOGY_HEIGHT = 550
|
39
|
+
|
40
|
+
def chronology_make_divs(timeline)
|
41
|
+
# height =
|
42
|
+
|
43
|
+
times = timeline.times
|
44
|
+
pages_history = timeline.pages_history
|
45
|
+
page_min = timeline.page_min
|
46
|
+
site_min = timeline.site_min
|
47
|
+
site_duration = timeline.site_duration
|
48
|
+
|
49
|
+
return [:p, "No files here."] if times.nil?
|
50
|
+
page_num = times.length # Total page number
|
51
|
+
return [:p, "No files here."] if page_num == 0
|
52
|
+
|
53
|
+
h_span = CHRONOLOGY_HEIGHT / page_num
|
54
|
+
x_offset = 60
|
55
|
+
y_offset = 50
|
56
|
+
|
57
|
+
divs = []
|
58
|
+
num = 0
|
59
|
+
pages_history.each {|key|
|
60
|
+
ar = times[key]
|
61
|
+
|
62
|
+
pm_time = page_min[key]
|
63
|
+
|
64
|
+
x = 10
|
65
|
+
y = y_offset + CHRONOLOGY_HEIGHT * num / page_num
|
66
|
+
|
67
|
+
page = @site[key]
|
68
|
+
next if page.nil?
|
69
|
+
title = page.get_title
|
70
|
+
url = page.url
|
71
|
+
|
72
|
+
divs << [:div, {:title=>"#{title} | #{pm_time.ymd}",
|
73
|
+
:class=>'time_title',
|
74
|
+
:style=>"position:absolute;left:#{x}px;top:#{y}px;height:#{h_span}px;"},
|
75
|
+
[:a, {:href=>url}, title]]
|
76
|
+
|
77
|
+
num += 1
|
78
|
+
ar.each {|time|
|
79
|
+
past_time = time - site_min
|
80
|
+
x = x_offset + (CHRONOLOGY_WIDTH-x_offset) * past_time / site_duration
|
81
|
+
divs << [:div, {:title=>"#{title} | #{time.ymd}",
|
82
|
+
:class=>'time_update',
|
83
|
+
:style=>"left:#{x}px;top:#{y}px;width:10px;height:#{h_span}px;"},
|
84
|
+
[:a, {:href=>url}, '_']]
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
return divs
|
89
|
+
end
|
90
|
+
|
91
|
+
def chronology_show(divs)
|
92
|
+
ar = []
|
93
|
+
|
94
|
+
ar << [:style, "@import '.theme/css/wema.css';"]
|
95
|
+
|
96
|
+
ar << [:style, "
|
97
|
+
.time_update {
|
98
|
+
margin: 0;
|
99
|
+
padding: 0;
|
100
|
+
position: absolute;
|
101
|
+
background-color: #6dd;
|
102
|
+
border: 1px outset #9ff;
|
103
|
+
}
|
104
|
+
.time_update a {
|
105
|
+
margin: 0;
|
106
|
+
padding: 0;
|
107
|
+
}
|
108
|
+
"]
|
109
|
+
|
110
|
+
section = []
|
111
|
+
section << [:div, {:id=>"chronology"}, '']
|
112
|
+
section << divs
|
113
|
+
section << [:div, {:id=>'lines'}, '']
|
114
|
+
ar << [:div, {:class=>'day'},
|
115
|
+
[:div, {:class=>'section'},
|
116
|
+
section]]
|
117
|
+
|
118
|
+
ar << [:script,
|
119
|
+
{:type=>'text/javascript', :src=>'.theme/js/wema.js'}, '']
|
120
|
+
ar << [:script,
|
121
|
+
{:type=>'text/javascript',:src=>'.theme/js/history.js'}, '']
|
122
|
+
|
123
|
+
title = _('Chronology') + " | #{@site.sitename}"
|
124
|
+
return c_plain(title) { ar }
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
if $0 == __FILE__
|
130
|
+
require 'qwik/test-common'
|
131
|
+
$test = true
|
132
|
+
end
|
133
|
+
|
134
|
+
if defined?($test) && $test
|
135
|
+
class TestActChronology < Test::Unit::TestCase
|
136
|
+
include TestSession
|
137
|
+
|
138
|
+
def test_all
|
139
|
+
t_add_user
|
140
|
+
|
141
|
+
page = @site.create_new
|
142
|
+
page.store '* t1' # Store this page first
|
143
|
+
page.store '* t2' # Store this page second
|
144
|
+
|
145
|
+
res = session '/test/.chronology'
|
146
|
+
ok_in ['Chronology | test'], '//title'
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
@@ -0,0 +1,155 @@
|
|
1
|
+
# -*- coding: shift_jis -*-
|
2
|
+
# Copyright (C) 2003-2006 Kouichirou Eto, All rights reserved.
|
3
|
+
# This is free software with ABSOLUTELY NO WARRANTY.
|
4
|
+
# You can redistribute it and/or modify it under the terms of the GNU GPL 2.
|
5
|
+
|
6
|
+
begin
|
7
|
+
require 'GD'
|
8
|
+
$have_gd = true
|
9
|
+
rescue LoadError
|
10
|
+
$have_gd = false
|
11
|
+
end
|
12
|
+
|
13
|
+
module Qwik
|
14
|
+
class Action
|
15
|
+
D_code = {
|
16
|
+
:dt => 'Code input plugin',
|
17
|
+
:dd => 'You can input code on the page.',
|
18
|
+
:dc => "
|
19
|
+
Follow [[PluginCode.describe]]"
|
20
|
+
}
|
21
|
+
|
22
|
+
D_PluginCode = {
|
23
|
+
:dt => 'Code input plugin',
|
24
|
+
:dd => 'You can input code on the page.',
|
25
|
+
:dc => "* Examples
|
26
|
+
{{code
|
27
|
+
puts \"hello, world!\"
|
28
|
+
puts \"hello, qwik users!\"
|
29
|
+
}}
|
30
|
+
{{code
|
31
|
+
puts \"hello, world!\"
|
32
|
+
puts \"hello, qwik users!\"
|
33
|
+
}}
|
34
|
+
{{code
|
35
|
+
#include <stdio.h>
|
36
|
+
|
37
|
+
void main(){
|
38
|
+
printf(\"hello, world!\\n\");
|
39
|
+
}
|
40
|
+
}}
|
41
|
+
"
|
42
|
+
}
|
43
|
+
|
44
|
+
D_PluginCode_ja = {
|
45
|
+
:dt => 'コード・プラグイン',
|
46
|
+
:dd => 'ページ中にコードをうめこむときに使えます。',
|
47
|
+
:dc => "* 例
|
48
|
+
{{code
|
49
|
+
puts \"hello, world!\"
|
50
|
+
puts \"hello, qwik users!\"
|
51
|
+
}}
|
52
|
+
{{code
|
53
|
+
puts \"hello, world!\"
|
54
|
+
puts \"hello, qwik users!\"
|
55
|
+
}}
|
56
|
+
{{code
|
57
|
+
#include <stdio.h>
|
58
|
+
|
59
|
+
void main(){
|
60
|
+
printf(\"hello, world!\\n\");
|
61
|
+
}
|
62
|
+
}}
|
63
|
+
"
|
64
|
+
}
|
65
|
+
|
66
|
+
def plg_code(filename=nil, base_linenum=1)
|
67
|
+
content = ''
|
68
|
+
content = yield if block_given?
|
69
|
+
pre = [:pre]
|
70
|
+
content.each_with_index {|line, index|
|
71
|
+
line.chomp!
|
72
|
+
linenum = index + base_linenum.to_i
|
73
|
+
klass = 'line '
|
74
|
+
klass += if linenum % 2 == 0 then 'even' else 'odd' end
|
75
|
+
style = "background:url(.num/#{linenum}.png) no-repeat;"
|
76
|
+
pre << [:span, {:class=>klass, :style=>style}, line]
|
77
|
+
pre << "\n"
|
78
|
+
}
|
79
|
+
return [:div, {:class=>'code'}, pre]
|
80
|
+
end
|
81
|
+
|
82
|
+
def act_num
|
83
|
+
return c_nerror if ! $have_gd
|
84
|
+
args = @req.path_args
|
85
|
+
return c_nerror if args.nil? || args.empty?
|
86
|
+
filename = args.first
|
87
|
+
return c_nerror unless /\A([0-9]+)\.png\z/ =~ filename
|
88
|
+
str = $1
|
89
|
+
return c_nerror if 10 < str.length
|
90
|
+
files = @site.files('FrontPage')
|
91
|
+
if ! files.exist?(filename)
|
92
|
+
png = Action.generate_png(str)
|
93
|
+
files.put(filename, png)
|
94
|
+
end
|
95
|
+
path = files.path(filename)
|
96
|
+
return c_simple_send(path, 'image/png')
|
97
|
+
end
|
98
|
+
|
99
|
+
def self.generate_png(str)
|
100
|
+
return nil if ! $have_gd
|
101
|
+
font, fw, fh = GD::Font::TinyFont, 5, 8
|
102
|
+
str = str.to_s
|
103
|
+
width = fw * str.length
|
104
|
+
height = fh
|
105
|
+
img = GD::Image.new(width, height)
|
106
|
+
white = img.colorAllocate(255, 255, 255)
|
107
|
+
color = img.colorAllocate(127, 127, 127)
|
108
|
+
img.transparent(white)
|
109
|
+
img.string(font, 0, 0, str, color)
|
110
|
+
return img.pngStr
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
if $0 == __FILE__
|
116
|
+
$LOAD_PATH.unshift '..' unless $LOAD_PATH.include? '..'
|
117
|
+
require 'qwik/test-common'
|
118
|
+
$test = true
|
119
|
+
end
|
120
|
+
|
121
|
+
if defined?($test) && $test
|
122
|
+
class TestActCode < Test::Unit::TestCase
|
123
|
+
include TestSession
|
124
|
+
|
125
|
+
def test_code
|
126
|
+
res = session
|
127
|
+
ok_wi [:div, {:class=>"code"},
|
128
|
+
[:pre, [:span, {:style=>"background:url(.num/1.png) no-repeat;",
|
129
|
+
:class=>"line odd"}, "t"], "\n"]],
|
130
|
+
"{{code\nt\n}}"
|
131
|
+
end
|
132
|
+
|
133
|
+
def test_num
|
134
|
+
return unless $have_gd
|
135
|
+
|
136
|
+
t_add_user
|
137
|
+
|
138
|
+
res = session('/test/.num/1.png')
|
139
|
+
eq 'image/png', res['Content-Type']
|
140
|
+
str = res.body
|
141
|
+
eq "\211PNG\r\n\032\n\000\000\000\rIHDR\000\000\000\005\000\000\000\010\001\003\000\000\000\v?\247x\000\000\000\006PLTE\377\377\377\177\177\177br\365\207\000\000\000\001tRNS\000@\346\330f\000\000\000\024IDAT\010\231c``P`H\000b\020,``\000\000\t\300\001Q2\2179L\000\000\000\000IEND\256B`\202", str
|
142
|
+
|
143
|
+
res = session('/test/.num/1234567890.png')
|
144
|
+
str = res.body
|
145
|
+
# eq "\211PNG\r\n\032\n\000\000\000\rIHDR\000\000\0002\000\000\000\010\001\003\000\000\000\201\020>9\000\000\000\006PLTE\377\377\377\177\177\177br\365\207\000\000\000\001tRNS\000@\346\330f\000\000\000=IDAT\010\231c`\200\002e\t\177\3433\211\f\f)KN8\004Mj`P\350\364\v\350\331\324\300\240\310\3720cRP\003\203\222\212\247\247\220P\003C\371\f7C\236D\230.\006\000\352y\016\246.\260\314\346\000\000\000\000IEND\256B`\202", str
|
146
|
+
end
|
147
|
+
|
148
|
+
def test_generate_png
|
149
|
+
return if $0 != __FILE__ # Only for separated test.
|
150
|
+
png = Qwik::Action.generate_png(1234567890)
|
151
|
+
# 'tmp.png'.path.write(png)
|
152
|
+
# eq "\211PNG\r\n\032\n\000\000\000\rIHDR\000\000\0002\000\000\000\010\001\003\000\000\000\201\020>9\000\000\000\006PLTE\377\377\377\177\177\177br\365\207\000\000\000\001tRNS\000@\346\330f\000\000\000=IDAT\010\231c`\200\002e\t\177\3433\211\f\f)KN8\004Mj`P\350\364\v\350\331\324\300\240\310\3720cRP\003\203\222\212\247\247\220P\003C\371\f7C\236D\230.\006\000\352y\016\246.\260\314\346\000\000\000\000IEND\256B`\202", png
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|