rb2exe 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +22 -0
- data/README.md +18 -22
- data/bin/build +24 -0
- data/bin/decompress +17 -0
- data/bin/installer +19 -0
- data/bin/rb2exe +3 -0
- data/bin/rb2exe.rb +49 -0
- data/bin/traveling-ruby-2.2.2/bin.real/bundle +23 -0
- data/bin/traveling-ruby-2.2.2/bin.real/bundler +23 -0
- data/bin/traveling-ruby-2.2.2/bin.real/gem +25 -0
- data/bin/traveling-ruby-2.2.2/bin.real/irb +11 -0
- data/bin/traveling-ruby-2.2.2/bin.real/nokogiri +23 -0
- data/bin/traveling-ruby-2.2.2/bin.real/posix-spawn-benchmark +23 -0
- data/bin/traveling-ruby-2.2.2/bin.real/puma +23 -0
- data/bin/traveling-ruby-2.2.2/bin.real/pumactl +23 -0
- data/bin/traveling-ruby-2.2.2/bin.real/rackup +23 -0
- data/bin/traveling-ruby-2.2.2/bin.real/rake +33 -0
- data/bin/traveling-ruby-2.2.2/bin.real/redcarpet +23 -0
- data/bin/traveling-ruby-2.2.2/bin.real/redcloth +23 -0
- data/bin/traveling-ruby-2.2.2/bin.real/ruby +0 -0
- data/bin/traveling-ruby-2.2.2/bin.real/thin +23 -0
- data/bin/traveling-ruby-2.2.2/bin.real/unicorn +23 -0
- data/bin/traveling-ruby-2.2.2/bin.real/unicorn_rails +23 -0
- data/bin/traveling-ruby-2.2.2/bin/gem +6 -0
- data/bin/traveling-ruby-2.2.2/bin/irb +6 -0
- data/bin/traveling-ruby-2.2.2/bin/rake +6 -0
- data/bin/traveling-ruby-2.2.2/bin/ruby +6 -0
- data/bin/traveling-ruby-2.2.2/bin/ruby_environment +33 -0
- data/bin/traveling-ruby-2.2.2/info/GEM_EXTENSION_API_VERSION +1 -0
- data/bin/traveling-ruby-2.2.2/info/GEM_PLATFORM +1 -0
- data/bin/traveling-ruby-2.2.2/info/RUBY_ARCH +1 -0
- data/bin/traveling-ruby-2.2.2/info/RUBY_COMPAT_VERSION +1 -0
- data/bin/traveling-ruby-2.2.2/lib/ca-bundle.crt +13885 -0
- data/bin/traveling-ruby-2.2.2/lib/libffi.so.6 +0 -0
- data/bin/traveling-ruby-2.2.2/lib/libreadline.so.5 +0 -0
- data/bin/traveling-ruby-2.2.2/lib/libtermcap.so.2 +0 -0
- data/bin/traveling-ruby-2.2.2/lib/libz.so.1 +0 -0
- data/bin/traveling-ruby-2.2.2/lib/restore_environment.rb +17 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/English.rb +185 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/abbrev.rb +131 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/base64.rb +91 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb +557 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/bigdecimal/jacobian.rb +87 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/bigdecimal/ludcmp.rb +88 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/bigdecimal/math.rb +231 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/bigdecimal/newton.rb +79 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/bigdecimal/util.rb +127 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/cgi.rb +295 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/cgi/cookie.rb +170 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/cgi/core.rb +880 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/cgi/html.rb +1034 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/cgi/session.rb +531 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/cgi/session/pstore.rb +100 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/cgi/util.rb +194 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/cmath.rb +400 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/csv.rb +2341 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/date.rb +60 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/debug.rb +1087 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/delegate.rb +417 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/digest.rb +108 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/digest/sha2.rb +107 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/drb.rb +2 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/drb/acl.rb +232 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/drb/drb.rb +1864 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/drb/eq.rb +14 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/drb/extserv.rb +43 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/drb/extservm.rb +93 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/drb/gw.rb +160 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/drb/invokemethod.rb +34 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/drb/observer.rb +25 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/drb/ssl.rb +345 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/drb/timeridconv.rb +101 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/drb/unix.rb +117 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/e2mmap.rb +172 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/erb.rb +1022 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/expect.rb +71 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/fiddle.rb +55 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/fiddle/closure.rb +48 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/fiddle/cparser.rb +176 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/fiddle/function.rb +17 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/fiddle/import.rb +314 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/fiddle/pack.rb +128 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/fiddle/struct.rb +243 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/fiddle/types.rb +71 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/fiddle/value.rb +112 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/fileutils.rb +1761 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/find.rb +88 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/forwardable.rb +289 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/getoptlong.rb +612 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/bigdecimal.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/continuation.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/date_core.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/digest.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/digest/bubblebabble.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/digest/md5.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/digest/rmd160.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha2.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/big5.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/cp949.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/emacs_mule.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/encdb.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/euc_jp.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/euc_kr.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/euc_tw.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/gb18030.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/gb2312.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/gbk.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_1.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_10.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_11.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_13.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_14.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_15.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_16.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_2.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_3.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_4.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_5.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_6.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_7.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_8.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/iso_8859_9.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/koi8_r.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/koi8_u.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/shift_jis.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/big5.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/chinese.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/emoji.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/emoji_iso2022_kddi.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/emoji_sjis_docomo.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/emoji_sjis_kddi.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/emoji_sjis_softbank.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/escape.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/gb18030.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/gbk.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/iso2022.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/japanese.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/japanese_euc.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/japanese_sjis.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/korean.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/single_byte.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/transdb.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/utf8_mac.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/trans/utf_16_32.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/utf_16be.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/utf_16le.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/utf_32be.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/utf_32le.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/windows_1251.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/enc/windows_31j.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/etc.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/fcntl.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/fiber.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/fiddle.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/io/console.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/io/nonblock.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/io/wait.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/json/ext/generator.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/json/ext/parser.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/mathn/complex.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/mathn/rational.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/nkf.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/objspace.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/openssl.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/pathname.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/psych.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/pty.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/racc/cparse.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/rbconfig.rb +279 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/rbconfig/sizeof.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/readline.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/ripper.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/socket.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/stringio.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/strscan.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/syslog.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/thread.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/i686-linux/zlib.so +0 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/io/console/size.rb +22 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/ipaddr.rb +658 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb.rb +703 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/cmd/chws.rb +33 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/cmd/fork.rb +38 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/cmd/help.rb +41 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/cmd/load.rb +66 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/cmd/nop.rb +38 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/cmd/pushws.rb +40 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/cmd/subirb.rb +42 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/completion.rb +227 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/context.rb +419 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/ext/change-ws.rb +45 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/ext/history.rb +118 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/ext/loader.rb +128 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/ext/math-mode.rb +47 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/ext/multi-irb.rb +265 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/ext/save-history.rb +103 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/ext/tracer.rb +71 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/ext/use-loader.rb +73 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/ext/workspaces.rb +66 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/extend-command.rb +308 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/frame.rb +80 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/help.rb +36 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/init.rb +304 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/input-method.rb +191 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/inspector.rb +131 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/lc/error.rb +31 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/lc/help-message +50 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/lc/ja/encoding_aliases.rb +10 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/lc/ja/error.rb +30 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/lc/ja/help-message +53 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/locale.rb +181 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/magic-file.rb +37 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/notifier.rb +231 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/output-method.rb +91 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/ruby-lex.rb +1170 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/ruby-token.rb +266 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/slex.rb +281 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/src_encoding.rb +4 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/version.rb +15 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/workspace.rb +114 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/ws-for-case-2.rb +14 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/irb/xmp.rb +169 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json.rb +62 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/bigdecimal.rb +28 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/complex.rb +22 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/core.rb +11 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/date.rb +34 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/date_time.rb +50 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/exception.rb +31 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/ostruct.rb +31 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/range.rb +29 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/rational.rb +22 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/regexp.rb +30 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/struct.rb +30 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/symbol.rb +25 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/add/time.rb +38 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/common.rb +484 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/ext.rb +21 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/generic_object.rb +70 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/json/version.rb +8 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/kconv.rb +282 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/logger.rb +737 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/mathn.rb +191 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/matrix.rb +2161 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/matrix/eigenvalue_decomposition.rb +882 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/matrix/lup_decomposition.rb +218 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/mkmf.rb +2677 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/monitor.rb +300 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/mutex_m.rb +111 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/ftp.rb +1126 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/http.rb +1559 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/http/backward.rb +25 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/http/exceptions.rb +25 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/http/generic_request.rb +332 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/http/header.rb +452 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/http/proxy_delta.rb +16 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/http/request.rb +20 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/http/requests.rb +122 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/http/response.rb +414 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/http/responses.rb +273 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/https.rb +22 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/imap.rb +3616 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/pop.rb +1021 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/protocol.rb +420 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/smtp.rb +1073 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/net/telnet.rb +763 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/observer.rb +203 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb +801 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/open3.rb +663 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/openssl.rb +24 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/openssl/bn.rb +45 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/openssl/buffering.rb +457 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/openssl/cipher.rb +65 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/openssl/config.rb +472 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/openssl/digest.rb +88 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/openssl/ssl.rb +308 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/openssl/x509.rb +182 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optionparser.rb +1 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse.rb +1997 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/ac.rb +50 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/date.rb +17 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/shellwords.rb +6 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb +10 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/uri.rb +6 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/version.rb +70 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/ostruct.rb +286 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/pathname.rb +579 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/pp.rb +546 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/prettyprint.rb +554 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/prime.rb +487 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/profile.rb +10 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/profiler.rb +148 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/pstore.rb +484 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych.rb +498 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/class_loader.rb +101 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/coder.rb +94 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/core_ext.rb +35 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/deprecated.rb +85 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/exception.rb +13 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/handler.rb +249 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/handlers/document_stream.rb +22 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/handlers/recorder.rb +39 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/json/ruby_events.rb +19 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/json/stream.rb +16 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/json/tree_builder.rb +12 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/json/yaml_events.rb +29 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/nodes.rb +77 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/nodes/alias.rb +18 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/nodes/document.rb +60 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/nodes/mapping.rb +56 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/nodes/node.rb +55 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/nodes/scalar.rb +67 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/nodes/sequence.rb +81 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/nodes/stream.rb +37 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/omap.rb +4 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/parser.rb +51 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/scalar_scanner.rb +149 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/set.rb +4 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/stream.rb +37 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/streaming.rb +27 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/syntax_error.rb +21 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/tree_builder.rb +96 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/visitors.rb +6 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/visitors/depth_first.rb +26 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/visitors/emitter.rb +51 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/visitors/json_tree.rb +24 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/visitors/to_ruby.rb +389 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/visitors/visitor.rb +19 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/visitors/yaml_tree.rb +565 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/y.rb +9 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/racc/parser.rb +622 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake.rb +79 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/alt_system.rb +110 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb +790 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/backtrace.rb +23 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/clean.rb +76 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/cloneable.rb +16 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/contrib/compositepublisher.rb +21 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/contrib/ftptools.rb +137 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/contrib/publisher.rb +81 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/contrib/rubyforgepublisher.rb +18 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/contrib/sshpublisher.rb +61 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/contrib/sys.rb +4 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/cpu_counter.rb +125 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/default_loader.rb +14 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/dsl_definition.rb +201 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/early_time.rb +21 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/ext/core.rb +25 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/ext/module.rb +2 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/ext/pathname.rb +25 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/ext/string.rb +173 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/ext/time.rb +16 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/file_creation_task.rb +24 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/file_list.rb +428 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/file_task.rb +46 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/file_utils.rb +128 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/file_utils_ext.rb +144 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/gempackagetask.rb +4 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/invocation_chain.rb +56 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/invocation_exception_mixin.rb +16 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/late_time.rb +17 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/linked_list.rb +103 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/loaders/makefile.rb +40 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/multi_task.rb +13 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/name_space.rb +38 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/packagetask.rb +199 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/pathmap.rb +3 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/phony.rb +15 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/private_reader.rb +20 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/promise.rb +99 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/pseudo_status.rb +29 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/rake_module.rb +38 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/rake_test_loader.rb +22 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/rdoctask.rb +4 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/ruby182_test_unit_fix.rb +29 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/rule_recursion_overflow_error.rb +20 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/runtest.rb +27 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/scope.rb +42 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb +383 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/task_argument_error.rb +7 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/task_arguments.rb +98 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/task_manager.rb +310 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/tasklib.rb +24 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/testtask.rb +212 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/thread_history_display.rb +48 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/thread_pool.rb +164 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/trace_output.rb +22 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/version.rb +7 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rake/win32.rb +56 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rbconfig/datadir.rb +13 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc.rb +185 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/alias.rb +111 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/anon_class.rb +10 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/any_method.rb +316 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/attr.rb +175 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/class_module.rb +799 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/code_object.rb +429 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/code_objects.rb +5 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/comment.rb +229 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/constant.rb +186 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/context.rb +1211 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/context/section.rb +238 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/cross_reference.rb +183 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/encoding.rb +99 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/erb_partial.rb +18 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/erbio.rb +37 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/extend.rb +9 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/generator.rb +51 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/ghost_method.rb +6 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/i18n.rb +9 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/i18n/locale.rb +101 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/i18n/text.rb +125 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/include.rb +9 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/known_classes.rb +72 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markdown.rb +16133 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markdown/entities.rb +2131 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markdown/literals_1_9.rb +420 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup.rb +869 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/attr_changer.rb +22 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/attr_span.rb +29 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/attribute_manager.rb +343 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/attributes.rb +70 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/blank_line.rb +27 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/block_quote.rb +14 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/document.rb +164 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/formatter.rb +264 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/formatter_test_case.rb +767 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/hard_break.rb +31 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/heading.rb +78 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/include.rb +42 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/indented_paragraph.rb +47 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/inline.rb +1 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/list.rb +101 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/list_item.rb +99 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/paragraph.rb +28 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/parser.rb +558 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/pre_process.rb +293 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/raw.rb +69 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/rule.rb +20 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/special.rb +40 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/text_formatter_test_case.rb +114 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/to_ansi.rb +93 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/to_bs.rb +78 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/to_html.rb +398 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/to_html_crossref.rb +160 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/to_html_snippet.rb +284 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/to_joined_paragraph.rb +71 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/to_label.rb +74 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/to_markdown.rb +191 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/to_rdoc.rb +333 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/to_table_of_contents.rb +87 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/to_test.rb +69 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/to_tt_only.rb +120 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/markup/verbatim.rb +83 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/meta_method.rb +6 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/method_attr.rb +418 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/mixin.rb +120 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/normal_class.rb +92 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/normal_module.rb +73 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/options.rb +1251 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/parser.rb +310 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/parser/c.rb +1229 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/parser/changelog.rb +198 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/parser/markdown.rb +23 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/parser/rd.rb +22 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/parser/ruby.rb +2160 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/parser/ruby_tools.rb +167 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/parser/simple.rb +61 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/parser/text.rb +11 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/rd.rb +99 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/rd/block_parser.rb +1055 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/rd/inline.rb +71 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/rd/inline_parser.rb +1207 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/rdoc.rb +570 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/require.rb +51 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/ri.rb +20 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/ri/driver.rb +1497 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/ri/formatter.rb +5 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/ri/paths.rb +187 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/ri/store.rb +6 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/ri/task.rb +71 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/ruby_lex.rb +1377 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/ruby_token.rb +460 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/rubygems_hook.rb +253 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/servlet.rb +441 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/single_class.rb +25 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/stats.rb +461 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/stats/normal.rb +59 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/stats/quiet.rb +59 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/stats/verbose.rb +45 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/store.rb +979 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/task.rb +330 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/test_case.rb +217 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/text.rb +324 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/token_stream.rb +95 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/tom_doc.rb +257 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rdoc/top_level.rb +282 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/resolv-replace.rb +74 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/resolv.rb +2836 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/attlistdecl.rb +62 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/attribute.rb +191 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/cdata.rb +67 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/child.rb +96 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/comment.rb +79 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/doctype.rb +269 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/document.rb +290 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/dtd/attlistdecl.rb +10 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/dtd/dtd.rb +46 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/dtd/elementdecl.rb +17 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/dtd/entitydecl.rb +56 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/dtd/notationdecl.rb +39 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/element.rb +1240 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/encoding.rb +50 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/entity.rb +173 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/formatters/default.rb +111 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/formatters/pretty.rb +141 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/formatters/transitive.rb +57 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/functions.rb +394 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/instruction.rb +70 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/light/node.rb +195 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/namespace.rb +47 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/node.rb +75 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/output.rb +29 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/parent.rb +165 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/parseexception.rb +51 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/parsers/baseparser.rb +532 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/parsers/lightparser.rb +58 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/parsers/pullparser.rb +196 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/parsers/sax2parser.rb +272 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/parsers/streamparser.rb +52 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/parsers/treeparser.rb +100 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/parsers/ultralightparser.rb +56 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/parsers/xpathparser.rb +656 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/quickpath.rb +265 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/rexml.rb +31 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/sax2listener.rb +97 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/security.rb +27 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/source.rb +296 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/streamlistener.rb +92 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/syncenumerator.rb +32 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/text.rb +425 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/undefinednamespaceexception.rb +8 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/validation/relaxng.rb +538 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/validation/validation.rb +143 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/validation/validationexception.rb +9 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/xmldecl.rb +115 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/xmltokens.rb +84 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/xpath.rb +80 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rexml/xpath_parser.rb +703 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rinda/rinda.rb +327 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rinda/ring.rb +480 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rinda/tuplespace.rb +642 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/ripper.rb +73 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/ripper/core.rb +70 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/ripper/filter.rb +77 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/ripper/lexer.rb +186 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/ripper/sexp.rb +118 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss.rb +91 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/0.9.rb +461 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/1.0.rb +484 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/2.0.rb +142 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/atom.rb +839 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/content.rb +33 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/content/1.0.rb +9 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/content/2.0.rb +11 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/converter.rb +170 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/dublincore.rb +163 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/dublincore/1.0.rb +12 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/dublincore/2.0.rb +12 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/dublincore/atom.rb +16 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/image.rb +197 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/itunes.rb +412 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker.rb +78 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/0.9.rb +508 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/1.0.rb +435 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/2.0.rb +223 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/atom.rb +172 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/base.rb +944 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/content.rb +21 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/dublincore.rb +121 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/entry.rb +163 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/feed.rb +426 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/image.rb +111 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/itunes.rb +242 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/slash.rb +33 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/syndication.rb +18 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/taxonomy.rb +118 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/maker/trackback.rb +61 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/parser.rb +570 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/rexmlparser.rb +49 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/rss.rb +1352 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/slash.rb +51 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/syndication.rb +68 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/taxonomy.rb +147 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/trackback.rb +290 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/utils.rb +199 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/xml-stylesheet.rb +105 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/xml.rb +71 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/xmlparser.rb +94 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rss/xmlscanner.rb +121 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems.rb +1245 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/available_set.rb +164 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/basic_specification.rb +290 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/command.rb +582 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/command_manager.rb +218 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/build_command.rb +60 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/cert_command.rb +276 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/check_command.rb +93 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/cleanup_command.rb +165 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/contents_command.rb +190 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/dependency_command.rb +207 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/environment_command.rb +158 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/fetch_command.rb +77 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/generate_index_command.rb +84 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/help_command.rb +384 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/install_command.rb +347 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/list_command.rb +40 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/lock_command.rb +110 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/mirror_command.rb +25 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/open_command.rb +74 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/outdated_command.rb +32 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/owner_command.rb +99 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/pristine_command.rb +165 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/push_command.rb +98 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/query_command.rb +343 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/rdoc_command.rb +96 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/search_command.rb +40 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/server_command.rb +86 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/setup_command.rb +483 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/sources_command.rb +210 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/specification_command.rb +145 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/stale_command.rb +38 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/uninstall_command.rb +164 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/unpack_command.rb +182 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/update_command.rb +277 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/which_command.rb +90 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/yank_command.rb +107 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/compatibility.rb +59 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/config_file.rb +483 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb +73 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb +139 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/defaults.rb +177 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/dependency.rb +334 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/dependency_installer.rb +480 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/dependency_list.rb +240 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/deprecate.rb +70 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/doctor.rb +131 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/errors.rb +137 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/exceptions.rb +270 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ext.rb +18 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ext/build_error.rb +6 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ext/builder.rb +218 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ext/cmake_builder.rb +16 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ext/configure_builder.rb +23 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ext/ext_conf_builder.rb +78 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ext/rake_builder.rb +36 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/gem_runner.rb +81 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/gemcutter_utilities.rb +154 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/indexer.rb +498 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/install_default_message.rb +12 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/install_message.rb +12 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/install_update_options.rb +186 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/installer.rb +819 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/installer_test_case.rb +193 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/local_remote_options.rb +148 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/mock_gem_ui.rb +88 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/name_tuple.rb +123 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/package.rb +613 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/package/digest_io.rb +64 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/package/file_source.rb +33 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/package/io_source.rb +45 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/package/old.rb +178 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/package/source.rb +3 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/package/tar_header.rb +229 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/package/tar_reader.rb +123 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/package/tar_reader/entry.rb +147 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/package/tar_test_case.rb +137 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/package/tar_writer.rb +326 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/package_task.rb +128 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/path_support.rb +87 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/platform.rb +204 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/psych_additions.rb +9 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/psych_tree.rb +31 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/rdoc.rb +335 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/remote_fetcher.rb +398 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/request.rb +244 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/request/connection_pools.rb +83 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/request/http_pool.rb +47 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/request/https_pool.rb +10 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/request_set.rb +413 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/request_set/gem_dependency_api.rb +801 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/request_set/lockfile.rb +650 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/requirement.rb +273 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver.rb +485 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/activation_request.rb +172 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/api_set.rb +125 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/api_specification.rb +85 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/best_set.rb +78 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/composed_set.rb +66 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/conflict.rb +160 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/current_set.rb +13 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/dependency_request.rb +116 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/git_set.rb +122 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/git_specification.rb +59 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/index_set.rb +80 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/index_specification.rb +69 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/installed_specification.rb +58 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/installer_set.rb +224 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/local_specification.rb +41 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/lock_set.rb +84 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/lock_specification.rb +84 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/requirement_list.rb +81 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/set.rb +56 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/spec_specification.rb +56 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/specification.rb +110 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/stats.rb +44 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/vendor_set.rb +87 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/resolver/vendor_specification.rb +24 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/security.rb +595 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/security/policies.rb +115 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/security/policy.rb +295 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/security/signer.rb +154 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/security/trust_dir.rb +118 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/server.rb +868 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/source.rb +234 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/source/git.rb +240 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/source/installed.rb +40 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/source/local.rb +129 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/source/lock.rb +48 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/source/specific_file.rb +72 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/source/vendor.rb +27 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/source_list.rb +149 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/source_local.rb +5 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/source_specific_file.rb +4 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/spec_fetcher.rb +269 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/specification.rb +2800 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem +25 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ssl_certs/AddTrustExternalCARoot.pem +32 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem +14 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ssl_certs/DigiCertHighAssuranceEVRootCA.pem +23 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem +28 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/ssl_certs/GeoTrustGlobalCA.pem +20 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/stub_specification.rb +196 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/syck_hack.rb +76 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/test_case.rb +1430 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/test_utilities.rb +383 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/text.rb +75 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/uninstaller.rb +345 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/uri_formatter.rb +49 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/user_interaction.rb +711 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/util.rb +134 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/util/list.rb +48 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/util/stringio.rb +34 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/validator.rb +165 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/version.rb +356 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/version_option.rb +71 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/scanf.rb +776 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/securerandom.rb +293 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/set.rb +787 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/shell.rb +458 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/shell/builtin-command.rb +146 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/shell/command-processor.rb +667 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/shell/error.rb +25 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/shell/filter.rb +137 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/shell/process-controller.rb +310 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/shell/system-command.rb +158 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/shell/version.rb +15 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/shellwords.rb +215 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/singleton.rb +172 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/socket.rb +871 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/sync.rb +328 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/syslog/logger.rb +208 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb +367 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/thwait.rb +140 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/time.rb +676 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/timeout.rb +130 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/tmpdir.rb +139 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/tracer.rb +286 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/tsort.rb +450 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/ubygems.rb +10 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/un.rb +375 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/unicode_normalize.rb +78 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/unicode_normalize/normalize.rb +168 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/unicode_normalize/tables.rb +1163 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/uri.rb +111 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/uri/common.rb +720 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/uri/ftp.rb +266 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/uri/generic.rb +1557 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/uri/http.rb +106 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/uri/https.rb +22 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/uri/ldap.rb +260 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/uri/ldaps.rb +20 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/uri/mailto.rb +286 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/uri/rfc2396_parser.rb +543 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/uri/rfc3986_parser.rb +124 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/weakref.rb +106 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick.rb +226 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/accesslog.rb +158 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/cgi.rb +308 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/compat.rb +35 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/config.rb +151 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/cookie.rb +171 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/htmlutils.rb +29 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpauth.rb +95 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpauth/authenticator.rb +116 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpauth/basicauth.rb +108 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpauth/digestauth.rb +408 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpauth/htdigest.rb +131 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpauth/htgroup.rb +93 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpauth/htpasswd.rb +124 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpauth/userdb.rb +52 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpproxy.rb +337 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httprequest.rb +584 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpresponse.rb +466 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/https.rb +86 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb +278 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpservlet.rb +22 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpservlet/abstract.rb +153 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpservlet/cgi_runner.rb +46 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpservlet/cgihandler.rb +120 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpservlet/erbhandler.rb +87 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpservlet/filehandler.rb +521 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpservlet/prochandler.rb +46 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpstatus.rb +196 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httputils.rb +509 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/httpversion.rb +75 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/log.rb +155 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb +365 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/ssl.rb +196 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/utils.rb +230 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/webrick/version.rb +17 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/xmlrpc.rb +301 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/xmlrpc/base64.rb +62 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/xmlrpc/client.rb +614 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/xmlrpc/config.rb +43 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/xmlrpc/create.rb +286 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/xmlrpc/datetime.rb +129 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/xmlrpc/marshal.rb +66 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/xmlrpc/parser.rb +870 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/xmlrpc/server.rb +707 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/xmlrpc/utils.rb +171 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/yaml.rb +59 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/yaml/dbm.rb +279 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/yaml/store.rb +81 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/build_info/charlock_holmes-0.7.3.info +1 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/build_info/eventmachine-1.0.4.info +1 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/build_info/eventmachine-1.0.6.info +1 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/build_info/puma-2.11.2.info +1 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/build_info/rugged-0.21.4.info +1 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/build_info/rugged-0.22.0b5.info +1 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/bin/bundle +21 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/bin/bundle_ruby +56 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/bin/bundler +21 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/bundler.gemspec +32 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler.rb +446 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/anonymizable_uri.rb +32 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/capistrano.rb +16 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli.rb +407 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/binstubs.rb +38 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/cache.rb +35 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/check.rb +35 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/clean.rb +26 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/common.rb +56 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/config.rb +84 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/console.rb +38 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/exec.rb +44 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/gem.rb +195 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/init.rb +33 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/inject.rb +33 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/install.rb +156 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/open.rb +23 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/outdated.rb +80 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/package.rb +45 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/platform.rb +43 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/show.rb +74 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/update.rb +73 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/cli/viz.rb +27 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/constants.rb +5 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/current_ruby.rb +183 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/definition.rb +628 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/dep_proxy.rb +43 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/dependency.rb +110 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/deployment.rb +59 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/deprecate.rb +15 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/dsl.rb +331 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/endpoint_specification.rb +76 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/env.rb +75 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/environment.rb +42 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/fetcher.rb +423 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/friendly_errors.rb +85 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/gem_helper.rb +180 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/gem_helpers.rb +26 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/gem_installer.rb +9 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/gem_path_manipulation.rb +8 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/gem_tasks.rb +2 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/graph.rb +169 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/index.rb +197 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/injector.rb +64 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/installer.rb +339 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/lazy_specification.rb +83 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/lockfile_parser.rb +167 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/man/bundle +119 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/man/bundle-config +217 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/man/bundle-exec +159 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/man/bundle-install +345 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/man/bundle-package +52 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/man/bundle-platform +61 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/man/bundle-update +213 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/man/gemfile.5 +669 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/match_platform.rb +13 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/psyched_yaml.rb +26 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/remote_specification.rb +57 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/resolver.rb +334 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/retry.rb +60 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ruby_dsl.rb +11 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ruby_version.rb +117 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/rubygems_ext.rb +170 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/rubygems_integration.rb +619 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtime.rb +289 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/settings.rb +208 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/setup.rb +24 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/shared_helpers.rb +149 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/similarity_detector.rb +63 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/source.rb +46 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/source/git.rb +294 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/source/git/git_proxy.rb +162 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/source/path.rb +226 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/source/path/installer.rb +43 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/source/rubygems.rb +381 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/source_list.rb +101 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/spec_set.rb +154 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ssl_certs/.document +1 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ssl_certs/AddTrustExternalCARoot-2048.pem +25 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ssl_certs/AddTrustExternalCARoot.pem +32 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem +14 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ssl_certs/DigiCertHighAssuranceEVRootCA.pem +23 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem +28 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ssl_certs/GeoTrustGlobalCA.pem +20 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ssl_certs/certificate_manager.rb +65 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ui.rb +7 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ui/rg_proxy.rb +21 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ui/shell.rb +103 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/ui/silent.rb +44 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo.rb +5 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +266 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +69 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +3 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +90 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +63 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +415 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +43 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +43 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/net/http/faster.rb +26 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/net/http/persistent.rb +1230 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb +128 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor.rb +484 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/actions.rb +319 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +103 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +59 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +118 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +135 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +316 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +107 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/base.rb +656 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/command.rb +133 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +77 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +10 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +98 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/error.rb +32 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/group.rb +281 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/invocation.rb +178 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/line_editor.rb +17 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +35 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +88 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +73 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +175 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/parser/option.rb +125 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/parser/options.rb +218 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +71 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/runner.rb +322 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/shell.rb +81 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +421 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/shell/color.rb +149 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/shell/html.rb +126 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/util.rb +267 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/version.rb +3 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendored_molinillo.rb +2 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendored_persistent.rb +11 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendored_thor.rb +3 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/version.rb +6 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vlad.rb +11 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/worker.rb +73 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/specifications/bundler-1.9.9.gemspec +47 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/specifications/default/bigdecimal-1.2.6.gemspec +20 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/specifications/default/io-console-0.4.3.gemspec +23 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/specifications/default/json-1.8.1.gemspec +7 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/specifications/default/psych-2.0.8.gemspec +25 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/specifications/default/rake-10.4.2.gemspec +7 -0
- data/bin/traveling-ruby-2.2.2/lib/ruby/gems/2.2.0/specifications/default/rdoc-4.2.0.gemspec +7 -0
- data/bin/traveling-ruby-2.2.2/test +1 -0
- data/bin/traveling-ruby-2.2.2/test-rake +1 -0
- data/lib/rb2exe/version.rb +1 -1
- data/rb2exe.gemspec +0 -1
- metadata +1003 -16
- data/.gitignore +0 -9
@@ -0,0 +1,49 @@
|
|
1
|
+
require "rexml/document"
|
2
|
+
require "rexml/streamlistener"
|
3
|
+
|
4
|
+
module RSS
|
5
|
+
|
6
|
+
class REXMLParser < BaseParser
|
7
|
+
|
8
|
+
class << self
|
9
|
+
def listener
|
10
|
+
REXMLListener
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
def _parse
|
16
|
+
begin
|
17
|
+
REXML::Document.parse_stream(@rss, @listener)
|
18
|
+
rescue RuntimeError => e
|
19
|
+
raise NotWellFormedError.new{e.message}
|
20
|
+
rescue REXML::ParseException => e
|
21
|
+
context = e.context
|
22
|
+
line = context[0] if context
|
23
|
+
raise NotWellFormedError.new(line){e.message}
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
class REXMLListener < BaseListener
|
30
|
+
|
31
|
+
include REXML::StreamListener
|
32
|
+
include ListenerMixin
|
33
|
+
|
34
|
+
class << self
|
35
|
+
def raise_for_undefined_entity?
|
36
|
+
false
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def xmldecl(version, encoding, standalone)
|
41
|
+
super(version, encoding, standalone == "yes")
|
42
|
+
# Encoding is converted to UTF-8 when REXML parse XML.
|
43
|
+
@encoding = 'UTF-8'
|
44
|
+
end
|
45
|
+
|
46
|
+
alias_method(:cdata, :text)
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,1352 @@
|
|
1
|
+
require "time"
|
2
|
+
|
3
|
+
class Time
|
4
|
+
class << self
|
5
|
+
unless respond_to?(:w3cdtf)
|
6
|
+
# This method converts a W3CDTF string date/time format to Time object.
|
7
|
+
#
|
8
|
+
# The W3CDTF format is defined here: http://www.w3.org/TR/NOTE-datetime
|
9
|
+
#
|
10
|
+
# Time.w3cdtf('2003-02-15T13:50:05-05:00')
|
11
|
+
# # => 2003-02-15 10:50:05 -0800
|
12
|
+
# Time.w3cdtf('2003-02-15T13:50:05-05:00').class
|
13
|
+
# # => Time
|
14
|
+
def w3cdtf(date)
|
15
|
+
if /\A\s*
|
16
|
+
(-?\d+)-(\d\d)-(\d\d)
|
17
|
+
(?:T
|
18
|
+
(\d\d):(\d\d)(?::(\d\d))?
|
19
|
+
(\.\d+)?
|
20
|
+
(Z|[+-]\d\d:\d\d)?)?
|
21
|
+
\s*\z/ix =~ date and (($5 and $8) or (!$5 and !$8))
|
22
|
+
datetime = [$1.to_i, $2.to_i, $3.to_i, $4.to_i, $5.to_i, $6.to_i]
|
23
|
+
usec = 0
|
24
|
+
usec = $7.to_f * 1000000 if $7
|
25
|
+
zone = $8
|
26
|
+
if zone
|
27
|
+
off = zone_offset(zone, datetime[0])
|
28
|
+
datetime = apply_offset(*(datetime + [off]))
|
29
|
+
datetime << usec
|
30
|
+
time = Time.utc(*datetime)
|
31
|
+
force_zone!(time, zone, off)
|
32
|
+
time
|
33
|
+
else
|
34
|
+
datetime << usec
|
35
|
+
Time.local(*datetime)
|
36
|
+
end
|
37
|
+
else
|
38
|
+
raise ArgumentError.new("invalid date: #{date.inspect}")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
unless method_defined?(:w3cdtf)
|
45
|
+
# This method converts a Time object to a String. The String contains the
|
46
|
+
# time in W3CDTF date/time format.
|
47
|
+
#
|
48
|
+
# The W3CDTF format is defined here: http://www.w3.org/TR/NOTE-datetime
|
49
|
+
#
|
50
|
+
# Time.now.w3cdtf
|
51
|
+
# # => "2013-08-26T14:12:10.817124-07:00"
|
52
|
+
def w3cdtf
|
53
|
+
if usec.zero?
|
54
|
+
fraction_digits = 0
|
55
|
+
else
|
56
|
+
fraction_digits = Math.log10(usec.to_s.sub(/0*$/, '').to_i).floor + 1
|
57
|
+
end
|
58
|
+
xmlschema(fraction_digits)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
|
64
|
+
require "English"
|
65
|
+
require "rss/utils"
|
66
|
+
require "rss/converter"
|
67
|
+
require "rss/xml-stylesheet"
|
68
|
+
|
69
|
+
module RSS
|
70
|
+
|
71
|
+
# The current version of RSS
|
72
|
+
VERSION = "0.2.7"
|
73
|
+
|
74
|
+
# The URI of the RSS 1.0 specification
|
75
|
+
URI = "http://purl.org/rss/1.0/"
|
76
|
+
|
77
|
+
DEBUG = false # :nodoc:
|
78
|
+
|
79
|
+
# The basic error all other RSS errors stem from. Rescue this error if you
|
80
|
+
# want to handle any given RSS error and you don't care about the details.
|
81
|
+
class Error < StandardError; end
|
82
|
+
|
83
|
+
# RSS, being an XML-based format, has namespace support. If two namespaces are
|
84
|
+
# declared with the same name, an OverlappedPrefixError will be raised.
|
85
|
+
class OverlappedPrefixError < Error
|
86
|
+
attr_reader :prefix
|
87
|
+
def initialize(prefix)
|
88
|
+
@prefix = prefix
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# The InvalidRSSError error is the base class for a variety of errors
|
93
|
+
# related to a poorly-formed RSS feed. Rescue this error if you only
|
94
|
+
# care that a file could be invalid, but don't care how it is invalid.
|
95
|
+
class InvalidRSSError < Error; end
|
96
|
+
|
97
|
+
# Since RSS is based on XML, it must have opening and closing tags that
|
98
|
+
# match. If they don't, a MissingTagError will be raised.
|
99
|
+
class MissingTagError < InvalidRSSError
|
100
|
+
attr_reader :tag, :parent
|
101
|
+
def initialize(tag, parent)
|
102
|
+
@tag, @parent = tag, parent
|
103
|
+
super("tag <#{tag}> is missing in tag <#{parent}>")
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# Some tags must only exist a specific number of times in a given RSS feed.
|
108
|
+
# If a feed has too many occurrences of one of these tags, a TooMuchTagError
|
109
|
+
# will be raised.
|
110
|
+
class TooMuchTagError < InvalidRSSError
|
111
|
+
attr_reader :tag, :parent
|
112
|
+
def initialize(tag, parent)
|
113
|
+
@tag, @parent = tag, parent
|
114
|
+
super("tag <#{tag}> is too much in tag <#{parent}>")
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# Certain attributes are required on specific tags in an RSS feed. If a feed
|
119
|
+
# is missing one of these attributes, a MissingAttributeError is raised.
|
120
|
+
class MissingAttributeError < InvalidRSSError
|
121
|
+
attr_reader :tag, :attribute
|
122
|
+
def initialize(tag, attribute)
|
123
|
+
@tag, @attribute = tag, attribute
|
124
|
+
super("attribute <#{attribute}> is missing in tag <#{tag}>")
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
# RSS does not allow for free-form tag names, so if an RSS feed contains a
|
129
|
+
# tag that we don't know about, an UnknownTagError is raised.
|
130
|
+
class UnknownTagError < InvalidRSSError
|
131
|
+
attr_reader :tag, :uri
|
132
|
+
def initialize(tag, uri)
|
133
|
+
@tag, @uri = tag, uri
|
134
|
+
super("tag <#{tag}> is unknown in namespace specified by uri <#{uri}>")
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
# Raised when an unexpected tag is encountered.
|
139
|
+
class NotExpectedTagError < InvalidRSSError
|
140
|
+
attr_reader :tag, :uri, :parent
|
141
|
+
def initialize(tag, uri, parent)
|
142
|
+
@tag, @uri, @parent = tag, uri, parent
|
143
|
+
super("tag <{#{uri}}#{tag}> is not expected in tag <#{parent}>")
|
144
|
+
end
|
145
|
+
end
|
146
|
+
# For backward compatibility :X
|
147
|
+
NotExceptedTagError = NotExpectedTagError # :nodoc:
|
148
|
+
|
149
|
+
# Attributes are in key-value form, and if there's no value provided for an
|
150
|
+
# attribute, a NotAvailableValueError will be raised.
|
151
|
+
class NotAvailableValueError < InvalidRSSError
|
152
|
+
attr_reader :tag, :value, :attribute
|
153
|
+
def initialize(tag, value, attribute=nil)
|
154
|
+
@tag, @value, @attribute = tag, value, attribute
|
155
|
+
message = "value <#{value}> of "
|
156
|
+
message << "attribute <#{attribute}> of " if attribute
|
157
|
+
message << "tag <#{tag}> is not available."
|
158
|
+
super(message)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# Raised when an unknown conversion error occurs.
|
163
|
+
class UnknownConversionMethodError < Error
|
164
|
+
attr_reader :to, :from
|
165
|
+
def initialize(to, from)
|
166
|
+
@to = to
|
167
|
+
@from = from
|
168
|
+
super("can't convert to #{to} from #{from}.")
|
169
|
+
end
|
170
|
+
end
|
171
|
+
# for backward compatibility
|
172
|
+
UnknownConvertMethod = UnknownConversionMethodError # :nodoc:
|
173
|
+
|
174
|
+
# Raised when a conversion failure occurs.
|
175
|
+
class ConversionError < Error
|
176
|
+
attr_reader :string, :to, :from
|
177
|
+
def initialize(string, to, from)
|
178
|
+
@string = string
|
179
|
+
@to = to
|
180
|
+
@from = from
|
181
|
+
super("can't convert #{@string} to #{to} from #{from}.")
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
# Raised when a required variable is not set.
|
186
|
+
class NotSetError < Error
|
187
|
+
attr_reader :name, :variables
|
188
|
+
def initialize(name, variables)
|
189
|
+
@name = name
|
190
|
+
@variables = variables
|
191
|
+
super("required variables of #{@name} are not set: #{@variables.join(', ')}")
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
# Raised when a RSS::Maker attempts to use an unknown maker.
|
196
|
+
class UnsupportedMakerVersionError < Error
|
197
|
+
attr_reader :version
|
198
|
+
def initialize(version)
|
199
|
+
@version = version
|
200
|
+
super("Maker doesn't support version: #{@version}")
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
module BaseModel
|
205
|
+
include Utils
|
206
|
+
|
207
|
+
def install_have_child_element(tag_name, uri, occurs, name=nil, type=nil)
|
208
|
+
name ||= tag_name
|
209
|
+
add_need_initialize_variable(name)
|
210
|
+
install_model(tag_name, uri, occurs, name)
|
211
|
+
|
212
|
+
writer_type, reader_type = type
|
213
|
+
def_corresponded_attr_writer name, writer_type
|
214
|
+
def_corresponded_attr_reader name, reader_type
|
215
|
+
install_element(name) do |n, elem_name|
|
216
|
+
<<-EOC
|
217
|
+
if @#{n}
|
218
|
+
"\#{@#{n}.to_s(need_convert, indent)}"
|
219
|
+
else
|
220
|
+
''
|
221
|
+
end
|
222
|
+
EOC
|
223
|
+
end
|
224
|
+
end
|
225
|
+
alias_method(:install_have_attribute_element, :install_have_child_element)
|
226
|
+
|
227
|
+
def install_have_children_element(tag_name, uri, occurs, name=nil, plural_name=nil)
|
228
|
+
name ||= tag_name
|
229
|
+
plural_name ||= "#{name}s"
|
230
|
+
add_have_children_element(name, plural_name)
|
231
|
+
add_plural_form(name, plural_name)
|
232
|
+
install_model(tag_name, uri, occurs, plural_name, true)
|
233
|
+
|
234
|
+
def_children_accessor(name, plural_name)
|
235
|
+
install_element(name, "s") do |n, elem_name|
|
236
|
+
<<-EOC
|
237
|
+
rv = []
|
238
|
+
@#{n}.each do |x|
|
239
|
+
value = "\#{x.to_s(need_convert, indent)}"
|
240
|
+
rv << value if /\\A\\s*\\z/ !~ value
|
241
|
+
end
|
242
|
+
rv.join("\n")
|
243
|
+
EOC
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
def install_text_element(tag_name, uri, occurs, name=nil, type=nil,
|
248
|
+
disp_name=nil)
|
249
|
+
name ||= tag_name
|
250
|
+
disp_name ||= name
|
251
|
+
self::ELEMENTS << name unless self::ELEMENTS.include?(name)
|
252
|
+
add_need_initialize_variable(name)
|
253
|
+
install_model(tag_name, uri, occurs, name)
|
254
|
+
|
255
|
+
def_corresponded_attr_writer(name, type, disp_name)
|
256
|
+
def_corresponded_attr_reader(name, type || :convert)
|
257
|
+
install_element(name) do |n, elem_name|
|
258
|
+
<<-EOC
|
259
|
+
if respond_to?(:#{n}_content)
|
260
|
+
content = #{n}_content
|
261
|
+
else
|
262
|
+
content = @#{n}
|
263
|
+
end
|
264
|
+
if content
|
265
|
+
rv = "\#{indent}<#{elem_name}>"
|
266
|
+
value = html_escape(content)
|
267
|
+
if need_convert
|
268
|
+
rv << convert(value)
|
269
|
+
else
|
270
|
+
rv << value
|
271
|
+
end
|
272
|
+
rv << "</#{elem_name}>"
|
273
|
+
rv
|
274
|
+
else
|
275
|
+
''
|
276
|
+
end
|
277
|
+
EOC
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
def install_date_element(tag_name, uri, occurs, name=nil, type=nil, disp_name=nil)
|
282
|
+
name ||= tag_name
|
283
|
+
type ||= :w3cdtf
|
284
|
+
disp_name ||= name
|
285
|
+
self::ELEMENTS << name
|
286
|
+
add_need_initialize_variable(name)
|
287
|
+
install_model(tag_name, uri, occurs, name)
|
288
|
+
|
289
|
+
# accessor
|
290
|
+
convert_attr_reader name
|
291
|
+
date_writer(name, type, disp_name)
|
292
|
+
|
293
|
+
install_element(name) do |n, elem_name|
|
294
|
+
<<-EOC
|
295
|
+
if @#{n}
|
296
|
+
rv = "\#{indent}<#{elem_name}>"
|
297
|
+
value = html_escape(@#{n}.#{type})
|
298
|
+
if need_convert
|
299
|
+
rv << convert(value)
|
300
|
+
else
|
301
|
+
rv << value
|
302
|
+
end
|
303
|
+
rv << "</#{elem_name}>"
|
304
|
+
rv
|
305
|
+
else
|
306
|
+
''
|
307
|
+
end
|
308
|
+
EOC
|
309
|
+
end
|
310
|
+
|
311
|
+
end
|
312
|
+
|
313
|
+
private
|
314
|
+
def install_element(name, postfix="")
|
315
|
+
elem_name = name.sub('_', ':')
|
316
|
+
method_name = "#{name}_element#{postfix}"
|
317
|
+
add_to_element_method(method_name)
|
318
|
+
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
|
319
|
+
def #{method_name}(need_convert=true, indent='')
|
320
|
+
#{yield(name, elem_name)}
|
321
|
+
end
|
322
|
+
private :#{method_name}
|
323
|
+
EOC
|
324
|
+
end
|
325
|
+
|
326
|
+
def inherit_convert_attr_reader(*attrs)
|
327
|
+
attrs.each do |attr|
|
328
|
+
attr = attr.id2name if attr.kind_of?(Integer)
|
329
|
+
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
|
330
|
+
def #{attr}_without_inherit
|
331
|
+
convert(@#{attr})
|
332
|
+
end
|
333
|
+
|
334
|
+
def #{attr}
|
335
|
+
if @#{attr}
|
336
|
+
#{attr}_without_inherit
|
337
|
+
elsif @parent
|
338
|
+
@parent.#{attr}
|
339
|
+
else
|
340
|
+
nil
|
341
|
+
end
|
342
|
+
end
|
343
|
+
EOC
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
def uri_convert_attr_reader(*attrs)
|
348
|
+
attrs.each do |attr|
|
349
|
+
attr = attr.id2name if attr.kind_of?(Integer)
|
350
|
+
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
|
351
|
+
def #{attr}_without_base
|
352
|
+
convert(@#{attr})
|
353
|
+
end
|
354
|
+
|
355
|
+
def #{attr}
|
356
|
+
value = #{attr}_without_base
|
357
|
+
return nil if value.nil?
|
358
|
+
if /\\A[a-z][a-z0-9+.\\-]*:/i =~ value
|
359
|
+
value
|
360
|
+
else
|
361
|
+
"\#{base}\#{value}"
|
362
|
+
end
|
363
|
+
end
|
364
|
+
EOC
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
368
|
+
def convert_attr_reader(*attrs)
|
369
|
+
attrs.each do |attr|
|
370
|
+
attr = attr.id2name if attr.kind_of?(Integer)
|
371
|
+
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
|
372
|
+
def #{attr}
|
373
|
+
convert(@#{attr})
|
374
|
+
end
|
375
|
+
EOC
|
376
|
+
end
|
377
|
+
end
|
378
|
+
|
379
|
+
def yes_clean_other_attr_reader(*attrs)
|
380
|
+
attrs.each do |attr|
|
381
|
+
attr = attr.id2name if attr.kind_of?(Integer)
|
382
|
+
module_eval(<<-EOC, __FILE__, __LINE__ + 1)
|
383
|
+
attr_reader(:#{attr})
|
384
|
+
def #{attr}?
|
385
|
+
YesCleanOther.parse(@#{attr})
|
386
|
+
end
|
387
|
+
EOC
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
391
|
+
def yes_other_attr_reader(*attrs)
|
392
|
+
attrs.each do |attr|
|
393
|
+
attr = attr.id2name if attr.kind_of?(Integer)
|
394
|
+
module_eval(<<-EOC, __FILE__, __LINE__ + 1)
|
395
|
+
attr_reader(:#{attr})
|
396
|
+
def #{attr}?
|
397
|
+
Utils::YesOther.parse(@#{attr})
|
398
|
+
end
|
399
|
+
EOC
|
400
|
+
end
|
401
|
+
end
|
402
|
+
|
403
|
+
def csv_attr_reader(*attrs)
|
404
|
+
separator = nil
|
405
|
+
if attrs.last.is_a?(Hash)
|
406
|
+
options = attrs.pop
|
407
|
+
separator = options[:separator]
|
408
|
+
end
|
409
|
+
separator ||= ", "
|
410
|
+
attrs.each do |attr|
|
411
|
+
attr = attr.id2name if attr.kind_of?(Integer)
|
412
|
+
module_eval(<<-EOC, __FILE__, __LINE__ + 1)
|
413
|
+
attr_reader(:#{attr})
|
414
|
+
def #{attr}_content
|
415
|
+
if @#{attr}.nil?
|
416
|
+
@#{attr}
|
417
|
+
else
|
418
|
+
@#{attr}.join(#{separator.dump})
|
419
|
+
end
|
420
|
+
end
|
421
|
+
EOC
|
422
|
+
end
|
423
|
+
end
|
424
|
+
|
425
|
+
def date_writer(name, type, disp_name=name)
|
426
|
+
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
|
427
|
+
def #{name}=(new_value)
|
428
|
+
if new_value.nil?
|
429
|
+
@#{name} = new_value
|
430
|
+
elsif new_value.kind_of?(Time)
|
431
|
+
@#{name} = new_value.dup
|
432
|
+
else
|
433
|
+
if @do_validate
|
434
|
+
begin
|
435
|
+
@#{name} = Time.__send__('#{type}', new_value)
|
436
|
+
rescue ArgumentError
|
437
|
+
raise NotAvailableValueError.new('#{disp_name}', new_value)
|
438
|
+
end
|
439
|
+
else
|
440
|
+
@#{name} = nil
|
441
|
+
if /\\A\\s*\\z/ !~ new_value.to_s
|
442
|
+
begin
|
443
|
+
unless Date._parse(new_value, false).empty?
|
444
|
+
@#{name} = Time.parse(new_value)
|
445
|
+
end
|
446
|
+
rescue ArgumentError
|
447
|
+
end
|
448
|
+
end
|
449
|
+
end
|
450
|
+
end
|
451
|
+
|
452
|
+
# Is it need?
|
453
|
+
if @#{name}
|
454
|
+
class << @#{name}
|
455
|
+
undef_method(:to_s)
|
456
|
+
alias_method(:to_s, :#{type})
|
457
|
+
end
|
458
|
+
end
|
459
|
+
|
460
|
+
end
|
461
|
+
EOC
|
462
|
+
end
|
463
|
+
|
464
|
+
def integer_writer(name, disp_name=name)
|
465
|
+
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
|
466
|
+
def #{name}=(new_value)
|
467
|
+
if new_value.nil?
|
468
|
+
@#{name} = new_value
|
469
|
+
else
|
470
|
+
if @do_validate
|
471
|
+
begin
|
472
|
+
@#{name} = Integer(new_value)
|
473
|
+
rescue ArgumentError
|
474
|
+
raise NotAvailableValueError.new('#{disp_name}', new_value)
|
475
|
+
end
|
476
|
+
else
|
477
|
+
@#{name} = new_value.to_i
|
478
|
+
end
|
479
|
+
end
|
480
|
+
end
|
481
|
+
EOC
|
482
|
+
end
|
483
|
+
|
484
|
+
def positive_integer_writer(name, disp_name=name)
|
485
|
+
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
|
486
|
+
def #{name}=(new_value)
|
487
|
+
if new_value.nil?
|
488
|
+
@#{name} = new_value
|
489
|
+
else
|
490
|
+
if @do_validate
|
491
|
+
begin
|
492
|
+
tmp = Integer(new_value)
|
493
|
+
raise ArgumentError if tmp <= 0
|
494
|
+
@#{name} = tmp
|
495
|
+
rescue ArgumentError
|
496
|
+
raise NotAvailableValueError.new('#{disp_name}', new_value)
|
497
|
+
end
|
498
|
+
else
|
499
|
+
@#{name} = new_value.to_i
|
500
|
+
end
|
501
|
+
end
|
502
|
+
end
|
503
|
+
EOC
|
504
|
+
end
|
505
|
+
|
506
|
+
def boolean_writer(name, disp_name=name)
|
507
|
+
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
|
508
|
+
def #{name}=(new_value)
|
509
|
+
if new_value.nil?
|
510
|
+
@#{name} = new_value
|
511
|
+
else
|
512
|
+
if @do_validate and
|
513
|
+
![true, false, "true", "false"].include?(new_value)
|
514
|
+
raise NotAvailableValueError.new('#{disp_name}', new_value)
|
515
|
+
end
|
516
|
+
if [true, false].include?(new_value)
|
517
|
+
@#{name} = new_value
|
518
|
+
else
|
519
|
+
@#{name} = new_value == "true"
|
520
|
+
end
|
521
|
+
end
|
522
|
+
end
|
523
|
+
EOC
|
524
|
+
end
|
525
|
+
|
526
|
+
def text_type_writer(name, disp_name=name)
|
527
|
+
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
|
528
|
+
def #{name}=(new_value)
|
529
|
+
if @do_validate and
|
530
|
+
!["text", "html", "xhtml", nil].include?(new_value)
|
531
|
+
raise NotAvailableValueError.new('#{disp_name}', new_value)
|
532
|
+
end
|
533
|
+
@#{name} = new_value
|
534
|
+
end
|
535
|
+
EOC
|
536
|
+
end
|
537
|
+
|
538
|
+
def content_writer(name, disp_name=name)
|
539
|
+
klass_name = "self.class::#{Utils.to_class_name(name)}"
|
540
|
+
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
|
541
|
+
def #{name}=(new_value)
|
542
|
+
if new_value.is_a?(#{klass_name})
|
543
|
+
@#{name} = new_value
|
544
|
+
else
|
545
|
+
@#{name} = #{klass_name}.new
|
546
|
+
@#{name}.content = new_value
|
547
|
+
end
|
548
|
+
end
|
549
|
+
EOC
|
550
|
+
end
|
551
|
+
|
552
|
+
def yes_clean_other_writer(name, disp_name=name)
|
553
|
+
module_eval(<<-EOC, __FILE__, __LINE__ + 1)
|
554
|
+
def #{name}=(value)
|
555
|
+
value = (value ? "yes" : "no") if [true, false].include?(value)
|
556
|
+
@#{name} = value
|
557
|
+
end
|
558
|
+
EOC
|
559
|
+
end
|
560
|
+
|
561
|
+
def yes_other_writer(name, disp_name=name)
|
562
|
+
module_eval(<<-EOC, __FILE__, __LINE__ + 1)
|
563
|
+
def #{name}=(new_value)
|
564
|
+
if [true, false].include?(new_value)
|
565
|
+
new_value = new_value ? "yes" : "no"
|
566
|
+
end
|
567
|
+
@#{name} = new_value
|
568
|
+
end
|
569
|
+
EOC
|
570
|
+
end
|
571
|
+
|
572
|
+
def csv_writer(name, disp_name=name)
|
573
|
+
module_eval(<<-EOC, __FILE__, __LINE__ + 1)
|
574
|
+
def #{name}=(new_value)
|
575
|
+
@#{name} = Utils::CSV.parse(new_value)
|
576
|
+
end
|
577
|
+
EOC
|
578
|
+
end
|
579
|
+
|
580
|
+
def csv_integer_writer(name, disp_name=name)
|
581
|
+
module_eval(<<-EOC, __FILE__, __LINE__ + 1)
|
582
|
+
def #{name}=(new_value)
|
583
|
+
@#{name} = Utils::CSV.parse(new_value) {|v| Integer(v)}
|
584
|
+
end
|
585
|
+
EOC
|
586
|
+
end
|
587
|
+
|
588
|
+
def def_children_accessor(accessor_name, plural_name)
|
589
|
+
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
|
590
|
+
def #{plural_name}
|
591
|
+
@#{accessor_name}
|
592
|
+
end
|
593
|
+
|
594
|
+
def #{accessor_name}(*args)
|
595
|
+
if args.empty?
|
596
|
+
@#{accessor_name}.first
|
597
|
+
else
|
598
|
+
@#{accessor_name}[*args]
|
599
|
+
end
|
600
|
+
end
|
601
|
+
|
602
|
+
def #{accessor_name}=(*args)
|
603
|
+
receiver = self.class.name
|
604
|
+
warn("Warning:\#{caller.first.sub(/:in `.*'\z/, '')}: " \
|
605
|
+
"Don't use `\#{receiver}\##{accessor_name} = XXX'/" \
|
606
|
+
"`\#{receiver}\#set_#{accessor_name}(XXX)'. " \
|
607
|
+
"Those APIs are not sense of Ruby. " \
|
608
|
+
"Use `\#{receiver}\##{plural_name} << XXX' instead of them.")
|
609
|
+
if args.size == 1
|
610
|
+
@#{accessor_name}.push(args[0])
|
611
|
+
else
|
612
|
+
@#{accessor_name}.__send__("[]=", *args)
|
613
|
+
end
|
614
|
+
end
|
615
|
+
alias_method(:set_#{accessor_name}, :#{accessor_name}=)
|
616
|
+
EOC
|
617
|
+
end
|
618
|
+
end
|
619
|
+
|
620
|
+
module SetupMaker
|
621
|
+
def setup_maker(maker)
|
622
|
+
target = maker_target(maker)
|
623
|
+
unless target.nil?
|
624
|
+
setup_maker_attributes(target)
|
625
|
+
setup_maker_element(target)
|
626
|
+
setup_maker_elements(target)
|
627
|
+
end
|
628
|
+
end
|
629
|
+
|
630
|
+
private
|
631
|
+
def maker_target(maker)
|
632
|
+
nil
|
633
|
+
end
|
634
|
+
|
635
|
+
def setup_maker_attributes(target)
|
636
|
+
end
|
637
|
+
|
638
|
+
def setup_maker_element(target)
|
639
|
+
self.class.need_initialize_variables.each do |var|
|
640
|
+
value = __send__(var)
|
641
|
+
next if value.nil?
|
642
|
+
if value.respond_to?("setup_maker") and
|
643
|
+
!not_need_to_call_setup_maker_variables.include?(var)
|
644
|
+
value.setup_maker(target)
|
645
|
+
else
|
646
|
+
setter = "#{var}="
|
647
|
+
if target.respond_to?(setter)
|
648
|
+
target.__send__(setter, value)
|
649
|
+
end
|
650
|
+
end
|
651
|
+
end
|
652
|
+
end
|
653
|
+
|
654
|
+
def not_need_to_call_setup_maker_variables
|
655
|
+
[]
|
656
|
+
end
|
657
|
+
|
658
|
+
def setup_maker_elements(parent)
|
659
|
+
self.class.have_children_elements.each do |name, plural_name|
|
660
|
+
if parent.respond_to?(plural_name)
|
661
|
+
target = parent.__send__(plural_name)
|
662
|
+
__send__(plural_name).each do |elem|
|
663
|
+
elem.setup_maker(target)
|
664
|
+
end
|
665
|
+
end
|
666
|
+
end
|
667
|
+
end
|
668
|
+
end
|
669
|
+
|
670
|
+
class Element
|
671
|
+
extend BaseModel
|
672
|
+
include Utils
|
673
|
+
extend Utils::InheritedReader
|
674
|
+
include SetupMaker
|
675
|
+
|
676
|
+
INDENT = " "
|
677
|
+
|
678
|
+
MUST_CALL_VALIDATORS = {}
|
679
|
+
MODELS = []
|
680
|
+
GET_ATTRIBUTES = []
|
681
|
+
HAVE_CHILDREN_ELEMENTS = []
|
682
|
+
TO_ELEMENT_METHODS = []
|
683
|
+
NEED_INITIALIZE_VARIABLES = []
|
684
|
+
PLURAL_FORMS = {}
|
685
|
+
|
686
|
+
class << self
|
687
|
+
def must_call_validators
|
688
|
+
inherited_hash_reader("MUST_CALL_VALIDATORS")
|
689
|
+
end
|
690
|
+
def models
|
691
|
+
inherited_array_reader("MODELS")
|
692
|
+
end
|
693
|
+
def get_attributes
|
694
|
+
inherited_array_reader("GET_ATTRIBUTES")
|
695
|
+
end
|
696
|
+
def have_children_elements
|
697
|
+
inherited_array_reader("HAVE_CHILDREN_ELEMENTS")
|
698
|
+
end
|
699
|
+
def to_element_methods
|
700
|
+
inherited_array_reader("TO_ELEMENT_METHODS")
|
701
|
+
end
|
702
|
+
def need_initialize_variables
|
703
|
+
inherited_array_reader("NEED_INITIALIZE_VARIABLES")
|
704
|
+
end
|
705
|
+
def plural_forms
|
706
|
+
inherited_hash_reader("PLURAL_FORMS")
|
707
|
+
end
|
708
|
+
|
709
|
+
def inherited_base
|
710
|
+
::RSS::Element
|
711
|
+
end
|
712
|
+
|
713
|
+
def inherited(klass)
|
714
|
+
klass.const_set(:MUST_CALL_VALIDATORS, {})
|
715
|
+
klass.const_set(:MODELS, [])
|
716
|
+
klass.const_set(:GET_ATTRIBUTES, [])
|
717
|
+
klass.const_set(:HAVE_CHILDREN_ELEMENTS, [])
|
718
|
+
klass.const_set(:TO_ELEMENT_METHODS, [])
|
719
|
+
klass.const_set(:NEED_INITIALIZE_VARIABLES, [])
|
720
|
+
klass.const_set(:PLURAL_FORMS, {})
|
721
|
+
|
722
|
+
tag_name = klass.name.split(/::/).last
|
723
|
+
tag_name[0, 1] = tag_name[0, 1].downcase
|
724
|
+
klass.instance_variable_set(:@tag_name, tag_name)
|
725
|
+
klass.instance_variable_set(:@have_content, false)
|
726
|
+
end
|
727
|
+
|
728
|
+
def install_must_call_validator(prefix, uri)
|
729
|
+
self::MUST_CALL_VALIDATORS[uri] = prefix
|
730
|
+
end
|
731
|
+
|
732
|
+
def install_model(tag, uri, occurs=nil, getter=nil, plural=false)
|
733
|
+
getter ||= tag
|
734
|
+
if m = self::MODELS.find {|t, u, o, g, p| t == tag and u == uri}
|
735
|
+
m[2] = occurs
|
736
|
+
else
|
737
|
+
self::MODELS << [tag, uri, occurs, getter, plural]
|
738
|
+
end
|
739
|
+
end
|
740
|
+
|
741
|
+
def install_get_attribute(name, uri, required=true,
|
742
|
+
type=nil, disp_name=nil,
|
743
|
+
element_name=nil)
|
744
|
+
disp_name ||= name
|
745
|
+
element_name ||= name
|
746
|
+
writer_type, reader_type = type
|
747
|
+
def_corresponded_attr_writer name, writer_type, disp_name
|
748
|
+
def_corresponded_attr_reader name, reader_type
|
749
|
+
if type == :boolean and /^is/ =~ name
|
750
|
+
alias_method "#{$POSTMATCH}?", name
|
751
|
+
end
|
752
|
+
self::GET_ATTRIBUTES << [name, uri, required, element_name]
|
753
|
+
add_need_initialize_variable(disp_name)
|
754
|
+
end
|
755
|
+
|
756
|
+
def def_corresponded_attr_writer(name, type=nil, disp_name=nil)
|
757
|
+
disp_name ||= name
|
758
|
+
case type
|
759
|
+
when :integer
|
760
|
+
integer_writer name, disp_name
|
761
|
+
when :positive_integer
|
762
|
+
positive_integer_writer name, disp_name
|
763
|
+
when :boolean
|
764
|
+
boolean_writer name, disp_name
|
765
|
+
when :w3cdtf, :rfc822, :rfc2822
|
766
|
+
date_writer name, type, disp_name
|
767
|
+
when :text_type
|
768
|
+
text_type_writer name, disp_name
|
769
|
+
when :content
|
770
|
+
content_writer name, disp_name
|
771
|
+
when :yes_clean_other
|
772
|
+
yes_clean_other_writer name, disp_name
|
773
|
+
when :yes_other
|
774
|
+
yes_other_writer name, disp_name
|
775
|
+
when :csv
|
776
|
+
csv_writer name
|
777
|
+
when :csv_integer
|
778
|
+
csv_integer_writer name
|
779
|
+
else
|
780
|
+
attr_writer name
|
781
|
+
end
|
782
|
+
end
|
783
|
+
|
784
|
+
def def_corresponded_attr_reader(name, type=nil)
|
785
|
+
case type
|
786
|
+
when :inherit
|
787
|
+
inherit_convert_attr_reader name
|
788
|
+
when :uri
|
789
|
+
uri_convert_attr_reader name
|
790
|
+
when :yes_clean_other
|
791
|
+
yes_clean_other_attr_reader name
|
792
|
+
when :yes_other
|
793
|
+
yes_other_attr_reader name
|
794
|
+
when :csv
|
795
|
+
csv_attr_reader name
|
796
|
+
when :csv_integer
|
797
|
+
csv_attr_reader name, :separator => ","
|
798
|
+
else
|
799
|
+
convert_attr_reader name
|
800
|
+
end
|
801
|
+
end
|
802
|
+
|
803
|
+
def content_setup(type=nil, disp_name=nil)
|
804
|
+
writer_type, reader_type = type
|
805
|
+
def_corresponded_attr_writer :content, writer_type, disp_name
|
806
|
+
def_corresponded_attr_reader :content, reader_type
|
807
|
+
@have_content = true
|
808
|
+
end
|
809
|
+
|
810
|
+
def have_content?
|
811
|
+
@have_content
|
812
|
+
end
|
813
|
+
|
814
|
+
def add_have_children_element(variable_name, plural_name)
|
815
|
+
self::HAVE_CHILDREN_ELEMENTS << [variable_name, plural_name]
|
816
|
+
end
|
817
|
+
|
818
|
+
def add_to_element_method(method_name)
|
819
|
+
self::TO_ELEMENT_METHODS << method_name
|
820
|
+
end
|
821
|
+
|
822
|
+
def add_need_initialize_variable(variable_name)
|
823
|
+
self::NEED_INITIALIZE_VARIABLES << variable_name
|
824
|
+
end
|
825
|
+
|
826
|
+
def add_plural_form(singular, plural)
|
827
|
+
self::PLURAL_FORMS[singular] = plural
|
828
|
+
end
|
829
|
+
|
830
|
+
def required_prefix
|
831
|
+
nil
|
832
|
+
end
|
833
|
+
|
834
|
+
def required_uri
|
835
|
+
""
|
836
|
+
end
|
837
|
+
|
838
|
+
def need_parent?
|
839
|
+
false
|
840
|
+
end
|
841
|
+
|
842
|
+
def install_ns(prefix, uri)
|
843
|
+
if self::NSPOOL.has_key?(prefix)
|
844
|
+
raise OverlappedPrefixError.new(prefix)
|
845
|
+
end
|
846
|
+
self::NSPOOL[prefix] = uri
|
847
|
+
end
|
848
|
+
|
849
|
+
def tag_name
|
850
|
+
@tag_name
|
851
|
+
end
|
852
|
+
end
|
853
|
+
|
854
|
+
attr_accessor :parent, :do_validate
|
855
|
+
|
856
|
+
def initialize(do_validate=true, attrs=nil)
|
857
|
+
@parent = nil
|
858
|
+
@converter = nil
|
859
|
+
if attrs.nil? and (do_validate.is_a?(Hash) or do_validate.is_a?(Array))
|
860
|
+
do_validate, attrs = true, do_validate
|
861
|
+
end
|
862
|
+
@do_validate = do_validate
|
863
|
+
initialize_variables(attrs || {})
|
864
|
+
end
|
865
|
+
|
866
|
+
def tag_name
|
867
|
+
self.class.tag_name
|
868
|
+
end
|
869
|
+
|
870
|
+
def full_name
|
871
|
+
tag_name
|
872
|
+
end
|
873
|
+
|
874
|
+
def converter=(converter)
|
875
|
+
@converter = converter
|
876
|
+
targets = children.dup
|
877
|
+
self.class.have_children_elements.each do |variable_name, plural_name|
|
878
|
+
targets.concat(__send__(plural_name))
|
879
|
+
end
|
880
|
+
targets.each do |target|
|
881
|
+
target.converter = converter unless target.nil?
|
882
|
+
end
|
883
|
+
end
|
884
|
+
|
885
|
+
def convert(value)
|
886
|
+
if @converter
|
887
|
+
@converter.convert(value)
|
888
|
+
else
|
889
|
+
value
|
890
|
+
end
|
891
|
+
end
|
892
|
+
|
893
|
+
def valid?(ignore_unknown_element=true)
|
894
|
+
validate(ignore_unknown_element)
|
895
|
+
true
|
896
|
+
rescue RSS::Error
|
897
|
+
false
|
898
|
+
end
|
899
|
+
|
900
|
+
def validate(ignore_unknown_element=true)
|
901
|
+
do_validate = @do_validate
|
902
|
+
@do_validate = true
|
903
|
+
validate_attribute
|
904
|
+
__validate(ignore_unknown_element)
|
905
|
+
ensure
|
906
|
+
@do_validate = do_validate
|
907
|
+
end
|
908
|
+
|
909
|
+
def validate_for_stream(tags, ignore_unknown_element=true)
|
910
|
+
validate_attribute
|
911
|
+
__validate(ignore_unknown_element, tags, false)
|
912
|
+
end
|
913
|
+
|
914
|
+
def to_s(need_convert=true, indent='')
|
915
|
+
if self.class.have_content?
|
916
|
+
return "" if !empty_content? and !content_is_set?
|
917
|
+
rv = tag(indent) do |next_indent|
|
918
|
+
if empty_content?
|
919
|
+
""
|
920
|
+
else
|
921
|
+
xmled_content
|
922
|
+
end
|
923
|
+
end
|
924
|
+
else
|
925
|
+
rv = tag(indent) do |next_indent|
|
926
|
+
self.class.to_element_methods.collect do |method_name|
|
927
|
+
__send__(method_name, false, next_indent)
|
928
|
+
end
|
929
|
+
end
|
930
|
+
end
|
931
|
+
rv = convert(rv) if need_convert
|
932
|
+
rv
|
933
|
+
end
|
934
|
+
|
935
|
+
def have_xml_content?
|
936
|
+
false
|
937
|
+
end
|
938
|
+
|
939
|
+
def need_base64_encode?
|
940
|
+
false
|
941
|
+
end
|
942
|
+
|
943
|
+
def set_next_element(tag_name, next_element)
|
944
|
+
klass = next_element.class
|
945
|
+
prefix = ""
|
946
|
+
prefix << "#{klass.required_prefix}_" if klass.required_prefix
|
947
|
+
key = "#{prefix}#{tag_name.gsub(/-/, '_')}"
|
948
|
+
if self.class.plural_forms.has_key?(key)
|
949
|
+
ary = __send__("#{self.class.plural_forms[key]}")
|
950
|
+
ary << next_element
|
951
|
+
else
|
952
|
+
__send__("#{key}=", next_element)
|
953
|
+
end
|
954
|
+
end
|
955
|
+
|
956
|
+
protected
|
957
|
+
def have_required_elements?
|
958
|
+
self.class::MODELS.all? do |tag, uri, occurs, getter|
|
959
|
+
if occurs.nil? or occurs == "+"
|
960
|
+
child = __send__(getter)
|
961
|
+
if child.is_a?(Array)
|
962
|
+
children = child
|
963
|
+
children.any? {|c| c.have_required_elements?}
|
964
|
+
else
|
965
|
+
!child.to_s.empty?
|
966
|
+
end
|
967
|
+
else
|
968
|
+
true
|
969
|
+
end
|
970
|
+
end
|
971
|
+
end
|
972
|
+
|
973
|
+
private
|
974
|
+
def initialize_variables(attrs)
|
975
|
+
normalized_attrs = {}
|
976
|
+
attrs.each do |key, value|
|
977
|
+
normalized_attrs[key.to_s] = value
|
978
|
+
end
|
979
|
+
self.class.need_initialize_variables.each do |variable_name|
|
980
|
+
value = normalized_attrs[variable_name.to_s]
|
981
|
+
if value
|
982
|
+
__send__("#{variable_name}=", value)
|
983
|
+
else
|
984
|
+
instance_variable_set("@#{variable_name}", nil)
|
985
|
+
end
|
986
|
+
end
|
987
|
+
initialize_have_children_elements
|
988
|
+
@content = normalized_attrs["content"] if self.class.have_content?
|
989
|
+
end
|
990
|
+
|
991
|
+
def initialize_have_children_elements
|
992
|
+
self.class.have_children_elements.each do |variable_name, plural_name|
|
993
|
+
instance_variable_set("@#{variable_name}", [])
|
994
|
+
end
|
995
|
+
end
|
996
|
+
|
997
|
+
def tag(indent, additional_attrs={}, &block)
|
998
|
+
next_indent = indent + INDENT
|
999
|
+
|
1000
|
+
attrs = collect_attrs
|
1001
|
+
return "" if attrs.nil?
|
1002
|
+
|
1003
|
+
return "" unless have_required_elements?
|
1004
|
+
|
1005
|
+
attrs.update(additional_attrs)
|
1006
|
+
start_tag = make_start_tag(indent, next_indent, attrs.dup)
|
1007
|
+
|
1008
|
+
if block
|
1009
|
+
content = block.call(next_indent)
|
1010
|
+
else
|
1011
|
+
content = []
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
if content.is_a?(String)
|
1015
|
+
content = [content]
|
1016
|
+
start_tag << ">"
|
1017
|
+
end_tag = "</#{full_name}>"
|
1018
|
+
else
|
1019
|
+
content = content.reject{|x| x.empty?}
|
1020
|
+
if content.empty?
|
1021
|
+
return "" if attrs.empty?
|
1022
|
+
end_tag = "/>"
|
1023
|
+
else
|
1024
|
+
start_tag << ">\n"
|
1025
|
+
end_tag = "\n#{indent}</#{full_name}>"
|
1026
|
+
end
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
start_tag + content.join("\n") + end_tag
|
1030
|
+
end
|
1031
|
+
|
1032
|
+
def make_start_tag(indent, next_indent, attrs)
|
1033
|
+
start_tag = ["#{indent}<#{full_name}"]
|
1034
|
+
unless attrs.empty?
|
1035
|
+
start_tag << attrs.collect do |key, value|
|
1036
|
+
%Q[#{h key}="#{h value}"]
|
1037
|
+
end.join("\n#{next_indent}")
|
1038
|
+
end
|
1039
|
+
start_tag.join(" ")
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
def collect_attrs
|
1043
|
+
attrs = {}
|
1044
|
+
_attrs.each do |name, required, alias_name|
|
1045
|
+
value = __send__(alias_name || name)
|
1046
|
+
return nil if required and value.nil?
|
1047
|
+
next if value.nil?
|
1048
|
+
return nil if attrs.has_key?(name)
|
1049
|
+
attrs[name] = value
|
1050
|
+
end
|
1051
|
+
attrs
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
def tag_name_with_prefix(prefix)
|
1055
|
+
"#{prefix}:#{tag_name}"
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
# For backward compatibility
|
1059
|
+
def calc_indent
|
1060
|
+
''
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
def children
|
1064
|
+
rv = []
|
1065
|
+
self.class.models.each do |name, uri, occurs, getter|
|
1066
|
+
value = __send__(getter)
|
1067
|
+
next if value.nil?
|
1068
|
+
value = [value] unless value.is_a?(Array)
|
1069
|
+
value.each do |v|
|
1070
|
+
rv << v if v.is_a?(Element)
|
1071
|
+
end
|
1072
|
+
end
|
1073
|
+
rv
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
def _tags
|
1077
|
+
rv = []
|
1078
|
+
self.class.models.each do |name, uri, occurs, getter, plural|
|
1079
|
+
value = __send__(getter)
|
1080
|
+
next if value.nil?
|
1081
|
+
if plural and value.is_a?(Array)
|
1082
|
+
rv.concat([[uri, name]] * value.size)
|
1083
|
+
else
|
1084
|
+
rv << [uri, name]
|
1085
|
+
end
|
1086
|
+
end
|
1087
|
+
rv
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
def _attrs
|
1091
|
+
self.class.get_attributes.collect do |name, uri, required, element_name|
|
1092
|
+
[element_name, required, name]
|
1093
|
+
end
|
1094
|
+
end
|
1095
|
+
|
1096
|
+
def __validate(ignore_unknown_element, tags=_tags, recursive=true)
|
1097
|
+
if recursive
|
1098
|
+
children.compact.each do |child|
|
1099
|
+
child.validate
|
1100
|
+
end
|
1101
|
+
end
|
1102
|
+
must_call_validators = self.class.must_call_validators
|
1103
|
+
tags = tag_filter(tags.dup)
|
1104
|
+
p tags if DEBUG
|
1105
|
+
must_call_validators.each do |uri, prefix|
|
1106
|
+
_validate(ignore_unknown_element, tags[uri], uri)
|
1107
|
+
meth = "#{prefix}_validate"
|
1108
|
+
if !prefix.empty? and respond_to?(meth, true)
|
1109
|
+
__send__(meth, ignore_unknown_element, tags[uri], uri)
|
1110
|
+
end
|
1111
|
+
end
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
def validate_attribute
|
1115
|
+
_attrs.each do |a_name, required, alias_name|
|
1116
|
+
value = instance_variable_get("@#{alias_name || a_name}")
|
1117
|
+
if required and value.nil?
|
1118
|
+
raise MissingAttributeError.new(tag_name, a_name)
|
1119
|
+
end
|
1120
|
+
__send__("#{alias_name || a_name}=", value)
|
1121
|
+
end
|
1122
|
+
end
|
1123
|
+
|
1124
|
+
def _validate(ignore_unknown_element, tags, uri, models=self.class.models)
|
1125
|
+
count = 1
|
1126
|
+
do_redo = false
|
1127
|
+
not_shift = false
|
1128
|
+
tag = nil
|
1129
|
+
models = models.find_all {|model| model[1] == uri}
|
1130
|
+
element_names = models.collect {|model| model[0]}
|
1131
|
+
if tags
|
1132
|
+
tags_size = tags.size
|
1133
|
+
tags = tags.sort_by {|x| element_names.index(x) || tags_size}
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
models.each_with_index do |model, i|
|
1137
|
+
name, _, occurs, = model
|
1138
|
+
|
1139
|
+
if DEBUG
|
1140
|
+
p "before"
|
1141
|
+
p tags
|
1142
|
+
p model
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
if not_shift
|
1146
|
+
not_shift = false
|
1147
|
+
elsif tags
|
1148
|
+
tag = tags.shift
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
if DEBUG
|
1152
|
+
p "mid"
|
1153
|
+
p count
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
case occurs
|
1157
|
+
when '?'
|
1158
|
+
if count > 2
|
1159
|
+
raise TooMuchTagError.new(name, tag_name)
|
1160
|
+
else
|
1161
|
+
if name == tag
|
1162
|
+
do_redo = true
|
1163
|
+
else
|
1164
|
+
not_shift = true
|
1165
|
+
end
|
1166
|
+
end
|
1167
|
+
when '*'
|
1168
|
+
if name == tag
|
1169
|
+
do_redo = true
|
1170
|
+
else
|
1171
|
+
not_shift = true
|
1172
|
+
end
|
1173
|
+
when '+'
|
1174
|
+
if name == tag
|
1175
|
+
do_redo = true
|
1176
|
+
else
|
1177
|
+
if count > 1
|
1178
|
+
not_shift = true
|
1179
|
+
else
|
1180
|
+
raise MissingTagError.new(name, tag_name)
|
1181
|
+
end
|
1182
|
+
end
|
1183
|
+
else
|
1184
|
+
if name == tag
|
1185
|
+
if models[i+1] and models[i+1][0] != name and
|
1186
|
+
tags and tags.first == name
|
1187
|
+
raise TooMuchTagError.new(name, tag_name)
|
1188
|
+
end
|
1189
|
+
else
|
1190
|
+
raise MissingTagError.new(name, tag_name)
|
1191
|
+
end
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
if DEBUG
|
1195
|
+
p "after"
|
1196
|
+
p not_shift
|
1197
|
+
p do_redo
|
1198
|
+
p tag
|
1199
|
+
end
|
1200
|
+
|
1201
|
+
if do_redo
|
1202
|
+
do_redo = false
|
1203
|
+
count += 1
|
1204
|
+
redo
|
1205
|
+
else
|
1206
|
+
count = 1
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
if !ignore_unknown_element and !tags.nil? and !tags.empty?
|
1212
|
+
raise NotExpectedTagError.new(tags.first, uri, tag_name)
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
end
|
1216
|
+
|
1217
|
+
def tag_filter(tags)
|
1218
|
+
rv = {}
|
1219
|
+
tags.each do |tag|
|
1220
|
+
rv[tag[0]] = [] unless rv.has_key?(tag[0])
|
1221
|
+
rv[tag[0]].push(tag[1])
|
1222
|
+
end
|
1223
|
+
rv
|
1224
|
+
end
|
1225
|
+
|
1226
|
+
def empty_content?
|
1227
|
+
false
|
1228
|
+
end
|
1229
|
+
|
1230
|
+
def content_is_set?
|
1231
|
+
if have_xml_content?
|
1232
|
+
__send__(self.class.xml_getter)
|
1233
|
+
else
|
1234
|
+
content
|
1235
|
+
end
|
1236
|
+
end
|
1237
|
+
|
1238
|
+
def xmled_content
|
1239
|
+
if have_xml_content?
|
1240
|
+
__send__(self.class.xml_getter).to_s
|
1241
|
+
else
|
1242
|
+
_content = content
|
1243
|
+
_content = [_content].pack("m").delete("\n") if need_base64_encode?
|
1244
|
+
h(_content)
|
1245
|
+
end
|
1246
|
+
end
|
1247
|
+
end
|
1248
|
+
|
1249
|
+
module RootElementMixin
|
1250
|
+
|
1251
|
+
include XMLStyleSheetMixin
|
1252
|
+
|
1253
|
+
attr_reader :output_encoding
|
1254
|
+
attr_reader :feed_type, :feed_subtype, :feed_version
|
1255
|
+
attr_accessor :version, :encoding, :standalone
|
1256
|
+
def initialize(feed_version, version=nil, encoding=nil, standalone=nil)
|
1257
|
+
super()
|
1258
|
+
@feed_type = nil
|
1259
|
+
@feed_subtype = nil
|
1260
|
+
@feed_version = feed_version
|
1261
|
+
@version = version || '1.0'
|
1262
|
+
@encoding = encoding
|
1263
|
+
@standalone = standalone
|
1264
|
+
@output_encoding = nil
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
def feed_info
|
1268
|
+
[@feed_type, @feed_version, @feed_subtype]
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
def output_encoding=(enc)
|
1272
|
+
@output_encoding = enc
|
1273
|
+
self.converter = Converter.new(@output_encoding, @encoding)
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
def setup_maker(maker)
|
1277
|
+
maker.version = version
|
1278
|
+
maker.encoding = encoding
|
1279
|
+
maker.standalone = standalone
|
1280
|
+
|
1281
|
+
xml_stylesheets.each do |xss|
|
1282
|
+
xss.setup_maker(maker)
|
1283
|
+
end
|
1284
|
+
|
1285
|
+
super
|
1286
|
+
end
|
1287
|
+
|
1288
|
+
def to_feed(type, &block)
|
1289
|
+
Maker.make(type) do |maker|
|
1290
|
+
setup_maker(maker)
|
1291
|
+
block.call(maker) if block
|
1292
|
+
end
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
def to_rss(type, &block)
|
1296
|
+
to_feed("rss#{type}", &block)
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
def to_atom(type, &block)
|
1300
|
+
to_feed("atom:#{type}", &block)
|
1301
|
+
end
|
1302
|
+
|
1303
|
+
def to_xml(type=nil, &block)
|
1304
|
+
if type.nil? or same_feed_type?(type)
|
1305
|
+
to_s
|
1306
|
+
else
|
1307
|
+
to_feed(type, &block).to_s
|
1308
|
+
end
|
1309
|
+
end
|
1310
|
+
|
1311
|
+
private
|
1312
|
+
def same_feed_type?(type)
|
1313
|
+
if /^(atom|rss)?(\d+\.\d+)?(?::(.+))?$/i =~ type
|
1314
|
+
feed_type = ($1 || @feed_type).downcase
|
1315
|
+
feed_version = $2 || @feed_version
|
1316
|
+
feed_subtype = $3 || @feed_subtype
|
1317
|
+
[feed_type, feed_version, feed_subtype] == feed_info
|
1318
|
+
else
|
1319
|
+
false
|
1320
|
+
end
|
1321
|
+
end
|
1322
|
+
|
1323
|
+
def tag(indent, attrs={}, &block)
|
1324
|
+
rv = super(indent, ns_declarations.merge(attrs), &block)
|
1325
|
+
return rv if rv.empty?
|
1326
|
+
"#{xmldecl}#{xml_stylesheet_pi}#{rv}"
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
def xmldecl
|
1330
|
+
rv = %Q[<?xml version="#{@version}"]
|
1331
|
+
if @output_encoding or @encoding
|
1332
|
+
rv << %Q[ encoding="#{@output_encoding or @encoding}"]
|
1333
|
+
end
|
1334
|
+
rv << %Q[ standalone="yes"] if @standalone
|
1335
|
+
rv << "?>\n"
|
1336
|
+
rv
|
1337
|
+
end
|
1338
|
+
|
1339
|
+
def ns_declarations
|
1340
|
+
decls = {}
|
1341
|
+
self.class::NSPOOL.collect do |prefix, uri|
|
1342
|
+
prefix = ":#{prefix}" unless prefix.empty?
|
1343
|
+
decls["xmlns#{prefix}"] = uri
|
1344
|
+
end
|
1345
|
+
decls
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
def maker_target(target)
|
1349
|
+
target
|
1350
|
+
end
|
1351
|
+
end
|
1352
|
+
end
|