tdiary 5.4.0 → 5.5.0.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +25 -2
- data/Gemfile.lock +211 -61
- data/README.md +4 -4
- data/doc/HOWTO-make-plugin.md +1 -1
- data/doc/HOWTO-testing-tDiary.md +2 -2
- data/doc/INSTALL-cgi.md +7 -0
- data/doc/INSTALL-paas.md +11 -11
- data/doc/INSTALL.md +2 -2
- data/doc/README.en.md +1 -1
- data/doc/README.md +1 -1
- data/lib/aws/pa_api.rb +6 -2
- data/lib/tdiary/admin.rb +6 -4
- data/lib/tdiary/application.rb +17 -17
- data/lib/tdiary/author_only_base.rb +6 -13
- data/lib/tdiary/base.rb +52 -16
- data/lib/tdiary/cgi_adapter.rb +86 -0
- data/lib/tdiary/cgi_compat.rb +189 -0
- data/lib/tdiary/configuration.rb +1 -1
- data/lib/tdiary/core_ext.rb +4 -53
- data/lib/tdiary/diary_container.rb +23 -11
- data/lib/tdiary/dispatcher/index_main.rb +16 -16
- data/lib/tdiary/dispatcher/update_main.rb +16 -16
- data/lib/tdiary/dispatcher.rb +4 -28
- data/lib/tdiary/environment.rb +12 -0
- data/lib/tdiary/filter.rb +5 -2
- data/lib/tdiary/io/pstore.rb +6 -3
- data/lib/tdiary/plugin/00default.rb +10 -14
- data/lib/tdiary/plugin/05referer.rb +6 -6
- data/lib/tdiary/plugin/60sf.rb +1 -1
- data/lib/tdiary/plugin.rb +76 -16
- data/lib/tdiary/request.rb +11 -353
- data/lib/tdiary/tasks/db.rake +17 -4
- data/lib/tdiary/tasks/heroku.rake +9 -0
- data/lib/tdiary/tasks/release.rake +126 -146
- data/lib/tdiary/version.rb +1 -1
- data/lib/tdiary/view.rb +3 -3
- data/lib/tdiary.rb +3 -1
- data/misc/convert2.rb +3 -0
- data/misc/migrate.rb +3 -0
- data/misc/plugin/a.rb +1 -6
- data/misc/plugin/amazon.rb +5 -4
- data/misc/plugin/calendar2.rb +1 -1
- data/misc/plugin/en/disp_referrer.rb +1 -1
- data/misc/plugin/ja/disp_referrer.rb +1 -1
- data/misc/plugin/kw.rb +2 -21
- data/misc/plugin/makelirs.rb +1 -4
- data/tdiary.conf.sample +8 -0
- data/theme/base.css +15 -0
- data/vendor/bundle/ruby/3.4.0/bin/emot +29 -0
- data/vendor/bundle/ruby/3.4.0/bin/hikidoc +29 -0
- data/vendor/bundle/ruby/3.4.0/bin/rackup +29 -0
- data/vendor/bundle/ruby/3.4.0/bin/rake +29 -0
- data/vendor/bundle/ruby/3.4.0/bin/thor +29 -0
- data/vendor/bundle/ruby/3.4.0/cache/base64-0.3.0.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/cgi-0.5.2.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/date-3.5.1.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/emot-0.0.4.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/fastimage-2.4.1.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/hikidoc-0.1.1.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/logger-1.7.0.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/mail-2.9.1.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/mini_mime-1.1.5.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/net-imap-0.5.15.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/net-pop-0.1.2.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/net-protocol-0.2.2.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/net-smtp-0.5.1.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/pstore-0.2.1.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/rack-3.2.6.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/rack-session-2.1.2.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/rackup-2.3.1.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/rake-13.4.2.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/thor-1.5.0.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/timeout-0.6.1.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/cgi-0.5.2/cgi/escape.so +0 -0
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/cgi-0.5.2/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/cgi-0.5.2/gem_make.out +18 -0
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/date-3.5.1/date_core.so +0 -0
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/date-3.5.1/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/date-3.5.1/gem_make.out +24 -0
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/date-3.5.1/mkmf.log +93 -0
- data/vendor/bundle/ruby/3.4.0/gems/base64-0.3.0/BSDL +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/base64-0.3.0/COPYING +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/base64-0.3.0/LEGAL +60 -0
- data/vendor/bundle/ruby/3.4.0/gems/base64-0.3.0/README.md +48 -0
- data/vendor/bundle/ruby/3.4.0/gems/base64-0.3.0/lib/base64.rb +381 -0
- data/vendor/bundle/ruby/3.4.0/gems/base64-0.3.0/sig/base64.rbs +355 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/BSDL +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/COPYING +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/README.md +98 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/ext/cgi/escape/Makefile +275 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/ext/cgi/escape/depend +2 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/ext/cgi/escape/escape.c +487 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/ext/cgi/escape/extconf.rb +7 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/lib/cgi/cookie.rb +212 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/lib/cgi/core.rb +1273 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/lib/cgi/escape.rb +227 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/lib/cgi/escape.so +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/lib/cgi/html.rb +1040 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/lib/cgi/session/pstore.rb +91 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/lib/cgi/session.rb +574 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/lib/cgi/util.rb +48 -0
- data/vendor/bundle/ruby/3.4.0/gems/cgi-0.5.2/lib/cgi.rb +310 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/BSDL +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/COPYING +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/README.md +102 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/ext/date/Makefile +273 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/ext/date/date_core.c +10065 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/ext/date/date_parse.c +3086 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/ext/date/date_strftime.c +638 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/ext/date/date_strptime.c +704 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/ext/date/date_tmx.h +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/ext/date/extconf.rb +13 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/ext/date/prereq.mk +19 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/ext/date/zonetab.h +1564 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/ext/date/zonetab.list +330 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/lib/date.rb +70 -0
- data/vendor/bundle/ruby/3.4.0/gems/date-3.5.1/lib/date_core.so +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/Gemfile +4 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/README.md +87 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/Rakefile +7 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/bin/emot +5 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/emot.gemspec +26 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/lib/emot/cli.rb +62 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/lib/emot/map.rb +894 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/lib/emot/symbol_ext.rb +11 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/lib/emot/version.rb +3 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/lib/emot.rb +34 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/spec/cli_spec.rb +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/spec/emot_spec.rb +50 -0
- data/vendor/bundle/ruby/3.4.0/gems/emot-0.0.4/spec/spec_helper.rb +2 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/README.md +209 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage.rb +471 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/avif.rb +12 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/bmp.rb +17 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/exif.rb +76 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/fiber_stream.rb +58 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/gif.rb +63 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/heic.rb +8 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/ico.rb +9 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/image_base.rb +17 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/iso_bmff.rb +176 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/jpeg.rb +52 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/jxl.rb +13 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/jxlc.rb +75 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/png.rb +26 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/psd.rb +7 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/stream_util.rb +19 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/svg.rb +69 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/tiff.rb +16 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/type_parser.rb +74 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/fastimage_parsing/webp.rb +60 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage/version.rb +5 -0
- data/vendor/bundle/ruby/3.4.0/gems/fastimage-2.4.1/lib/fastimage.rb +73 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/COPYING +28 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/Gemfile +4 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/NEWS +36 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/NEWS.ja +36 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/README +95 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/README.ja +92 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/README.ja.md +112 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/README.md +114 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/Rakefile +18 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/TextFormattingRules +320 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/TextFormattingRules.ja +318 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/TextFormattingRules.ja.md +385 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/TextFormattingRules.md +388 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/bin/hikidoc +70 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/hikidoc.gemspec +24 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/lib/hikidoc.rb +912 -0
- data/vendor/bundle/ruby/3.4.0/gems/hikidoc-0.1.1/test/hikidoc_test.rb +514 -0
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/BSDL +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/COPYING +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/README.md +104 -0
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/lib/logger/errors.rb +9 -0
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/lib/logger/formatter.rb +36 -0
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/lib/logger/log_device.rb +265 -0
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/lib/logger/period.rb +47 -0
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/lib/logger/severity.rb +38 -0
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/lib/logger/version.rb +5 -0
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/lib/logger.rb +789 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/README.md +771 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/attachments_list.rb +109 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/body.rb +305 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/configuration.rb +78 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/constants.rb +79 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements/address.rb +258 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements/address_list.rb +34 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements/content_disposition_element.rb +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements/content_location_element.rb +17 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements/content_transfer_encoding_element.rb +13 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements/content_type_element.rb +25 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements/date_time_element.rb +15 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements/envelope_from_element.rb +39 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements/message_ids_element.rb +31 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements/mime_version_element.rb +15 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements/phrase_list.rb +19 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements/received_element.rb +35 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/elements.rb +15 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/encodings/7bit.rb +27 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/encodings/8bit.rb +18 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/encodings/base64.rb +38 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/encodings/binary.rb +13 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/encodings/identity.rb +24 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/encodings/quoted_printable.rb +45 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/encodings/transfer_encoding.rb +77 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/encodings/unix_to_unix.rb +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/encodings.rb +314 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/envelope.rb +28 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/field.rb +313 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/field_list.rb +87 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/bcc_field.rb +49 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/cc_field.rb +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/comments_field.rb +31 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/common_address_field.rb +162 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/common_date_field.rb +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/common_field.rb +77 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/common_message_id_field.rb +41 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/content_description_field.rb +12 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/content_disposition_field.rb +44 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/content_id_field.rb +35 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/content_location_field.rb +28 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/content_transfer_encoding_field.rb +44 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/content_type_field.rb +171 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/date_field.rb +28 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/from_field.rb +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/in_reply_to_field.rb +45 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/keywords_field.rb +30 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/message_id_field.rb +36 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/mime_version_field.rb +42 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/named_structured_field.rb +10 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/named_unstructured_field.rb +10 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/optional_field.rb +15 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/parameter_hash.rb +61 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/received_field.rb +61 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/references_field.rb +42 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/reply_to_field.rb +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/resent_bcc_field.rb +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/resent_cc_field.rb +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/resent_date_field.rb +10 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/resent_from_field.rb +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/resent_message_id_field.rb +10 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/resent_sender_field.rb +32 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/resent_to_field.rb +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/return_path_field.rb +60 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/sender_field.rb +45 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/structured_field.rb +24 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/subject_field.rb +14 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/to_field.rb +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields/unstructured_field.rb +189 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/fields.rb +45 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/header.rb +237 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/indifferent_hash.rb +147 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/mail.rb +267 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/matchers/attachment_matchers.rb +44 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/matchers/has_sent_mail.rb +201 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/message.rb +2159 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/multibyte/chars.rb +318 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/multibyte/unicode.rb +405 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/multibyte/utils.rb +44 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/multibyte.rb +82 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/network/delivery_methods/exim.rb +50 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/network/delivery_methods/file_delivery.rb +43 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/network/delivery_methods/logger_delivery.rb +34 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/network/delivery_methods/sendmail.rb +87 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/network/delivery_methods/smtp.rb +200 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/network/delivery_methods/smtp_connection.rb +57 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/network/delivery_methods/test_mailer.rb +44 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/network/retriever_methods/base.rb +64 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/network/retriever_methods/imap.rb +190 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/network/retriever_methods/pop3.rb +143 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/network/retriever_methods/test_retriever.rb +45 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/network.rb +16 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parser_tools.rb +15 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/address_lists_parser.rb +33245 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/address_lists_parser.rl +183 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/content_disposition_parser.rb +904 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/content_disposition_parser.rl +93 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/content_location_parser.rb +825 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/content_location_parser.rl +82 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/content_transfer_encoding_parser.rb +525 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/content_transfer_encoding_parser.rl +75 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/content_type_parser.rb +1051 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/content_type_parser.rl +94 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/date_time_parser.rb +894 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/date_time_parser.rl +73 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/envelope_from_parser.rb +3678 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/envelope_from_parser.rl +93 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/message_ids_parser.rb +5164 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/message_ids_parser.rl +97 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/mime_version_parser.rb +516 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/mime_version_parser.rl +72 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/phrase_lists_parser.rb +887 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/phrase_lists_parser.rl +94 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/received_parser.rb +8785 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/received_parser.rl +95 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/rfc2045_content_transfer_encoding.rl +13 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/rfc2045_content_type.rl +25 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/rfc2045_mime.rl +16 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/rfc2183_content_disposition.rl +15 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/rfc3629_utf8.rl +19 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/rfc5234_abnf_core_rules.rl +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/rfc5322.rl +74 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/rfc5322_address.rl +72 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/rfc5322_date_time.rl +37 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers/rfc5322_lexical_tokens.rl +60 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parsers.rb +13 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/part.rb +119 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/parts_list.rb +131 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/smtp_envelope.rb +57 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/utilities.rb +576 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/values/unicode_tables.dat +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/version.rb +17 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail/yaml.rb +30 -0
- data/vendor/bundle/ruby/3.4.0/gems/mail-2.9.1/lib/mail.rb +65 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/CHANGELOG +65 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/CODE_OF_CONDUCT.md +74 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/Gemfile +9 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/LICENSE.txt +21 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/README.md +114 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/Rakefile +97 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/bench/bench.rb +51 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/bin/console +15 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/bin/db_pull_request +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/bin/setup +8 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/lib/db/content_type_mime.db +880 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/lib/db/ext_mime.db +1201 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/lib/mini_mime/version.rb +4 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/lib/mini_mime.rb +186 -0
- data/vendor/bundle/ruby/3.4.0/gems/mini_mime-1.1.5/mini_mime.gemspec +31 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/BSDL +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/COPYING +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/Gemfile +25 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/LICENSE.txt +65 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/README.md +77 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/Rakefile +13 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/docs/styles.css +85 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/authenticators.rb +37 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/command_data.rb +507 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/config/attr_accessors.rb +75 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/config/attr_inheritance.rb +90 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/config/attr_type_coercion.rb +74 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/config/attr_version_defaults.rb +93 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/config.rb +500 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/connection_state.rb +48 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/data_encoding.rb +214 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/data_lite.rb +226 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/deprecated_client_options.rb +142 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/errors.rb +118 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/esearch_result.rb +219 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/fetch_data.rb +597 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/flags.rb +262 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/response_data.rb +1113 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/response_parser/parser_utils.rb +245 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/response_parser.rb +2282 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/response_reader.rb +92 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/anonymous_authenticator.rb +69 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/authentication_exchange.rb +139 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/authenticators.rb +122 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/client_adapter.rb +123 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/cram_md5_authenticator.rb +61 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/digest_md5_authenticator.rb +342 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/external_authenticator.rb +83 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/gs2_header.rb +80 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/login_authenticator.rb +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/oauthbearer_authenticator.rb +199 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/plain_authenticator.rb +101 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/protocol_adapters.rb +101 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/scram_algorithm.rb +58 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/scram_authenticator.rb +361 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/stringprep.rb +12 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl/xoauth2_authenticator.rb +106 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl.rb +182 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sasl_adapter.rb +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/search_result.rb +145 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/sequence_set.rb +1952 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/stringprep/nameprep.rb +70 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/stringprep/saslprep.rb +69 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/stringprep/saslprep_tables.rb +96 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/stringprep/tables.rb +146 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/stringprep/trace.rb +85 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/stringprep.rb +159 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/uidplus_data.rb +244 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap/vanished_data.rb +65 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/lib/net/imap.rb +3968 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/net-imap.gemspec +38 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/rakelib/benchmarks.rake +91 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/rakelib/rdoc.rake +70 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/rakelib/rfcs.rake +170 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/rakelib/saslprep.rake +30 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/rakelib/string_prep_tables_generator.rb +449 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-imap-0.5.15/sample/net-imap.rb +167 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-pop-0.1.2/Gemfile +7 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-pop-0.1.2/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-pop-0.1.2/README.md +66 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-pop-0.1.2/Rakefile +17 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-pop-0.1.2/lib/net/pop.rb +1025 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-pop-0.1.2/net-pop.gemspec +32 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-protocol-0.2.2/Gemfile +7 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-protocol-0.2.2/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-protocol-0.2.2/README.md +29 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-protocol-0.2.2/Rakefile +10 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-protocol-0.2.2/bin/console +14 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-protocol-0.2.2/bin/setup +8 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-protocol-0.2.2/lib/net/protocol.rb +544 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-protocol-0.2.2/net-protocol.gemspec +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-smtp-0.5.1/LICENSE.txt +2 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-smtp-0.5.1/NEWS.md +133 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-smtp-0.5.1/README.md +97 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-smtp-0.5.1/lib/net/smtp/auth_cram_md5.rb +48 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-smtp-0.5.1/lib/net/smtp/auth_login.rb +11 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-smtp-0.5.1/lib/net/smtp/auth_plain.rb +9 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-smtp-0.5.1/lib/net/smtp/auth_xoauth2.rb +17 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-smtp-0.5.1/lib/net/smtp/authenticator.rb +57 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-smtp-0.5.1/lib/net/smtp.rb +1164 -0
- data/vendor/bundle/ruby/3.4.0/gems/net-smtp-0.5.1/net-smtp.gemspec +31 -0
- data/vendor/bundle/ruby/3.4.0/gems/pstore-0.2.1/BSDL +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/pstore-0.2.1/COPYING +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/pstore-0.2.1/Gemfile +10 -0
- data/vendor/bundle/ruby/3.4.0/gems/pstore-0.2.1/README.md +95 -0
- data/vendor/bundle/ruby/3.4.0/gems/pstore-0.2.1/Rakefile +10 -0
- data/vendor/bundle/ruby/3.4.0/gems/pstore-0.2.1/bin/console +14 -0
- data/vendor/bundle/ruby/3.4.0/gems/pstore-0.2.1/bin/setup +8 -0
- data/vendor/bundle/ruby/3.4.0/gems/pstore-0.2.1/lib/pstore.rb +736 -0
- data/vendor/bundle/ruby/3.4.0/gems/pstore-0.2.1/pstore.gemspec +32 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/CHANGELOG.md +1346 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/CONTRIBUTING.md +144 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/README.md +384 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/SPEC.rdoc +258 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/auth/abstract/handler.rb +41 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/auth/abstract/request.rb +51 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/auth/basic.rb +58 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/bad_request.rb +8 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/body_proxy.rb +63 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/builder.rb +296 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/cascade.rb +67 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/common_logger.rb +89 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/conditional_get.rb +87 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/config.rb +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/constants.rb +68 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/content_length.rb +34 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/content_type.rb +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/deflater.rb +158 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/directory.rb +208 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/etag.rb +71 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/events.rb +172 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/files.rb +216 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/head.rb +25 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/headers.rb +238 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/lint.rb +964 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/lock.rb +29 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/media_type.rb +52 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/method_override.rb +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/mime.rb +694 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/mock.rb +3 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/mock_request.rb +161 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/mock_response.rb +156 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/multipart/generator.rb +99 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/multipart/parser.rb +621 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/multipart/uploaded_file.rb +82 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/multipart.rb +77 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/null_logger.rb +48 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/query_parser.rb +261 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/recursive.rb +66 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/reloader.rb +112 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/request.rb +790 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/response.rb +403 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/rewindable_input.rb +116 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/runtime.rb +35 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/sendfile.rb +197 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/show_exceptions.rb +409 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/show_status.rb +121 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/static.rb +192 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/tempfile_reaper.rb +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/urlmap.rb +99 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/utils.rb +714 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack/version.rb +17 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.6/lib/rack.rb +64 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/lib/rack/session/abstract/id.rb +535 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/lib/rack/session/constants.rb +13 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/lib/rack/session/cookie.rb +315 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/lib/rack/session/encryptor.rb +415 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/lib/rack/session/pool.rb +82 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/lib/rack/session/version.rb +10 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/lib/rack/session.rb +12 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/license.md +72 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/readme.md +47 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/releases.md +31 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/security.md +3 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/bin/rackup +5 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/lib/rackup/handler/cgi.rb +61 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/lib/rackup/handler/webrick.rb +196 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/lib/rackup/handler.rb +113 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/lib/rackup/lobster.rb +81 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/lib/rackup/server.rb +462 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/lib/rackup/stream.rb +199 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/lib/rackup/version.rb +8 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/lib/rackup.rb +21 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/license.md +80 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/readme.md +82 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/releases.md +28 -0
- data/vendor/bundle/ruby/3.4.0/gems/rackup-2.3.1/security.md +3 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/History.rdoc +2454 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/README.rdoc +155 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/doc/command_line_usage.rdoc +171 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/doc/glossary.rdoc +42 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/doc/jamis.rb +592 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/doc/rake.1 +156 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/doc/rakefile.rdoc +635 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/exe/rake +27 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/application.rb +847 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/backtrace.rb +25 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/clean.rb +78 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/cloneable.rb +17 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/cpu_counter.rb +122 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/default_loader.rb +15 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/dsl_definition.rb +196 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/early_time.rb +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/ext/core.rb +26 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/ext/string.rb +176 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/file_creation_task.rb +25 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/file_list.rb +435 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/file_task.rb +58 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/file_utils.rb +137 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/file_utils_ext.rb +135 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/invocation_chain.rb +57 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/invocation_exception_mixin.rb +17 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/late_time.rb +18 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/linked_list.rb +112 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/loaders/makefile.rb +54 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/multi_task.rb +14 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/name_space.rb +38 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/options.rb +31 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/packagetask.rb +222 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/phony.rb +16 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/private_reader.rb +21 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/promise.rb +100 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/pseudo_status.rb +30 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/rake_module.rb +67 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/rake_test_loader.rb +27 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/scope.rb +43 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/task.rb +434 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/task_argument_error.rb +8 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/task_arguments.rb +113 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/task_manager.rb +333 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/tasklib.rb +12 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/testtask.rb +192 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/thread_history_display.rb +49 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/thread_pool.rb +157 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/trace_output.rb +23 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/version.rb +10 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake/win32.rb +17 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/lib/rake.rb +69 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/rake.gemspec +102 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/CONTRIBUTING.md +32 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/LICENSE.md +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/README.md +44 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/bin/thor +6 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/actions/create_file.rb +105 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/actions/create_link.rb +61 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/actions/directory.rb +108 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/actions/empty_directory.rb +143 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/actions/file_manipulation.rb +407 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/actions/inject_into_file.rb +163 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/actions.rb +340 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/base.rb +826 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/command.rb +151 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/core_ext/hash_with_indifferent_access.rb +107 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/error.rb +106 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/group.rb +292 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/invocation.rb +178 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/line_editor/basic.rb +37 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/line_editor/readline.rb +88 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/line_editor.rb +17 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/nested_context.rb +29 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/parser/argument.rb +86 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/parser/arguments.rb +195 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/parser/option.rb +178 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/parser/options.rb +294 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/parser.rb +4 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/rake_compat.rb +72 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/runner.rb +335 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/shell/basic.rb +392 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/shell/color.rb +117 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/shell/column_printer.rb +29 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/shell/html.rb +84 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/shell/lcs_diff.rb +49 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/shell/table_printer.rb +118 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/shell/terminal.rb +42 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/shell/wrapped_printer.rb +38 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/shell.rb +81 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/util.rb +285 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor/version.rb +3 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/lib/thor.rb +707 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.5.0/thor.gemspec +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/timeout-0.6.1/BSDL +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/timeout-0.6.1/COPYING +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/timeout-0.6.1/Gemfile +10 -0
- data/vendor/bundle/ruby/3.4.0/gems/timeout-0.6.1/README.md +39 -0
- data/vendor/bundle/ruby/3.4.0/gems/timeout-0.6.1/lib/timeout.rb +314 -0
- data/vendor/bundle/ruby/3.4.0/gems/timeout-0.6.1/timeout.gemspec +33 -0
- data/vendor/bundle/ruby/3.4.0/specifications/base64-0.3.0.gemspec +23 -0
- data/vendor/bundle/ruby/3.4.0/specifications/cgi-0.5.2.gemspec +25 -0
- data/vendor/bundle/ruby/3.4.0/specifications/date-3.5.1.gemspec +25 -0
- data/vendor/bundle/ruby/3.4.0/specifications/emot-0.0.4.gemspec +30 -0
- data/vendor/bundle/ruby/3.4.0/specifications/fastimage-2.4.1.gemspec +32 -0
- data/vendor/bundle/ruby/3.4.0/specifications/hikidoc-0.1.1.gemspec +28 -0
- data/vendor/bundle/ruby/3.4.0/specifications/logger-1.7.0.gemspec +22 -0
- data/vendor/bundle/ruby/3.4.0/specifications/mail-2.9.1.gemspec +38 -0
- data/vendor/bundle/ruby/3.4.0/specifications/mini_mime-1.1.5.gemspec +30 -0
- data/vendor/bundle/ruby/3.4.0/specifications/net-imap-0.5.15.gemspec +28 -0
- data/vendor/bundle/ruby/3.4.0/specifications/net-pop-0.1.2.gemspec +26 -0
- data/vendor/bundle/ruby/3.4.0/specifications/net-protocol-0.2.2.gemspec +26 -0
- data/vendor/bundle/ruby/3.4.0/specifications/net-smtp-0.5.1.gemspec +26 -0
- data/vendor/bundle/ruby/3.4.0/specifications/pstore-0.2.1.gemspec +22 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rack-3.2.6.gemspec +31 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rack-session-2.1.2.gemspec +30 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rackup-2.3.1.gemspec +26 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rake-13.4.2.gemspec +26 -0
- data/vendor/bundle/ruby/3.4.0/specifications/thor-1.5.0.gemspec +28 -0
- data/vendor/bundle/ruby/3.4.0/specifications/timeout-0.6.1.gemspec +22 -0
- metadata +595 -20
- data/js/02edit.js +0 -15
- data/lib/tdiary/compatible.rb +0 -56
- data/misc/lib/fcgi_patch.rb +0 -89
- data/misc/paas/heroku/Gemfile.local +0 -12
- data/misc/paas/heroku/Gemfile.lock +0 -287
- data/public/index.rdf +0 -22
|
@@ -0,0 +1,1273 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#--
|
|
3
|
+
# Methods for generating HTML, parsing CGI-related parameters, and
|
|
4
|
+
# generating HTTP responses.
|
|
5
|
+
#++
|
|
6
|
+
class CGI
|
|
7
|
+
unless const_defined?(:Escape)
|
|
8
|
+
module Escape
|
|
9
|
+
@@accept_charset = "UTF-8" # :nodoc:
|
|
10
|
+
end
|
|
11
|
+
include Escape
|
|
12
|
+
extend Escape
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
$CGI_ENV = ENV # for FCGI support
|
|
16
|
+
|
|
17
|
+
# String for carriage return
|
|
18
|
+
CR = "\015"
|
|
19
|
+
|
|
20
|
+
# String for linefeed
|
|
21
|
+
LF = "\012"
|
|
22
|
+
|
|
23
|
+
# Standard internet newline sequence
|
|
24
|
+
EOL = CR + LF
|
|
25
|
+
|
|
26
|
+
REVISION = '$Id$' #:nodoc:
|
|
27
|
+
|
|
28
|
+
# Whether processing will be required in binary vs text
|
|
29
|
+
NEEDS_BINMODE = File::BINARY != 0
|
|
30
|
+
|
|
31
|
+
# Path separators in different environments.
|
|
32
|
+
PATH_SEPARATOR = {'UNIX'=>'/', 'WINDOWS'=>'\\', 'MACINTOSH'=>':'}
|
|
33
|
+
|
|
34
|
+
# HTTP status codes.
|
|
35
|
+
HTTP_STATUS = {
|
|
36
|
+
"OK" => "200 OK",
|
|
37
|
+
"PARTIAL_CONTENT" => "206 Partial Content",
|
|
38
|
+
"MULTIPLE_CHOICES" => "300 Multiple Choices",
|
|
39
|
+
"MOVED" => "301 Moved Permanently",
|
|
40
|
+
"REDIRECT" => "302 Found",
|
|
41
|
+
"NOT_MODIFIED" => "304 Not Modified",
|
|
42
|
+
"BAD_REQUEST" => "400 Bad Request",
|
|
43
|
+
"AUTH_REQUIRED" => "401 Authorization Required",
|
|
44
|
+
"FORBIDDEN" => "403 Forbidden",
|
|
45
|
+
"NOT_FOUND" => "404 Not Found",
|
|
46
|
+
"METHOD_NOT_ALLOWED" => "405 Method Not Allowed",
|
|
47
|
+
"NOT_ACCEPTABLE" => "406 Not Acceptable",
|
|
48
|
+
"LENGTH_REQUIRED" => "411 Length Required",
|
|
49
|
+
"PRECONDITION_FAILED" => "412 Precondition Failed",
|
|
50
|
+
"SERVER_ERROR" => "500 Internal Server Error",
|
|
51
|
+
"NOT_IMPLEMENTED" => "501 Method Not Implemented",
|
|
52
|
+
"BAD_GATEWAY" => "502 Bad Gateway",
|
|
53
|
+
"VARIANT_ALSO_VARIES" => "506 Variant Also Negotiates"
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
# :startdoc:
|
|
57
|
+
|
|
58
|
+
# Synonym for ENV.
|
|
59
|
+
def env_table
|
|
60
|
+
ENV
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Synonym for $stdin.
|
|
64
|
+
def stdinput
|
|
65
|
+
$stdin
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Synonym for $stdout.
|
|
69
|
+
def stdoutput
|
|
70
|
+
$stdout
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
private :env_table, :stdinput, :stdoutput
|
|
74
|
+
|
|
75
|
+
# :call-seq:
|
|
76
|
+
# http_header(content_type = 'text/html') -> string
|
|
77
|
+
# http_header(headers) -> string
|
|
78
|
+
#
|
|
79
|
+
# Creates and returns an HTTP header section as a multi-line string.
|
|
80
|
+
#
|
|
81
|
+
# The string always includes:
|
|
82
|
+
#
|
|
83
|
+
# - Header +Content-Type+ (with a default value if none given).
|
|
84
|
+
# - A trailing newline, which delimits the header block;
|
|
85
|
+
# that last line is omitted from the examples below.
|
|
86
|
+
#
|
|
87
|
+
# <b>In Brief</b>
|
|
88
|
+
#
|
|
89
|
+
# headers = {
|
|
90
|
+
# 'charset' => 'iso-2022-jp',
|
|
91
|
+
# 'connection' => 'keep-alive',
|
|
92
|
+
# 'cookie' => 'foo=0',
|
|
93
|
+
# 'expires' => Time.now + (60 * 60 * 24 * 365),
|
|
94
|
+
# 'language' => 'en-US, en-CA',
|
|
95
|
+
# 'length' => 4096,
|
|
96
|
+
# 'nph' => true,
|
|
97
|
+
# 'server' => 'Apache/2.4.1 (Unix)',
|
|
98
|
+
# 'status' => 'OK',
|
|
99
|
+
# 'type' => 'text/xml',
|
|
100
|
+
# MyHeader: true
|
|
101
|
+
# }
|
|
102
|
+
#
|
|
103
|
+
# puts cgi.http_header(headers)
|
|
104
|
+
# HTTP/1.0 200 OK
|
|
105
|
+
# Date: Mon, 01 Dec 2025 22:08:22 GMT
|
|
106
|
+
# Server: Apache/2.4.1 (Unix)
|
|
107
|
+
# Connection: keep-alive
|
|
108
|
+
# Content-Type: text/xml; charset=iso-2022-jp
|
|
109
|
+
# Content-Length: 4096
|
|
110
|
+
# Content-Language: en-US, en-CA
|
|
111
|
+
# Expires: Tue, 01 Dec 2026 22:05:30 GMT
|
|
112
|
+
# Set-Cookie: foo=0
|
|
113
|
+
# MyHeader: true
|
|
114
|
+
#
|
|
115
|
+
# headers.delete('nph')
|
|
116
|
+
#
|
|
117
|
+
# puts cgi.http_header(headers)
|
|
118
|
+
# Status: 200 OK
|
|
119
|
+
# Server: Apache/2.4.1 (Unix)
|
|
120
|
+
# Connection: keep-alive
|
|
121
|
+
# Content-Type: text/xml; charset=iso-2022-jp
|
|
122
|
+
# Content-Length: 4096
|
|
123
|
+
# Content-Language: en-US, en-CA
|
|
124
|
+
# Expires: Tue, 01 Dec 2026 22:05:30 GMT
|
|
125
|
+
# Set-Cookie: foo=0
|
|
126
|
+
# MyHeader: true
|
|
127
|
+
#
|
|
128
|
+
# <b>Arguments</b>
|
|
129
|
+
#
|
|
130
|
+
# With no argument given,
|
|
131
|
+
# includes only header +Content-Type+ with its default value <tt>'text/html'</tt>:
|
|
132
|
+
#
|
|
133
|
+
# puts cgi.http_header
|
|
134
|
+
# Content-Type: text/html
|
|
135
|
+
#
|
|
136
|
+
# With string argument +content_type+ given,
|
|
137
|
+
# includes header +Content-Type+ with the given value:
|
|
138
|
+
#
|
|
139
|
+
# puts cgi.http_header('text/xml')
|
|
140
|
+
# Content-Type: text/xml
|
|
141
|
+
#
|
|
142
|
+
# With hash argument +headers+ given,
|
|
143
|
+
# includes a header for hash entry, whose name is based on the entry's key,
|
|
144
|
+
# and whose value is the entry's value.
|
|
145
|
+
#
|
|
146
|
+
# <i>Recognized Keys</i>
|
|
147
|
+
#
|
|
148
|
+
# The following keys are recognized;
|
|
149
|
+
# each is a lowercase string:
|
|
150
|
+
#
|
|
151
|
+
# <tt>'charset'</tt>::
|
|
152
|
+
# The character set of the body; appended to the +Content-Type+ header:
|
|
153
|
+
#
|
|
154
|
+
# puts cgi.http_header('charset' => 'iso-2022-jp')
|
|
155
|
+
# Content-Type: text/html; charset=iso-2022-jp
|
|
156
|
+
#
|
|
157
|
+
# <tt>'connection'</tt>::
|
|
158
|
+
# Sets header +Connection+ to the given string:
|
|
159
|
+
#
|
|
160
|
+
# puts cgi.http_header('connection' => 'keep-alive')
|
|
161
|
+
# Connection: keep-alive
|
|
162
|
+
# Content-Type: text/html
|
|
163
|
+
#
|
|
164
|
+
# <tt>'cookie'</tt>::
|
|
165
|
+
# Sets one or more +Set-Cookie+ headers to the given value, which may be:
|
|
166
|
+
#
|
|
167
|
+
# - String cookie.
|
|
168
|
+
# - CGI::Cookie object.
|
|
169
|
+
# - Array of string cookies and CGI::Cookie objects.
|
|
170
|
+
# - A hash whose values are string cookies and CGI::Cookie objects
|
|
171
|
+
# (the keys are not used).
|
|
172
|
+
#
|
|
173
|
+
# Examples:
|
|
174
|
+
#
|
|
175
|
+
# foo_string = 'foo=0'
|
|
176
|
+
# bar_string = 'bar=1'
|
|
177
|
+
# foo_cookie = CGI::Cookie.new('foo', '0')
|
|
178
|
+
# bar_cookie = CGI::Cookie.new('bar', '1')
|
|
179
|
+
#
|
|
180
|
+
# puts cgi.http_header('cookie' => foo_string)
|
|
181
|
+
# Content-Type: text/html
|
|
182
|
+
# Set-Cookie: foo=0
|
|
183
|
+
#
|
|
184
|
+
# puts cgi.http_header('cookie' => foo_cookie)
|
|
185
|
+
# Content-Type: text/html
|
|
186
|
+
# Set-Cookie: foo=0; path=
|
|
187
|
+
#
|
|
188
|
+
# puts cgi.http_header('cookie' => [foo_cookie, bar_string])
|
|
189
|
+
# Content-Type: text/html
|
|
190
|
+
# Set-Cookie: foo=0; path=
|
|
191
|
+
# Set-Cookie: bar=1
|
|
192
|
+
#
|
|
193
|
+
# puts cgi.http_header('cookie' => {foo: foo_cookie, bar: bar_string})
|
|
194
|
+
# Content-Type: text/html
|
|
195
|
+
# Set-Cookie: foo=0; path=
|
|
196
|
+
# Set-Cookie: bar=1
|
|
197
|
+
#
|
|
198
|
+
# These cookies are in addition to the cookies held
|
|
199
|
+
# in the <tt>@output_cookies</tt> variable.
|
|
200
|
+
#
|
|
201
|
+
# <tt>'expires'</tt>::
|
|
202
|
+
# Sets header +Expires+ to the given time,
|
|
203
|
+
# which must be a {Time}[https://docs.ruby-lang.org/en/master/Time.html] object:
|
|
204
|
+
#
|
|
205
|
+
# puts cgi.http_header('expires' => Time.now + (60 * 60 * 24 * 365))
|
|
206
|
+
# Content-Type: text/html
|
|
207
|
+
# Expires: Tue, 01 Dec 2026 23:42:37 GMT
|
|
208
|
+
#
|
|
209
|
+
# <tt>'language'</tt>::
|
|
210
|
+
# Sets header +Content-Language+ to the given string:
|
|
211
|
+
#
|
|
212
|
+
# puts cgi.http_header('language' => 'en-US, en-CA')
|
|
213
|
+
# Content-Type: text/html
|
|
214
|
+
# Content-Language: en-US, en-CA
|
|
215
|
+
#
|
|
216
|
+
# <tt>'length'</tt>::
|
|
217
|
+
# Sets header +Content-Length+ to the given value,
|
|
218
|
+
# which may be an integer or a string:
|
|
219
|
+
#
|
|
220
|
+
# puts cgi.http_header('length' => 4096)
|
|
221
|
+
# Content-Type: text/html
|
|
222
|
+
# Content-Length: 4096
|
|
223
|
+
#
|
|
224
|
+
# puts cgi.http_header('length' => '4096')
|
|
225
|
+
# Content-Type: text/html
|
|
226
|
+
# Content-Length: 4096
|
|
227
|
+
#
|
|
228
|
+
# <tt>'nph'</tt>::
|
|
229
|
+
# If +true+:
|
|
230
|
+
#
|
|
231
|
+
# - Adds protocol string and status code as first line.
|
|
232
|
+
# - Adds date as second line.
|
|
233
|
+
# - Adds headers +Server+ with no value,
|
|
234
|
+
# and +Connection+ with default value <tt>'close'</tt>;
|
|
235
|
+
# either or both values may be overridden with explicit values.
|
|
236
|
+
#
|
|
237
|
+
# Examples:
|
|
238
|
+
#
|
|
239
|
+
# puts cgi.http_header('nph' => true)
|
|
240
|
+
# HTTP/1.0 200 OK
|
|
241
|
+
# Date: Mon, 01 Dec 2025 19:42:22 GMT
|
|
242
|
+
# Server:
|
|
243
|
+
# Connection: close
|
|
244
|
+
# Content-Type: text/html
|
|
245
|
+
#
|
|
246
|
+
# puts cgi.http_header('nph' => true, 'server' => 'Apache/2.4.1 (Unix)', 'connection' => 'keep-alive')
|
|
247
|
+
# HTTP/1.0 200 OK
|
|
248
|
+
# Date: Mon, 01 Dec 2025 20:00:41 GMT
|
|
249
|
+
# Server: Apache/2.4.1 (Unix)
|
|
250
|
+
# Connection: keep-alive
|
|
251
|
+
# Content-Type: text/html
|
|
252
|
+
#
|
|
253
|
+
# <tt>'server'</tt>::
|
|
254
|
+
# Sets header +Server+ to the given string:
|
|
255
|
+
#
|
|
256
|
+
# puts cgi.http_header('server' => 'Apache/2.4.1 (Unix)')
|
|
257
|
+
# Server: Apache/2.4.1 (Unix)
|
|
258
|
+
# Content-Type: text/html
|
|
259
|
+
#
|
|
260
|
+
# <tt>'status'</tt>::
|
|
261
|
+
# Sets header +Status+ to the given string:
|
|
262
|
+
#
|
|
263
|
+
# puts cgi.http_header('status' => '666 MyVeryOwnStatus')
|
|
264
|
+
# Status: 666 MyVeryOwnStatus
|
|
265
|
+
# Content-Type: text/html
|
|
266
|
+
#
|
|
267
|
+
# If the given string is a key in the hash constant +CGI::HTTP_STATUS+,
|
|
268
|
+
# the status becomes the value for that key:
|
|
269
|
+
#
|
|
270
|
+
# CGI::HTTP_STATUS
|
|
271
|
+
# # =>
|
|
272
|
+
# {"OK" => "200 OK",
|
|
273
|
+
# "PARTIAL_CONTENT" => "206 Partial Content",
|
|
274
|
+
# "MULTIPLE_CHOICES" => "300 Multiple Choices",
|
|
275
|
+
# "MOVED" => "301 Moved Permanently",
|
|
276
|
+
# "REDIRECT" => "302 Found",
|
|
277
|
+
# "NOT_MODIFIED" => "304 Not Modified",
|
|
278
|
+
# "BAD_REQUEST" => "400 Bad Request",
|
|
279
|
+
# "AUTH_REQUIRED" => "401 Authorization Required",
|
|
280
|
+
# "FORBIDDEN" => "403 Forbidden",
|
|
281
|
+
# "NOT_FOUND" => "404 Not Found",
|
|
282
|
+
# "METHOD_NOT_ALLOWED" => "405 Method Not Allowed",
|
|
283
|
+
# "NOT_ACCEPTABLE" => "406 Not Acceptable",
|
|
284
|
+
# "LENGTH_REQUIRED" => "411 Length Required",
|
|
285
|
+
# "PRECONDITION_FAILED" => "412 Precondition Failed",
|
|
286
|
+
# "SERVER_ERROR" => "500 Internal Server Error",
|
|
287
|
+
# "NOT_IMPLEMENTED" => "501 Method Not Implemented",
|
|
288
|
+
# "BAD_GATEWAY" => "502 Bad Gateway",
|
|
289
|
+
# "VARIANT_ALSO_VARIES" => "506 Variant Also Negotiates"}
|
|
290
|
+
#
|
|
291
|
+
# puts cgi.http_header('status' => 'OK')
|
|
292
|
+
# Status: 200 OK
|
|
293
|
+
# Content-Type: text/html
|
|
294
|
+
#
|
|
295
|
+
# puts cgi.http_header('status' => 'NOT_FOUND')
|
|
296
|
+
# Status: 404 Not Found
|
|
297
|
+
# Content-Type: text/html
|
|
298
|
+
#
|
|
299
|
+
# <tt>'type'</tt>::
|
|
300
|
+
# Sets +Content-Type+, overriding the default value <tt>'text/html'</tt>:
|
|
301
|
+
#
|
|
302
|
+
# puts cgi.http_header('type' => 'text/xml')
|
|
303
|
+
# Content-Type: text/xml
|
|
304
|
+
#
|
|
305
|
+
# <i>Unrecognized Keys</i>
|
|
306
|
+
#
|
|
307
|
+
# Headers may also be set for unrecognized keys;
|
|
308
|
+
# an unrecognized key becomes a header name with the given value:
|
|
309
|
+
#
|
|
310
|
+
# puts cgi.http_header('length' => 0) # Recognized key (lowercase string).
|
|
311
|
+
# Content-Type: text/html
|
|
312
|
+
# Content-Length: 0
|
|
313
|
+
#
|
|
314
|
+
# puts cgi.http_header('Length' => 0) # Unrecognized key (string key not lowercase).
|
|
315
|
+
# Content-Type: text/html
|
|
316
|
+
# Length: 0
|
|
317
|
+
#
|
|
318
|
+
# puts cgi.http_header(length: 0) # Unrecognized key (symbol key not string)
|
|
319
|
+
# Content-Type: text/html
|
|
320
|
+
# length: 0
|
|
321
|
+
#
|
|
322
|
+
# This method does not perform charset conversion.
|
|
323
|
+
#
|
|
324
|
+
# It's best to use this method (CGI#http_header), not its aliased method +header+,
|
|
325
|
+
# which is provided only for backward compatibility.
|
|
326
|
+
#
|
|
327
|
+
# Method CGI#http_header is preferred because when +tag_maker+ is <tt>'html5'</tt>,
|
|
328
|
+
# calling method +header+ generates an HTML +header+ element:
|
|
329
|
+
#
|
|
330
|
+
# cgi = CGI.new(tag_maker: 'html5')
|
|
331
|
+
# puts cgi.http_header # Works as expected.
|
|
332
|
+
# Content-Type: text/html
|
|
333
|
+
# puts cgi.header # Maybe a surprise.
|
|
334
|
+
# <HEADER></HEADER>
|
|
335
|
+
#
|
|
336
|
+
def http_header(options='text/html')
|
|
337
|
+
if options.is_a?(String)
|
|
338
|
+
content_type = options
|
|
339
|
+
buf = _header_for_string(content_type)
|
|
340
|
+
elsif options.is_a?(Hash)
|
|
341
|
+
if options.size == 1 && options.has_key?('type')
|
|
342
|
+
content_type = options['type']
|
|
343
|
+
buf = _header_for_string(content_type)
|
|
344
|
+
else
|
|
345
|
+
buf = _header_for_hash(options.dup)
|
|
346
|
+
end
|
|
347
|
+
else
|
|
348
|
+
raise ArgumentError.new("expected String or Hash but got #{options.class}")
|
|
349
|
+
end
|
|
350
|
+
if defined?(MOD_RUBY)
|
|
351
|
+
_header_for_modruby(buf)
|
|
352
|
+
return ''
|
|
353
|
+
else
|
|
354
|
+
buf << EOL # empty line of separator
|
|
355
|
+
return buf
|
|
356
|
+
end
|
|
357
|
+
end # http_header()
|
|
358
|
+
|
|
359
|
+
# This method is an alias for #http_header, when HTML5 tag maker is inactive.
|
|
360
|
+
#
|
|
361
|
+
# NOTE: use #http_header to create HTTP header blocks, this alias is only
|
|
362
|
+
# provided for backwards compatibility.
|
|
363
|
+
#
|
|
364
|
+
# Using #header with the HTML5 tag maker will create a <header> element.
|
|
365
|
+
alias :header :http_header
|
|
366
|
+
|
|
367
|
+
def _no_crlf_check(str)
|
|
368
|
+
if str
|
|
369
|
+
str = str.to_s
|
|
370
|
+
raise "A HTTP status or header field must not include CR and LF" if str =~ /[\r\n]/
|
|
371
|
+
str
|
|
372
|
+
else
|
|
373
|
+
nil
|
|
374
|
+
end
|
|
375
|
+
end
|
|
376
|
+
private :_no_crlf_check
|
|
377
|
+
|
|
378
|
+
def _header_for_string(content_type) #:nodoc:
|
|
379
|
+
buf = ''.dup
|
|
380
|
+
if nph?()
|
|
381
|
+
buf << "#{_no_crlf_check($CGI_ENV['SERVER_PROTOCOL']) || 'HTTP/1.0'} 200 OK#{EOL}"
|
|
382
|
+
buf << "Date: #{CGI.rfc1123_date(Time.now)}#{EOL}"
|
|
383
|
+
buf << "Server: #{_no_crlf_check($CGI_ENV['SERVER_SOFTWARE'])}#{EOL}"
|
|
384
|
+
buf << "Connection: close#{EOL}"
|
|
385
|
+
end
|
|
386
|
+
buf << "Content-Type: #{_no_crlf_check(content_type)}#{EOL}"
|
|
387
|
+
if @output_cookies
|
|
388
|
+
@output_cookies.each {|cookie| buf << "Set-Cookie: #{_no_crlf_check(cookie)}#{EOL}" }
|
|
389
|
+
end
|
|
390
|
+
return buf
|
|
391
|
+
end # _header_for_string
|
|
392
|
+
private :_header_for_string
|
|
393
|
+
|
|
394
|
+
def _header_for_hash(options) #:nodoc:
|
|
395
|
+
buf = ''.dup
|
|
396
|
+
## add charset to option['type']
|
|
397
|
+
options['type'] ||= 'text/html'
|
|
398
|
+
charset = options.delete('charset')
|
|
399
|
+
options['type'] += "; charset=#{charset}" if charset
|
|
400
|
+
## NPH
|
|
401
|
+
options.delete('nph') if defined?(MOD_RUBY)
|
|
402
|
+
if options.delete('nph') || nph?()
|
|
403
|
+
protocol = _no_crlf_check($CGI_ENV['SERVER_PROTOCOL']) || 'HTTP/1.0'
|
|
404
|
+
status = options.delete('status')
|
|
405
|
+
status = HTTP_STATUS[status] || _no_crlf_check(status) || '200 OK'
|
|
406
|
+
buf << "#{protocol} #{status}#{EOL}"
|
|
407
|
+
buf << "Date: #{CGI.rfc1123_date(Time.now)}#{EOL}"
|
|
408
|
+
options['server'] ||= $CGI_ENV['SERVER_SOFTWARE'] || ''
|
|
409
|
+
options['connection'] ||= 'close'
|
|
410
|
+
end
|
|
411
|
+
## common headers
|
|
412
|
+
status = options.delete('status')
|
|
413
|
+
buf << "Status: #{HTTP_STATUS[status] || _no_crlf_check(status)}#{EOL}" if status
|
|
414
|
+
server = options.delete('server')
|
|
415
|
+
buf << "Server: #{_no_crlf_check(server)}#{EOL}" if server
|
|
416
|
+
connection = options.delete('connection')
|
|
417
|
+
buf << "Connection: #{_no_crlf_check(connection)}#{EOL}" if connection
|
|
418
|
+
type = options.delete('type')
|
|
419
|
+
buf << "Content-Type: #{_no_crlf_check(type)}#{EOL}" #if type
|
|
420
|
+
length = options.delete('length')
|
|
421
|
+
buf << "Content-Length: #{_no_crlf_check(length)}#{EOL}" if length
|
|
422
|
+
language = options.delete('language')
|
|
423
|
+
buf << "Content-Language: #{_no_crlf_check(language)}#{EOL}" if language
|
|
424
|
+
expires = options.delete('expires')
|
|
425
|
+
buf << "Expires: #{CGI.rfc1123_date(expires)}#{EOL}" if expires
|
|
426
|
+
## cookie
|
|
427
|
+
if cookie = options.delete('cookie')
|
|
428
|
+
case cookie
|
|
429
|
+
when String, Cookie
|
|
430
|
+
buf << "Set-Cookie: #{_no_crlf_check(cookie)}#{EOL}"
|
|
431
|
+
when Array
|
|
432
|
+
arr = cookie
|
|
433
|
+
arr.each {|c| buf << "Set-Cookie: #{_no_crlf_check(c)}#{EOL}" }
|
|
434
|
+
when Hash
|
|
435
|
+
hash = cookie
|
|
436
|
+
hash.each_value {|c| buf << "Set-Cookie: #{_no_crlf_check(c)}#{EOL}" }
|
|
437
|
+
end
|
|
438
|
+
end
|
|
439
|
+
if @output_cookies
|
|
440
|
+
@output_cookies.each {|c| buf << "Set-Cookie: #{_no_crlf_check(c)}#{EOL}" }
|
|
441
|
+
end
|
|
442
|
+
## other headers
|
|
443
|
+
options.each do |key, value|
|
|
444
|
+
buf << "#{_no_crlf_check(key)}: #{_no_crlf_check(value)}#{EOL}"
|
|
445
|
+
end
|
|
446
|
+
return buf
|
|
447
|
+
end # _header_for_hash
|
|
448
|
+
private :_header_for_hash
|
|
449
|
+
|
|
450
|
+
def nph? #:nodoc:
|
|
451
|
+
return /IIS\/(\d+)/ =~ $CGI_ENV['SERVER_SOFTWARE'] && $1.to_i < 5
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
def _header_for_modruby(buf) #:nodoc:
|
|
455
|
+
request = Apache::request
|
|
456
|
+
buf.scan(/([^:]+): (.+)#{EOL}/o) do |name, value|
|
|
457
|
+
$stderr.printf("name:%s value:%s\n", name, value) if $DEBUG
|
|
458
|
+
case name
|
|
459
|
+
when 'Set-Cookie'
|
|
460
|
+
request.headers_out.add(name, value)
|
|
461
|
+
when /^status$/i
|
|
462
|
+
request.status_line = value
|
|
463
|
+
request.status = value.to_i
|
|
464
|
+
when /^content-type$/i
|
|
465
|
+
request.content_type = value
|
|
466
|
+
when /^content-encoding$/i
|
|
467
|
+
request.content_encoding = value
|
|
468
|
+
when /^location$/i
|
|
469
|
+
request.status = 302 if request.status == 200
|
|
470
|
+
request.headers_out[name] = value
|
|
471
|
+
else
|
|
472
|
+
request.headers_out[name] = value
|
|
473
|
+
end
|
|
474
|
+
end
|
|
475
|
+
request.send_http_header
|
|
476
|
+
return ''
|
|
477
|
+
end
|
|
478
|
+
private :_header_for_modruby
|
|
479
|
+
|
|
480
|
+
# Print an HTTP header and body to $DEFAULT_OUTPUT ($>)
|
|
481
|
+
#
|
|
482
|
+
# :call-seq:
|
|
483
|
+
# cgi.out(content_type_string='text/html')
|
|
484
|
+
# cgi.out(headers_hash)
|
|
485
|
+
#
|
|
486
|
+
# +content_type_string+::
|
|
487
|
+
# If a string is passed, it is assumed to be the content type.
|
|
488
|
+
# +headers_hash+::
|
|
489
|
+
# This is a Hash of headers, similar to that used by #http_header.
|
|
490
|
+
# +block+::
|
|
491
|
+
# A block is required and should evaluate to the body of the response.
|
|
492
|
+
#
|
|
493
|
+
# <tt>Content-Length</tt> is automatically calculated from the size of
|
|
494
|
+
# the String returned by the content block.
|
|
495
|
+
#
|
|
496
|
+
# If <tt>ENV['REQUEST_METHOD'] == "HEAD"</tt>, then only the header
|
|
497
|
+
# is output (the content block is still required, but it is ignored).
|
|
498
|
+
#
|
|
499
|
+
# If the charset is "iso-2022-jp" or "euc-jp" or "shift_jis" then the
|
|
500
|
+
# content is converted to this charset, and the language is set to "ja".
|
|
501
|
+
#
|
|
502
|
+
# Example:
|
|
503
|
+
#
|
|
504
|
+
# cgi = CGI.new
|
|
505
|
+
# cgi.out{ "string" }
|
|
506
|
+
# # Content-Type: text/html
|
|
507
|
+
# # Content-Length: 6
|
|
508
|
+
# #
|
|
509
|
+
# # string
|
|
510
|
+
#
|
|
511
|
+
# cgi.out("text/plain") { "string" }
|
|
512
|
+
# # Content-Type: text/plain
|
|
513
|
+
# # Content-Length: 6
|
|
514
|
+
# #
|
|
515
|
+
# # string
|
|
516
|
+
#
|
|
517
|
+
# cgi.out("nph" => true,
|
|
518
|
+
# "status" => "OK", # == "200 OK"
|
|
519
|
+
# "server" => ENV['SERVER_SOFTWARE'],
|
|
520
|
+
# "connection" => "close",
|
|
521
|
+
# "type" => "text/html",
|
|
522
|
+
# "charset" => "iso-2022-jp",
|
|
523
|
+
# # Content-Type: text/html; charset=iso-2022-jp
|
|
524
|
+
# "language" => "ja",
|
|
525
|
+
# "expires" => Time.now + (3600 * 24 * 30),
|
|
526
|
+
# "cookie" => [cookie1, cookie2],
|
|
527
|
+
# "my_header1" => "my_value",
|
|
528
|
+
# "my_header2" => "my_value") { "string" }
|
|
529
|
+
# # HTTP/1.1 200 OK
|
|
530
|
+
# # Date: Sun, 15 May 2011 17:35:54 GMT
|
|
531
|
+
# # Server: Apache 2.2.0
|
|
532
|
+
# # Connection: close
|
|
533
|
+
# # Content-Type: text/html; charset=iso-2022-jp
|
|
534
|
+
# # Content-Length: 6
|
|
535
|
+
# # Content-Language: ja
|
|
536
|
+
# # Expires: Tue, 14 Jun 2011 17:35:54 GMT
|
|
537
|
+
# # Set-Cookie: foo
|
|
538
|
+
# # Set-Cookie: bar
|
|
539
|
+
# # my_header1: my_value
|
|
540
|
+
# # my_header2: my_value
|
|
541
|
+
# #
|
|
542
|
+
# # string
|
|
543
|
+
def out(options = "text/html") # :yield:
|
|
544
|
+
|
|
545
|
+
options = { "type" => options } if options.kind_of?(String)
|
|
546
|
+
content = yield
|
|
547
|
+
options["length"] = content.bytesize.to_s
|
|
548
|
+
output = stdoutput
|
|
549
|
+
output.binmode if defined? output.binmode
|
|
550
|
+
output.print http_header(options)
|
|
551
|
+
output.print content unless "HEAD" == env_table['REQUEST_METHOD']
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
# Print an argument or list of arguments to the default output stream
|
|
556
|
+
#
|
|
557
|
+
# cgi = CGI.new
|
|
558
|
+
# cgi.print # default: cgi.print == $DEFAULT_OUTPUT.print
|
|
559
|
+
def print(*options)
|
|
560
|
+
stdoutput.print(*options)
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
# :call-seq:
|
|
564
|
+
# CGI.parse(query_string) -> hash
|
|
565
|
+
#
|
|
566
|
+
# Returns a new hash built from name/value pairs in the given +query_string+:
|
|
567
|
+
#
|
|
568
|
+
# query = 'foo=0&bar=1&foo=2&bar=3'
|
|
569
|
+
# CGI.parse(query)
|
|
570
|
+
# # => {"foo" => ["0", "2"], "bar" => ["1", "3"]}
|
|
571
|
+
#
|
|
572
|
+
def self.parse(query)
|
|
573
|
+
params = {}
|
|
574
|
+
query.split(/[&;]/).each do |pairs|
|
|
575
|
+
key, value = pairs.split('=',2).collect{|v| CGI.unescape(v) }
|
|
576
|
+
|
|
577
|
+
next unless key
|
|
578
|
+
|
|
579
|
+
params[key] ||= []
|
|
580
|
+
params[key].push(value) if value
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
params.default=[].freeze
|
|
584
|
+
params
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
# Maximum content length of post data
|
|
588
|
+
##MAX_CONTENT_LENGTH = 2 * 1024 * 1024
|
|
589
|
+
|
|
590
|
+
# Maximum number of request parameters when multipart
|
|
591
|
+
MAX_MULTIPART_COUNT = 128
|
|
592
|
+
|
|
593
|
+
# Mixin module that provides the following:
|
|
594
|
+
#
|
|
595
|
+
# 1. Access to the CGI environment variables as methods. See
|
|
596
|
+
# documentation to the CGI class for a list of these variables. The
|
|
597
|
+
# methods are exposed by removing the leading +HTTP_+ (if it exists) and
|
|
598
|
+
# downcasing the name. For example, +auth_type+ will return the
|
|
599
|
+
# environment variable +AUTH_TYPE+, and +accept+ will return the value
|
|
600
|
+
# for +HTTP_ACCEPT+.
|
|
601
|
+
#
|
|
602
|
+
# 2. Access to cookies, including the cookies attribute.
|
|
603
|
+
#
|
|
604
|
+
# 3. Access to parameters, including the params attribute, and overloading
|
|
605
|
+
# #[] to perform parameter value lookup by key.
|
|
606
|
+
#
|
|
607
|
+
# 4. The initialize_query method, for initializing the above
|
|
608
|
+
# mechanisms, handling multipart forms, and allowing the
|
|
609
|
+
# class to be used in "offline" mode.
|
|
610
|
+
#
|
|
611
|
+
module QueryExtension
|
|
612
|
+
|
|
613
|
+
%w[ CONTENT_LENGTH SERVER_PORT ].each do |env|
|
|
614
|
+
define_method(env.delete_prefix('HTTP_').downcase) do
|
|
615
|
+
(val = env_table[env]) && Integer(val)
|
|
616
|
+
end
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
%w[ AUTH_TYPE CONTENT_TYPE GATEWAY_INTERFACE PATH_INFO
|
|
620
|
+
PATH_TRANSLATED QUERY_STRING REMOTE_ADDR REMOTE_HOST
|
|
621
|
+
REMOTE_IDENT REMOTE_USER REQUEST_METHOD SCRIPT_NAME
|
|
622
|
+
SERVER_NAME SERVER_PROTOCOL SERVER_SOFTWARE
|
|
623
|
+
|
|
624
|
+
HTTP_ACCEPT HTTP_ACCEPT_CHARSET HTTP_ACCEPT_ENCODING
|
|
625
|
+
HTTP_ACCEPT_LANGUAGE HTTP_CACHE_CONTROL HTTP_FROM HTTP_HOST
|
|
626
|
+
HTTP_NEGOTIATE HTTP_PRAGMA HTTP_REFERER HTTP_USER_AGENT ].each do |env|
|
|
627
|
+
define_method(env.delete_prefix('HTTP_').downcase) do
|
|
628
|
+
env_table[env]
|
|
629
|
+
end
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
# Get the raw cookies as a string.
|
|
633
|
+
def raw_cookie
|
|
634
|
+
env_table["HTTP_COOKIE"]
|
|
635
|
+
end
|
|
636
|
+
|
|
637
|
+
# Get the raw RFC2965 cookies as a string.
|
|
638
|
+
def raw_cookie2
|
|
639
|
+
env_table["HTTP_COOKIE2"]
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
# Get the cookies as a hash of cookie-name=>Cookie pairs.
|
|
643
|
+
attr_accessor :cookies
|
|
644
|
+
|
|
645
|
+
# Get the parameters as a hash of name=>values pairs, where
|
|
646
|
+
# values is an Array.
|
|
647
|
+
attr_reader :params
|
|
648
|
+
|
|
649
|
+
# Get the uploaded files as a hash of name=>values pairs
|
|
650
|
+
attr_reader :files
|
|
651
|
+
|
|
652
|
+
# Set all the parameters.
|
|
653
|
+
def params=(hash)
|
|
654
|
+
@params.clear
|
|
655
|
+
@params.update(hash)
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
##
|
|
659
|
+
# Parses multipart form elements according to
|
|
660
|
+
# https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2
|
|
661
|
+
#
|
|
662
|
+
# Returns a hash of multipart form parameters with bodies of type StringIO or
|
|
663
|
+
# Tempfile depending on whether the multipart form element exceeds 10 KB
|
|
664
|
+
#
|
|
665
|
+
# params[name => body]
|
|
666
|
+
#
|
|
667
|
+
def read_multipart(boundary, content_length)
|
|
668
|
+
## read first boundary
|
|
669
|
+
stdin = stdinput
|
|
670
|
+
first_line = "--#{boundary}#{EOL}"
|
|
671
|
+
content_length -= first_line.bytesize
|
|
672
|
+
status = stdin.read(first_line.bytesize)
|
|
673
|
+
raise EOFError.new("no content body") unless status
|
|
674
|
+
raise EOFError.new("bad content body") unless first_line == status
|
|
675
|
+
## parse and set params
|
|
676
|
+
params = {}
|
|
677
|
+
@files = {}
|
|
678
|
+
boundary_rexp = /--#{Regexp.quote(boundary)}(#{EOL}|--)/
|
|
679
|
+
boundary_size = "#{EOL}--#{boundary}#{EOL}".bytesize
|
|
680
|
+
buf = ''.dup
|
|
681
|
+
bufsize = 10 * 1024
|
|
682
|
+
max_count = MAX_MULTIPART_COUNT
|
|
683
|
+
n = 0
|
|
684
|
+
tempfiles = []
|
|
685
|
+
while true
|
|
686
|
+
(n += 1) < max_count or raise StandardError.new("too many parameters.")
|
|
687
|
+
## create body (StringIO or Tempfile)
|
|
688
|
+
body = create_body(bufsize < content_length)
|
|
689
|
+
tempfiles << body if defined?(Tempfile) && body.kind_of?(Tempfile)
|
|
690
|
+
class << body
|
|
691
|
+
if method_defined?(:path)
|
|
692
|
+
alias local_path path
|
|
693
|
+
else
|
|
694
|
+
def local_path
|
|
695
|
+
nil
|
|
696
|
+
end
|
|
697
|
+
end
|
|
698
|
+
attr_reader :original_filename, :content_type
|
|
699
|
+
end
|
|
700
|
+
## find head and boundary
|
|
701
|
+
head = nil
|
|
702
|
+
separator = EOL * 2
|
|
703
|
+
until head && matched = boundary_rexp.match(buf)
|
|
704
|
+
if !head && pos = buf.index(separator)
|
|
705
|
+
len = pos + EOL.bytesize
|
|
706
|
+
head = buf[0, len]
|
|
707
|
+
buf = buf[(pos+separator.bytesize)..-1]
|
|
708
|
+
else
|
|
709
|
+
if head && buf.size > boundary_size
|
|
710
|
+
len = buf.size - boundary_size
|
|
711
|
+
body.print(buf[0, len])
|
|
712
|
+
buf[0, len] = ''
|
|
713
|
+
end
|
|
714
|
+
c = stdin.read(bufsize < content_length ? bufsize : content_length)
|
|
715
|
+
raise EOFError.new("bad content body") if c.nil? || c.empty?
|
|
716
|
+
buf << c
|
|
717
|
+
content_length -= c.bytesize
|
|
718
|
+
end
|
|
719
|
+
end
|
|
720
|
+
## read to end of boundary
|
|
721
|
+
m = matched
|
|
722
|
+
len = m.begin(0)
|
|
723
|
+
s = buf[0, len]
|
|
724
|
+
if s =~ /(\r?\n)\z/
|
|
725
|
+
s = buf[0, len - $1.bytesize]
|
|
726
|
+
end
|
|
727
|
+
body.print(s)
|
|
728
|
+
buf = buf[m.end(0)..-1]
|
|
729
|
+
boundary_end = m[1]
|
|
730
|
+
content_length = -1 if boundary_end == '--'
|
|
731
|
+
## reset file cursor position
|
|
732
|
+
body.rewind
|
|
733
|
+
## original filename
|
|
734
|
+
/Content-Disposition:.* filename=(?:"(.*?)"|([^;\r\n]*))/i.match(head)
|
|
735
|
+
filename = $1 || $2 || ''.dup
|
|
736
|
+
filename = CGI.unescape(filename) if unescape_filename?()
|
|
737
|
+
body.instance_variable_set(:@original_filename, filename)
|
|
738
|
+
## content type
|
|
739
|
+
/Content-Type: (.*)/i.match(head)
|
|
740
|
+
(content_type = $1 || ''.dup).chomp!
|
|
741
|
+
body.instance_variable_set(:@content_type, content_type)
|
|
742
|
+
## query parameter name
|
|
743
|
+
/Content-Disposition:.* name=(?:"(.*?)"|([^;\r\n]*))/i.match(head)
|
|
744
|
+
name = $1 || $2 || ''
|
|
745
|
+
if body.original_filename.empty?
|
|
746
|
+
value=body.read.dup.force_encoding(@accept_charset)
|
|
747
|
+
body.close! if defined?(Tempfile) && body.kind_of?(Tempfile)
|
|
748
|
+
(params[name] ||= []) << value
|
|
749
|
+
unless value.valid_encoding?
|
|
750
|
+
if @accept_charset_error_block
|
|
751
|
+
@accept_charset_error_block.call(name,value)
|
|
752
|
+
else
|
|
753
|
+
raise InvalidEncoding,"Accept-Charset encoding error"
|
|
754
|
+
end
|
|
755
|
+
end
|
|
756
|
+
class << params[name].last;self;end.class_eval do
|
|
757
|
+
define_method(:read){self}
|
|
758
|
+
define_method(:original_filename){""}
|
|
759
|
+
define_method(:content_type){""}
|
|
760
|
+
end
|
|
761
|
+
else
|
|
762
|
+
(params[name] ||= []) << body
|
|
763
|
+
@files[name]=body
|
|
764
|
+
end
|
|
765
|
+
## break loop
|
|
766
|
+
break if content_length == -1
|
|
767
|
+
end
|
|
768
|
+
raise EOFError, "bad boundary end of body part" unless boundary_end =~ /--/
|
|
769
|
+
params.default = []
|
|
770
|
+
params
|
|
771
|
+
rescue Exception
|
|
772
|
+
if tempfiles
|
|
773
|
+
tempfiles.each {|t|
|
|
774
|
+
if t.path
|
|
775
|
+
t.close!
|
|
776
|
+
end
|
|
777
|
+
}
|
|
778
|
+
end
|
|
779
|
+
raise
|
|
780
|
+
end # read_multipart
|
|
781
|
+
private :read_multipart
|
|
782
|
+
def create_body(is_large) #:nodoc:
|
|
783
|
+
if is_large
|
|
784
|
+
require 'tempfile'
|
|
785
|
+
body = Tempfile.new('CGI', encoding: Encoding::ASCII_8BIT)
|
|
786
|
+
else
|
|
787
|
+
begin
|
|
788
|
+
require 'stringio'
|
|
789
|
+
body = StringIO.new("".b)
|
|
790
|
+
rescue LoadError
|
|
791
|
+
require 'tempfile'
|
|
792
|
+
body = Tempfile.new('CGI', encoding: Encoding::ASCII_8BIT)
|
|
793
|
+
end
|
|
794
|
+
end
|
|
795
|
+
body.binmode if defined? body.binmode
|
|
796
|
+
return body
|
|
797
|
+
end
|
|
798
|
+
def unescape_filename? #:nodoc:
|
|
799
|
+
user_agent = $CGI_ENV['HTTP_USER_AGENT']
|
|
800
|
+
return false unless user_agent
|
|
801
|
+
return /Mac/i.match(user_agent) && /Mozilla/i.match(user_agent) && !/MSIE/i.match(user_agent)
|
|
802
|
+
end
|
|
803
|
+
|
|
804
|
+
# offline mode. read name=value pairs on standard input.
|
|
805
|
+
def read_from_cmdline
|
|
806
|
+
require "shellwords"
|
|
807
|
+
|
|
808
|
+
string = unless ARGV.empty?
|
|
809
|
+
ARGV.join(' ')
|
|
810
|
+
else
|
|
811
|
+
if stdinput.tty?
|
|
812
|
+
$stderr.print(
|
|
813
|
+
%|(offline mode: enter name=value pairs on standard input)\n|
|
|
814
|
+
)
|
|
815
|
+
end
|
|
816
|
+
array = readlines rescue nil
|
|
817
|
+
if not array.nil?
|
|
818
|
+
array.join(' ').gsub(/\n/n, '')
|
|
819
|
+
else
|
|
820
|
+
""
|
|
821
|
+
end
|
|
822
|
+
end.gsub(/\\=/n, '%3D').gsub(/\\&/n, '%26')
|
|
823
|
+
|
|
824
|
+
words = Shellwords.shellwords(string)
|
|
825
|
+
|
|
826
|
+
if words.find{|x| /=/n.match(x) }
|
|
827
|
+
words.join('&')
|
|
828
|
+
else
|
|
829
|
+
words.join('+')
|
|
830
|
+
end
|
|
831
|
+
end
|
|
832
|
+
private :read_from_cmdline
|
|
833
|
+
|
|
834
|
+
# A wrapper class to use a StringIO object as the body and switch
|
|
835
|
+
# to a TempFile when the passed threshold is passed.
|
|
836
|
+
# Initialize the data from the query.
|
|
837
|
+
#
|
|
838
|
+
# Handles multipart forms (in particular, forms that involve file uploads).
|
|
839
|
+
# Reads query parameters in the @params field, and cookies into @cookies.
|
|
840
|
+
def initialize_query()
|
|
841
|
+
content_length = env_table['CONTENT_LENGTH']
|
|
842
|
+
content_length = nil if content_length == ''
|
|
843
|
+
if ("POST" == env_table['REQUEST_METHOD']) and
|
|
844
|
+
%r|\Amultipart/form-data.*boundary=\"?([^\";,]+)\"?| =~ env_table['CONTENT_TYPE']
|
|
845
|
+
current_max_multipart_length = @max_multipart_length.respond_to?(:call) ? @max_multipart_length.call : @max_multipart_length
|
|
846
|
+
raise StandardError.new("too large multipart data.") if env_table['CONTENT_LENGTH'].to_i > current_max_multipart_length
|
|
847
|
+
raise StandardError.new("no content length for multipart data.") if content_length.nil?
|
|
848
|
+
boundary = $1.dup
|
|
849
|
+
@multipart = true
|
|
850
|
+
@params = read_multipart(boundary, Integer(content_length))
|
|
851
|
+
else
|
|
852
|
+
@multipart = false
|
|
853
|
+
@params = CGI.parse(
|
|
854
|
+
case env_table['REQUEST_METHOD']
|
|
855
|
+
when "GET", "HEAD"
|
|
856
|
+
if defined?(MOD_RUBY)
|
|
857
|
+
Apache::request.args or ""
|
|
858
|
+
else
|
|
859
|
+
env_table['QUERY_STRING'] or ""
|
|
860
|
+
end
|
|
861
|
+
when "POST"
|
|
862
|
+
stdinput.binmode if defined? stdinput.binmode
|
|
863
|
+
if content_length.nil?
|
|
864
|
+
stdinput.read or ''
|
|
865
|
+
else
|
|
866
|
+
stdinput.read(Integer(content_length)) or ''
|
|
867
|
+
end
|
|
868
|
+
else
|
|
869
|
+
read_from_cmdline
|
|
870
|
+
end.dup.force_encoding(@accept_charset)
|
|
871
|
+
)
|
|
872
|
+
unless Encoding.find(@accept_charset) == Encoding::ASCII_8BIT
|
|
873
|
+
@params.each do |key,values|
|
|
874
|
+
values.each do |value|
|
|
875
|
+
unless value.valid_encoding?
|
|
876
|
+
if @accept_charset_error_block
|
|
877
|
+
@accept_charset_error_block.call(key,value)
|
|
878
|
+
else
|
|
879
|
+
raise InvalidEncoding,"Accept-Charset encoding error"
|
|
880
|
+
end
|
|
881
|
+
end
|
|
882
|
+
end
|
|
883
|
+
end
|
|
884
|
+
end
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
@cookies = CGI::Cookie.parse((env_table['HTTP_COOKIE'] or env_table['COOKIE']))
|
|
888
|
+
end
|
|
889
|
+
private :initialize_query
|
|
890
|
+
|
|
891
|
+
# Returns whether the form contained multipart/form-data
|
|
892
|
+
def multipart?
|
|
893
|
+
@multipart
|
|
894
|
+
end
|
|
895
|
+
|
|
896
|
+
# Get the value for the parameter with a given key.
|
|
897
|
+
#
|
|
898
|
+
# If the parameter has multiple values, only the first will be
|
|
899
|
+
# retrieved; use #params to get the array of values.
|
|
900
|
+
def [](key)
|
|
901
|
+
params = @params[key]
|
|
902
|
+
return '' unless params
|
|
903
|
+
value = params[0]
|
|
904
|
+
if @multipart
|
|
905
|
+
if value
|
|
906
|
+
return value
|
|
907
|
+
elsif defined? StringIO
|
|
908
|
+
StringIO.new("".b)
|
|
909
|
+
else
|
|
910
|
+
Tempfile.new("CGI",encoding: Encoding::ASCII_8BIT)
|
|
911
|
+
end
|
|
912
|
+
else
|
|
913
|
+
str = if value then value.dup else "" end
|
|
914
|
+
str
|
|
915
|
+
end
|
|
916
|
+
end
|
|
917
|
+
|
|
918
|
+
# Return all query parameter names as an array of String.
|
|
919
|
+
def keys(*args)
|
|
920
|
+
@params.keys(*args)
|
|
921
|
+
end
|
|
922
|
+
|
|
923
|
+
# Returns true if a given query string parameter exists.
|
|
924
|
+
def has_key?(*args)
|
|
925
|
+
@params.has_key?(*args)
|
|
926
|
+
end
|
|
927
|
+
alias key? has_key?
|
|
928
|
+
alias include? has_key?
|
|
929
|
+
|
|
930
|
+
end # QueryExtension
|
|
931
|
+
|
|
932
|
+
# Exception raised when there is an invalid encoding detected
|
|
933
|
+
class InvalidEncoding < Exception; end
|
|
934
|
+
|
|
935
|
+
# @@accept_charset is default accept character set.
|
|
936
|
+
# This default value default is "UTF-8"
|
|
937
|
+
# If you want to change the default accept character set
|
|
938
|
+
# when create a new CGI instance, set this:
|
|
939
|
+
#
|
|
940
|
+
# CGI.accept_charset = "EUC-JP"
|
|
941
|
+
#
|
|
942
|
+
@@accept_charset="UTF-8" if false # needed for rdoc?
|
|
943
|
+
|
|
944
|
+
# :call-seq:
|
|
945
|
+
# CGI.accept_charset -> encoding
|
|
946
|
+
#
|
|
947
|
+
# Returns the default accept character set to be used for new \CGI instances;
|
|
948
|
+
# see CGI.accept_charset=.
|
|
949
|
+
def self.accept_charset
|
|
950
|
+
@@accept_charset
|
|
951
|
+
end
|
|
952
|
+
|
|
953
|
+
# :call-seq:
|
|
954
|
+
# CGI.accept_charset = encoding
|
|
955
|
+
#
|
|
956
|
+
# Sets the default accept character set to be used for new \CGI instances;
|
|
957
|
+
# returns the argument.
|
|
958
|
+
#
|
|
959
|
+
# The argument may be an Encoding object or an Encoding name;
|
|
960
|
+
# see {Encodings}[https://docs.ruby-lang.org/en/master/language/encodings_rdoc.html]:
|
|
961
|
+
#
|
|
962
|
+
# # The initial value.
|
|
963
|
+
# CGI.accept_charset # => #<Encoding:UTF-8>
|
|
964
|
+
# CGI.new
|
|
965
|
+
# # =>
|
|
966
|
+
# #<CGI:0x0000018991db6ae8
|
|
967
|
+
# @accept_charset=#<Encoding:UTF-8>,
|
|
968
|
+
# @accept_charset_error_block=nil,
|
|
969
|
+
# @cookies={},
|
|
970
|
+
# @max_multipart_length=134217728,
|
|
971
|
+
# @multipart=false,
|
|
972
|
+
# @options={accept_charset: #<Encoding:UTF-8>, max_multipart_length: 134217728},
|
|
973
|
+
# @output_cookies=nil,
|
|
974
|
+
# @output_hidden=nil,
|
|
975
|
+
# @params={}>
|
|
976
|
+
#
|
|
977
|
+
# # Set by Encoding name.
|
|
978
|
+
# CGI.accept_charset = 'US-ASCII' # => "US-ASCII"
|
|
979
|
+
# CGI.new
|
|
980
|
+
# # =>
|
|
981
|
+
# #<CGI:0x0000018991cf4100
|
|
982
|
+
# @accept_charset="US-ASCII",
|
|
983
|
+
# @accept_charset_error_block=nil,
|
|
984
|
+
# @cookies={},
|
|
985
|
+
# @max_multipart_length=134217728,
|
|
986
|
+
# @multipart=false,
|
|
987
|
+
# @options={accept_charset: "US-ASCII", max_multipart_length: 134217728},
|
|
988
|
+
# @output_cookies=nil,
|
|
989
|
+
# @output_hidden=nil,
|
|
990
|
+
# @params={}>
|
|
991
|
+
#
|
|
992
|
+
# # Set by Encoding object.
|
|
993
|
+
# CGI.accept_charset = Encoding::ASCII_8BIT # => #<Encoding:BINARY (ASCII-8BIT)>
|
|
994
|
+
# CGI.new
|
|
995
|
+
# # =>
|
|
996
|
+
# #<CGI:0x0000018991cfc800
|
|
997
|
+
# @accept_charset=#<Encoding:BINARY (ASCII-8BIT)>,
|
|
998
|
+
# @accept_charset_error_block=nil,
|
|
999
|
+
# @cookies={},
|
|
1000
|
+
# @max_multipart_length=134217728,
|
|
1001
|
+
# @multipart=false,
|
|
1002
|
+
# @options={accept_charset: #<Encoding:BINARY (ASCII-8BIT)>, max_multipart_length: 134217728},
|
|
1003
|
+
# @output_cookies=nil,
|
|
1004
|
+
# @output_hidden=nil,
|
|
1005
|
+
# @params={}>
|
|
1006
|
+
#
|
|
1007
|
+
# The given encoding is not checked in this method,
|
|
1008
|
+
# but if it is invalid, a call to CGI.new will fail:
|
|
1009
|
+
#
|
|
1010
|
+
# CGI.accept_charset = 'foo'
|
|
1011
|
+
# CGI.new # Raises ArgumentError: unknown encoding name - foo
|
|
1012
|
+
#
|
|
1013
|
+
def self.accept_charset=(accept_charset)
|
|
1014
|
+
@@accept_charset=accept_charset
|
|
1015
|
+
end
|
|
1016
|
+
|
|
1017
|
+
# Return the accept character set for this CGI instance.
|
|
1018
|
+
attr_reader :accept_charset
|
|
1019
|
+
|
|
1020
|
+
# @@max_multipart_length is the maximum length of multipart data.
|
|
1021
|
+
# The default value is 128 * 1024 * 1024 bytes
|
|
1022
|
+
#
|
|
1023
|
+
# The default can be set to something else in the CGI constructor,
|
|
1024
|
+
# via the :max_multipart_length key in the option hash.
|
|
1025
|
+
#
|
|
1026
|
+
# See CGI.new documentation.
|
|
1027
|
+
#
|
|
1028
|
+
@@max_multipart_length= 128 * 1024 * 1024
|
|
1029
|
+
|
|
1030
|
+
# :call-seq:
|
|
1031
|
+
# CGI.new(options = {}) -> new_cgi
|
|
1032
|
+
# CGI.new(tag_maker) -> new_cgi
|
|
1033
|
+
# CGI.new(options = {}) {|name, value| ... } -> new_cgi
|
|
1034
|
+
# CGI.new(tag_maker) {|name, value| ... } -> new_cgi
|
|
1035
|
+
#
|
|
1036
|
+
# Returns a new \CGI object.
|
|
1037
|
+
#
|
|
1038
|
+
# The behavior of this method depends _strongly_ on whether it is called
|
|
1039
|
+
# within a standard \CGI call environment;
|
|
1040
|
+
# that is, whether <tt>ENV['REQUEST_METHOD']</tt> is defined.
|
|
1041
|
+
#
|
|
1042
|
+
# <b>Within a Standard Call Environment</b>
|
|
1043
|
+
#
|
|
1044
|
+
# This section assumes that <tt>ENV['REQUEST_METHOD']</tt> is defined;
|
|
1045
|
+
# for example:
|
|
1046
|
+
#
|
|
1047
|
+
# ENV['REQUEST_METHOD'] # => "GET"
|
|
1048
|
+
#
|
|
1049
|
+
# With no argument and no block given, returns a new \CGI object with default values:
|
|
1050
|
+
#
|
|
1051
|
+
# cgi = CGI.new
|
|
1052
|
+
# cgi
|
|
1053
|
+
# # =>
|
|
1054
|
+
# #<CGI:0x00000189917aff00
|
|
1055
|
+
# @accept_charset=#<Encoding:UTF-8>,
|
|
1056
|
+
# @accept_charset_error_block=nil,
|
|
1057
|
+
# @cookies={},
|
|
1058
|
+
# @max_multipart_length=134217728,
|
|
1059
|
+
# @multipart=false,
|
|
1060
|
+
# @options={accept_charset: #<Encoding:UTF-8>, max_multipart_length: 134217728},
|
|
1061
|
+
# @output_cookies=nil,
|
|
1062
|
+
# @output_hidden=nil,
|
|
1063
|
+
# @params={}>
|
|
1064
|
+
#
|
|
1065
|
+
# With hash argument +options+ given and no block given,
|
|
1066
|
+
# returns a new \CGI object with the given options.
|
|
1067
|
+
#
|
|
1068
|
+
# The options may be:
|
|
1069
|
+
#
|
|
1070
|
+
# - <tt>accept_charset: _encoding_</tt>:
|
|
1071
|
+
# specifies the encoding of the received query string.
|
|
1072
|
+
#
|
|
1073
|
+
# Value _encoding_ may be
|
|
1074
|
+
# an {Encoding object}[https://docs.ruby-lang.org/en/master/encodings_rdoc.html#label-Encoding+Objects]
|
|
1075
|
+
# or an {encoding name}[https://docs.ruby-lang.org/en/master/encodings_rdoc.html#label-Names+and+Aliases]:
|
|
1076
|
+
#
|
|
1077
|
+
# CGI.new(accept_charset: 'EUC-JP')
|
|
1078
|
+
#
|
|
1079
|
+
# If the option is not given,
|
|
1080
|
+
# the default value is the class default encoding.
|
|
1081
|
+
#
|
|
1082
|
+
# <em>Note:</em> The <tt>accept_charset</tt> method returns the HTTP Accept-Charset
|
|
1083
|
+
# header value, not the configured encoding. The configured encoding is used
|
|
1084
|
+
# internally for query string parsing.
|
|
1085
|
+
#
|
|
1086
|
+
# - <tt>max_multipart_length: _size_</tt>:
|
|
1087
|
+
# specifies maximum size (in bytes) of multipart data.
|
|
1088
|
+
#
|
|
1089
|
+
# The _size_ may be:
|
|
1090
|
+
#
|
|
1091
|
+
# - A positive integer.
|
|
1092
|
+
#
|
|
1093
|
+
# CGI.new(max_multipart_length: 1024 * 1024)
|
|
1094
|
+
#
|
|
1095
|
+
#
|
|
1096
|
+
# - A lambda to be evaluated when the request is parsed.
|
|
1097
|
+
# This is useful when determining whether to accept multipart data
|
|
1098
|
+
# (e.g. by consulting a registered user's upload allowance).
|
|
1099
|
+
#
|
|
1100
|
+
# CGI.new(max_multipart_length: -> {check_filesystem})
|
|
1101
|
+
#
|
|
1102
|
+
# If the option is not given, the default is +134217728+, specifying a maximum size of 128 megabytes.
|
|
1103
|
+
#
|
|
1104
|
+
# <em>Note:</em> This option configures internal behavior only.
|
|
1105
|
+
# There is no public method to retrieve this value after initialization.
|
|
1106
|
+
#
|
|
1107
|
+
# - <tt>tag_maker: _html_version_</tt>:
|
|
1108
|
+
# specifies a version of HTML;
|
|
1109
|
+
# this determines which tag-generating instance methods
|
|
1110
|
+
# (such as +html+, +head+, +body+, etc.) are to be loaded.
|
|
1111
|
+
#
|
|
1112
|
+
# Value _html_version_ may be one of:
|
|
1113
|
+
#
|
|
1114
|
+
# - <tt>'html3'</tt>: {HTML version 3}[https://www.w3.org/MarkUp/html3/Contents.html].
|
|
1115
|
+
# - <tt>'html4'</tt>: {HTML version 4}[https://www.w3.org/TR/html4].
|
|
1116
|
+
# - <tt>'html4Tr'</tt>: {HTML 4.0 Transitional}[https://www.w3.org/TR/html4/sgml/loosedtd.html].
|
|
1117
|
+
# - <tt>'html4Fr'</tt>: {HTML 4.0 with Framesets}[https://www.w3.org/TR/html4/present/frames.html].
|
|
1118
|
+
# - <tt>'html5'</tt>: {HTML version 5}[https://html.spec.whatwg.org/multipage].
|
|
1119
|
+
#
|
|
1120
|
+
# Example:
|
|
1121
|
+
#
|
|
1122
|
+
# CGI.new(tag_maker: 'html5')
|
|
1123
|
+
#
|
|
1124
|
+
# If the option is not given (or if an invalid value is given),
|
|
1125
|
+
# no tag-generating methods are loaded.
|
|
1126
|
+
#
|
|
1127
|
+
# Examples:
|
|
1128
|
+
#
|
|
1129
|
+
# CGI.new.respond_to?(:html) # => false # Tag-generating methods not loaded.
|
|
1130
|
+
# CGI.new(tag_maker: 'html3').respond_to?(:html) # => true # Tag-generating methods loaded.
|
|
1131
|
+
# # Tag 'button' is new in HTML 4.
|
|
1132
|
+
# CGI.new(tag_maker: 'html3').respond_to?(:button) # => false
|
|
1133
|
+
# CGI.new(tag_maker: 'html4').respond_to?(:button) # => true
|
|
1134
|
+
# # Tag 'canvas' is new in HTML 5.
|
|
1135
|
+
# CGI.new(tag_maker: 'html4').respond_to?(:canvas) # => false
|
|
1136
|
+
# CGI.new(tag_maker: 'html5').respond_to?(:canvas) # => true
|
|
1137
|
+
# # Value is case-sensitive.
|
|
1138
|
+
# CGI.new(tag_maker: 'HTML4').respond_to?(:html) # => false
|
|
1139
|
+
#
|
|
1140
|
+
# You can determine exactly which methods have been loaded;
|
|
1141
|
+
# this example captures the methods loaded by <tt>'html4'</tt>:
|
|
1142
|
+
#
|
|
1143
|
+
# methods_loaded = CGI.new('html4').methods - CGI.new.methods
|
|
1144
|
+
# methods_loaded.size # => 98
|
|
1145
|
+
# methods_loaded.sort.take(10)
|
|
1146
|
+
# # => [:a, :abbr, :acronym, :address, :area, :b, :base, :bdo, :big, :blockquote]
|
|
1147
|
+
#
|
|
1148
|
+
# With string argument +tag_maker+ given as _tag_maker_ and no block given,
|
|
1149
|
+
# equivalent to <tt>CGI.new(tag_maker: _tag_maker_)</tt>:
|
|
1150
|
+
#
|
|
1151
|
+
# CGI.new('html5')
|
|
1152
|
+
#
|
|
1153
|
+
# <b>Outside a Standard Call Environment</b>
|
|
1154
|
+
#
|
|
1155
|
+
# This section assumes that <tt>ENV['REQUEST_METHOD']</tt> is not defined;
|
|
1156
|
+
# for example:
|
|
1157
|
+
#
|
|
1158
|
+
# ENV['REQUEST_METHOD'] # => nil
|
|
1159
|
+
#
|
|
1160
|
+
# In this mode, the method reads its parameters
|
|
1161
|
+
# from the command line or (failing that) from standard input;
|
|
1162
|
+
# returns a new \CGI object.
|
|
1163
|
+
#
|
|
1164
|
+
# Parameters from command line:
|
|
1165
|
+
#
|
|
1166
|
+
# $ cat t.rb
|
|
1167
|
+
# require 'cgi'
|
|
1168
|
+
# cgi = CGI.new
|
|
1169
|
+
# p cgi.params
|
|
1170
|
+
# ruby t.rb foo=0 bar=1 foo=2 bar=3
|
|
1171
|
+
# {"foo" => ["0", "2"], "bar" => ["1", "3"]}
|
|
1172
|
+
#
|
|
1173
|
+
# Parameters from standard input:
|
|
1174
|
+
#
|
|
1175
|
+
# cgi = CGI.new
|
|
1176
|
+
# (offline mode: enter name=value pairs on standard input)
|
|
1177
|
+
# foo=0
|
|
1178
|
+
# bar=1
|
|
1179
|
+
# ^D
|
|
1180
|
+
# cgi.params
|
|
1181
|
+
# # => {"foo" => ["0"], "bar" => ["1"]}
|
|
1182
|
+
#
|
|
1183
|
+
# The end-of-file character is Ctrl-D on a Unix-like system (as above),
|
|
1184
|
+
# or Ctrl-Z on Windows.
|
|
1185
|
+
#
|
|
1186
|
+
# Otherwise, cookies and other parameters are parsed automatically from the standard CGI locations,
|
|
1187
|
+
# which vary according to the request method.
|
|
1188
|
+
#
|
|
1189
|
+
# <b>Options vs Public Methods</b>
|
|
1190
|
+
#
|
|
1191
|
+
# Some initialization options configure internal behavior only and do not provide
|
|
1192
|
+
# corresponding public getter methods:
|
|
1193
|
+
#
|
|
1194
|
+
# - <tt>accept_charset</tt>: Configures internal encoding for parsing.
|
|
1195
|
+
# The <tt>accept_charset</tt> method returns the HTTP Accept-Charset header.
|
|
1196
|
+
# - <tt>max_multipart_length</tt>: Configures internal multipart size limits.
|
|
1197
|
+
# No public getter method is available.
|
|
1198
|
+
# - <tt>tag_maker</tt>: Loads HTML generation methods (publicly accessible).
|
|
1199
|
+
#
|
|
1200
|
+
# <b>Block</b>
|
|
1201
|
+
#
|
|
1202
|
+
# If a block is given, its code is stored as a Proc;
|
|
1203
|
+
# whenever CGI::InvalidEncoding would be raised, the proc is called instead.
|
|
1204
|
+
#
|
|
1205
|
+
# In this example, the proc simply saves the error:
|
|
1206
|
+
#
|
|
1207
|
+
# encoding_errors = {}
|
|
1208
|
+
# CGI.new(accept_charset: 'EUC-JP') do |name,value|
|
|
1209
|
+
# encoding_errors[name] = value
|
|
1210
|
+
# end
|
|
1211
|
+
# # =>
|
|
1212
|
+
# #<CGI:0x000002b0ec11bcd8
|
|
1213
|
+
# @accept_charset="EUC-JP",
|
|
1214
|
+
# @accept_charset_error_block=#<Proc:0x000002b0ed2ee190 (irb):146>,
|
|
1215
|
+
# @cookies={},
|
|
1216
|
+
# @max_multipart_length=134217728,
|
|
1217
|
+
# @multipart=false,
|
|
1218
|
+
# @options={accept_charset: "EUC-JP", max_multipart_length: 134217728},
|
|
1219
|
+
# @output_cookies=nil,
|
|
1220
|
+
# @output_hidden=nil,
|
|
1221
|
+
# @params={}>
|
|
1222
|
+
#
|
|
1223
|
+
def initialize(options = {}, &block) # :yields: name, value
|
|
1224
|
+
@accept_charset_error_block = block_given? ? block : nil
|
|
1225
|
+
@options={
|
|
1226
|
+
:accept_charset=>@@accept_charset,
|
|
1227
|
+
:max_multipart_length=>@@max_multipart_length
|
|
1228
|
+
}
|
|
1229
|
+
case options
|
|
1230
|
+
when Hash
|
|
1231
|
+
@options.merge!(options)
|
|
1232
|
+
when String
|
|
1233
|
+
@options[:tag_maker]=options
|
|
1234
|
+
end
|
|
1235
|
+
@accept_charset=@options[:accept_charset]
|
|
1236
|
+
@max_multipart_length=@options[:max_multipart_length]
|
|
1237
|
+
if defined?(MOD_RUBY) && !ENV.key?("GATEWAY_INTERFACE")
|
|
1238
|
+
Apache.request.setup_cgi_env
|
|
1239
|
+
end
|
|
1240
|
+
|
|
1241
|
+
extend QueryExtension
|
|
1242
|
+
@multipart = false
|
|
1243
|
+
|
|
1244
|
+
initialize_query() # set @params, @cookies
|
|
1245
|
+
@output_cookies = nil
|
|
1246
|
+
@output_hidden = nil
|
|
1247
|
+
|
|
1248
|
+
case @options[:tag_maker]
|
|
1249
|
+
when "html3"
|
|
1250
|
+
require_relative 'html'
|
|
1251
|
+
extend Html3
|
|
1252
|
+
extend HtmlExtension
|
|
1253
|
+
when "html4"
|
|
1254
|
+
require_relative 'html'
|
|
1255
|
+
extend Html4
|
|
1256
|
+
extend HtmlExtension
|
|
1257
|
+
when "html4Tr"
|
|
1258
|
+
require_relative 'html'
|
|
1259
|
+
extend Html4Tr
|
|
1260
|
+
extend HtmlExtension
|
|
1261
|
+
when "html4Fr"
|
|
1262
|
+
require_relative 'html'
|
|
1263
|
+
extend Html4Tr
|
|
1264
|
+
extend Html4Fr
|
|
1265
|
+
extend HtmlExtension
|
|
1266
|
+
when "html5"
|
|
1267
|
+
require_relative 'html'
|
|
1268
|
+
extend Html5
|
|
1269
|
+
extend HtmlExtension
|
|
1270
|
+
end
|
|
1271
|
+
end
|
|
1272
|
+
|
|
1273
|
+
end # class CGI
|