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,1761 @@
|
|
1
|
+
#
|
2
|
+
# = fileutils.rb
|
3
|
+
#
|
4
|
+
# Copyright (c) 2000-2007 Minero Aoki
|
5
|
+
#
|
6
|
+
# This program is free software.
|
7
|
+
# You can distribute/modify this program under the same terms of ruby.
|
8
|
+
#
|
9
|
+
# == module FileUtils
|
10
|
+
#
|
11
|
+
# Namespace for several file utility methods for copying, moving, removing, etc.
|
12
|
+
#
|
13
|
+
# === Module Functions
|
14
|
+
#
|
15
|
+
# require 'fileutils'
|
16
|
+
#
|
17
|
+
# FileUtils.cd(dir, options)
|
18
|
+
# FileUtils.cd(dir, options) {|dir| .... }
|
19
|
+
# FileUtils.pwd()
|
20
|
+
# FileUtils.mkdir(dir, options)
|
21
|
+
# FileUtils.mkdir(list, options)
|
22
|
+
# FileUtils.mkdir_p(dir, options)
|
23
|
+
# FileUtils.mkdir_p(list, options)
|
24
|
+
# FileUtils.rmdir(dir, options)
|
25
|
+
# FileUtils.rmdir(list, options)
|
26
|
+
# FileUtils.ln(old, new, options)
|
27
|
+
# FileUtils.ln(list, destdir, options)
|
28
|
+
# FileUtils.ln_s(old, new, options)
|
29
|
+
# FileUtils.ln_s(list, destdir, options)
|
30
|
+
# FileUtils.ln_sf(src, dest, options)
|
31
|
+
# FileUtils.cp(src, dest, options)
|
32
|
+
# FileUtils.cp(list, dir, options)
|
33
|
+
# FileUtils.cp_r(src, dest, options)
|
34
|
+
# FileUtils.cp_r(list, dir, options)
|
35
|
+
# FileUtils.mv(src, dest, options)
|
36
|
+
# FileUtils.mv(list, dir, options)
|
37
|
+
# FileUtils.rm(list, options)
|
38
|
+
# FileUtils.rm_r(list, options)
|
39
|
+
# FileUtils.rm_rf(list, options)
|
40
|
+
# FileUtils.install(src, dest, mode = <src's>, options)
|
41
|
+
# FileUtils.chmod(mode, list, options)
|
42
|
+
# FileUtils.chmod_R(mode, list, options)
|
43
|
+
# FileUtils.chown(user, group, list, options)
|
44
|
+
# FileUtils.chown_R(user, group, list, options)
|
45
|
+
# FileUtils.touch(list, options)
|
46
|
+
#
|
47
|
+
# The <tt>options</tt> parameter is a hash of options, taken from the list
|
48
|
+
# <tt>:force</tt>, <tt>:noop</tt>, <tt>:preserve</tt>, and <tt>:verbose</tt>.
|
49
|
+
# <tt>:noop</tt> means that no changes are made. The other two are obvious.
|
50
|
+
# Each method documents the options that it honours.
|
51
|
+
#
|
52
|
+
# All methods that have the concept of a "source" file or directory can take
|
53
|
+
# either one file or a list of files in that argument. See the method
|
54
|
+
# documentation for examples.
|
55
|
+
#
|
56
|
+
# There are some `low level' methods, which do not accept any option:
|
57
|
+
#
|
58
|
+
# FileUtils.copy_entry(src, dest, preserve = false, dereference = false)
|
59
|
+
# FileUtils.copy_file(src, dest, preserve = false, dereference = true)
|
60
|
+
# FileUtils.copy_stream(srcstream, deststream)
|
61
|
+
# FileUtils.remove_entry(path, force = false)
|
62
|
+
# FileUtils.remove_entry_secure(path, force = false)
|
63
|
+
# FileUtils.remove_file(path, force = false)
|
64
|
+
# FileUtils.compare_file(path_a, path_b)
|
65
|
+
# FileUtils.compare_stream(stream_a, stream_b)
|
66
|
+
# FileUtils.uptodate?(file, cmp_list)
|
67
|
+
#
|
68
|
+
# == module FileUtils::Verbose
|
69
|
+
#
|
70
|
+
# This module has all methods of FileUtils module, but it outputs messages
|
71
|
+
# before acting. This equates to passing the <tt>:verbose</tt> flag to methods
|
72
|
+
# in FileUtils.
|
73
|
+
#
|
74
|
+
# == module FileUtils::NoWrite
|
75
|
+
#
|
76
|
+
# This module has all methods of FileUtils module, but never changes
|
77
|
+
# files/directories. This equates to passing the <tt>:noop</tt> flag to methods
|
78
|
+
# in FileUtils.
|
79
|
+
#
|
80
|
+
# == module FileUtils::DryRun
|
81
|
+
#
|
82
|
+
# This module has all methods of FileUtils module, but never changes
|
83
|
+
# files/directories. This equates to passing the <tt>:noop</tt> and
|
84
|
+
# <tt>:verbose</tt> flags to methods in FileUtils.
|
85
|
+
#
|
86
|
+
|
87
|
+
module FileUtils
|
88
|
+
|
89
|
+
def self.private_module_function(name) #:nodoc:
|
90
|
+
module_function name
|
91
|
+
private_class_method name
|
92
|
+
end
|
93
|
+
|
94
|
+
# This hash table holds command options.
|
95
|
+
OPT_TABLE = {} #:nodoc: internal use only
|
96
|
+
|
97
|
+
#
|
98
|
+
# Options: (none)
|
99
|
+
#
|
100
|
+
# Returns the name of the current directory.
|
101
|
+
#
|
102
|
+
def pwd
|
103
|
+
Dir.pwd
|
104
|
+
end
|
105
|
+
module_function :pwd
|
106
|
+
|
107
|
+
alias getwd pwd
|
108
|
+
module_function :getwd
|
109
|
+
|
110
|
+
#
|
111
|
+
# Options: verbose
|
112
|
+
#
|
113
|
+
# Changes the current directory to the directory +dir+.
|
114
|
+
#
|
115
|
+
# If this method is called with block, resumes to the old
|
116
|
+
# working directory after the block execution finished.
|
117
|
+
#
|
118
|
+
# FileUtils.cd('/', :verbose => true) # chdir and report it
|
119
|
+
#
|
120
|
+
# FileUtils.cd('/') do # chdir
|
121
|
+
# [...] # do something
|
122
|
+
# end # return to original directory
|
123
|
+
#
|
124
|
+
def cd(dir, options = {}, &block) # :yield: dir
|
125
|
+
fu_check_options options, OPT_TABLE['cd']
|
126
|
+
fu_output_message "cd #{dir}" if options[:verbose]
|
127
|
+
Dir.chdir(dir, &block)
|
128
|
+
fu_output_message 'cd -' if options[:verbose] and block
|
129
|
+
end
|
130
|
+
module_function :cd
|
131
|
+
|
132
|
+
alias chdir cd
|
133
|
+
module_function :chdir
|
134
|
+
|
135
|
+
OPT_TABLE['cd'] =
|
136
|
+
OPT_TABLE['chdir'] = [:verbose]
|
137
|
+
|
138
|
+
#
|
139
|
+
# Options: (none)
|
140
|
+
#
|
141
|
+
# Returns true if +new+ is newer than all +old_list+.
|
142
|
+
# Non-existent files are older than any file.
|
143
|
+
#
|
144
|
+
# FileUtils.uptodate?('hello.o', %w(hello.c hello.h)) or \
|
145
|
+
# system 'make hello.o'
|
146
|
+
#
|
147
|
+
def uptodate?(new, old_list)
|
148
|
+
return false unless File.exist?(new)
|
149
|
+
new_time = File.mtime(new)
|
150
|
+
old_list.each do |old|
|
151
|
+
if File.exist?(old)
|
152
|
+
return false unless new_time > File.mtime(old)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
true
|
156
|
+
end
|
157
|
+
module_function :uptodate?
|
158
|
+
|
159
|
+
def remove_tailing_slash(dir)
|
160
|
+
dir == '/' ? dir : dir.chomp(?/)
|
161
|
+
end
|
162
|
+
private_module_function :remove_tailing_slash
|
163
|
+
|
164
|
+
#
|
165
|
+
# Options: mode noop verbose
|
166
|
+
#
|
167
|
+
# Creates one or more directories.
|
168
|
+
#
|
169
|
+
# FileUtils.mkdir 'test'
|
170
|
+
# FileUtils.mkdir %w( tmp data )
|
171
|
+
# FileUtils.mkdir 'notexist', :noop => true # Does not really create.
|
172
|
+
# FileUtils.mkdir 'tmp', :mode => 0700
|
173
|
+
#
|
174
|
+
def mkdir(list, options = {})
|
175
|
+
fu_check_options options, OPT_TABLE['mkdir']
|
176
|
+
list = fu_list(list)
|
177
|
+
fu_output_message "mkdir #{options[:mode] ? ('-m %03o ' % options[:mode]) : ''}#{list.join ' '}" if options[:verbose]
|
178
|
+
return if options[:noop]
|
179
|
+
|
180
|
+
list.each do |dir|
|
181
|
+
fu_mkdir dir, options[:mode]
|
182
|
+
end
|
183
|
+
end
|
184
|
+
module_function :mkdir
|
185
|
+
|
186
|
+
OPT_TABLE['mkdir'] = [:mode, :noop, :verbose]
|
187
|
+
|
188
|
+
#
|
189
|
+
# Options: mode noop verbose
|
190
|
+
#
|
191
|
+
# Creates a directory and all its parent directories.
|
192
|
+
# For example,
|
193
|
+
#
|
194
|
+
# FileUtils.mkdir_p '/usr/local/lib/ruby'
|
195
|
+
#
|
196
|
+
# causes to make following directories, if it does not exist.
|
197
|
+
# * /usr
|
198
|
+
# * /usr/local
|
199
|
+
# * /usr/local/lib
|
200
|
+
# * /usr/local/lib/ruby
|
201
|
+
#
|
202
|
+
# You can pass several directories at a time in a list.
|
203
|
+
#
|
204
|
+
def mkdir_p(list, options = {})
|
205
|
+
fu_check_options options, OPT_TABLE['mkdir_p']
|
206
|
+
list = fu_list(list)
|
207
|
+
fu_output_message "mkdir -p #{options[:mode] ? ('-m %03o ' % options[:mode]) : ''}#{list.join ' '}" if options[:verbose]
|
208
|
+
return *list if options[:noop]
|
209
|
+
|
210
|
+
list.map {|path| remove_tailing_slash(path)}.each do |path|
|
211
|
+
# optimize for the most common case
|
212
|
+
begin
|
213
|
+
fu_mkdir path, options[:mode]
|
214
|
+
next
|
215
|
+
rescue SystemCallError
|
216
|
+
next if File.directory?(path)
|
217
|
+
end
|
218
|
+
|
219
|
+
stack = []
|
220
|
+
until path == stack.last # dirname("/")=="/", dirname("C:/")=="C:/"
|
221
|
+
stack.push path
|
222
|
+
path = File.dirname(path)
|
223
|
+
end
|
224
|
+
stack.reverse_each do |dir|
|
225
|
+
begin
|
226
|
+
fu_mkdir dir, options[:mode]
|
227
|
+
rescue SystemCallError
|
228
|
+
raise unless File.directory?(dir)
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
return *list
|
234
|
+
end
|
235
|
+
module_function :mkdir_p
|
236
|
+
|
237
|
+
alias mkpath mkdir_p
|
238
|
+
alias makedirs mkdir_p
|
239
|
+
module_function :mkpath
|
240
|
+
module_function :makedirs
|
241
|
+
|
242
|
+
OPT_TABLE['mkdir_p'] =
|
243
|
+
OPT_TABLE['mkpath'] =
|
244
|
+
OPT_TABLE['makedirs'] = [:mode, :noop, :verbose]
|
245
|
+
|
246
|
+
def fu_mkdir(path, mode) #:nodoc:
|
247
|
+
path = remove_tailing_slash(path)
|
248
|
+
if mode
|
249
|
+
Dir.mkdir path, mode
|
250
|
+
File.chmod mode, path
|
251
|
+
else
|
252
|
+
Dir.mkdir path
|
253
|
+
end
|
254
|
+
end
|
255
|
+
private_module_function :fu_mkdir
|
256
|
+
|
257
|
+
#
|
258
|
+
# Options: parents, noop, verbose
|
259
|
+
#
|
260
|
+
# Removes one or more directories.
|
261
|
+
#
|
262
|
+
# FileUtils.rmdir 'somedir'
|
263
|
+
# FileUtils.rmdir %w(somedir anydir otherdir)
|
264
|
+
# # Does not really remove directory; outputs message.
|
265
|
+
# FileUtils.rmdir 'somedir', :verbose => true, :noop => true
|
266
|
+
#
|
267
|
+
def rmdir(list, options = {})
|
268
|
+
fu_check_options options, OPT_TABLE['rmdir']
|
269
|
+
list = fu_list(list)
|
270
|
+
parents = options[:parents]
|
271
|
+
fu_output_message "rmdir #{parents ? '-p ' : ''}#{list.join ' '}" if options[:verbose]
|
272
|
+
return if options[:noop]
|
273
|
+
list.each do |dir|
|
274
|
+
begin
|
275
|
+
Dir.rmdir(dir = remove_tailing_slash(dir))
|
276
|
+
if parents
|
277
|
+
until (parent = File.dirname(dir)) == '.' or parent == dir
|
278
|
+
dir = parent
|
279
|
+
Dir.rmdir(dir)
|
280
|
+
end
|
281
|
+
end
|
282
|
+
rescue Errno::ENOTEMPTY, Errno::EEXIST, Errno::ENOENT
|
283
|
+
end
|
284
|
+
end
|
285
|
+
end
|
286
|
+
module_function :rmdir
|
287
|
+
|
288
|
+
OPT_TABLE['rmdir'] = [:parents, :noop, :verbose]
|
289
|
+
|
290
|
+
#
|
291
|
+
# Options: force noop verbose
|
292
|
+
#
|
293
|
+
# <b><tt>ln(old, new, options = {})</tt></b>
|
294
|
+
#
|
295
|
+
# Creates a hard link +new+ which points to +old+.
|
296
|
+
# If +new+ already exists and it is a directory, creates a link +new/old+.
|
297
|
+
# If +new+ already exists and it is not a directory, raises Errno::EEXIST.
|
298
|
+
# But if :force option is set, overwrite +new+.
|
299
|
+
#
|
300
|
+
# FileUtils.ln 'gcc', 'cc', :verbose => true
|
301
|
+
# FileUtils.ln '/usr/bin/emacs21', '/usr/bin/emacs'
|
302
|
+
#
|
303
|
+
# <b><tt>ln(list, destdir, options = {})</tt></b>
|
304
|
+
#
|
305
|
+
# Creates several hard links in a directory, with each one pointing to the
|
306
|
+
# item in +list+. If +destdir+ is not a directory, raises Errno::ENOTDIR.
|
307
|
+
#
|
308
|
+
# include FileUtils
|
309
|
+
# cd '/sbin'
|
310
|
+
# FileUtils.ln %w(cp mv mkdir), '/bin' # Now /sbin/cp and /bin/cp are linked.
|
311
|
+
#
|
312
|
+
def ln(src, dest, options = {})
|
313
|
+
fu_check_options options, OPT_TABLE['ln']
|
314
|
+
fu_output_message "ln#{options[:force] ? ' -f' : ''} #{[src,dest].flatten.join ' '}" if options[:verbose]
|
315
|
+
return if options[:noop]
|
316
|
+
fu_each_src_dest0(src, dest) do |s,d|
|
317
|
+
remove_file d, true if options[:force]
|
318
|
+
File.link s, d
|
319
|
+
end
|
320
|
+
end
|
321
|
+
module_function :ln
|
322
|
+
|
323
|
+
alias link ln
|
324
|
+
module_function :link
|
325
|
+
|
326
|
+
OPT_TABLE['ln'] =
|
327
|
+
OPT_TABLE['link'] = [:force, :noop, :verbose]
|
328
|
+
|
329
|
+
#
|
330
|
+
# Options: force noop verbose
|
331
|
+
#
|
332
|
+
# <b><tt>ln_s(old, new, options = {})</tt></b>
|
333
|
+
#
|
334
|
+
# Creates a symbolic link +new+ which points to +old+. If +new+ already
|
335
|
+
# exists and it is a directory, creates a symbolic link +new/old+. If +new+
|
336
|
+
# already exists and it is not a directory, raises Errno::EEXIST. But if
|
337
|
+
# :force option is set, overwrite +new+.
|
338
|
+
#
|
339
|
+
# FileUtils.ln_s '/usr/bin/ruby', '/usr/local/bin/ruby'
|
340
|
+
# FileUtils.ln_s 'verylongsourcefilename.c', 'c', :force => true
|
341
|
+
#
|
342
|
+
# <b><tt>ln_s(list, destdir, options = {})</tt></b>
|
343
|
+
#
|
344
|
+
# Creates several symbolic links in a directory, with each one pointing to the
|
345
|
+
# item in +list+. If +destdir+ is not a directory, raises Errno::ENOTDIR.
|
346
|
+
#
|
347
|
+
# If +destdir+ is not a directory, raises Errno::ENOTDIR.
|
348
|
+
#
|
349
|
+
# FileUtils.ln_s Dir.glob('bin/*.rb'), '/home/aamine/bin'
|
350
|
+
#
|
351
|
+
def ln_s(src, dest, options = {})
|
352
|
+
fu_check_options options, OPT_TABLE['ln_s']
|
353
|
+
fu_output_message "ln -s#{options[:force] ? 'f' : ''} #{[src,dest].flatten.join ' '}" if options[:verbose]
|
354
|
+
return if options[:noop]
|
355
|
+
fu_each_src_dest0(src, dest) do |s,d|
|
356
|
+
remove_file d, true if options[:force]
|
357
|
+
File.symlink s, d
|
358
|
+
end
|
359
|
+
end
|
360
|
+
module_function :ln_s
|
361
|
+
|
362
|
+
alias symlink ln_s
|
363
|
+
module_function :symlink
|
364
|
+
|
365
|
+
OPT_TABLE['ln_s'] =
|
366
|
+
OPT_TABLE['symlink'] = [:force, :noop, :verbose]
|
367
|
+
|
368
|
+
#
|
369
|
+
# Options: noop verbose
|
370
|
+
#
|
371
|
+
# Same as
|
372
|
+
# #ln_s(src, dest, :force => true)
|
373
|
+
#
|
374
|
+
def ln_sf(src, dest, options = {})
|
375
|
+
fu_check_options options, OPT_TABLE['ln_sf']
|
376
|
+
options = options.dup
|
377
|
+
options[:force] = true
|
378
|
+
ln_s src, dest, options
|
379
|
+
end
|
380
|
+
module_function :ln_sf
|
381
|
+
|
382
|
+
OPT_TABLE['ln_sf'] = [:noop, :verbose]
|
383
|
+
|
384
|
+
#
|
385
|
+
# Options: preserve noop verbose
|
386
|
+
#
|
387
|
+
# Copies a file content +src+ to +dest+. If +dest+ is a directory,
|
388
|
+
# copies +src+ to +dest/src+.
|
389
|
+
#
|
390
|
+
# If +src+ is a list of files, then +dest+ must be a directory.
|
391
|
+
#
|
392
|
+
# FileUtils.cp 'eval.c', 'eval.c.org'
|
393
|
+
# FileUtils.cp %w(cgi.rb complex.rb date.rb), '/usr/lib/ruby/1.6'
|
394
|
+
# FileUtils.cp %w(cgi.rb complex.rb date.rb), '/usr/lib/ruby/1.6', :verbose => true
|
395
|
+
# FileUtils.cp 'symlink', 'dest' # copy content, "dest" is not a symlink
|
396
|
+
#
|
397
|
+
def cp(src, dest, options = {})
|
398
|
+
fu_check_options options, OPT_TABLE['cp']
|
399
|
+
fu_output_message "cp#{options[:preserve] ? ' -p' : ''} #{[src,dest].flatten.join ' '}" if options[:verbose]
|
400
|
+
return if options[:noop]
|
401
|
+
fu_each_src_dest(src, dest) do |s, d|
|
402
|
+
copy_file s, d, options[:preserve]
|
403
|
+
end
|
404
|
+
end
|
405
|
+
module_function :cp
|
406
|
+
|
407
|
+
alias copy cp
|
408
|
+
module_function :copy
|
409
|
+
|
410
|
+
OPT_TABLE['cp'] =
|
411
|
+
OPT_TABLE['copy'] = [:preserve, :noop, :verbose]
|
412
|
+
|
413
|
+
#
|
414
|
+
# Options: preserve noop verbose dereference_root remove_destination
|
415
|
+
#
|
416
|
+
# Copies +src+ to +dest+. If +src+ is a directory, this method copies
|
417
|
+
# all its contents recursively. If +dest+ is a directory, copies
|
418
|
+
# +src+ to +dest/src+.
|
419
|
+
#
|
420
|
+
# +src+ can be a list of files.
|
421
|
+
#
|
422
|
+
# # Installing Ruby library "mylib" under the site_ruby
|
423
|
+
# FileUtils.rm_r site_ruby + '/mylib', :force
|
424
|
+
# FileUtils.cp_r 'lib/', site_ruby + '/mylib'
|
425
|
+
#
|
426
|
+
# # Examples of copying several files to target directory.
|
427
|
+
# FileUtils.cp_r %w(mail.rb field.rb debug/), site_ruby + '/tmail'
|
428
|
+
# FileUtils.cp_r Dir.glob('*.rb'), '/home/aamine/lib/ruby', :noop => true, :verbose => true
|
429
|
+
#
|
430
|
+
# # If you want to copy all contents of a directory instead of the
|
431
|
+
# # directory itself, c.f. src/x -> dest/x, src/y -> dest/y,
|
432
|
+
# # use following code.
|
433
|
+
# FileUtils.cp_r 'src/.', 'dest' # cp_r('src', 'dest') makes dest/src,
|
434
|
+
# # but this doesn't.
|
435
|
+
#
|
436
|
+
def cp_r(src, dest, options = {})
|
437
|
+
fu_check_options options, OPT_TABLE['cp_r']
|
438
|
+
fu_output_message "cp -r#{options[:preserve] ? 'p' : ''}#{options[:remove_destination] ? ' --remove-destination' : ''} #{[src,dest].flatten.join ' '}" if options[:verbose]
|
439
|
+
return if options[:noop]
|
440
|
+
options = options.dup
|
441
|
+
options[:dereference_root] = true unless options.key?(:dereference_root)
|
442
|
+
fu_each_src_dest(src, dest) do |s, d|
|
443
|
+
copy_entry s, d, options[:preserve], options[:dereference_root], options[:remove_destination]
|
444
|
+
end
|
445
|
+
end
|
446
|
+
module_function :cp_r
|
447
|
+
|
448
|
+
OPT_TABLE['cp_r'] = [:preserve, :noop, :verbose,
|
449
|
+
:dereference_root, :remove_destination]
|
450
|
+
|
451
|
+
#
|
452
|
+
# Copies a file system entry +src+ to +dest+.
|
453
|
+
# If +src+ is a directory, this method copies its contents recursively.
|
454
|
+
# This method preserves file types, c.f. symlink, directory...
|
455
|
+
# (FIFO, device files and etc. are not supported yet)
|
456
|
+
#
|
457
|
+
# Both of +src+ and +dest+ must be a path name.
|
458
|
+
# +src+ must exist, +dest+ must not exist.
|
459
|
+
#
|
460
|
+
# If +preserve+ is true, this method preserves owner, group, and
|
461
|
+
# modified time. Permissions are copied regardless +preserve+.
|
462
|
+
#
|
463
|
+
# If +dereference_root+ is true, this method dereference tree root.
|
464
|
+
#
|
465
|
+
# If +remove_destination+ is true, this method removes each destination file before copy.
|
466
|
+
#
|
467
|
+
def copy_entry(src, dest, preserve = false, dereference_root = false, remove_destination = false)
|
468
|
+
Entry_.new(src, nil, dereference_root).wrap_traverse(proc do |ent|
|
469
|
+
destent = Entry_.new(dest, ent.rel, false)
|
470
|
+
File.unlink destent.path if remove_destination && File.file?(destent.path)
|
471
|
+
ent.copy destent.path
|
472
|
+
end, proc do |ent|
|
473
|
+
destent = Entry_.new(dest, ent.rel, false)
|
474
|
+
ent.copy_metadata destent.path if preserve
|
475
|
+
end)
|
476
|
+
end
|
477
|
+
module_function :copy_entry
|
478
|
+
|
479
|
+
#
|
480
|
+
# Copies file contents of +src+ to +dest+.
|
481
|
+
# Both of +src+ and +dest+ must be a path name.
|
482
|
+
#
|
483
|
+
def copy_file(src, dest, preserve = false, dereference = true)
|
484
|
+
ent = Entry_.new(src, nil, dereference)
|
485
|
+
ent.copy_file dest
|
486
|
+
ent.copy_metadata dest if preserve
|
487
|
+
end
|
488
|
+
module_function :copy_file
|
489
|
+
|
490
|
+
#
|
491
|
+
# Copies stream +src+ to +dest+.
|
492
|
+
# +src+ must respond to #read(n) and
|
493
|
+
# +dest+ must respond to #write(str).
|
494
|
+
#
|
495
|
+
def copy_stream(src, dest)
|
496
|
+
IO.copy_stream(src, dest)
|
497
|
+
end
|
498
|
+
module_function :copy_stream
|
499
|
+
|
500
|
+
#
|
501
|
+
# Options: force noop verbose
|
502
|
+
#
|
503
|
+
# Moves file(s) +src+ to +dest+. If +file+ and +dest+ exist on the different
|
504
|
+
# disk partition, the file is copied then the original file is removed.
|
505
|
+
#
|
506
|
+
# FileUtils.mv 'badname.rb', 'goodname.rb'
|
507
|
+
# FileUtils.mv 'stuff.rb', '/notexist/lib/ruby', :force => true # no error
|
508
|
+
#
|
509
|
+
# FileUtils.mv %w(junk.txt dust.txt), '/home/aamine/.trash/'
|
510
|
+
# FileUtils.mv Dir.glob('test*.rb'), 'test', :noop => true, :verbose => true
|
511
|
+
#
|
512
|
+
def mv(src, dest, options = {})
|
513
|
+
fu_check_options options, OPT_TABLE['mv']
|
514
|
+
fu_output_message "mv#{options[:force] ? ' -f' : ''} #{[src,dest].flatten.join ' '}" if options[:verbose]
|
515
|
+
return if options[:noop]
|
516
|
+
fu_each_src_dest(src, dest) do |s, d|
|
517
|
+
destent = Entry_.new(d, nil, true)
|
518
|
+
begin
|
519
|
+
if destent.exist?
|
520
|
+
if destent.directory?
|
521
|
+
raise Errno::EEXIST, dest
|
522
|
+
else
|
523
|
+
destent.remove_file if rename_cannot_overwrite_file?
|
524
|
+
end
|
525
|
+
end
|
526
|
+
begin
|
527
|
+
File.rename s, d
|
528
|
+
rescue Errno::EXDEV
|
529
|
+
copy_entry s, d, true
|
530
|
+
if options[:secure]
|
531
|
+
remove_entry_secure s, options[:force]
|
532
|
+
else
|
533
|
+
remove_entry s, options[:force]
|
534
|
+
end
|
535
|
+
end
|
536
|
+
rescue SystemCallError
|
537
|
+
raise unless options[:force]
|
538
|
+
end
|
539
|
+
end
|
540
|
+
end
|
541
|
+
module_function :mv
|
542
|
+
|
543
|
+
alias move mv
|
544
|
+
module_function :move
|
545
|
+
|
546
|
+
OPT_TABLE['mv'] =
|
547
|
+
OPT_TABLE['move'] = [:force, :noop, :verbose, :secure]
|
548
|
+
|
549
|
+
def rename_cannot_overwrite_file? #:nodoc:
|
550
|
+
/cygwin|mswin|mingw|bccwin|emx/ =~ RUBY_PLATFORM
|
551
|
+
end
|
552
|
+
private_module_function :rename_cannot_overwrite_file?
|
553
|
+
|
554
|
+
#
|
555
|
+
# Options: force noop verbose
|
556
|
+
#
|
557
|
+
# Remove file(s) specified in +list+. This method cannot remove directories.
|
558
|
+
# All StandardErrors are ignored when the :force option is set.
|
559
|
+
#
|
560
|
+
# FileUtils.rm %w( junk.txt dust.txt )
|
561
|
+
# FileUtils.rm Dir.glob('*.so')
|
562
|
+
# FileUtils.rm 'NotExistFile', :force => true # never raises exception
|
563
|
+
#
|
564
|
+
def rm(list, options = {})
|
565
|
+
fu_check_options options, OPT_TABLE['rm']
|
566
|
+
list = fu_list(list)
|
567
|
+
fu_output_message "rm#{options[:force] ? ' -f' : ''} #{list.join ' '}" if options[:verbose]
|
568
|
+
return if options[:noop]
|
569
|
+
|
570
|
+
list.each do |path|
|
571
|
+
remove_file path, options[:force]
|
572
|
+
end
|
573
|
+
end
|
574
|
+
module_function :rm
|
575
|
+
|
576
|
+
alias remove rm
|
577
|
+
module_function :remove
|
578
|
+
|
579
|
+
OPT_TABLE['rm'] =
|
580
|
+
OPT_TABLE['remove'] = [:force, :noop, :verbose]
|
581
|
+
|
582
|
+
#
|
583
|
+
# Options: noop verbose
|
584
|
+
#
|
585
|
+
# Equivalent to
|
586
|
+
#
|
587
|
+
# #rm(list, :force => true)
|
588
|
+
#
|
589
|
+
def rm_f(list, options = {})
|
590
|
+
fu_check_options options, OPT_TABLE['rm_f']
|
591
|
+
options = options.dup
|
592
|
+
options[:force] = true
|
593
|
+
rm list, options
|
594
|
+
end
|
595
|
+
module_function :rm_f
|
596
|
+
|
597
|
+
alias safe_unlink rm_f
|
598
|
+
module_function :safe_unlink
|
599
|
+
|
600
|
+
OPT_TABLE['rm_f'] =
|
601
|
+
OPT_TABLE['safe_unlink'] = [:noop, :verbose]
|
602
|
+
|
603
|
+
#
|
604
|
+
# Options: force noop verbose secure
|
605
|
+
#
|
606
|
+
# remove files +list+[0] +list+[1]... If +list+[n] is a directory,
|
607
|
+
# removes its all contents recursively. This method ignores
|
608
|
+
# StandardError when :force option is set.
|
609
|
+
#
|
610
|
+
# FileUtils.rm_r Dir.glob('/tmp/*')
|
611
|
+
# FileUtils.rm_r '/', :force => true # :-)
|
612
|
+
#
|
613
|
+
# WARNING: This method causes local vulnerability
|
614
|
+
# if one of parent directories or removing directory tree are world
|
615
|
+
# writable (including /tmp, whose permission is 1777), and the current
|
616
|
+
# process has strong privilege such as Unix super user (root), and the
|
617
|
+
# system has symbolic link. For secure removing, read the documentation
|
618
|
+
# of #remove_entry_secure carefully, and set :secure option to true.
|
619
|
+
# Default is :secure=>false.
|
620
|
+
#
|
621
|
+
# NOTE: This method calls #remove_entry_secure if :secure option is set.
|
622
|
+
# See also #remove_entry_secure.
|
623
|
+
#
|
624
|
+
def rm_r(list, options = {})
|
625
|
+
fu_check_options options, OPT_TABLE['rm_r']
|
626
|
+
# options[:secure] = true unless options.key?(:secure)
|
627
|
+
list = fu_list(list)
|
628
|
+
fu_output_message "rm -r#{options[:force] ? 'f' : ''} #{list.join ' '}" if options[:verbose]
|
629
|
+
return if options[:noop]
|
630
|
+
list.each do |path|
|
631
|
+
if options[:secure]
|
632
|
+
remove_entry_secure path, options[:force]
|
633
|
+
else
|
634
|
+
remove_entry path, options[:force]
|
635
|
+
end
|
636
|
+
end
|
637
|
+
end
|
638
|
+
module_function :rm_r
|
639
|
+
|
640
|
+
OPT_TABLE['rm_r'] = [:force, :noop, :verbose, :secure]
|
641
|
+
|
642
|
+
#
|
643
|
+
# Options: noop verbose secure
|
644
|
+
#
|
645
|
+
# Equivalent to
|
646
|
+
#
|
647
|
+
# #rm_r(list, :force => true)
|
648
|
+
#
|
649
|
+
# WARNING: This method causes local vulnerability.
|
650
|
+
# Read the documentation of #rm_r first.
|
651
|
+
#
|
652
|
+
def rm_rf(list, options = {})
|
653
|
+
fu_check_options options, OPT_TABLE['rm_rf']
|
654
|
+
options = options.dup
|
655
|
+
options[:force] = true
|
656
|
+
rm_r list, options
|
657
|
+
end
|
658
|
+
module_function :rm_rf
|
659
|
+
|
660
|
+
alias rmtree rm_rf
|
661
|
+
module_function :rmtree
|
662
|
+
|
663
|
+
OPT_TABLE['rm_rf'] =
|
664
|
+
OPT_TABLE['rmtree'] = [:noop, :verbose, :secure]
|
665
|
+
|
666
|
+
#
|
667
|
+
# This method removes a file system entry +path+. +path+ shall be a
|
668
|
+
# regular file, a directory, or something. If +path+ is a directory,
|
669
|
+
# remove it recursively. This method is required to avoid TOCTTOU
|
670
|
+
# (time-of-check-to-time-of-use) local security vulnerability of #rm_r.
|
671
|
+
# #rm_r causes security hole when:
|
672
|
+
#
|
673
|
+
# * Parent directory is world writable (including /tmp).
|
674
|
+
# * Removing directory tree includes world writable directory.
|
675
|
+
# * The system has symbolic link.
|
676
|
+
#
|
677
|
+
# To avoid this security hole, this method applies special preprocess.
|
678
|
+
# If +path+ is a directory, this method chown(2) and chmod(2) all
|
679
|
+
# removing directories. This requires the current process is the
|
680
|
+
# owner of the removing whole directory tree, or is the super user (root).
|
681
|
+
#
|
682
|
+
# WARNING: You must ensure that *ALL* parent directories cannot be
|
683
|
+
# moved by other untrusted users. For example, parent directories
|
684
|
+
# should not be owned by untrusted users, and should not be world
|
685
|
+
# writable except when the sticky bit set.
|
686
|
+
#
|
687
|
+
# WARNING: Only the owner of the removing directory tree, or Unix super
|
688
|
+
# user (root) should invoke this method. Otherwise this method does not
|
689
|
+
# work.
|
690
|
+
#
|
691
|
+
# For details of this security vulnerability, see Perl's case:
|
692
|
+
#
|
693
|
+
# http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0448
|
694
|
+
# http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0452
|
695
|
+
#
|
696
|
+
# For fileutils.rb, this vulnerability is reported in [ruby-dev:26100].
|
697
|
+
#
|
698
|
+
def remove_entry_secure(path, force = false)
|
699
|
+
unless fu_have_symlink?
|
700
|
+
remove_entry path, force
|
701
|
+
return
|
702
|
+
end
|
703
|
+
fullpath = File.expand_path(path)
|
704
|
+
st = File.lstat(fullpath)
|
705
|
+
unless st.directory?
|
706
|
+
File.unlink fullpath
|
707
|
+
return
|
708
|
+
end
|
709
|
+
# is a directory.
|
710
|
+
parent_st = File.stat(File.dirname(fullpath))
|
711
|
+
unless parent_st.world_writable?
|
712
|
+
remove_entry path, force
|
713
|
+
return
|
714
|
+
end
|
715
|
+
unless parent_st.sticky?
|
716
|
+
raise ArgumentError, "parent directory is world writable, FileUtils#remove_entry_secure does not work; abort: #{path.inspect} (parent directory mode #{'%o' % parent_st.mode})"
|
717
|
+
end
|
718
|
+
# freeze tree root
|
719
|
+
euid = Process.euid
|
720
|
+
File.open(fullpath + '/.') {|f|
|
721
|
+
unless fu_stat_identical_entry?(st, f.stat)
|
722
|
+
# symlink (TOC-to-TOU attack?)
|
723
|
+
File.unlink fullpath
|
724
|
+
return
|
725
|
+
end
|
726
|
+
f.chown euid, -1
|
727
|
+
f.chmod 0700
|
728
|
+
unless fu_stat_identical_entry?(st, File.lstat(fullpath))
|
729
|
+
# TOC-to-TOU attack?
|
730
|
+
File.unlink fullpath
|
731
|
+
return
|
732
|
+
end
|
733
|
+
}
|
734
|
+
# ---- tree root is frozen ----
|
735
|
+
root = Entry_.new(path)
|
736
|
+
root.preorder_traverse do |ent|
|
737
|
+
if ent.directory?
|
738
|
+
ent.chown euid, -1
|
739
|
+
ent.chmod 0700
|
740
|
+
end
|
741
|
+
end
|
742
|
+
root.postorder_traverse do |ent|
|
743
|
+
begin
|
744
|
+
ent.remove
|
745
|
+
rescue
|
746
|
+
raise unless force
|
747
|
+
end
|
748
|
+
end
|
749
|
+
rescue
|
750
|
+
raise unless force
|
751
|
+
end
|
752
|
+
module_function :remove_entry_secure
|
753
|
+
|
754
|
+
def fu_have_symlink? #:nodoc:
|
755
|
+
File.symlink nil, nil
|
756
|
+
rescue NotImplementedError
|
757
|
+
return false
|
758
|
+
rescue TypeError
|
759
|
+
return true
|
760
|
+
end
|
761
|
+
private_module_function :fu_have_symlink?
|
762
|
+
|
763
|
+
def fu_stat_identical_entry?(a, b) #:nodoc:
|
764
|
+
a.dev == b.dev and a.ino == b.ino
|
765
|
+
end
|
766
|
+
private_module_function :fu_stat_identical_entry?
|
767
|
+
|
768
|
+
#
|
769
|
+
# This method removes a file system entry +path+.
|
770
|
+
# +path+ might be a regular file, a directory, or something.
|
771
|
+
# If +path+ is a directory, remove it recursively.
|
772
|
+
#
|
773
|
+
# See also #remove_entry_secure.
|
774
|
+
#
|
775
|
+
def remove_entry(path, force = false)
|
776
|
+
Entry_.new(path).postorder_traverse do |ent|
|
777
|
+
begin
|
778
|
+
ent.remove
|
779
|
+
rescue
|
780
|
+
raise unless force
|
781
|
+
end
|
782
|
+
end
|
783
|
+
rescue
|
784
|
+
raise unless force
|
785
|
+
end
|
786
|
+
module_function :remove_entry
|
787
|
+
|
788
|
+
#
|
789
|
+
# Removes a file +path+.
|
790
|
+
# This method ignores StandardError if +force+ is true.
|
791
|
+
#
|
792
|
+
def remove_file(path, force = false)
|
793
|
+
Entry_.new(path).remove_file
|
794
|
+
rescue
|
795
|
+
raise unless force
|
796
|
+
end
|
797
|
+
module_function :remove_file
|
798
|
+
|
799
|
+
#
|
800
|
+
# Removes a directory +dir+ and its contents recursively.
|
801
|
+
# This method ignores StandardError if +force+ is true.
|
802
|
+
#
|
803
|
+
def remove_dir(path, force = false)
|
804
|
+
remove_entry path, force # FIXME?? check if it is a directory
|
805
|
+
end
|
806
|
+
module_function :remove_dir
|
807
|
+
|
808
|
+
#
|
809
|
+
# Returns true if the contents of a file A and a file B are identical.
|
810
|
+
#
|
811
|
+
# FileUtils.compare_file('somefile', 'somefile') #=> true
|
812
|
+
# FileUtils.compare_file('/bin/cp', '/bin/mv') #=> maybe false
|
813
|
+
#
|
814
|
+
def compare_file(a, b)
|
815
|
+
return false unless File.size(a) == File.size(b)
|
816
|
+
File.open(a, 'rb') {|fa|
|
817
|
+
File.open(b, 'rb') {|fb|
|
818
|
+
return compare_stream(fa, fb)
|
819
|
+
}
|
820
|
+
}
|
821
|
+
end
|
822
|
+
module_function :compare_file
|
823
|
+
|
824
|
+
alias identical? compare_file
|
825
|
+
alias cmp compare_file
|
826
|
+
module_function :identical?
|
827
|
+
module_function :cmp
|
828
|
+
|
829
|
+
#
|
830
|
+
# Returns true if the contents of a stream +a+ and +b+ are identical.
|
831
|
+
#
|
832
|
+
def compare_stream(a, b)
|
833
|
+
bsize = fu_stream_blksize(a, b)
|
834
|
+
sa = ""
|
835
|
+
sb = ""
|
836
|
+
begin
|
837
|
+
a.read(bsize, sa)
|
838
|
+
b.read(bsize, sb)
|
839
|
+
return true if sa.empty? && sb.empty?
|
840
|
+
end while sa == sb
|
841
|
+
false
|
842
|
+
end
|
843
|
+
module_function :compare_stream
|
844
|
+
|
845
|
+
#
|
846
|
+
# Options: mode preserve noop verbose
|
847
|
+
#
|
848
|
+
# If +src+ is not same as +dest+, copies it and changes the permission
|
849
|
+
# mode to +mode+. If +dest+ is a directory, destination is +dest+/+src+.
|
850
|
+
# This method removes destination before copy.
|
851
|
+
#
|
852
|
+
# FileUtils.install 'ruby', '/usr/local/bin/ruby', :mode => 0755, :verbose => true
|
853
|
+
# FileUtils.install 'lib.rb', '/usr/local/lib/ruby/site_ruby', :verbose => true
|
854
|
+
#
|
855
|
+
def install(src, dest, options = {})
|
856
|
+
fu_check_options options, OPT_TABLE['install']
|
857
|
+
fu_output_message "install -c#{options[:preserve] && ' -p'}#{options[:mode] ? (' -m 0%o' % options[:mode]) : ''} #{[src,dest].flatten.join ' '}" if options[:verbose]
|
858
|
+
return if options[:noop]
|
859
|
+
fu_each_src_dest(src, dest) do |s, d|
|
860
|
+
st = File.stat(s)
|
861
|
+
unless File.exist?(d) and compare_file(s, d)
|
862
|
+
remove_file d, true
|
863
|
+
copy_file s, d
|
864
|
+
File.utime st.atime, st.mtime, d if options[:preserve]
|
865
|
+
File.chmod options[:mode], d if options[:mode]
|
866
|
+
end
|
867
|
+
end
|
868
|
+
end
|
869
|
+
module_function :install
|
870
|
+
|
871
|
+
OPT_TABLE['install'] = [:mode, :preserve, :noop, :verbose]
|
872
|
+
|
873
|
+
def user_mask(target) #:nodoc:
|
874
|
+
target.each_char.inject(0) do |mask, chr|
|
875
|
+
case chr
|
876
|
+
when "u"
|
877
|
+
mask | 04700
|
878
|
+
when "g"
|
879
|
+
mask | 02070
|
880
|
+
when "o"
|
881
|
+
mask | 01007
|
882
|
+
when "a"
|
883
|
+
mask | 07777
|
884
|
+
else
|
885
|
+
raise ArgumentError, "invalid `who' symbol in file mode: #{chr}"
|
886
|
+
end
|
887
|
+
end
|
888
|
+
end
|
889
|
+
private_module_function :user_mask
|
890
|
+
|
891
|
+
def apply_mask(mode, user_mask, op, mode_mask)
|
892
|
+
case op
|
893
|
+
when '='
|
894
|
+
(mode & ~user_mask) | (user_mask & mode_mask)
|
895
|
+
when '+'
|
896
|
+
mode | (user_mask & mode_mask)
|
897
|
+
when '-'
|
898
|
+
mode & ~(user_mask & mode_mask)
|
899
|
+
end
|
900
|
+
end
|
901
|
+
private_module_function :apply_mask
|
902
|
+
|
903
|
+
def symbolic_modes_to_i(mode_sym, path) #:nodoc:
|
904
|
+
mode_sym.split(/,/).inject(File.stat(path).mode & 07777) do |current_mode, clause|
|
905
|
+
target, *actions = clause.split(/([=+-])/)
|
906
|
+
raise ArgumentError, "invalid file mode: #{mode_sym}" if actions.empty?
|
907
|
+
target = 'a' if target.empty?
|
908
|
+
user_mask = user_mask(target)
|
909
|
+
actions.each_slice(2) do |op, perm|
|
910
|
+
need_apply = op == '='
|
911
|
+
mode_mask = (perm || '').each_char.inject(0) do |mask, chr|
|
912
|
+
case chr
|
913
|
+
when "r"
|
914
|
+
mask | 0444
|
915
|
+
when "w"
|
916
|
+
mask | 0222
|
917
|
+
when "x"
|
918
|
+
mask | 0111
|
919
|
+
when "X"
|
920
|
+
if FileTest.directory? path
|
921
|
+
mask | 0111
|
922
|
+
else
|
923
|
+
mask
|
924
|
+
end
|
925
|
+
when "s"
|
926
|
+
mask | 06000
|
927
|
+
when "t"
|
928
|
+
mask | 01000
|
929
|
+
when "u", "g", "o"
|
930
|
+
if mask.nonzero?
|
931
|
+
current_mode = apply_mask(current_mode, user_mask, op, mask)
|
932
|
+
end
|
933
|
+
need_apply = false
|
934
|
+
copy_mask = user_mask(chr)
|
935
|
+
(current_mode & copy_mask) / (copy_mask & 0111) * (user_mask & 0111)
|
936
|
+
else
|
937
|
+
raise ArgumentError, "invalid `perm' symbol in file mode: #{chr}"
|
938
|
+
end
|
939
|
+
end
|
940
|
+
|
941
|
+
if mode_mask.nonzero? || need_apply
|
942
|
+
current_mode = apply_mask(current_mode, user_mask, op, mode_mask)
|
943
|
+
end
|
944
|
+
end
|
945
|
+
current_mode
|
946
|
+
end
|
947
|
+
end
|
948
|
+
private_module_function :symbolic_modes_to_i
|
949
|
+
|
950
|
+
def fu_mode(mode, path) #:nodoc:
|
951
|
+
mode.is_a?(String) ? symbolic_modes_to_i(mode, path) : mode
|
952
|
+
end
|
953
|
+
private_module_function :fu_mode
|
954
|
+
|
955
|
+
def mode_to_s(mode) #:nodoc:
|
956
|
+
mode.is_a?(String) ? mode : "%o" % mode
|
957
|
+
end
|
958
|
+
private_module_function :mode_to_s
|
959
|
+
|
960
|
+
#
|
961
|
+
# Options: noop verbose
|
962
|
+
#
|
963
|
+
# Changes permission bits on the named files (in +list+) to the bit pattern
|
964
|
+
# represented by +mode+.
|
965
|
+
#
|
966
|
+
# +mode+ is the symbolic and absolute mode can be used.
|
967
|
+
#
|
968
|
+
# Absolute mode is
|
969
|
+
# FileUtils.chmod 0755, 'somecommand'
|
970
|
+
# FileUtils.chmod 0644, %w(my.rb your.rb his.rb her.rb)
|
971
|
+
# FileUtils.chmod 0755, '/usr/bin/ruby', :verbose => true
|
972
|
+
#
|
973
|
+
# Symbolic mode is
|
974
|
+
# FileUtils.chmod "u=wrx,go=rx", 'somecommand'
|
975
|
+
# FileUtils.chmod "u=wr,go=rr", %w(my.rb your.rb his.rb her.rb)
|
976
|
+
# FileUtils.chmod "u=wrx,go=rx", '/usr/bin/ruby', :verbose => true
|
977
|
+
#
|
978
|
+
# "a" :: is user, group, other mask.
|
979
|
+
# "u" :: is user's mask.
|
980
|
+
# "g" :: is group's mask.
|
981
|
+
# "o" :: is other's mask.
|
982
|
+
# "w" :: is write permission.
|
983
|
+
# "r" :: is read permission.
|
984
|
+
# "x" :: is execute permission.
|
985
|
+
# "X" ::
|
986
|
+
# is execute permission for directories only, must be used in conjunction with "+"
|
987
|
+
# "s" :: is uid, gid.
|
988
|
+
# "t" :: is sticky bit.
|
989
|
+
# "+" :: is added to a class given the specified mode.
|
990
|
+
# "-" :: Is removed from a given class given mode.
|
991
|
+
# "=" :: Is the exact nature of the class will be given a specified mode.
|
992
|
+
|
993
|
+
def chmod(mode, list, options = {})
|
994
|
+
fu_check_options options, OPT_TABLE['chmod']
|
995
|
+
list = fu_list(list)
|
996
|
+
fu_output_message sprintf('chmod %s %s', mode_to_s(mode), list.join(' ')) if options[:verbose]
|
997
|
+
return if options[:noop]
|
998
|
+
list.each do |path|
|
999
|
+
Entry_.new(path).chmod(fu_mode(mode, path))
|
1000
|
+
end
|
1001
|
+
end
|
1002
|
+
module_function :chmod
|
1003
|
+
|
1004
|
+
OPT_TABLE['chmod'] = [:noop, :verbose]
|
1005
|
+
|
1006
|
+
#
|
1007
|
+
# Options: noop verbose force
|
1008
|
+
#
|
1009
|
+
# Changes permission bits on the named files (in +list+)
|
1010
|
+
# to the bit pattern represented by +mode+.
|
1011
|
+
#
|
1012
|
+
# FileUtils.chmod_R 0700, "/tmp/app.#{$$}"
|
1013
|
+
# FileUtils.chmod_R "u=wrx", "/tmp/app.#{$$}"
|
1014
|
+
#
|
1015
|
+
def chmod_R(mode, list, options = {})
|
1016
|
+
fu_check_options options, OPT_TABLE['chmod_R']
|
1017
|
+
list = fu_list(list)
|
1018
|
+
fu_output_message sprintf('chmod -R%s %s %s',
|
1019
|
+
(options[:force] ? 'f' : ''),
|
1020
|
+
mode_to_s(mode), list.join(' ')) if options[:verbose]
|
1021
|
+
return if options[:noop]
|
1022
|
+
list.each do |root|
|
1023
|
+
Entry_.new(root).traverse do |ent|
|
1024
|
+
begin
|
1025
|
+
ent.chmod(fu_mode(mode, ent.path))
|
1026
|
+
rescue
|
1027
|
+
raise unless options[:force]
|
1028
|
+
end
|
1029
|
+
end
|
1030
|
+
end
|
1031
|
+
end
|
1032
|
+
module_function :chmod_R
|
1033
|
+
|
1034
|
+
OPT_TABLE['chmod_R'] = [:noop, :verbose, :force]
|
1035
|
+
|
1036
|
+
#
|
1037
|
+
# Options: noop verbose
|
1038
|
+
#
|
1039
|
+
# Changes owner and group on the named files (in +list+)
|
1040
|
+
# to the user +user+ and the group +group+. +user+ and +group+
|
1041
|
+
# may be an ID (Integer/String) or a name (String).
|
1042
|
+
# If +user+ or +group+ is nil, this method does not change
|
1043
|
+
# the attribute.
|
1044
|
+
#
|
1045
|
+
# FileUtils.chown 'root', 'staff', '/usr/local/bin/ruby'
|
1046
|
+
# FileUtils.chown nil, 'bin', Dir.glob('/usr/bin/*'), :verbose => true
|
1047
|
+
#
|
1048
|
+
def chown(user, group, list, options = {})
|
1049
|
+
fu_check_options options, OPT_TABLE['chown']
|
1050
|
+
list = fu_list(list)
|
1051
|
+
fu_output_message sprintf('chown %s %s',
|
1052
|
+
(group ? "#{user}:#{group}" : user || ':'),
|
1053
|
+
list.join(' ')) if options[:verbose]
|
1054
|
+
return if options[:noop]
|
1055
|
+
uid = fu_get_uid(user)
|
1056
|
+
gid = fu_get_gid(group)
|
1057
|
+
list.each do |path|
|
1058
|
+
Entry_.new(path).chown uid, gid
|
1059
|
+
end
|
1060
|
+
end
|
1061
|
+
module_function :chown
|
1062
|
+
|
1063
|
+
OPT_TABLE['chown'] = [:noop, :verbose]
|
1064
|
+
|
1065
|
+
#
|
1066
|
+
# Options: noop verbose force
|
1067
|
+
#
|
1068
|
+
# Changes owner and group on the named files (in +list+)
|
1069
|
+
# to the user +user+ and the group +group+ recursively.
|
1070
|
+
# +user+ and +group+ may be an ID (Integer/String) or
|
1071
|
+
# a name (String). If +user+ or +group+ is nil, this
|
1072
|
+
# method does not change the attribute.
|
1073
|
+
#
|
1074
|
+
# FileUtils.chown_R 'www', 'www', '/var/www/htdocs'
|
1075
|
+
# FileUtils.chown_R 'cvs', 'cvs', '/var/cvs', :verbose => true
|
1076
|
+
#
|
1077
|
+
def chown_R(user, group, list, options = {})
|
1078
|
+
fu_check_options options, OPT_TABLE['chown_R']
|
1079
|
+
list = fu_list(list)
|
1080
|
+
fu_output_message sprintf('chown -R%s %s %s',
|
1081
|
+
(options[:force] ? 'f' : ''),
|
1082
|
+
(group ? "#{user}:#{group}" : user || ':'),
|
1083
|
+
list.join(' ')) if options[:verbose]
|
1084
|
+
return if options[:noop]
|
1085
|
+
uid = fu_get_uid(user)
|
1086
|
+
gid = fu_get_gid(group)
|
1087
|
+
list.each do |root|
|
1088
|
+
Entry_.new(root).traverse do |ent|
|
1089
|
+
begin
|
1090
|
+
ent.chown uid, gid
|
1091
|
+
rescue
|
1092
|
+
raise unless options[:force]
|
1093
|
+
end
|
1094
|
+
end
|
1095
|
+
end
|
1096
|
+
end
|
1097
|
+
module_function :chown_R
|
1098
|
+
|
1099
|
+
OPT_TABLE['chown_R'] = [:noop, :verbose, :force]
|
1100
|
+
|
1101
|
+
begin
|
1102
|
+
require 'etc'
|
1103
|
+
rescue LoadError # rescue LoadError for miniruby
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
def fu_get_uid(user) #:nodoc:
|
1107
|
+
return nil unless user
|
1108
|
+
case user
|
1109
|
+
when Integer
|
1110
|
+
user
|
1111
|
+
when /\A\d+\z/
|
1112
|
+
user.to_i
|
1113
|
+
else
|
1114
|
+
Etc.getpwnam(user) ? Etc.getpwnam(user).uid : nil
|
1115
|
+
end
|
1116
|
+
end
|
1117
|
+
private_module_function :fu_get_uid
|
1118
|
+
|
1119
|
+
def fu_get_gid(group) #:nodoc:
|
1120
|
+
return nil unless group
|
1121
|
+
case group
|
1122
|
+
when Integer
|
1123
|
+
group
|
1124
|
+
when /\A\d+\z/
|
1125
|
+
group.to_i
|
1126
|
+
else
|
1127
|
+
Etc.getgrnam(group) ? Etc.getgrnam(group).gid : nil
|
1128
|
+
end
|
1129
|
+
end
|
1130
|
+
private_module_function :fu_get_gid
|
1131
|
+
|
1132
|
+
#
|
1133
|
+
# Options: noop verbose mtime nocreate
|
1134
|
+
#
|
1135
|
+
# Updates modification time (mtime) and access time (atime) of file(s) in
|
1136
|
+
# +list+. Files are created if they don't exist.
|
1137
|
+
#
|
1138
|
+
# FileUtils.touch 'timestamp'
|
1139
|
+
# FileUtils.touch Dir.glob('*.c'); system 'make'
|
1140
|
+
#
|
1141
|
+
def touch(list, options = {})
|
1142
|
+
fu_check_options options, OPT_TABLE['touch']
|
1143
|
+
list = fu_list(list)
|
1144
|
+
nocreate = options[:nocreate]
|
1145
|
+
t = options[:mtime]
|
1146
|
+
if options[:verbose]
|
1147
|
+
fu_output_message "touch #{nocreate ? '-c ' : ''}#{t ? t.strftime('-t %Y%m%d%H%M.%S ') : ''}#{list.join ' '}"
|
1148
|
+
end
|
1149
|
+
return if options[:noop]
|
1150
|
+
list.each do |path|
|
1151
|
+
created = nocreate
|
1152
|
+
begin
|
1153
|
+
File.utime(t, t, path)
|
1154
|
+
rescue Errno::ENOENT
|
1155
|
+
raise if created
|
1156
|
+
File.open(path, 'a') {
|
1157
|
+
;
|
1158
|
+
}
|
1159
|
+
created = true
|
1160
|
+
retry if t
|
1161
|
+
end
|
1162
|
+
end
|
1163
|
+
end
|
1164
|
+
module_function :touch
|
1165
|
+
|
1166
|
+
OPT_TABLE['touch'] = [:noop, :verbose, :mtime, :nocreate]
|
1167
|
+
|
1168
|
+
private
|
1169
|
+
|
1170
|
+
module StreamUtils_
|
1171
|
+
private
|
1172
|
+
|
1173
|
+
def fu_windows?
|
1174
|
+
/mswin|mingw|bccwin|emx/ =~ RUBY_PLATFORM
|
1175
|
+
end
|
1176
|
+
|
1177
|
+
def fu_copy_stream0(src, dest, blksize = nil) #:nodoc:
|
1178
|
+
IO.copy_stream(src, dest)
|
1179
|
+
end
|
1180
|
+
|
1181
|
+
def fu_stream_blksize(*streams)
|
1182
|
+
streams.each do |s|
|
1183
|
+
next unless s.respond_to?(:stat)
|
1184
|
+
size = fu_blksize(s.stat)
|
1185
|
+
return size if size
|
1186
|
+
end
|
1187
|
+
fu_default_blksize()
|
1188
|
+
end
|
1189
|
+
|
1190
|
+
def fu_blksize(st)
|
1191
|
+
s = st.blksize
|
1192
|
+
return nil unless s
|
1193
|
+
return nil if s == 0
|
1194
|
+
s
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
def fu_default_blksize
|
1198
|
+
1024
|
1199
|
+
end
|
1200
|
+
end
|
1201
|
+
|
1202
|
+
include StreamUtils_
|
1203
|
+
extend StreamUtils_
|
1204
|
+
|
1205
|
+
class Entry_ #:nodoc: internal use only
|
1206
|
+
include StreamUtils_
|
1207
|
+
|
1208
|
+
def initialize(a, b = nil, deref = false)
|
1209
|
+
@prefix = @rel = @path = nil
|
1210
|
+
if b
|
1211
|
+
@prefix = a
|
1212
|
+
@rel = b
|
1213
|
+
else
|
1214
|
+
@path = a
|
1215
|
+
end
|
1216
|
+
@deref = deref
|
1217
|
+
@stat = nil
|
1218
|
+
@lstat = nil
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
def inspect
|
1222
|
+
"\#<#{self.class} #{path()}>"
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
def path
|
1226
|
+
if @path
|
1227
|
+
File.path(@path)
|
1228
|
+
else
|
1229
|
+
join(@prefix, @rel)
|
1230
|
+
end
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
def prefix
|
1234
|
+
@prefix || @path
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
def rel
|
1238
|
+
@rel
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
def dereference?
|
1242
|
+
@deref
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
def exist?
|
1246
|
+
begin
|
1247
|
+
lstat
|
1248
|
+
true
|
1249
|
+
rescue Errno::ENOENT
|
1250
|
+
false
|
1251
|
+
end
|
1252
|
+
end
|
1253
|
+
|
1254
|
+
def file?
|
1255
|
+
s = lstat!
|
1256
|
+
s and s.file?
|
1257
|
+
end
|
1258
|
+
|
1259
|
+
def directory?
|
1260
|
+
s = lstat!
|
1261
|
+
s and s.directory?
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
def symlink?
|
1265
|
+
s = lstat!
|
1266
|
+
s and s.symlink?
|
1267
|
+
end
|
1268
|
+
|
1269
|
+
def chardev?
|
1270
|
+
s = lstat!
|
1271
|
+
s and s.chardev?
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
def blockdev?
|
1275
|
+
s = lstat!
|
1276
|
+
s and s.blockdev?
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
def socket?
|
1280
|
+
s = lstat!
|
1281
|
+
s and s.socket?
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
def pipe?
|
1285
|
+
s = lstat!
|
1286
|
+
s and s.pipe?
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
S_IF_DOOR = 0xD000
|
1290
|
+
|
1291
|
+
def door?
|
1292
|
+
s = lstat!
|
1293
|
+
s and (s.mode & 0xF000 == S_IF_DOOR)
|
1294
|
+
end
|
1295
|
+
|
1296
|
+
def entries
|
1297
|
+
opts = {}
|
1298
|
+
opts[:encoding] = ::Encoding::UTF_8 if fu_windows?
|
1299
|
+
Dir.entries(path(), opts)\
|
1300
|
+
.reject {|n| n == '.' or n == '..' }\
|
1301
|
+
.map {|n| Entry_.new(prefix(), join(rel(), n.untaint)) }
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
def stat
|
1305
|
+
return @stat if @stat
|
1306
|
+
if lstat() and lstat().symlink?
|
1307
|
+
@stat = File.stat(path())
|
1308
|
+
else
|
1309
|
+
@stat = lstat()
|
1310
|
+
end
|
1311
|
+
@stat
|
1312
|
+
end
|
1313
|
+
|
1314
|
+
def stat!
|
1315
|
+
return @stat if @stat
|
1316
|
+
if lstat! and lstat!.symlink?
|
1317
|
+
@stat = File.stat(path())
|
1318
|
+
else
|
1319
|
+
@stat = lstat!
|
1320
|
+
end
|
1321
|
+
@stat
|
1322
|
+
rescue SystemCallError
|
1323
|
+
nil
|
1324
|
+
end
|
1325
|
+
|
1326
|
+
def lstat
|
1327
|
+
if dereference?
|
1328
|
+
@lstat ||= File.stat(path())
|
1329
|
+
else
|
1330
|
+
@lstat ||= File.lstat(path())
|
1331
|
+
end
|
1332
|
+
end
|
1333
|
+
|
1334
|
+
def lstat!
|
1335
|
+
lstat()
|
1336
|
+
rescue SystemCallError
|
1337
|
+
nil
|
1338
|
+
end
|
1339
|
+
|
1340
|
+
def chmod(mode)
|
1341
|
+
if symlink?
|
1342
|
+
File.lchmod mode, path() if have_lchmod?
|
1343
|
+
else
|
1344
|
+
File.chmod mode, path()
|
1345
|
+
end
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
def chown(uid, gid)
|
1349
|
+
if symlink?
|
1350
|
+
File.lchown uid, gid, path() if have_lchown?
|
1351
|
+
else
|
1352
|
+
File.chown uid, gid, path()
|
1353
|
+
end
|
1354
|
+
end
|
1355
|
+
|
1356
|
+
def copy(dest)
|
1357
|
+
case
|
1358
|
+
when file?
|
1359
|
+
copy_file dest
|
1360
|
+
when directory?
|
1361
|
+
if !File.exist?(dest) and descendant_directory?(dest, path)
|
1362
|
+
raise ArgumentError, "cannot copy directory %s to itself %s" % [path, dest]
|
1363
|
+
end
|
1364
|
+
begin
|
1365
|
+
Dir.mkdir dest
|
1366
|
+
rescue
|
1367
|
+
raise unless File.directory?(dest)
|
1368
|
+
end
|
1369
|
+
when symlink?
|
1370
|
+
File.symlink File.readlink(path()), dest
|
1371
|
+
when chardev?
|
1372
|
+
raise "cannot handle device file" unless File.respond_to?(:mknod)
|
1373
|
+
mknod dest, ?c, 0666, lstat().rdev
|
1374
|
+
when blockdev?
|
1375
|
+
raise "cannot handle device file" unless File.respond_to?(:mknod)
|
1376
|
+
mknod dest, ?b, 0666, lstat().rdev
|
1377
|
+
when socket?
|
1378
|
+
raise "cannot handle socket" unless File.respond_to?(:mknod)
|
1379
|
+
mknod dest, nil, lstat().mode, 0
|
1380
|
+
when pipe?
|
1381
|
+
raise "cannot handle FIFO" unless File.respond_to?(:mkfifo)
|
1382
|
+
mkfifo dest, 0666
|
1383
|
+
when door?
|
1384
|
+
raise "cannot handle door: #{path()}"
|
1385
|
+
else
|
1386
|
+
raise "unknown file type: #{path()}"
|
1387
|
+
end
|
1388
|
+
end
|
1389
|
+
|
1390
|
+
def copy_file(dest)
|
1391
|
+
File.open(path()) do |s|
|
1392
|
+
File.open(dest, 'wb', s.stat.mode) do |f|
|
1393
|
+
IO.copy_stream(s, f)
|
1394
|
+
end
|
1395
|
+
end
|
1396
|
+
end
|
1397
|
+
|
1398
|
+
def copy_metadata(path)
|
1399
|
+
st = lstat()
|
1400
|
+
if !st.symlink?
|
1401
|
+
File.utime st.atime, st.mtime, path
|
1402
|
+
end
|
1403
|
+
begin
|
1404
|
+
if st.symlink?
|
1405
|
+
begin
|
1406
|
+
File.lchown st.uid, st.gid, path
|
1407
|
+
rescue NotImplementedError
|
1408
|
+
end
|
1409
|
+
else
|
1410
|
+
File.chown st.uid, st.gid, path
|
1411
|
+
end
|
1412
|
+
rescue Errno::EPERM
|
1413
|
+
# clear setuid/setgid
|
1414
|
+
if st.symlink?
|
1415
|
+
begin
|
1416
|
+
File.lchmod st.mode & 01777, path
|
1417
|
+
rescue NotImplementedError
|
1418
|
+
end
|
1419
|
+
else
|
1420
|
+
File.chmod st.mode & 01777, path
|
1421
|
+
end
|
1422
|
+
else
|
1423
|
+
if st.symlink?
|
1424
|
+
begin
|
1425
|
+
File.lchmod st.mode, path
|
1426
|
+
rescue NotImplementedError
|
1427
|
+
end
|
1428
|
+
else
|
1429
|
+
File.chmod st.mode, path
|
1430
|
+
end
|
1431
|
+
end
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
def remove
|
1435
|
+
if directory?
|
1436
|
+
remove_dir1
|
1437
|
+
else
|
1438
|
+
remove_file
|
1439
|
+
end
|
1440
|
+
end
|
1441
|
+
|
1442
|
+
def remove_dir1
|
1443
|
+
platform_support {
|
1444
|
+
Dir.rmdir path().chomp(?/)
|
1445
|
+
}
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
def remove_file
|
1449
|
+
platform_support {
|
1450
|
+
File.unlink path
|
1451
|
+
}
|
1452
|
+
end
|
1453
|
+
|
1454
|
+
def platform_support
|
1455
|
+
return yield unless fu_windows?
|
1456
|
+
first_time_p = true
|
1457
|
+
begin
|
1458
|
+
yield
|
1459
|
+
rescue Errno::ENOENT
|
1460
|
+
raise
|
1461
|
+
rescue => err
|
1462
|
+
if first_time_p
|
1463
|
+
first_time_p = false
|
1464
|
+
begin
|
1465
|
+
File.chmod 0700, path() # Windows does not have symlink
|
1466
|
+
retry
|
1467
|
+
rescue SystemCallError
|
1468
|
+
end
|
1469
|
+
end
|
1470
|
+
raise err
|
1471
|
+
end
|
1472
|
+
end
|
1473
|
+
|
1474
|
+
def preorder_traverse
|
1475
|
+
stack = [self]
|
1476
|
+
while ent = stack.pop
|
1477
|
+
yield ent
|
1478
|
+
stack.concat ent.entries.reverse if ent.directory?
|
1479
|
+
end
|
1480
|
+
end
|
1481
|
+
|
1482
|
+
alias traverse preorder_traverse
|
1483
|
+
|
1484
|
+
def postorder_traverse
|
1485
|
+
if directory?
|
1486
|
+
entries().each do |ent|
|
1487
|
+
ent.postorder_traverse do |e|
|
1488
|
+
yield e
|
1489
|
+
end
|
1490
|
+
end
|
1491
|
+
end
|
1492
|
+
ensure
|
1493
|
+
yield self
|
1494
|
+
end
|
1495
|
+
|
1496
|
+
def wrap_traverse(pre, post)
|
1497
|
+
pre.call self
|
1498
|
+
if directory?
|
1499
|
+
entries.each do |ent|
|
1500
|
+
ent.wrap_traverse pre, post
|
1501
|
+
end
|
1502
|
+
end
|
1503
|
+
post.call self
|
1504
|
+
end
|
1505
|
+
|
1506
|
+
private
|
1507
|
+
|
1508
|
+
$fileutils_rb_have_lchmod = nil
|
1509
|
+
|
1510
|
+
def have_lchmod?
|
1511
|
+
# This is not MT-safe, but it does not matter.
|
1512
|
+
if $fileutils_rb_have_lchmod == nil
|
1513
|
+
$fileutils_rb_have_lchmod = check_have_lchmod?
|
1514
|
+
end
|
1515
|
+
$fileutils_rb_have_lchmod
|
1516
|
+
end
|
1517
|
+
|
1518
|
+
def check_have_lchmod?
|
1519
|
+
return false unless File.respond_to?(:lchmod)
|
1520
|
+
File.lchmod 0
|
1521
|
+
return true
|
1522
|
+
rescue NotImplementedError
|
1523
|
+
return false
|
1524
|
+
end
|
1525
|
+
|
1526
|
+
$fileutils_rb_have_lchown = nil
|
1527
|
+
|
1528
|
+
def have_lchown?
|
1529
|
+
# This is not MT-safe, but it does not matter.
|
1530
|
+
if $fileutils_rb_have_lchown == nil
|
1531
|
+
$fileutils_rb_have_lchown = check_have_lchown?
|
1532
|
+
end
|
1533
|
+
$fileutils_rb_have_lchown
|
1534
|
+
end
|
1535
|
+
|
1536
|
+
def check_have_lchown?
|
1537
|
+
return false unless File.respond_to?(:lchown)
|
1538
|
+
File.lchown nil, nil
|
1539
|
+
return true
|
1540
|
+
rescue NotImplementedError
|
1541
|
+
return false
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
def join(dir, base)
|
1545
|
+
return File.path(dir) if not base or base == '.'
|
1546
|
+
return File.path(base) if not dir or dir == '.'
|
1547
|
+
File.join(dir, base)
|
1548
|
+
end
|
1549
|
+
|
1550
|
+
if File::ALT_SEPARATOR
|
1551
|
+
DIRECTORY_TERM = "(?=[/#{Regexp.quote(File::ALT_SEPARATOR)}]|\\z)".freeze
|
1552
|
+
else
|
1553
|
+
DIRECTORY_TERM = "(?=/|\\z)".freeze
|
1554
|
+
end
|
1555
|
+
SYSCASE = File::FNM_SYSCASE.nonzero? ? "-i" : ""
|
1556
|
+
|
1557
|
+
def descendant_directory?(descendant, ascendant)
|
1558
|
+
/\A(?#{SYSCASE}:#{Regexp.quote(ascendant)})#{DIRECTORY_TERM}/ =~ File.dirname(descendant)
|
1559
|
+
end
|
1560
|
+
end # class Entry_
|
1561
|
+
|
1562
|
+
def fu_list(arg) #:nodoc:
|
1563
|
+
[arg].flatten.map {|path| File.path(path) }
|
1564
|
+
end
|
1565
|
+
private_module_function :fu_list
|
1566
|
+
|
1567
|
+
def fu_each_src_dest(src, dest) #:nodoc:
|
1568
|
+
fu_each_src_dest0(src, dest) do |s, d|
|
1569
|
+
raise ArgumentError, "same file: #{s} and #{d}" if fu_same?(s, d)
|
1570
|
+
yield s, d
|
1571
|
+
end
|
1572
|
+
end
|
1573
|
+
private_module_function :fu_each_src_dest
|
1574
|
+
|
1575
|
+
def fu_each_src_dest0(src, dest) #:nodoc:
|
1576
|
+
if tmp = Array.try_convert(src)
|
1577
|
+
tmp.each do |s|
|
1578
|
+
s = File.path(s)
|
1579
|
+
yield s, File.join(dest, File.basename(s))
|
1580
|
+
end
|
1581
|
+
else
|
1582
|
+
src = File.path(src)
|
1583
|
+
if File.directory?(dest)
|
1584
|
+
yield src, File.join(dest, File.basename(src))
|
1585
|
+
else
|
1586
|
+
yield src, File.path(dest)
|
1587
|
+
end
|
1588
|
+
end
|
1589
|
+
end
|
1590
|
+
private_module_function :fu_each_src_dest0
|
1591
|
+
|
1592
|
+
def fu_same?(a, b) #:nodoc:
|
1593
|
+
File.identical?(a, b)
|
1594
|
+
end
|
1595
|
+
private_module_function :fu_same?
|
1596
|
+
|
1597
|
+
def fu_check_options(options, optdecl) #:nodoc:
|
1598
|
+
h = options.dup
|
1599
|
+
optdecl.each do |opt|
|
1600
|
+
h.delete opt
|
1601
|
+
end
|
1602
|
+
raise ArgumentError, "no such option: #{h.keys.join(' ')}" unless h.empty?
|
1603
|
+
end
|
1604
|
+
private_module_function :fu_check_options
|
1605
|
+
|
1606
|
+
def fu_update_option(args, new) #:nodoc:
|
1607
|
+
if tmp = Hash.try_convert(args.last)
|
1608
|
+
args[-1] = tmp.dup.update(new)
|
1609
|
+
else
|
1610
|
+
args.push new
|
1611
|
+
end
|
1612
|
+
args
|
1613
|
+
end
|
1614
|
+
private_module_function :fu_update_option
|
1615
|
+
|
1616
|
+
@fileutils_output = $stderr
|
1617
|
+
@fileutils_label = ''
|
1618
|
+
|
1619
|
+
def fu_output_message(msg) #:nodoc:
|
1620
|
+
@fileutils_output ||= $stderr
|
1621
|
+
@fileutils_label ||= ''
|
1622
|
+
@fileutils_output.puts @fileutils_label + msg
|
1623
|
+
end
|
1624
|
+
private_module_function :fu_output_message
|
1625
|
+
|
1626
|
+
#
|
1627
|
+
# Returns an Array of method names which have any options.
|
1628
|
+
#
|
1629
|
+
# p FileUtils.commands #=> ["chmod", "cp", "cp_r", "install", ...]
|
1630
|
+
#
|
1631
|
+
def FileUtils.commands
|
1632
|
+
OPT_TABLE.keys
|
1633
|
+
end
|
1634
|
+
|
1635
|
+
#
|
1636
|
+
# Returns an Array of option names.
|
1637
|
+
#
|
1638
|
+
# p FileUtils.options #=> ["noop", "force", "verbose", "preserve", "mode"]
|
1639
|
+
#
|
1640
|
+
def FileUtils.options
|
1641
|
+
OPT_TABLE.values.flatten.uniq.map {|sym| sym.to_s }
|
1642
|
+
end
|
1643
|
+
|
1644
|
+
#
|
1645
|
+
# Returns true if the method +mid+ have an option +opt+.
|
1646
|
+
#
|
1647
|
+
# p FileUtils.have_option?(:cp, :noop) #=> true
|
1648
|
+
# p FileUtils.have_option?(:rm, :force) #=> true
|
1649
|
+
# p FileUtils.have_option?(:rm, :preserve) #=> false
|
1650
|
+
#
|
1651
|
+
def FileUtils.have_option?(mid, opt)
|
1652
|
+
li = OPT_TABLE[mid.to_s] or raise ArgumentError, "no such method: #{mid}"
|
1653
|
+
li.include?(opt)
|
1654
|
+
end
|
1655
|
+
|
1656
|
+
#
|
1657
|
+
# Returns an Array of option names of the method +mid+.
|
1658
|
+
#
|
1659
|
+
# p FileUtils.options_of(:rm) #=> ["noop", "verbose", "force"]
|
1660
|
+
#
|
1661
|
+
def FileUtils.options_of(mid)
|
1662
|
+
OPT_TABLE[mid.to_s].map {|sym| sym.to_s }
|
1663
|
+
end
|
1664
|
+
|
1665
|
+
#
|
1666
|
+
# Returns an Array of method names which have the option +opt+.
|
1667
|
+
#
|
1668
|
+
# p FileUtils.collect_method(:preserve) #=> ["cp", "cp_r", "copy", "install"]
|
1669
|
+
#
|
1670
|
+
def FileUtils.collect_method(opt)
|
1671
|
+
OPT_TABLE.keys.select {|m| OPT_TABLE[m].include?(opt) }
|
1672
|
+
end
|
1673
|
+
|
1674
|
+
LOW_METHODS = singleton_methods(false) - collect_method(:noop).map(&:intern)
|
1675
|
+
module LowMethods
|
1676
|
+
module_eval("private\n" + ::FileUtils::LOW_METHODS.map {|name| "def #{name}(*)end"}.join("\n"),
|
1677
|
+
__FILE__, __LINE__)
|
1678
|
+
end
|
1679
|
+
|
1680
|
+
METHODS = singleton_methods() - [:private_module_function,
|
1681
|
+
:commands, :options, :have_option?, :options_of, :collect_method]
|
1682
|
+
|
1683
|
+
#
|
1684
|
+
# This module has all methods of FileUtils module, but it outputs messages
|
1685
|
+
# before acting. This equates to passing the <tt>:verbose</tt> flag to
|
1686
|
+
# methods in FileUtils.
|
1687
|
+
#
|
1688
|
+
module Verbose
|
1689
|
+
include FileUtils
|
1690
|
+
@fileutils_output = $stderr
|
1691
|
+
@fileutils_label = ''
|
1692
|
+
::FileUtils.collect_method(:verbose).each do |name|
|
1693
|
+
module_eval(<<-EOS, __FILE__, __LINE__ + 1)
|
1694
|
+
def #{name}(*args)
|
1695
|
+
super(*fu_update_option(args, :verbose => true))
|
1696
|
+
end
|
1697
|
+
private :#{name}
|
1698
|
+
EOS
|
1699
|
+
end
|
1700
|
+
extend self
|
1701
|
+
class << self
|
1702
|
+
::FileUtils::METHODS.each do |m|
|
1703
|
+
public m
|
1704
|
+
end
|
1705
|
+
end
|
1706
|
+
end
|
1707
|
+
|
1708
|
+
#
|
1709
|
+
# This module has all methods of FileUtils module, but never changes
|
1710
|
+
# files/directories. This equates to passing the <tt>:noop</tt> flag
|
1711
|
+
# to methods in FileUtils.
|
1712
|
+
#
|
1713
|
+
module NoWrite
|
1714
|
+
include FileUtils
|
1715
|
+
include LowMethods
|
1716
|
+
@fileutils_output = $stderr
|
1717
|
+
@fileutils_label = ''
|
1718
|
+
::FileUtils.collect_method(:noop).each do |name|
|
1719
|
+
module_eval(<<-EOS, __FILE__, __LINE__ + 1)
|
1720
|
+
def #{name}(*args)
|
1721
|
+
super(*fu_update_option(args, :noop => true))
|
1722
|
+
end
|
1723
|
+
private :#{name}
|
1724
|
+
EOS
|
1725
|
+
end
|
1726
|
+
extend self
|
1727
|
+
class << self
|
1728
|
+
::FileUtils::METHODS.each do |m|
|
1729
|
+
public m
|
1730
|
+
end
|
1731
|
+
end
|
1732
|
+
end
|
1733
|
+
|
1734
|
+
#
|
1735
|
+
# This module has all methods of FileUtils module, but never changes
|
1736
|
+
# files/directories, with printing message before acting.
|
1737
|
+
# This equates to passing the <tt>:noop</tt> and <tt>:verbose</tt> flag
|
1738
|
+
# to methods in FileUtils.
|
1739
|
+
#
|
1740
|
+
module DryRun
|
1741
|
+
include FileUtils
|
1742
|
+
include LowMethods
|
1743
|
+
@fileutils_output = $stderr
|
1744
|
+
@fileutils_label = ''
|
1745
|
+
::FileUtils.collect_method(:noop).each do |name|
|
1746
|
+
module_eval(<<-EOS, __FILE__, __LINE__ + 1)
|
1747
|
+
def #{name}(*args)
|
1748
|
+
super(*fu_update_option(args, :noop => true, :verbose => true))
|
1749
|
+
end
|
1750
|
+
private :#{name}
|
1751
|
+
EOS
|
1752
|
+
end
|
1753
|
+
extend self
|
1754
|
+
class << self
|
1755
|
+
::FileUtils::METHODS.each do |m|
|
1756
|
+
public m
|
1757
|
+
end
|
1758
|
+
end
|
1759
|
+
end
|
1760
|
+
|
1761
|
+
end
|