├── ruby
├── ext
│ ├── win32ole
│ │ ├── .document
│ │ └── win32ole_event.h
│ ├── bigdecimal
│ │ ├── util
│ │ │ ├── util.c
│ │ │ └── extconf.rb
│ │ └── bigdecimal.def
│ ├── fiber
│ │ ├── depend
│ │ ├── extconf.rb
│ │ └── fiber.c
│ ├── rubyvm
│ │ └── extconf.rb
│ ├── gdbm
│ │ └── README
│ ├── -test-
│ │ ├── load
│ │ │ ├── dot.dot
│ │ │ │ ├── dot.dot.c
│ │ │ │ ├── extconf.rb
│ │ │ │ └── depend
│ │ │ └── protect
│ │ │ │ └── extconf.rb
│ │ ├── vm
│ │ │ └── extconf.rb
│ │ ├── dln
│ │ │ └── empty
│ │ │ │ ├── empty.c
│ │ │ │ ├── extconf.rb
│ │ │ │ └── depend
│ │ ├── scan_args
│ │ │ └── extconf.rb
│ │ ├── win32
│ │ │ ├── dln
│ │ │ │ ├── libdlntest.def
│ │ │ │ └── libdlntest.c
│ │ │ ├── console
│ │ │ │ ├── depend
│ │ │ │ └── extconf.rb
│ │ │ └── fd_setsize
│ │ │ │ ├── depend
│ │ │ │ └── extconf.rb
│ │ ├── num2int
│ │ │ └── extconf.rb
│ │ ├── postponed_job
│ │ │ ├── depend
│ │ │ └── extconf.rb
│ │ ├── printf
│ │ │ ├── extconf.rb
│ │ │ └── depend
│ │ ├── bug-14834
│ │ │ └── extconf.rb
│ │ ├── bug-3571
│ │ │ └── extconf.rb
│ │ ├── bug-5832
│ │ │ └── extconf.rb
│ │ ├── fatal
│ │ │ └── extconf.rb
│ │ ├── iseq_load
│ │ │ └── extconf.rb
│ │ ├── st
│ │ │ ├── foreach
│ │ │ │ └── extconf.rb
│ │ │ ├── numhash
│ │ │ │ └── extconf.rb
│ │ │ └── update
│ │ │ │ └── extconf.rb
│ │ ├── tracepoint
│ │ │ └── extconf.rb
│ │ ├── typeddata
│ │ │ └── extconf.rb
│ │ ├── array
│ │ │ └── resize
│ │ │ │ └── extconf.rb
│ │ ├── bug_reporter
│ │ │ └── extconf.rb
│ │ ├── debug
│ │ │ └── extconf.rb
│ │ ├── marshal
│ │ │ ├── usr
│ │ │ │ └── extconf.rb
│ │ │ ├── compat
│ │ │ │ └── extconf.rb
│ │ │ └── internal_ivar
│ │ │ │ └── extconf.rb
│ │ ├── notimplement
│ │ │ └── extconf.rb
│ │ ├── exception
│ │ │ └── extconf.rb
│ │ ├── method
│ │ │ └── extconf.rb
│ │ ├── regexp
│ │ │ └── extconf.rb
│ │ ├── thread_fd_close
│ │ │ └── extconf.rb
│ │ ├── arith_seq
│ │ │ └── extract
│ │ │ │ └── extconf.rb
│ │ ├── funcall
│ │ │ └── extconf.rb
│ │ ├── hash
│ │ │ └── extconf.rb
│ │ ├── iter
│ │ │ └── extconf.rb
│ │ ├── proc
│ │ │ └── extconf.rb
│ │ ├── time
│ │ │ └── extconf.rb
│ │ ├── bignum
│ │ │ └── extconf.rb
│ │ ├── class
│ │ │ └── extconf.rb
│ │ ├── float
│ │ │ ├── depend
│ │ │ └── extconf.rb
│ │ ├── gvl
│ │ │ └── call_without_gvl
│ │ │ │ └── extconf.rb
│ │ ├── integer
│ │ │ └── extconf.rb
│ │ ├── recursion
│ │ │ └── extconf.rb
│ │ ├── string
│ │ │ └── extconf.rb
│ │ ├── struct
│ │ │ └── extconf.rb
│ │ └── symbol
│ │ │ └── extconf.rb
│ ├── json
│ │ ├── extconf.rb
│ │ ├── generator
│ │ │ └── extconf.rb
│ │ └── parser
│ │ │ └── extconf.rb
│ ├── cgi
│ │ └── escape
│ │ │ └── extconf.rb
│ ├── fiddle
│ │ ├── libffi-3.2.1
│ │ │ ├── testsuite
│ │ │ │ └── config
│ │ │ │ │ └── default.exp
│ │ │ └── doc
│ │ │ │ ├── stamp-vti
│ │ │ │ └── version.texi
│ │ ├── closure.h
│ │ └── function.h
│ ├── io
│ │ └── console
│ │ │ ├── win32_vk.chksum
│ │ │ └── buildgem.sh
│ ├── fcntl
│ │ └── extconf.rb
│ ├── nkf
│ │ └── extconf.rb
│ ├── stringio
│ │ └── extconf.rb
│ ├── continuation
│ │ └── extconf.rb
│ ├── psych
│ │ ├── lib
│ │ │ └── psych
│ │ │ │ ├── omap.rb
│ │ │ │ └── set.rb
│ │ ├── psych_parser.h
│ │ ├── psych_emitter.h
│ │ ├── psych_to_ruby.h
│ │ └── psych_yaml_tree.h
│ ├── openssl
│ │ └── ossl_kdf.h
│ ├── win32
│ │ ├── extconf.rb
│ │ └── resolv
│ │ │ └── extconf.rb
│ ├── sdbm
│ │ └── extconf.rb
│ ├── strscan
│ │ └── extconf.rb
│ ├── digest
│ │ ├── md5
│ │ │ └── md5cc.c
│ │ └── bubblebabble
│ │ │ └── extconf.rb
│ └── pathname
│ │ └── extconf.rb
├── lib
│ ├── rdoc
│ │ ├── .document
│ │ ├── generator
│ │ │ └── template
│ │ │ │ ├── darkfish
│ │ │ │ ├── .document
│ │ │ │ ├── images
│ │ │ │ │ ├── add.png
│ │ │ │ │ ├── bug.png
│ │ │ │ │ ├── date.png
│ │ │ │ │ ├── find.png
│ │ │ │ │ ├── ruby.png
│ │ │ │ │ ├── zoom.png
│ │ │ │ │ ├── brick.png
│ │ │ │ │ ├── delete.png
│ │ │ │ │ ├── plugin.png
│ │ │ │ │ ├── wrench.png
│ │ │ │ │ ├── arrow_up.png
│ │ │ │ │ ├── package.png
│ │ │ │ │ ├── tag_blue.png
│ │ │ │ │ ├── tag_green.png
│ │ │ │ │ ├── brick_link.png
│ │ │ │ │ ├── macFFBgHack.png
│ │ │ │ │ ├── page_green.png
│ │ │ │ │ ├── transparent.png
│ │ │ │ │ ├── bullet_black.png
│ │ │ │ │ └── wrench_orange.png
│ │ │ │ └── fonts
│ │ │ │ │ ├── Lato-Light.ttf
│ │ │ │ │ └── Lato-Regular.ttf
│ │ │ │ └── json_index
│ │ │ │ └── .document
│ │ ├── version.rb
│ │ ├── ri
│ │ │ ├── store.rb
│ │ │ └── formatter.rb
│ │ └── meta_method.rb
│ ├── bundler
│ │ ├── ssl_certs
│ │ │ └── .document
│ │ ├── templates
│ │ │ ├── .document
│ │ │ └── newgem
│ │ │ │ ├── rspec.tt
│ │ │ │ ├── exe
│ │ │ │ └── newgem.tt
│ │ │ │ └── ext
│ │ │ │ └── newgem
│ │ │ │ └── extconf.rb.tt
│ │ ├── vendor
│ │ │ └── thor
│ │ │ │ └── lib
│ │ │ │ └── thor
│ │ │ │ └── version.rb
│ │ ├── vendored_molinillo.rb
│ │ └── gem_tasks.rb
│ ├── drb.rb
│ ├── rubygems
│ │ ├── ssl_certs
│ │ │ └── .document
│ │ ├── package
│ │ │ └── source.rb
│ │ └── resolver
│ │ │ └── molinillo.rb
│ ├── thwait
│ │ └── version.rb
│ ├── e2mmap
│ │ └── version.rb
│ ├── optionparser.rb
│ ├── rexml.rb
│ ├── tracer
│ │ └── version.rb
│ ├── fileutils
│ │ └── version.rb
│ ├── irb
│ │ └── lc
│ │ │ └── .document
│ ├── csv
│ │ └── version.rb
│ └── optparse
│ │ └── uri.rb
├── tool
│ ├── ruby_vm
│ │ └── tests
│ │ │ └── .gitkeep
│ └── m4
│ │ └── ac_msg_result.m4
├── benchmark
│ ├── gc
│ │ ├── null.rb
│ │ ├── aobench.rb
│ │ ├── pentomino.rb
│ │ ├── binary_trees.rb
│ │ ├── hash2.rb
│ │ └── hash1.rb
│ ├── int_quo.rb
│ ├── loop_times.rb
│ ├── other-lang
│ │ ├── loop2.rb
│ │ ├── loop.scm
│ │ ├── loop.pl
│ │ ├── loop.py
│ │ ├── loop.rb
│ │ ├── fib.py
│ │ ├── fib.rb
│ │ ├── fib.scm
│ │ ├── fact.scm
│ │ └── ack.scm
│ ├── bighash.rb
│ ├── loop_for.rb
│ ├── time_subsec.rb
│ ├── hash_small2.rb
│ ├── hash_small4.rb
│ ├── hash_small8.rb
│ ├── array_sample_100k_10.rb
│ ├── array_sample_100k_11.rb
│ ├── array_sample_100k__100.rb
│ ├── array_sample_100k__1k.rb
│ ├── array_sample_100k__6k.rb
│ ├── array_sort_float.rb
│ ├── marshal_dump_load_time.rb
│ ├── array_sample_100k___10k.rb
│ ├── array_sample_100k___50k.rb
│ ├── vm2_eval.yml
│ ├── loop_whileloop.rb
│ ├── loop_whileloop2.rb
│ ├── app_strconcat.rb
│ ├── array_values_at_int.rb
│ ├── string_scan_re.rb
│ ├── string_scan_str.rb
│ ├── vm2_newlambda.yml
│ ├── array_values_at_range.rb
│ ├── vm3_gc_old_full.rb
│ ├── array_sort_block.rb
│ ├── lib
│ │ └── load.rb
│ ├── marshal_dump_flo.rb
│ ├── vm1_ivar_set.yml
│ ├── vm2_array.yml
│ ├── vm3_gc.rb
│ ├── app_raise.rb
│ ├── securerandom.rb
│ ├── vm1_rescue.yml
│ ├── vm1_not.yml
│ ├── vm3_clearmethodcache.rb
│ ├── vm_thread_alive_check1.rb
│ ├── hash_aref_fix.rb
│ ├── hash_literal_small2.rb
│ ├── string_index.rb
│ ├── vm1_ivar.yml
│ ├── vm_thread_create_join.rb
│ ├── hash_keys.rb
│ ├── vm1_swap.yml
│ ├── vm2_unif1.yml
│ ├── hash_flatten.rb
│ ├── hash_values.rb
│ ├── vm1_blockparam.yml
│ ├── vm2_dstr.yml
│ ├── vm2_regexp.yml
│ ├── app_fib.rb
│ ├── dir_empty_p.rb
│ ├── hash_aref_flo.rb
│ ├── hash_to_proc.rb
│ ├── vm1_const.yml
│ ├── vm1_simplereturn.yml
│ ├── hash_aref_dsym.rb
│ ├── hash_aref_str.rb
│ ├── hash_ident_num.rb
│ ├── vm2_module_ann_const_set.yml
│ ├── vm3_gc_old_lazy.rb
│ ├── hash_ident_str.rb
│ ├── io_select.rb
│ ├── vm1_neq.yml
│ ├── vm3_gc_old_immediate.rb
│ ├── app_uri.rb
│ ├── enum_lazy_uniq_20.rb
│ ├── enum_lazy_uniq_50.rb
│ ├── hash_literal_small4.rb
│ ├── hash_shift.rb
│ ├── vm1_block.yml
│ ├── vm1_lvar_set.yml
│ ├── vm2_method.yml
│ ├── vm_thread_close.rb
│ ├── enum_lazy_uniq_100.rb
│ ├── hash_ident_flo.rb
│ ├── hash_ident_obj.rb
│ ├── vm1_blockparam_call.yml
│ ├── vm1_length.yml
│ ├── app_factorial.rb
│ ├── enum_lazy_grep_v_100.rb
│ ├── enum_lazy_grep_v_20.rb
│ ├── enum_lazy_grep_v_50.rb
│ ├── hash_ident_sym.rb
│ ├── vm2_mutex.yml
│ ├── vm2_string_literal.yml
│ ├── hash_aref_miss.rb
│ ├── hash_shift_u16.rb
│ ├── vm2_struct_small_aref.yml
│ ├── vm2_struct_small_href.yml
│ ├── hash_shift_u24.rb
│ ├── vm1_blockparam_yield.yml
│ ├── vm2_struct_small_hset.yml
│ └── hash_shift_u32.rb
├── test
│ ├── rdoc
│ │ ├── hidden.zip.txt
│ │ ├── test.txt
│ │ ├── README
│ │ ├── MarkdownTest_1.0.3
│ │ │ ├── Nested blockquotes.text
│ │ │ └── Tidyness.text
│ │ ├── binary.dat
│ │ └── test.ja.txt
│ ├── json
│ │ └── fixtures
│ │ │ ├── fail2.json
│ │ │ ├── fail24.json
│ │ │ ├── fail27.json
│ │ │ ├── fail4.json
│ │ │ ├── fail8.json
│ │ │ ├── fail19.json
│ │ │ ├── fail20.json
│ │ │ ├── fail23.json
│ │ │ ├── fail28.json
│ │ │ ├── fail5.json
│ │ │ ├── fail9.json
│ │ │ ├── fail6.json
│ │ │ ├── fail7.json
│ │ │ ├── fail11.json
│ │ │ ├── fail12.json
│ │ │ ├── fail14.json
│ │ │ ├── fail21.json
│ │ │ ├── fail22.json
│ │ │ ├── fail25.json
│ │ │ ├── pass16.json
│ │ │ ├── fail3.json
│ │ │ ├── pass15.json
│ │ │ ├── pass17.json
│ │ │ ├── pass26.json
│ │ │ ├── fail13.json
│ │ │ ├── pass2.json
│ │ │ ├── fail10.json
│ │ │ └── obsolete_fail1.json
│ ├── colors
│ ├── rubygems
│ │ ├── foo
│ │ │ └── discover.rb
│ │ ├── sff
│ │ │ └── discover.rb
│ │ ├── bad_rake.rb
│ │ ├── good_rake.rb
│ │ ├── plugin
│ │ │ ├── load
│ │ │ │ └── rubygems_plugin.rb
│ │ │ ├── exception
│ │ │ │ └── rubygems_plugin.rb
│ │ │ └── standarderror
│ │ │ │ └── rubygems_plugin.rb
│ │ ├── data
│ │ │ └── null-type.gemspec.rz
│ │ └── rubygems
│ │ │ └── commands
│ │ │ └── crash_command.rb
│ ├── webrick
│ │ ├── .htaccess
│ │ └── webrick.rhtml
│ ├── -ext-
│ │ └── load
│ │ │ └── script.rb
│ ├── excludes
│ │ ├── TestISeq.rb
│ │ ├── TestIO_Console.rb
│ │ └── TestThread.rb
│ ├── win32ole
│ │ └── orig_data.csv
│ ├── erb
│ │ └── hello.erb
│ ├── scanf
│ │ └── data.txt
│ ├── rexml
│ │ └── data
│ │ │ ├── simple.xml
│ │ │ ├── euc.xml
│ │ │ ├── t63-1.xml
│ │ │ ├── t63-2.svg
│ │ │ ├── utf16.xml
│ │ │ ├── iso8859-1.xml
│ │ │ ├── jaxen24.xml
│ │ │ ├── pi2.xml
│ │ │ ├── ticket_61.xml
│ │ │ ├── underscore.xml
│ │ │ ├── xmlfile-bug.xml
│ │ │ ├── stream_accents.xml
│ │ │ ├── LostineRiver.kml.gz
│ │ │ ├── web2.xml
│ │ │ ├── bad.xml
│ │ │ ├── defaultNamespace.xml
│ │ │ └── text.xml
│ ├── rss
│ │ └── dot.png
│ ├── csv
│ │ └── line_endings.gz
│ ├── dtrace
│ │ └── dummy.rb
│ ├── cgi
│ │ └── testdata
│ │ │ ├── large.png
│ │ │ └── small.png
│ └── ruby
│ │ ├── enc
│ │ ├── test_euc_jp.rb
│ │ └── test_shift_jis.rb
│ │ └── test_mixed_unicode_escapes.rb
├── win32
│ ├── .document
│ └── makedirs.bat
├── gems
│ ├── did_you_mean-1.3.0
│ │ ├── tmp
│ │ │ └── .keep
│ │ ├── .ruby-version
│ │ ├── test
│ │ │ └── fixtures
│ │ │ │ └── book.rb
│ │ └── lib
│ │ │ └── did_you_mean
│ │ │ ├── version.rb
│ │ │ └── experimental.rb
│ ├── net-telnet-0.2.0
│ │ ├── lib
│ │ │ ├── net-telnet.rb
│ │ │ └── net
│ │ │ │ └── telnet
│ │ │ │ └── version.rb
│ │ ├── Gemfile
│ │ ├── bin
│ │ │ └── setup
│ │ └── .travis.yml
│ ├── rake-12.3.3
│ │ ├── Gemfile
│ │ ├── doc
│ │ │ └── example
│ │ │ │ ├── a.c
│ │ │ │ └── b.c
│ │ └── bin
│ │ │ ├── setup
│ │ │ └── console
│ ├── xmlrpc-0.3.0
│ │ ├── Gemfile
│ │ ├── .travis.yml
│ │ └── bin
│ │ │ └── setup
│ ├── test-unit-3.2.9
│ │ ├── test
│ │ │ └── fixtures
│ │ │ │ ├── no-header.csv
│ │ │ │ ├── no-header.tsv
│ │ │ │ ├── header.csv
│ │ │ │ ├── header.tsv
│ │ │ │ ├── header-label.csv
│ │ │ │ ├── header-label.tsv
│ │ │ │ └── plus.csv
│ │ └── lib
│ │ │ └── test
│ │ │ └── unit
│ │ │ └── version.rb
│ ├── power_assert-1.1.3
│ │ ├── lib
│ │ │ └── power_assert
│ │ │ │ └── version.rb
│ │ ├── bin
│ │ │ └── setup
│ │ └── LEGAL
│ ├── rake-12.3.3.gem
│ ├── xmlrpc-0.3.0.gem
│ ├── minitest-5.11.3.gem
│ ├── test-unit-3.2.9.gem
│ ├── did_you_mean-1.3.0.gem
│ ├── net-telnet-0.2.0.gem
│ ├── power_assert-1.1.3.gem
│ └── minitest-5.11.3
│ │ └── lib
│ │ └── minitest
│ │ └── pride.rb
├── spec
│ ├── ruby
│ │ ├── core
│ │ │ ├── io
│ │ │ │ ├── fixtures
│ │ │ │ │ ├── empty.txt
│ │ │ │ │ ├── one_byte.txt
│ │ │ │ │ ├── bom_UTF-8.txt
│ │ │ │ │ ├── no_bom_UTF-8.txt
│ │ │ │ │ ├── read_text.txt
│ │ │ │ │ ├── copy_stream.txt
│ │ │ │ │ ├── reopen_stdout.rb
│ │ │ │ │ ├── numbered_lines.txt
│ │ │ │ │ ├── incomplete.txt
│ │ │ │ │ ├── read_binary.txt
│ │ │ │ │ ├── read_euc_jp.txt
│ │ │ │ │ ├── bom_UTF-16BE.txt
│ │ │ │ │ ├── bom_UTF-16LE.txt
│ │ │ │ │ ├── bom_UTF-32BE.txt
│ │ │ │ │ └── bom_UTF-32LE.txt
│ │ │ │ ├── fdatasync_spec.rb
│ │ │ │ ├── tty_spec.rb
│ │ │ │ └── isatty_spec.rb
│ │ │ ├── file
│ │ │ │ ├── fixtures
│ │ │ │ │ └── do_not_remove
│ │ │ │ └── stat
│ │ │ │ │ └── fixtures
│ │ │ │ │ └── classes.rb
│ │ │ ├── module
│ │ │ │ └── fixtures
│ │ │ │ │ ├── autoload_never_set.rb
│ │ │ │ │ ├── path2
│ │ │ │ │ └── load_path.rb
│ │ │ │ │ ├── autoload_w2.rb
│ │ │ │ │ ├── autoload.rb
│ │ │ │ │ ├── constants_autoload_a.rb
│ │ │ │ │ ├── constants_autoload_b.rb
│ │ │ │ │ ├── autoload_empty.rb
│ │ │ │ │ ├── autoload_callback.rb
│ │ │ │ │ ├── autoload_required_directly_nested.rb
│ │ │ │ │ ├── autoload_x.rb
│ │ │ │ │ ├── constants_autoload_c.rb
│ │ │ │ │ ├── autoload_j.rb
│ │ │ │ │ ├── module.rb
│ │ │ │ │ ├── autoload_r.rb
│ │ │ │ │ ├── autoload_raise.rb
│ │ │ │ │ ├── autoload_t.rb
│ │ │ │ │ ├── autoload_o.rb
│ │ │ │ │ ├── constants_autoload_d.rb
│ │ │ │ │ ├── autoload_w.rb
│ │ │ │ │ ├── autoload_lm.rb
│ │ │ │ │ ├── autoload_during_require.rb
│ │ │ │ │ ├── autoload_i.rb
│ │ │ │ │ ├── autoload_s.rb
│ │ │ │ │ ├── constant_unicode.rb
│ │ │ │ │ ├── autoload_e.rb
│ │ │ │ │ ├── autoload_g.rb
│ │ │ │ │ ├── autoload_h.rb
│ │ │ │ │ ├── autoload_exception.rb
│ │ │ │ │ ├── autoload_f.rb
│ │ │ │ │ ├── autoload_z.rb
│ │ │ │ │ ├── autoload_v.rb
│ │ │ │ │ ├── autoload_k.rb
│ │ │ │ │ └── autoload_nested.rb
│ │ │ ├── argf
│ │ │ │ ├── fixtures
│ │ │ │ │ ├── bin_file.txt
│ │ │ │ │ ├── file1.txt
│ │ │ │ │ ├── file2.txt
│ │ │ │ │ ├── stdin.txt
│ │ │ │ │ ├── lineno.rb
│ │ │ │ │ ├── rewind.rb
│ │ │ │ │ └── filename.rb
│ │ │ │ ├── tell_spec.rb
│ │ │ │ └── to_i_spec.rb
│ │ │ ├── env
│ │ │ │ ├── indexes_spec.rb
│ │ │ │ ├── indices_spec.rb
│ │ │ │ ├── rehash_spec.rb
│ │ │ │ ├── each_spec.rb
│ │ │ │ ├── index_spec.rb
│ │ │ │ ├── to_s_spec.rb
│ │ │ │ ├── element_set_spec.rb
│ │ │ │ ├── size_spec.rb
│ │ │ │ ├── store_spec.rb
│ │ │ │ └── value_spec.rb
│ │ │ ├── exception
│ │ │ │ ├── initialize_spec.rb
│ │ │ │ ├── args_spec.rb
│ │ │ │ ├── status_spec.rb
│ │ │ │ ├── reason_spec.rb
│ │ │ │ ├── signm_spec.rb
│ │ │ │ ├── signo_spec.rb
│ │ │ │ ├── success_spec.rb
│ │ │ │ └── case_compare_spec.rb
│ │ │ ├── main
│ │ │ │ └── fixtures
│ │ │ │ │ ├── wrapped_include.rb
│ │ │ │ │ └── string_refinement.rb
│ │ │ ├── kernel
│ │ │ │ ├── fixtures
│ │ │ │ │ ├── chop_f.rb
│ │ │ │ │ ├── chomp_f.rb
│ │ │ │ │ ├── chop.rb
│ │ │ │ │ ├── chomp.rb
│ │ │ │ │ ├── caller_at_exit.rb
│ │ │ │ │ ├── autoload_b.rb
│ │ │ │ │ ├── autoload_d.rb
│ │ │ │ │ ├── eval_locals.rb
│ │ │ │ │ └── caller.rb
│ │ │ │ ├── to_enum_spec.rb
│ │ │ │ └── enum_for_spec.rb
│ │ │ ├── symbol
│ │ │ │ └── fixtures
│ │ │ │ │ └── classes.rb
│ │ │ ├── float
│ │ │ │ ├── fixtures
│ │ │ │ │ └── classes.rb
│ │ │ │ ├── magnitude_spec.rb
│ │ │ │ ├── to_r_spec.rb
│ │ │ │ ├── abs_spec.rb
│ │ │ │ ├── arg_spec.rb
│ │ │ │ ├── quo_spec.rb
│ │ │ │ ├── angle_spec.rb
│ │ │ │ ├── fdiv_spec.rb
│ │ │ │ ├── phase_spec.rb
│ │ │ │ └── to_i_spec.rb
│ │ │ ├── integer
│ │ │ │ ├── fixtures
│ │ │ │ │ └── classes.rb
│ │ │ │ └── abs_spec.rb
│ │ │ ├── thread
│ │ │ │ ├── backtrace
│ │ │ │ │ └── location
│ │ │ │ │ │ └── fixtures
│ │ │ │ │ │ └── main.rb
│ │ │ │ ├── add_trace_func_spec.rb
│ │ │ │ └── set_trace_func_spec.rb
│ │ │ ├── marshal
│ │ │ │ └── fixtures
│ │ │ │ │ └── random.dump
│ │ │ ├── string
│ │ │ │ └── fixtures
│ │ │ │ │ └── freeze_magic_comment.rb
│ │ │ ├── numeric
│ │ │ │ ├── magnitude_spec.rb
│ │ │ │ ├── abs_spec.rb
│ │ │ │ └── arg_spec.rb
│ │ │ ├── rational
│ │ │ │ ├── abs_spec.rb
│ │ │ │ ├── ceil_spec.rb
│ │ │ │ ├── fdiv_spec.rb
│ │ │ │ ├── hash_spec.rb
│ │ │ │ ├── modulo_spec.rb
│ │ │ │ ├── quo_spec.rb
│ │ │ │ ├── to_f_spec.rb
│ │ │ │ ├── to_i_spec.rb
│ │ │ │ ├── to_s_spec.rb
│ │ │ │ ├── exponent_spec.rb
│ │ │ │ ├── floor_spec.rb
│ │ │ │ ├── magnitude_spec.rb
│ │ │ │ ├── round_spec.rb
│ │ │ │ ├── coerce_spec.rb
│ │ │ │ └── inspect_spec.rb
│ │ │ ├── threadgroup
│ │ │ │ └── fixtures
│ │ │ │ │ └── classes.rb
│ │ │ ├── encoding
│ │ │ │ ├── _dump_spec.rb
│ │ │ │ └── _load_spec.rb
│ │ │ ├── enumerator
│ │ │ │ └── each_spec.rb
│ │ │ ├── matchdata
│ │ │ │ └── hash_spec.rb
│ │ │ ├── time
│ │ │ │ ├── tv_nsec_spec.rb
│ │ │ │ ├── tv_usec_spec.rb
│ │ │ │ ├── day_spec.rb
│ │ │ │ ├── mday_spec.rb
│ │ │ │ ├── mon_spec.rb
│ │ │ │ ├── now_spec.rb
│ │ │ │ ├── dst_spec.rb
│ │ │ │ ├── to_i_spec.rb
│ │ │ │ └── to_s_spec.rb
│ │ │ ├── process
│ │ │ │ ├── waitpid2_spec.rb
│ │ │ │ ├── gid
│ │ │ │ │ ├── rid_spec.rb
│ │ │ │ │ └── switch_spec.rb
│ │ │ │ ├── tms
│ │ │ │ │ ├── new_spec.rb
│ │ │ │ │ └── members_spec.rb
│ │ │ │ ├── uid
│ │ │ │ │ ├── rid_spec.rb
│ │ │ │ │ └── switch_spec.rb
│ │ │ │ ├── status
│ │ │ │ │ ├── bit_and_spec.rb
│ │ │ │ │ ├── to_i_spec.rb
│ │ │ │ │ └── to_s_spec.rb
│ │ │ │ └── sys
│ │ │ │ │ ├── getegid_spec.rb
│ │ │ │ │ ├── geteuid_spec.rb
│ │ │ │ │ ├── getgid_spec.rb
│ │ │ │ │ ├── getuid_spec.rb
│ │ │ │ │ ├── setegid_spec.rb
│ │ │ │ │ ├── seteuid_spec.rb
│ │ │ │ │ ├── setgid_spec.rb
│ │ │ │ │ ├── setrgid_spec.rb
│ │ │ │ │ ├── setruid_spec.rb
│ │ │ │ │ └── setuid_spec.rb
│ │ │ ├── gc
│ │ │ │ └── profiler
│ │ │ │ │ ├── clear_spec.rb
│ │ │ │ │ └── report_spec.rb
│ │ │ ├── nil
│ │ │ │ ├── nil_spec.rb
│ │ │ │ └── to_s_spec.rb
│ │ │ ├── proc
│ │ │ │ ├── dup_spec.rb
│ │ │ │ ├── clone_spec.rb
│ │ │ │ └── to_s_spec.rb
│ │ │ ├── range
│ │ │ │ └── end_spec.rb
│ │ │ ├── unboundmethod
│ │ │ │ └── eql_spec.rb
│ │ │ └── complex
│ │ │ │ ├── abs_spec.rb
│ │ │ │ └── arg_spec.rb
│ │ ├── command_line
│ │ │ └── fixtures
│ │ │ │ ├── bad_syntax.rb
│ │ │ │ ├── loadpath.rb
│ │ │ │ ├── require.rb
│ │ │ │ ├── bin
│ │ │ │ ├── dash_s_fail
│ │ │ │ ├── launcher.rb
│ │ │ │ ├── embedded_ruby.txt
│ │ │ │ ├── bad_embedded_ruby.txt
│ │ │ │ └── hybrid_launcher.sh
│ │ │ │ ├── test_file.rb
│ │ │ │ ├── verbose.rb
│ │ │ │ ├── dash_upper_c_script.rb
│ │ │ │ ├── names.txt
│ │ │ │ ├── rubyopt.rb
│ │ │ │ ├── conditional_range.txt
│ │ │ │ ├── full_names.txt
│ │ │ │ ├── freeze_flag_required.rb
│ │ │ │ ├── freeze_flag_two_literals.rb
│ │ │ │ ├── freeze_flag_one_literal.rb
│ │ │ │ ├── freeze_flag_across_files.rb
│ │ │ │ └── freeze_flag_across_files_diff_enc.rb
│ │ ├── library
│ │ │ ├── csv
│ │ │ │ ├── fixtures
│ │ │ │ │ └── one_line.csv
│ │ │ │ ├── open_spec.rb
│ │ │ │ ├── read_spec.rb
│ │ │ │ └── foreach_spec.rb
│ │ │ ├── scanf
│ │ │ │ └── io
│ │ │ │ │ └── fixtures
│ │ │ │ │ ├── helloworld.txt
│ │ │ │ │ └── date.txt
│ │ │ ├── socket
│ │ │ │ ├── fixtures
│ │ │ │ │ └── send_io.txt
│ │ │ │ ├── socket
│ │ │ │ │ └── new_spec.rb
│ │ │ │ └── tcpsocket
│ │ │ │ │ ├── new_spec.rb
│ │ │ │ │ └── open_spec.rb
│ │ │ ├── yaml
│ │ │ │ ├── fixtures
│ │ │ │ │ ├── test_yaml.yml
│ │ │ │ │ └── example_class.rb
│ │ │ │ ├── emitter_spec.rb
│ │ │ │ ├── parser_spec.rb
│ │ │ │ ├── each_node_spec.rb
│ │ │ │ ├── object_maker_spec.rb
│ │ │ │ ├── quick_emit_spec.rb
│ │ │ │ ├── transfer_spec.rb
│ │ │ │ ├── try_implicit_spec.rb
│ │ │ │ ├── add_builtin_type_spec.rb
│ │ │ │ ├── add_domain_type_spec.rb
│ │ │ │ ├── add_private_type_spec.rb
│ │ │ │ ├── add_ruby_type_spec.rb
│ │ │ │ ├── detect_implicit_spec.rb
│ │ │ │ ├── generic_parser_spec.rb
│ │ │ │ ├── parse_documents_spec.rb
│ │ │ │ └── read_type_class_spec.rb
│ │ │ ├── zlib
│ │ │ │ ├── deflate
│ │ │ │ │ ├── flush_spec.rb
│ │ │ │ │ ├── new_spec.rb
│ │ │ │ │ └── append_spec.rb
│ │ │ │ ├── gzipfile
│ │ │ │ │ ├── crc_spec.rb
│ │ │ │ │ ├── sync_spec.rb
│ │ │ │ │ ├── wrap_spec.rb
│ │ │ │ │ ├── finish_spec.rb
│ │ │ │ │ ├── level_spec.rb
│ │ │ │ │ ├── mtime_spec.rb
│ │ │ │ │ ├── os_code_spec.rb
│ │ │ │ │ └── to_io_spec.rb
│ │ │ │ ├── inflate
│ │ │ │ │ ├── new_spec.rb
│ │ │ │ │ ├── sync_spec.rb
│ │ │ │ │ └── sync_point_spec.rb
│ │ │ │ ├── zlib_version_spec.rb
│ │ │ │ ├── zstream
│ │ │ │ │ ├── close_spec.rb
│ │ │ │ │ ├── end_spec.rb
│ │ │ │ │ ├── ended_spec.rb
│ │ │ │ │ ├── reset_spec.rb
│ │ │ │ │ ├── closed_spec.rb
│ │ │ │ │ ├── finish_spec.rb
│ │ │ │ │ ├── finished_spec.rb
│ │ │ │ │ ├── stream_end_spec.rb
│ │ │ │ │ ├── total_in_spec.rb
│ │ │ │ │ ├── total_out_spec.rb
│ │ │ │ │ └── flush_next_in_spec.rb
│ │ │ │ ├── gzipreader
│ │ │ │ │ ├── lineno_spec.rb
│ │ │ │ │ ├── new_spec.rb
│ │ │ │ │ ├── open_spec.rb
│ │ │ │ │ ├── tell_spec.rb
│ │ │ │ │ ├── unused_spec.rb
│ │ │ │ │ ├── readchar_spec.rb
│ │ │ │ │ ├── readline_spec.rb
│ │ │ │ │ ├── readlines_spec.rb
│ │ │ │ │ └── each_spec.rb
│ │ │ │ └── gzipwriter
│ │ │ │ │ ├── comment_spec.rb
│ │ │ │ │ ├── flush_spec.rb
│ │ │ │ │ ├── new_spec.rb
│ │ │ │ │ ├── open_spec.rb
│ │ │ │ │ ├── pos_spec.rb
│ │ │ │ │ ├── print_spec.rb
│ │ │ │ │ ├── printf_spec.rb
│ │ │ │ │ ├── putc_spec.rb
│ │ │ │ │ ├── puts_spec.rb
│ │ │ │ │ ├── tell_spec.rb
│ │ │ │ │ └── orig_name_spec.rb
│ │ │ ├── coverage
│ │ │ │ └── fixtures
│ │ │ │ │ ├── start_coverage.rb
│ │ │ │ │ └── second_class.rb
│ │ │ ├── mathn
│ │ │ │ └── math
│ │ │ │ │ └── fixtures
│ │ │ │ │ └── classes.rb
│ │ │ ├── net
│ │ │ │ ├── ftp
│ │ │ │ │ ├── fixtures
│ │ │ │ │ │ ├── passive.rb
│ │ │ │ │ │ ├── puttextfile
│ │ │ │ │ │ ├── default_passive.rb
│ │ │ │ │ │ └── putbinaryfile
│ │ │ │ │ ├── shared
│ │ │ │ │ │ └── pwd.rb
│ │ │ │ │ └── spec_helper.rb
│ │ │ │ └── http
│ │ │ │ │ └── httpexceptions
│ │ │ │ │ └── fixtures
│ │ │ │ │ └── classes.rb
│ │ │ ├── complex
│ │ │ │ ├── numeric
│ │ │ │ │ └── im_spec.rb
│ │ │ │ └── math
│ │ │ │ │ └── fixtures
│ │ │ │ │ └── classes.rb
│ │ │ ├── openstruct
│ │ │ │ └── fixtures
│ │ │ │ │ └── classes.rb
│ │ │ ├── win32ole
│ │ │ │ └── fixtures
│ │ │ │ │ └── event.xml
│ │ │ ├── matrix
│ │ │ │ └── fixtures
│ │ │ │ │ └── classes.rb
│ │ │ └── date
│ │ │ │ ├── ajd_spec.rb
│ │ │ │ ├── ld_spec.rb
│ │ │ │ ├── mjd_spec.rb
│ │ │ │ └── mon_spec.rb
│ │ ├── optional
│ │ │ └── capi
│ │ │ │ └── fixtures
│ │ │ │ ├── foo.rb
│ │ │ │ ├── encoding.rb
│ │ │ │ ├── const_get_object.rb
│ │ │ │ ├── const_get.rb
│ │ │ │ ├── const_get_at.rb
│ │ │ │ ├── const_get_from.rb
│ │ │ │ ├── module_autoload.rb
│ │ │ │ └── path_to_class.rb
│ │ ├── fixtures
│ │ │ ├── code
│ │ │ │ ├── load_fixture
│ │ │ │ ├── a
│ │ │ │ │ ├── load_fixture.so
│ │ │ │ │ ├── load_fixture.dll
│ │ │ │ │ └── load_fixture.bundle
│ │ │ │ ├── b
│ │ │ │ │ └── load_fixture.rb
│ │ │ │ ├── file_fixture.rb
│ │ │ │ ├── load_fixture.dll
│ │ │ │ ├── load_fixture.rb
│ │ │ │ ├── load_fixture.so
│ │ │ │ ├── gem
│ │ │ │ │ └── load_fixture.rb
│ │ │ │ ├── load_ext_fixture.rb
│ │ │ │ ├── load_fixture.bundle
│ │ │ │ ├── load_fixture.ext
│ │ │ │ ├── load_fixture.ext.dll
│ │ │ │ ├── load_fixture.ext.rb
│ │ │ │ ├── load_fixture.ext.so
│ │ │ │ ├── load_fixture.ext.bundle
│ │ │ │ ├── load_fixture_and__FILE__.rb
│ │ │ │ ├── raise_fixture.rb
│ │ │ │ ├── symlink
│ │ │ │ │ ├── symlink2
│ │ │ │ │ │ └── symlink2.rb
│ │ │ │ │ └── symlink1.rb
│ │ │ │ ├── wrap_fixture.rb
│ │ │ │ ├── concurrent3.rb
│ │ │ │ ├── line_fixture.rb
│ │ │ │ └── recursive_require_fixture.rb
│ │ │ └── math
│ │ │ │ └── common.rb
│ │ ├── language
│ │ │ ├── fixtures
│ │ │ │ ├── file.rb
│ │ │ │ ├── utf8-bom.rb
│ │ │ │ ├── argv_encoding.rb
│ │ │ │ ├── begin_file.rb
│ │ │ │ ├── utf8-nobom.rb
│ │ │ │ ├── no_magic_comment.rb
│ │ │ │ ├── freeze_magic_comment_required_no_comment.rb
│ │ │ │ ├── magic_comment.rb
│ │ │ │ ├── case_magic_comment.rb
│ │ │ │ ├── print_magic_comment_result_at_exit.rb
│ │ │ │ ├── utf16-be-nobom.rb
│ │ │ │ ├── dollar_zero.rb
│ │ │ │ ├── emacs_magic_comment.rb
│ │ │ │ ├── second_line_magic_comment.rb
│ │ │ │ ├── utf16-le-nobom.rb
│ │ │ │ ├── binary_symbol.rb
│ │ │ │ ├── second_token_magic_comment.rb
│ │ │ │ ├── freeze_magic_comment_required.rb
│ │ │ │ ├── shebang_magic_comment.rb
│ │ │ │ ├── freeze_magic_comment_two_literals.rb
│ │ │ │ ├── vim_magic_comment.rb
│ │ │ │ ├── bytes_magic_comment.rb
│ │ │ │ ├── freeze_magic_comment_one_literal.rb
│ │ │ │ ├── hash_strings_utf8.rb
│ │ │ │ ├── hash_strings_usascii.rb
│ │ │ │ ├── break_lambda_toplevel.rb
│ │ │ │ ├── hash_strings_ascii8bit.rb
│ │ │ │ └── match_operators.rb
│ │ │ └── predefined
│ │ │ │ └── fixtures
│ │ │ │ ├── data_only.rb
│ │ │ │ ├── data4.rb
│ │ │ │ ├── print_data.rb
│ │ │ │ ├── empty_data.rb
│ │ │ │ ├── toplevel_binding_id_required.rb
│ │ │ │ ├── data1.rb
│ │ │ │ ├── data5.rb
│ │ │ │ ├── data2.rb
│ │ │ │ ├── data3.rb
│ │ │ │ ├── toplevel_binding_required_before.rb
│ │ │ │ ├── toplevel_binding_variables_required.rb
│ │ │ │ └── toplevel_binding_dynamic_required.rb
│ │ └── shared
│ │ │ ├── file
│ │ │ ├── setgid.rb
│ │ │ ├── setuid.rb
│ │ │ ├── owned.rb
│ │ │ ├── pipe.rb
│ │ │ └── socket.rb
│ │ │ └── rational
│ │ │ ├── fdiv.rb
│ │ │ └── quo.rb
│ └── mspec
│ │ ├── spec
│ │ ├── commands
│ │ │ └── fixtures
│ │ │ │ ├── four.txt
│ │ │ │ ├── three.rb
│ │ │ │ ├── one_spec.rb
│ │ │ │ ├── two_spec.rb
│ │ │ │ └── level2
│ │ │ │ └── three_spec.rb
│ │ ├── runner
│ │ │ └── filters
│ │ │ │ ├── a.yaml
│ │ │ │ └── b.yaml
│ │ └── fixtures
│ │ │ ├── my_ruby
│ │ │ ├── print_interpreter_spec.rb
│ │ │ ├── b_spec.rb
│ │ │ └── die_spec.rb
│ │ ├── bin
│ │ ├── mkspec.bat
│ │ ├── mspec.bat
│ │ ├── mspec-ci.bat
│ │ ├── mspec-run.bat
│ │ ├── mspec-tag.bat
│ │ ├── mkspec
│ │ ├── mspec
│ │ ├── mspec-ci
│ │ ├── mspec-run
│ │ └── mspec-tag
│ │ ├── Gemfile
│ │ ├── lib
│ │ └── mspec
│ │ │ ├── expectations.rb
│ │ │ ├── mocks.rb
│ │ │ ├── version.rb
│ │ │ └── helpers
│ │ │ ├── flunk.rb
│ │ │ └── warning.rb
│ │ └── Rakefile
├── README.EXT
├── enc
│ ├── iso_8859.h
│ └── utf_7.h
├── revision.h
├── README.EXT.ja
├── dmyext.c
├── doc
│ ├── .document
│ ├── images
│ │ └── boottime-classes.png
│ └── yarvarch.en
├── missing
│ ├── fileblocks.c
│ └── finite.c
├── sample
│ ├── trick2015
│ │ ├── monae
│ │ │ └── authors.markdown
│ │ ├── ksk_1
│ │ │ ├── authors.markdown
│ │ │ └── entry.rb
│ │ ├── ksk_2
│ │ │ ├── authors.markdown
│ │ │ ├── abnormal.cnf
│ │ │ └── sample.cnf
│ │ ├── eregon
│ │ │ └── authors.markdown
│ │ └── kinaba
│ │ │ └── authors.markdown
│ ├── trick2013
│ │ ├── shinh
│ │ │ └── authors.markdown
│ │ ├── kinaba
│ │ │ ├── authors.markdown
│ │ │ └── entry.rb
│ │ ├── mame
│ │ │ └── authors.markdown
│ │ └── yhara
│ │ │ ├── authors.markdown
│ │ │ └── remarks.en.markdown
│ ├── trick2018
│ │ ├── 03-tompng
│ │ │ ├── Gemfile
│ │ │ ├── authors.markdown
│ │ │ └── trick.png
│ │ ├── 01-kinaba
│ │ │ └── authors.markdown
│ │ ├── 02-mame
│ │ │ └── authors.markdown
│ │ ├── 04-colin
│ │ │ ├── authors.markdown
│ │ │ └── entry.rb
│ │ └── 05-tompng
│ │ │ ├── authors.markdown
│ │ │ └── preview_of_output.png
│ ├── test.rb
│ ├── fib.awk
│ ├── fib.scm
│ ├── tempfile.rb
│ ├── occur.pl
│ ├── webrick
│ │ └── demo-servlet.rb
│ ├── drb
│ │ └── rinda_ts.rb
│ ├── fact.rb
│ └── fib.rb
├── bootstraptest
│ ├── test_string.rb
│ ├── test_flip.rb
│ ├── test_marshal.rb
│ └── test_struct.rb
├── libexec
│ └── bundler
└── miniprelude.c
├── patches
└── Makefile.append
└── extras
└── framework_resources
└── English.lproj
└── InfoPlist.strings
/ruby/ext/win32ole/.document:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ruby/ext/bigdecimal/util/util.c:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ruby/lib/rdoc/.document:
--------------------------------------------------------------------------------
1 | *.rb
2 |
--------------------------------------------------------------------------------
/ruby/tool/ruby_vm/tests/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ruby/benchmark/gc/null.rb:
--------------------------------------------------------------------------------
1 | # null
2 |
--------------------------------------------------------------------------------
/ruby/ext/bigdecimal/bigdecimal.def:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ruby/ext/bigdecimal/util/extconf.rb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ruby/test/rdoc/hidden.zip.txt:
--------------------------------------------------------------------------------
1 | PK
2 |
--------------------------------------------------------------------------------
/ruby/test/rdoc/test.txt:
--------------------------------------------------------------------------------
1 | test file
2 |
--------------------------------------------------------------------------------
/ruby/win32/.document:
--------------------------------------------------------------------------------
1 | README.win32
2 |
--------------------------------------------------------------------------------
/ruby/ext/fiber/depend:
--------------------------------------------------------------------------------
1 | fiber.o: fiber.c
2 |
--------------------------------------------------------------------------------
/ruby/gems/did_you_mean-1.3.0/tmp/.keep:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/empty.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ruby/test/rdoc/README:
--------------------------------------------------------------------------------
1 | you don't have to
2 |
--------------------------------------------------------------------------------
/ruby/README.EXT:
--------------------------------------------------------------------------------
1 | Moved to doc/extension.rdoc
2 |
--------------------------------------------------------------------------------
/ruby/enc/iso_8859.h:
--------------------------------------------------------------------------------
1 | #define SHARP_s 0xdf
2 |
--------------------------------------------------------------------------------
/ruby/revision.h:
--------------------------------------------------------------------------------
1 | #define RUBY_REVISION 67958
2 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/spec/commands/fixtures/four.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/one_byte.txt:
--------------------------------------------------------------------------------
1 | 1
--------------------------------------------------------------------------------
/ruby/README.EXT.ja:
--------------------------------------------------------------------------------
1 | doc/extension.ja.rdocに移動しました
2 |
--------------------------------------------------------------------------------
/ruby/dmyext.c:
--------------------------------------------------------------------------------
1 | void
2 | Init_ext(void)
3 | {
4 | }
5 |
--------------------------------------------------------------------------------
/ruby/doc/.document:
--------------------------------------------------------------------------------
1 | *.rdoc
2 | NEWS-*
3 | syntax
4 |
--------------------------------------------------------------------------------
/ruby/gems/did_you_mean-1.3.0/.ruby-version:
--------------------------------------------------------------------------------
1 | 2.5.0
2 |
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/.document:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/spec/commands/fixtures/three.rb:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/file/fixtures/do_not_remove:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail2.json:
--------------------------------------------------------------------------------
1 | ["Unclosed array"
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail24.json:
--------------------------------------------------------------------------------
1 | ['single quote']
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail27.json:
--------------------------------------------------------------------------------
1 | ["line
2 | break"]
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail4.json:
--------------------------------------------------------------------------------
1 | ["extra comma",]
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail8.json:
--------------------------------------------------------------------------------
1 | ["Extra close"]]
--------------------------------------------------------------------------------
/ruby/benchmark/int_quo.rb:
--------------------------------------------------------------------------------
1 | 5000000.times { 42.quo(3) }
2 |
--------------------------------------------------------------------------------
/ruby/benchmark/loop_times.rb:
--------------------------------------------------------------------------------
1 | 30_000_000.times{|e|}
2 |
--------------------------------------------------------------------------------
/ruby/benchmark/other-lang/loop2.rb:
--------------------------------------------------------------------------------
1 | 30000000.times{}
2 |
--------------------------------------------------------------------------------
/ruby/ext/rubyvm/extconf.rb:
--------------------------------------------------------------------------------
1 | create_makefile("rubyvm")
2 |
--------------------------------------------------------------------------------
/ruby/missing/fileblocks.c:
--------------------------------------------------------------------------------
1 | /* dummy for autoconf */
2 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/bin/mkspec.bat:
--------------------------------------------------------------------------------
1 | @"ruby.exe" "%~dpn0" %*
2 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/bin/mspec.bat:
--------------------------------------------------------------------------------
1 | @"ruby.exe" "%~dpn0" %*
2 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/spec/commands/fixtures/one_spec.rb:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/spec/commands/fixtures/two_spec.rb:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/bad_syntax.rb:
--------------------------------------------------------------------------------
1 | f {
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/bom_UTF-8.txt:
--------------------------------------------------------------------------------
1 | UTF-8
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/no_bom_UTF-8.txt:
--------------------------------------------------------------------------------
1 | UTF-8
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/read_text.txt:
--------------------------------------------------------------------------------
1 | abcâdef
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/csv/fixtures/one_line.csv:
--------------------------------------------------------------------------------
1 | 1,2
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/optional/capi/fixtures/foo.rb:
--------------------------------------------------------------------------------
1 | $foo = 7
2 |
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail19.json:
--------------------------------------------------------------------------------
1 | {"Missing colon" null}
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail20.json:
--------------------------------------------------------------------------------
1 | {"Double colon":: null}
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail23.json:
--------------------------------------------------------------------------------
1 | ["Bad value", truth]
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail28.json:
--------------------------------------------------------------------------------
1 | ["line\
2 | break"]
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail5.json:
--------------------------------------------------------------------------------
1 | ["double extra comma",,]
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail9.json:
--------------------------------------------------------------------------------
1 | {"Extra comma": true,}
--------------------------------------------------------------------------------
/ruby/benchmark/other-lang/loop.scm:
--------------------------------------------------------------------------------
1 | (dotimes (x 30000000))
2 |
--------------------------------------------------------------------------------
/ruby/ext/gdbm/README:
--------------------------------------------------------------------------------
1 | gdbm ext-library for Ruby 1.3 or later
2 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/bin/mspec-ci.bat:
--------------------------------------------------------------------------------
1 | @"ruby.exe" "%~dpn0" %*
2 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/bin/mspec-run.bat:
--------------------------------------------------------------------------------
1 | @"ruby.exe" "%~dpn0" %*
2 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/bin/mspec-tag.bat:
--------------------------------------------------------------------------------
1 | @"ruby.exe" "%~dpn0" %*
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/loadpath.rb:
--------------------------------------------------------------------------------
1 | puts $:
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/require.rb:
--------------------------------------------------------------------------------
1 | puts $"
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_never_set.rb:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/path2/load_path.rb:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ruby/test/colors:
--------------------------------------------------------------------------------
1 | pass=36;7
2 | fail=31;1;7
3 | skip=33;1
4 |
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail6.json:
--------------------------------------------------------------------------------
1 | [ , "<-- missing value"]
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail7.json:
--------------------------------------------------------------------------------
1 | ["Comma after the close"],
--------------------------------------------------------------------------------
/ruby/benchmark/bighash.rb:
--------------------------------------------------------------------------------
1 | h = {}; 5000000.times {|n| h[n] = n }
2 |
--------------------------------------------------------------------------------
/ruby/benchmark/gc/aobench.rb:
--------------------------------------------------------------------------------
1 | require_relative '../app_aobench'
2 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/load/dot.dot/dot.dot.c:
--------------------------------------------------------------------------------
1 | void Init_dot(void) {}
2 |
--------------------------------------------------------------------------------
/ruby/sample/trick2015/monae/authors.markdown:
--------------------------------------------------------------------------------
1 | monae (@monae, jp)
2 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/spec/commands/fixtures/level2/three_spec.rb:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/bin/dash_s_fail:
--------------------------------------------------------------------------------
1 | raise 'die'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/test_file.rb:
--------------------------------------------------------------------------------
1 | "test file"
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/argf/fixtures/bin_file.txt:
--------------------------------------------------------------------------------
1 | test
2 | test
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/argf/fixtures/file1.txt:
--------------------------------------------------------------------------------
1 | file1.1
2 | file1.2
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/argf/fixtures/file2.txt:
--------------------------------------------------------------------------------
1 | line2.1
2 | line2.2
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/argf/fixtures/stdin.txt:
--------------------------------------------------------------------------------
1 | stdin.1
2 | stdin.2
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/load_fixture:
--------------------------------------------------------------------------------
1 | ScratchPad << :no_ext
2 |
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail11.json:
--------------------------------------------------------------------------------
1 | {"Illegal expression": 1 + 2}
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail12.json:
--------------------------------------------------------------------------------
1 | {"Illegal invocation": alert()}
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail14.json:
--------------------------------------------------------------------------------
1 | {"Numbers cannot be hex": 0x14}
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail21.json:
--------------------------------------------------------------------------------
1 | {"Comma instead of colon", null}
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail22.json:
--------------------------------------------------------------------------------
1 | ["Colon instead of comma": false]
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail25.json:
--------------------------------------------------------------------------------
1 | ["tab character in string "]
2 |
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/pass16.json:
--------------------------------------------------------------------------------
1 | ["Illegal backslash escape: \'"]
--------------------------------------------------------------------------------
/ruby/test/rubygems/foo/discover.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
--------------------------------------------------------------------------------
/ruby/test/rubygems/sff/discover.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
--------------------------------------------------------------------------------
/ruby/test/webrick/.htaccess:
--------------------------------------------------------------------------------
1 | this file should not be published.
2 |
--------------------------------------------------------------------------------
/ruby/benchmark/gc/pentomino.rb:
--------------------------------------------------------------------------------
1 | require_relative '../app_pentomino'
2 |
--------------------------------------------------------------------------------
/ruby/benchmark/loop_for.rb:
--------------------------------------------------------------------------------
1 | for i in 1..30_000_000
2 | #
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/vm/extconf.rb:
--------------------------------------------------------------------------------
1 | create_makefile('-test-/vm/at_exit')
2 |
--------------------------------------------------------------------------------
/ruby/ext/json/extconf.rb:
--------------------------------------------------------------------------------
1 | require 'mkmf'
2 | create_makefile('json')
3 |
--------------------------------------------------------------------------------
/ruby/gems/net-telnet-0.2.0/lib/net-telnet.rb:
--------------------------------------------------------------------------------
1 | require 'net/telnet'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/verbose.rb:
--------------------------------------------------------------------------------
1 | puts $VERBOSE.inspect
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/a/load_fixture.so:
--------------------------------------------------------------------------------
1 | ScratchPad << :ext_so
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/b/load_fixture.rb:
--------------------------------------------------------------------------------
1 | ScratchPad << :loaded
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/file_fixture.rb:
--------------------------------------------------------------------------------
1 | ScratchPad << __FILE__
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/load_fixture.dll:
--------------------------------------------------------------------------------
1 | ScratchPad << :ext_dll
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/load_fixture.rb:
--------------------------------------------------------------------------------
1 | ScratchPad << :loaded
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/load_fixture.so:
--------------------------------------------------------------------------------
1 | ScratchPad << :ext_so
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/file.rb:
--------------------------------------------------------------------------------
1 | ScratchPad.record __FILE__
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/scanf/io/fixtures/helloworld.txt:
--------------------------------------------------------------------------------
1 | hello world
2 |
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail3.json:
--------------------------------------------------------------------------------
1 | {unquoted_key: "keys must be quoted"}
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/pass15.json:
--------------------------------------------------------------------------------
1 | ["Illegal backslash escape: \x15"]
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/pass17.json:
--------------------------------------------------------------------------------
1 | ["Illegal backslash escape: \017"]
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/pass26.json:
--------------------------------------------------------------------------------
1 | ["tab\ character\ in\ string\ "]
--------------------------------------------------------------------------------
/patches/Makefile.append:
--------------------------------------------------------------------------------
1 |
2 | print_arch_hdrdir:
3 | @echo $(arch_hdrdir)
4 |
--------------------------------------------------------------------------------
/ruby/benchmark/gc/binary_trees.rb:
--------------------------------------------------------------------------------
1 | require_relative '../so_binary_trees'
2 |
--------------------------------------------------------------------------------
/ruby/benchmark/other-lang/loop.pl:
--------------------------------------------------------------------------------
1 | for($i=0; $i<30000000; $i++){
2 | }
3 |
4 |
--------------------------------------------------------------------------------
/ruby/benchmark/other-lang/loop.py:
--------------------------------------------------------------------------------
1 | for i in xrange(30000000):
2 | pass
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/time_subsec.rb:
--------------------------------------------------------------------------------
1 | t = Time.now
2 | 4000000.times { t.subsec }
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/dln/empty/empty.c:
--------------------------------------------------------------------------------
1 | void
2 | Init_empty(void)
3 | {
4 | }
5 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/scan_args/extconf.rb:
--------------------------------------------------------------------------------
1 | create_makefile("-test-/scan_args")
2 |
--------------------------------------------------------------------------------
/ruby/lib/bundler/ssl_certs/.document:
--------------------------------------------------------------------------------
1 | # Ignore all files in this directory
2 |
--------------------------------------------------------------------------------
/ruby/lib/bundler/templates/.document:
--------------------------------------------------------------------------------
1 | # Ignore all files in this directory
2 |
--------------------------------------------------------------------------------
/ruby/lib/drb.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require 'drb/drb'
3 |
4 |
--------------------------------------------------------------------------------
/ruby/lib/rubygems/ssl_certs/.document:
--------------------------------------------------------------------------------
1 | # Ignore all files in this directory
2 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/spec/runner/filters/a.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | A#:
3 | - a
4 | - aa
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/dash_upper_c_script.rb:
--------------------------------------------------------------------------------
1 | print Dir.pwd
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/names.txt:
--------------------------------------------------------------------------------
1 | alice
2 | bob
3 | james
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/rubyopt.rb:
--------------------------------------------------------------------------------
1 | puts "rubyopt.rb required"
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/a/load_fixture.dll:
--------------------------------------------------------------------------------
1 | ScratchPad << :ext_dll
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/gem/load_fixture.rb:
--------------------------------------------------------------------------------
1 | ScratchPad << :loaded_gem
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/load_ext_fixture.rb:
--------------------------------------------------------------------------------
1 | ScratchPad << :loaded
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/load_fixture.bundle:
--------------------------------------------------------------------------------
1 | ScratchPad << :ext_bundle
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/load_fixture.ext:
--------------------------------------------------------------------------------
1 | ScratchPad << :no_rb_ext
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/load_fixture.ext.dll:
--------------------------------------------------------------------------------
1 | ScratchPad << :ext_dll
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/load_fixture.ext.rb:
--------------------------------------------------------------------------------
1 | ScratchPad << :loaded
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/load_fixture.ext.so:
--------------------------------------------------------------------------------
1 | ScratchPad << :ext_so
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/socket/fixtures/send_io.txt:
--------------------------------------------------------------------------------
1 | This data is magic.
2 |
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail13.json:
--------------------------------------------------------------------------------
1 | {"Numbers cannot have leading zeroes": 013}
--------------------------------------------------------------------------------
/ruby/test/rubygems/bad_rake.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | exit 1
3 |
--------------------------------------------------------------------------------
/ruby/test/rubygems/good_rake.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | exit 0
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/load/protect/extconf.rb:
--------------------------------------------------------------------------------
1 | create_makefile('-test-/load/protect')
2 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/win32/dln/libdlntest.def:
--------------------------------------------------------------------------------
1 | EXPORTS
2 | dlntest_ordinal @1 NONAME
3 |
--------------------------------------------------------------------------------
/ruby/gems/rake-12.3.3/Gemfile:
--------------------------------------------------------------------------------
1 | source "https://rubygems.org"
2 |
3 | gemspec
4 |
--------------------------------------------------------------------------------
/ruby/gems/xmlrpc-0.3.0/Gemfile:
--------------------------------------------------------------------------------
1 | source 'https://rubygems.org'
2 |
3 | gemspec
4 |
--------------------------------------------------------------------------------
/ruby/lib/thwait/version.rb:
--------------------------------------------------------------------------------
1 | class ThreadsWait
2 | VERSION = "0.1.0"
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/sample/trick2013/shinh/authors.markdown:
--------------------------------------------------------------------------------
1 | Shinichiro Hamaji
2 | Japan, .jp
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/bin/launcher.rb:
--------------------------------------------------------------------------------
1 | #!ruby
2 | puts 'success'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/env/indexes_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/env/indices_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/env/rehash_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_w2.rb:
--------------------------------------------------------------------------------
1 | ScratchPad.record :loaded
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/a/load_fixture.bundle:
--------------------------------------------------------------------------------
1 | ScratchPad << :ext_bundle
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/load_fixture.ext.bundle:
--------------------------------------------------------------------------------
1 | ScratchPad << :ext_bundle
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/load_fixture_and__FILE__.rb:
--------------------------------------------------------------------------------
1 | ScratchPad << __FILE__
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/raise_fixture.rb:
--------------------------------------------------------------------------------
1 | raise "Exception loading a file"
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/symlink/symlink2/symlink2.rb:
--------------------------------------------------------------------------------
1 | ScratchPad << :loaded
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/utf8-bom.rb:
--------------------------------------------------------------------------------
1 | # encoding: utf-8
2 | puts 'hello'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/predefined/fixtures/data_only.rb:
--------------------------------------------------------------------------------
1 | __END__
2 | data only
3 |
--------------------------------------------------------------------------------
/ruby/test/-ext-/load/script.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | raise "foo"
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_small2.rb:
--------------------------------------------------------------------------------
1 | 1000000.times.map{|i| a={}; 2.times{|j| a[j]=j}; a}
2 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_small4.rb:
--------------------------------------------------------------------------------
1 | 1000000.times.map{|i| a={}; 4.times{|j| a[j]=j}; a}
2 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_small8.rb:
--------------------------------------------------------------------------------
1 | 1000000.times.map{|i| a={}; 8.times{|j| a[j]=j}; a}
2 |
--------------------------------------------------------------------------------
/ruby/benchmark/other-lang/loop.rb:
--------------------------------------------------------------------------------
1 | i = 0
2 | while i<30000000
3 | i += 1
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/win32/dln/libdlntest.c:
--------------------------------------------------------------------------------
1 | void
2 | dlntest_ordinal(void)
3 | {
4 | }
5 |
--------------------------------------------------------------------------------
/ruby/ext/cgi/escape/extconf.rb:
--------------------------------------------------------------------------------
1 | require 'mkmf'
2 |
3 | create_makefile 'cgi/escape'
4 |
--------------------------------------------------------------------------------
/ruby/ext/fiddle/libffi-3.2.1/testsuite/config/default.exp:
--------------------------------------------------------------------------------
1 | load_lib "standard.exp"
2 |
--------------------------------------------------------------------------------
/ruby/ext/io/console/win32_vk.chksum:
--------------------------------------------------------------------------------
1 | src="win32_vk.list", len=3269, checksum=34076
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/conditional_range.txt:
--------------------------------------------------------------------------------
1 | 1
2 | 2
3 | 3
4 | 4
5 | 5
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/math/common.rb:
--------------------------------------------------------------------------------
1 | class IncludesMath
2 | include Math
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/argv_encoding.rb:
--------------------------------------------------------------------------------
1 | p ARGV.map { |a| a.encoding.name }
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/begin_file.rb:
--------------------------------------------------------------------------------
1 | BEGIN {
2 | puts __FILE__
3 | }
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/utf8-nobom.rb:
--------------------------------------------------------------------------------
1 | # encoding: utf-8
2 | puts 'hello'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/fixtures/test_yaml.yml:
--------------------------------------------------------------------------------
1 | project:
2 | name: RubySpec
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/shared/file/setgid.rb:
--------------------------------------------------------------------------------
1 | describe :file_setgid, shared: true do
2 | end
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/shared/file/setuid.rb:
--------------------------------------------------------------------------------
1 | describe :file_setuid, shared: true do
2 | end
3 |
--------------------------------------------------------------------------------
/ruby/test/excludes/TestISeq.rb:
--------------------------------------------------------------------------------
1 | exclude :test_parent_iseq_mark, "time consuming test"
2 |
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/pass2.json:
--------------------------------------------------------------------------------
1 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
--------------------------------------------------------------------------------
/ruby/test/win32ole/orig_data.csv:
--------------------------------------------------------------------------------
1 | ID,VALUE
2 | 1,"A"
3 | 2,"B"
4 | 3,"C"
5 | 4,"B"
6 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/win32/console/depend:
--------------------------------------------------------------------------------
1 | attribute.o: $(ruby_headers) $(hdrdir)/ruby/win32.h
2 |
--------------------------------------------------------------------------------
/ruby/lib/e2mmap/version.rb:
--------------------------------------------------------------------------------
1 | module Exception2MessageMapper
2 | VERSION = "0.1.0"
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/lib/optionparser.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative 'optparse'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/exception/initialize_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/main/fixtures/wrapped_include.rb:
--------------------------------------------------------------------------------
1 | include MainSpecs::WrapIncludeModule
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload.rb:
--------------------------------------------------------------------------------
1 | $m.const_set(:AAA, "test") unless $m.nil?
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/constants_autoload_a.rb:
--------------------------------------------------------------------------------
1 | module CSAutoloadA
2 | end
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/constants_autoload_b.rb:
--------------------------------------------------------------------------------
1 | module CSAutoloadB
2 | end
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/symlink/symlink1.rb:
--------------------------------------------------------------------------------
1 | require_relative 'symlink2/symlink2'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/deflate/flush_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/deflate/new_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipfile/crc_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipfile/sync_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipfile/wrap_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/inflate/new_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/inflate/sync_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/zlib_version_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/zstream/close_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/zstream/end_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/zstream/ended_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/zstream/reset_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/test/erb/hello.erb:
--------------------------------------------------------------------------------
1 | = hello
2 | <% 3.times do |n| %>
3 | * <%= n %>
4 | <% end %>
5 |
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/fail10.json:
--------------------------------------------------------------------------------
1 | {"Extra value after close": true} "misplaced quoted value"
--------------------------------------------------------------------------------
/ruby/benchmark/array_sample_100k_10.rb:
--------------------------------------------------------------------------------
1 | arr = [*0...100000]
2 | 10_000.times {arr.sample 10}
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/array_sample_100k_11.rb:
--------------------------------------------------------------------------------
1 | arr = [*0...100000]
2 | 10_000.times {arr.sample 11}
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/array_sample_100k__100.rb:
--------------------------------------------------------------------------------
1 | arr = [*0...100000]
2 | 10_000.times {arr.sample 100}
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/array_sample_100k__1k.rb:
--------------------------------------------------------------------------------
1 | arr = [*0...100000]
2 | 10_000.times {arr.sample 1000}
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/array_sample_100k__6k.rb:
--------------------------------------------------------------------------------
1 | arr = [*0...100000]
2 | 10_000.times {arr.sample 6000}
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/array_sort_float.rb:
--------------------------------------------------------------------------------
1 | arr = Array.new(1000) { rand }
2 | 10000.times { arr.sort }
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/marshal_dump_load_time.rb:
--------------------------------------------------------------------------------
1 | 100000.times { Marshal.load(Marshal.dump(Time.now)) }
2 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/win32/fd_setsize/depend:
--------------------------------------------------------------------------------
1 | fd_setsize.o: $(ruby_headers) $(hdrdir)/ruby/win32.h
2 |
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/json_index/.document:
--------------------------------------------------------------------------------
1 | # ignore all files in this directory
2 |
--------------------------------------------------------------------------------
/ruby/lib/rexml.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | require_relative "rexml/document"
4 |
--------------------------------------------------------------------------------
/ruby/sample/trick2018/03-tompng/Gemfile:
--------------------------------------------------------------------------------
1 | source 'https://rubygems.org'
2 | gem 'chunky_png'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/full_names.txt:
--------------------------------------------------------------------------------
1 | alice jones
2 | bob field
3 | james grey
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_empty.rb:
--------------------------------------------------------------------------------
1 | # This file is left empty on purpose
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/no_magic_comment.rb:
--------------------------------------------------------------------------------
1 | $magic_comment_result = __ENCODING__.name
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/predefined/fixtures/data4.rb:
--------------------------------------------------------------------------------
1 | # nothing
2 |
3 | __END__
4 | data 4
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/predefined/fixtures/print_data.rb:
--------------------------------------------------------------------------------
1 | at_exit {
2 | puts DATA.read
3 | }
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/coverage/fixtures/start_coverage.rb:
--------------------------------------------------------------------------------
1 | 2 + 2
2 | Coverage.start
3 | 1 + 1
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/deflate/append_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipfile/finish_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipfile/level_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipfile/mtime_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipfile/os_code_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipfile/to_io_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipreader/lineno_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipreader/new_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipreader/open_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipreader/tell_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipreader/unused_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipwriter/comment_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipwriter/flush_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipwriter/new_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipwriter/open_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipwriter/pos_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipwriter/print_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipwriter/printf_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipwriter/putc_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipwriter/puts_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipwriter/tell_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/inflate/sync_point_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/zstream/closed_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/zstream/finish_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/zstream/finished_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/zstream/stream_end_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/zstream/total_in_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/zstream/total_out_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/benchmark/array_sample_100k___10k.rb:
--------------------------------------------------------------------------------
1 | arr = [*0...100000]
2 | 10_000.times {arr.sample 10_000}
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/array_sample_100k___50k.rb:
--------------------------------------------------------------------------------
1 | arr = [*0...100000]
2 | 10_000.times {arr.sample 50_000}
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_eval.yml:
--------------------------------------------------------------------------------
1 | benchmark:
2 | vm2_eval: |
3 | eval("1")
4 | loop_count: 6000000
5 |
--------------------------------------------------------------------------------
/ruby/gems/did_you_mean-1.3.0/test/fixtures/book.rb:
--------------------------------------------------------------------------------
1 | class Book
2 | class Cover
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/sample/test.rb:
--------------------------------------------------------------------------------
1 | # backward compatibility for chkbuild
2 | require_relative '../basictest/test'
3 |
--------------------------------------------------------------------------------
/ruby/sample/trick2013/kinaba/authors.markdown:
--------------------------------------------------------------------------------
1 | * kinaba
2 | * kiki@kmonos.net
3 | * cctld: jp
4 |
--------------------------------------------------------------------------------
/ruby/sample/trick2013/mame/authors.markdown:
--------------------------------------------------------------------------------
1 | * Yusuke Endoh
2 | * mame@tsg.ne.jp
3 | * cctld: jp
4 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/spec/fixtures/my_ruby:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | echo $RUBY_EXE
4 | ruby "$@"
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/freeze_flag_required.rb:
--------------------------------------------------------------------------------
1 | $second_literal_id = "abc".object_id
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_callback.rb:
--------------------------------------------------------------------------------
1 | block = ScratchPad.recorded
2 | block.call
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_required_directly_nested.rb:
--------------------------------------------------------------------------------
1 | ScratchPad.recorded.call
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_x.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | X = :x
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/wrap_fixture.rb:
--------------------------------------------------------------------------------
1 | class LoadSpecWrap
2 | ScratchPad << self
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/predefined/fixtures/empty_data.rb:
--------------------------------------------------------------------------------
1 | p DATA.pos
2 | p DATA.read
3 | __END__
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/mathn/math/fixtures/classes.rb:
--------------------------------------------------------------------------------
1 | class IncludesMath
2 | include Math
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/net/ftp/fixtures/passive.rb:
--------------------------------------------------------------------------------
1 | require "net/ftp"
2 | print Net::FTP.new.passive
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/net/ftp/shared/pwd.rb:
--------------------------------------------------------------------------------
1 | describe :net_ftp_pwd, shared: true do
2 |
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipreader/readchar_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipreader/readline_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipreader/readlines_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipwriter/orig_name_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/zstream/flush_next_in_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
--------------------------------------------------------------------------------
/ruby/test/rdoc/MarkdownTest_1.0.3/Nested blockquotes.text:
--------------------------------------------------------------------------------
1 | > foo
2 | >
3 | > > bar
4 | >
5 | > foo
6 |
--------------------------------------------------------------------------------
/ruby/test/scanf/data.txt:
--------------------------------------------------------------------------------
1 | this is 33 a fun
2 | little input file
3 |
4 | with
5 |
6 | characters
7 |
--------------------------------------------------------------------------------
/ruby/benchmark/loop_whileloop.rb:
--------------------------------------------------------------------------------
1 | i = 0
2 | while i<30_000_000 # benchmark loop 1
3 | i += 1
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/loop_whileloop2.rb:
--------------------------------------------------------------------------------
1 | i = 0
2 | while i< 6_000_000 # benchmark loop 2
3 | i += 1
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/bootstraptest/test_string.rb:
--------------------------------------------------------------------------------
1 | assert_normal_exit %q{
2 | inspect.clear
3 | }, '[ruby-core:68110]'
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/num2int/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/num2int")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/postponed_job/depend:
--------------------------------------------------------------------------------
1 | postponed_job.o: $(HDRS) $(ruby_headers) $(hdrdir)/ruby/debug.h
2 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/printf/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/printf")
3 |
--------------------------------------------------------------------------------
/ruby/ext/fcntl/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | require 'mkmf'
3 | create_makefile('fcntl')
4 |
--------------------------------------------------------------------------------
/ruby/ext/nkf/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require 'mkmf'
3 | create_makefile('nkf')
4 |
--------------------------------------------------------------------------------
/ruby/gems/test-unit-3.2.9/test/fixtures/no-header.csv:
--------------------------------------------------------------------------------
1 | empty string,true,""
2 | plain string,false,hello
3 |
--------------------------------------------------------------------------------
/ruby/gems/test-unit-3.2.9/test/fixtures/no-header.tsv:
--------------------------------------------------------------------------------
1 | empty string true ""
2 | plain string false hello
3 |
--------------------------------------------------------------------------------
/ruby/lib/bundler/templates/newgem/rspec.tt:
--------------------------------------------------------------------------------
1 | --format documentation
2 | --color
3 | --require spec_helper
4 |
--------------------------------------------------------------------------------
/ruby/lib/bundler/vendor/thor/lib/thor/version.rb:
--------------------------------------------------------------------------------
1 | class Bundler::Thor
2 | VERSION = "0.20.0"
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/sample/trick2018/01-kinaba/authors.markdown:
--------------------------------------------------------------------------------
1 | * kinaba
2 | * twitter.com/kinaba
3 | * cctld: jp
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/freeze_flag_two_literals.rb:
--------------------------------------------------------------------------------
1 | p "abc".object_id == "abc".object_id
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/argf/fixtures/lineno.rb:
--------------------------------------------------------------------------------
1 | puts $.
2 | ARGF.gets
3 | puts $.
4 | ARGF.gets
5 | puts $.
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/constants_autoload_c.rb:
--------------------------------------------------------------------------------
1 | module CSAutoloadC
2 | CONST = 7
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/test/json/fixtures/obsolete_fail1.json:
--------------------------------------------------------------------------------
1 | "A JSON payload should be an object or array, not a string."
2 |
--------------------------------------------------------------------------------
/ruby/test/rexml/data/simple.xml:
--------------------------------------------------------------------------------
1 |
2 | abd
3 |
--------------------------------------------------------------------------------
/ruby/test/rss/dot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/rss/dot.png
--------------------------------------------------------------------------------
/ruby/benchmark/app_strconcat.rb:
--------------------------------------------------------------------------------
1 | i = 0
2 | while i<2_000_000
3 | "#{1+1} #{1+1} #{1+1}"
4 | i += 1
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/benchmark/array_values_at_int.rb:
--------------------------------------------------------------------------------
1 | ary = Array.new(10000) {|i| i}
2 | 100000.times { ary.values_at(500) }
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/string_scan_re.rb:
--------------------------------------------------------------------------------
1 | str = Array.new(1_000, 'abc').join(',')
2 | 1_000.times { str.scan(/abc/) }
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/string_scan_str.rb:
--------------------------------------------------------------------------------
1 | str = Array.new(1_000, 'abc').join(',')
2 | 1_000.times { str.scan('abc') }
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_newlambda.yml:
--------------------------------------------------------------------------------
1 | benchmark:
2 | vm2_newlambda: |
3 | lambda {}
4 | loop_count: 6000000
5 |
--------------------------------------------------------------------------------
/ruby/bootstraptest/test_flip.rb:
--------------------------------------------------------------------------------
1 | assert_equal %q{E}, %q{$_ = "E"; eval("nil if true..~/^E/",nil,"-e"); $_}
2 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/bug-14834/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | create_makefile("-test-/bug_14834")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/bug-3571/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/bug_3571")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/bug-5832/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/bug_5832")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/dln/empty/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/dln/empty")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/fatal/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/fatal/rb_fatal")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/iseq_load/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/iseq_load")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/st/foreach/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/st/foreach")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/st/numhash/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/st/numhash")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/st/update/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/st/update")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/tracepoint/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/tracepoint")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/typeddata/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/typeddata")
3 |
--------------------------------------------------------------------------------
/ruby/ext/fiber/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require 'mkmf'
3 | create_makefile('fiber')
4 |
5 |
--------------------------------------------------------------------------------
/ruby/gems/did_you_mean-1.3.0/lib/did_you_mean/version.rb:
--------------------------------------------------------------------------------
1 | module DidYouMean
2 | VERSION = "1.3.0"
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/gems/power_assert-1.1.3/lib/power_assert/version.rb:
--------------------------------------------------------------------------------
1 | module PowerAssert
2 | VERSION = "1.1.3"
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/sample/trick2013/yhara/authors.markdown:
--------------------------------------------------------------------------------
1 | * Yutaka Hara
2 | * yutaka.hara.gmail.com
3 | * cctld: jp
4 |
--------------------------------------------------------------------------------
/ruby/sample/trick2018/02-mame/authors.markdown:
--------------------------------------------------------------------------------
1 | * Yusuke Endoh
2 | * mame@ruby-lang.org
3 | * cctld: jp
4 |
--------------------------------------------------------------------------------
/ruby/sample/trick2018/04-colin/authors.markdown:
--------------------------------------------------------------------------------
1 | * Colin Fulton
2 | * justcolin@gmail.com
3 | * cctld: us
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/copy_stream.txt:
--------------------------------------------------------------------------------
1 | Line one
2 |
3 | Line three
4 | Line four
5 |
6 | Line last
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/kernel/fixtures/chop_f.rb:
--------------------------------------------------------------------------------
1 | # -*- encoding: utf-8 -*-
2 |
3 | $_ = "あれ"
4 | print chop
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_j.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | J = :autoload_j
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/module.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs
2 | module Anonymous
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/symbol/fixtures/classes.rb:
--------------------------------------------------------------------------------
1 | module SymbolSpecs
2 | class MyRange < Range; end
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/predefined/fixtures/toplevel_binding_id_required.rb:
--------------------------------------------------------------------------------
1 | $b = TOPLEVEL_BINDING.object_id
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/optional/capi/fixtures/encoding.rb:
--------------------------------------------------------------------------------
1 | class CApiEncodingSpecs
2 | class S < String; end
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/benchmark/array_values_at_range.rb:
--------------------------------------------------------------------------------
1 | ary = Array.new(10000) {|i| i}
2 | 100000.times { ary.values_at(1..2000) }
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm3_gc_old_full.rb:
--------------------------------------------------------------------------------
1 | old_object = Array.new(1_000_000){''}
2 | 100.times do
3 | GC.start
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/array/resize/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/array/resize")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/bug_reporter/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/bug_reporter")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/debug/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/load/dot.dot/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/load/dot.dot")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/marshal/usr/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/marshal/usr")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/notimplement/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/notimplement")
3 |
--------------------------------------------------------------------------------
/ruby/ext/stringio/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require 'mkmf'
3 | create_makefile('stringio')
4 |
--------------------------------------------------------------------------------
/ruby/gems/rake-12.3.3.gem:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/gems/rake-12.3.3.gem
--------------------------------------------------------------------------------
/ruby/gems/xmlrpc-0.3.0.gem:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/gems/xmlrpc-0.3.0.gem
--------------------------------------------------------------------------------
/ruby/lib/rubygems/package/source.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | class Gem::Package::Source # :nodoc:
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/lib/tracer/version.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | class Tracer
4 | VERSION = "0.1.0"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/sample/trick2015/ksk_1/authors.markdown:
--------------------------------------------------------------------------------
1 | * Keisuke Nakano
2 | * ksk@github, ksknac@twitter
3 | * cctld: jp
4 |
--------------------------------------------------------------------------------
/ruby/sample/trick2015/ksk_2/authors.markdown:
--------------------------------------------------------------------------------
1 | * Keisuke Nakano
2 | * ksk@github, ksknac@twitter
3 | * cctld: jp
4 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/Gemfile:
--------------------------------------------------------------------------------
1 | source 'https://rubygems.org'
2 |
3 | gem "rake", "~> 10.0"
4 | gem "rspec", "~> 2.14.1"
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/bin/embedded_ruby.txt:
--------------------------------------------------------------------------------
1 | @@@This line is not value Ruby
2 | #!ruby
3 | puts 'success'
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/kernel/fixtures/chomp_f.rb:
--------------------------------------------------------------------------------
1 | # -*- encoding: utf-8 -*-
2 |
3 | $_ = "あれ\r\n"
4 | print chomp
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/kernel/fixtures/chop.rb:
--------------------------------------------------------------------------------
1 | # -*- encoding: utf-8 -*-
2 |
3 | $_ = "あれ"
4 | print Kernel.chop
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_r.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | class R
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_raise.rb:
--------------------------------------------------------------------------------
1 | ScratchPad << :raise
2 | raise "exception during autoload"
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_t.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload::S
2 | T = :autoload_t
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/freeze_magic_comment_required_no_comment.rb:
--------------------------------------------------------------------------------
1 | $second_literal_id = "abc".object_id
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/magic_comment.rb:
--------------------------------------------------------------------------------
1 | # encoding: big5
2 | $magic_comment_result = __ENCODING__.name
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/predefined/fixtures/data1.rb:
--------------------------------------------------------------------------------
1 | puts Object.const_defined?(:DATA)
2 |
3 | __END__
4 | data1
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/predefined/fixtures/data5.rb:
--------------------------------------------------------------------------------
1 | DATA.rewind
2 | puts DATA.gets
3 |
4 | __END__
5 | data 5
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/scanf/io/fixtures/date.txt:
--------------------------------------------------------------------------------
1 | Beethoven 1770
2 | Bach 1685
3 | Handel 1685
4 |
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/optional/capi/fixtures/const_get_object.rb:
--------------------------------------------------------------------------------
1 | class Object
2 | CApiModuleSpecsAutoload = 123
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/test/excludes/TestIO_Console.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | exclude(:test_getpass, 'not portable')
3 |
--------------------------------------------------------------------------------
/ruby/test/excludes/TestThread.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | exclude(/_stack_size$/, 'often too expensive')
3 |
--------------------------------------------------------------------------------
/ruby/test/rdoc/binary.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/rdoc/binary.dat
--------------------------------------------------------------------------------
/ruby/benchmark/array_sort_block.rb:
--------------------------------------------------------------------------------
1 | ary = Array.new(1000) { rand(1000) }
2 | 10000.times { ary.sort { |a, b| a <=> b } }
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/lib/load.rb:
--------------------------------------------------------------------------------
1 | $:.unshift(File.join(__dir__, '../benchmark-driver/lib'))
2 | require 'benchmark_driver'
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/marshal_dump_flo.rb:
--------------------------------------------------------------------------------
1 | bug10761 = 10000.times.map { |x| x.to_f }
2 | 100.times { Marshal.dump(bug10761) }
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_ivar_set.yml:
--------------------------------------------------------------------------------
1 | benchmark:
2 | vm1_ivar_set: |
3 | @a = 1
4 | @b = 2
5 | loop_count: 30000000
6 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_array.yml:
--------------------------------------------------------------------------------
1 | benchmark:
2 | vm2_array: |
3 | a = [1,2,3,4,5,6,7,8,9,10]
4 | loop_count: 6000000
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm3_gc.rb:
--------------------------------------------------------------------------------
1 | 5000.times do
2 | 100.times do
3 | {"xxxx"=>"yyyy"}
4 | end
5 | GC.start
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/exception/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/marshal/compat/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/marshal/compat")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/method/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/postponed_job/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile('-test-/postponed_job')
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/regexp/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/thread_fd_close/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | create_makefile('-test-/thread_fd_close')
3 |
--------------------------------------------------------------------------------
/ruby/gems/minitest-5.11.3.gem:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/gems/minitest-5.11.3.gem
--------------------------------------------------------------------------------
/ruby/gems/test-unit-3.2.9.gem:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/gems/test-unit-3.2.9.gem
--------------------------------------------------------------------------------
/ruby/lib/bundler/templates/newgem/exe/newgem.tt:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | require "<%= config[:namespaced_path] %>"
4 |
--------------------------------------------------------------------------------
/ruby/lib/fileutils/version.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | module FileUtils
4 | VERSION = "1.1.0"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/sample/trick2015/eregon/authors.markdown:
--------------------------------------------------------------------------------
1 | * Benoit Daloze (eregon)
2 | * eregontp@gmail.com
3 | * cctld: be
4 |
--------------------------------------------------------------------------------
/ruby/sample/trick2015/ksk_2/abnormal.cnf:
--------------------------------------------------------------------------------
1 | c Example CNF format file
2 | c
3 | p cnf 4 3
4 | 1 3 -4 0
5 | 4 0 2
6 | -3
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/kernel/fixtures/chomp.rb:
--------------------------------------------------------------------------------
1 | # -*- encoding: utf-8 -*-
2 |
3 | $_ = "あれ\r\n"
4 | print Kernel.chomp
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_o.rb:
--------------------------------------------------------------------------------
1 | # does not define ModuleSpecs::Autoload::O
2 | ScratchPad << :loaded
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/concurrent3.rb:
--------------------------------------------------------------------------------
1 | ScratchPad.recorded << :con3
2 | Thread.current[:in_concurrent_rb3] = true
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/line_fixture.rb:
--------------------------------------------------------------------------------
1 | ScratchPad << __LINE__
2 |
3 | # line 3
4 |
5 | ScratchPad << __LINE__
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/case_magic_comment.rb:
--------------------------------------------------------------------------------
1 | # CoDiNg: bIg5
2 | $magic_comment_result = __ENCODING__.name
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/predefined/fixtures/data2.rb:
--------------------------------------------------------------------------------
1 | require_relative 'data4'
2 |
3 | p Object.const_defined?(:DATA)
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/complex/numeric/im_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | require 'complex'
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/emitter_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/parser_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/test/csv/line_endings.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/csv/line_endings.gz
--------------------------------------------------------------------------------
/ruby/test/dtrace/dummy.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | # this is a dummy file used by test/dtrace/test_require.rb
3 |
--------------------------------------------------------------------------------
/ruby/test/rexml/data/euc.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/rexml/data/euc.xml
--------------------------------------------------------------------------------
/ruby/benchmark/app_raise.rb:
--------------------------------------------------------------------------------
1 | i = 0
2 | while i<300000
3 | i += 1
4 | begin
5 | raise
6 | rescue
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/arith_seq/extract/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/arith_seq/extract")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/funcall/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require 'mkmf'
3 | create_makefile("-test-/funcall")
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/hash/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext(inc: true)
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/iter/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext(inc: true)
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/proc/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext(inc: true)
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/time/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext(inc: true)
4 |
--------------------------------------------------------------------------------
/ruby/ext/continuation/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require 'mkmf'
3 | create_makefile('continuation')
4 |
5 |
--------------------------------------------------------------------------------
/ruby/ext/psych/lib/psych/omap.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | module Psych
3 | class Omap < ::Hash
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/ext/psych/lib/psych/set.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | module Psych
3 | class Set < ::Hash
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/gems/did_you_mean-1.3.0.gem:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/gems/did_you_mean-1.3.0.gem
--------------------------------------------------------------------------------
/ruby/gems/net-telnet-0.2.0.gem:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/gems/net-telnet-0.2.0.gem
--------------------------------------------------------------------------------
/ruby/gems/power_assert-1.1.3.gem:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/gems/power_assert-1.1.3.gem
--------------------------------------------------------------------------------
/ruby/gems/rake-12.3.3/doc/example/a.c:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | void a()
4 | {
5 | printf ("In function a\n");
6 | }
7 |
--------------------------------------------------------------------------------
/ruby/gems/rake-12.3.3/doc/example/b.c:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | void b()
4 | {
5 | printf ("In function b\n");
6 | }
7 |
--------------------------------------------------------------------------------
/ruby/gems/test-unit-3.2.9/lib/test/unit/version.rb:
--------------------------------------------------------------------------------
1 | module Test
2 | module Unit
3 | VERSION = "3.2.9"
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/sample/trick2015/kinaba/authors.markdown:
--------------------------------------------------------------------------------
1 | * kinaba
2 | * twitter.com/kinaba
3 | * kiki@kmonos.net
4 | * cctld: jp
5 |
--------------------------------------------------------------------------------
/ruby/sample/trick2018/03-tompng/authors.markdown:
--------------------------------------------------------------------------------
1 | * Tomoya Ishida (tompng)
2 | * tomoyapenguin@gmail.com
3 | * cctld: jp
4 |
--------------------------------------------------------------------------------
/ruby/sample/trick2018/05-tompng/authors.markdown:
--------------------------------------------------------------------------------
1 | * Tomoya Ishida (tompng)
2 | * tomoyapenguin@gmail.com
3 | * cctld: jp
4 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/lib/mspec/expectations.rb:
--------------------------------------------------------------------------------
1 | require 'mspec/expectations/expectations'
2 | require 'mspec/expectations/should'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/bin/bad_embedded_ruby.txt:
--------------------------------------------------------------------------------
1 | @@@This line is not value Ruby
2 | #!rub_y
3 | puts 'success'
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/float/fixtures/classes.rb:
--------------------------------------------------------------------------------
1 | module FloatSpecs
2 | class CoerceError < StandardError
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/constants_autoload_d.rb:
--------------------------------------------------------------------------------
1 | module CSAutoloadD
2 | module InnerModule
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/print_magic_comment_result_at_exit.rb:
--------------------------------------------------------------------------------
1 | at_exit {
2 | print $magic_comment_result
3 | }
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/utf16-be-nobom.rb:
--------------------------------------------------------------------------------
1 | # e n c o d i n g : u t f - 1 6 b e
2 | p u t s ' h e l l o '
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/complex/math/fixtures/classes.rb:
--------------------------------------------------------------------------------
1 | require 'cmath'
2 | class IncludesMath
3 | include CMath
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/each_node_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/object_maker_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/quick_emit_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/transfer_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/try_implicit_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/optional/capi/fixtures/const_get.rb:
--------------------------------------------------------------------------------
1 | class CApiModuleSpecs
2 | class A
3 | D = 123
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/optional/capi/fixtures/const_get_at.rb:
--------------------------------------------------------------------------------
1 | class CApiModuleSpecs
2 | class A
3 | B = 123
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/test/cgi/testdata/large.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/cgi/testdata/large.png
--------------------------------------------------------------------------------
/ruby/test/cgi/testdata/small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/cgi/testdata/small.png
--------------------------------------------------------------------------------
/ruby/test/rexml/data/t63-1.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/rexml/data/t63-1.xml
--------------------------------------------------------------------------------
/ruby/test/rexml/data/t63-2.svg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/rexml/data/t63-2.svg
--------------------------------------------------------------------------------
/ruby/test/rexml/data/utf16.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/rexml/data/utf16.xml
--------------------------------------------------------------------------------
/ruby/test/webrick/webrick.rhtml:
--------------------------------------------------------------------------------
1 | req to <%=
2 | servlet_request.request_uri
3 | %> <%=
4 | servlet_request.query.inspect %>
5 |
--------------------------------------------------------------------------------
/ruby/win32/makedirs.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | setlocal EnableExtensions
3 | for %%I in (%*) do if not exist "%%~I/." mkdir "%%~I"
4 |
--------------------------------------------------------------------------------
/ruby/benchmark/securerandom.rb:
--------------------------------------------------------------------------------
1 | require "securerandom"
2 |
3 | 20_0000.times do
4 | SecureRandom.random_number(100)
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_rescue.yml:
--------------------------------------------------------------------------------
1 | benchmark:
2 | vm1_rescue: |
3 | begin
4 | rescue
5 | end
6 | loop_count: 30000000
7 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/bignum/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext(inc: true)
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/class/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext(inc: true)
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/dln/empty/depend:
--------------------------------------------------------------------------------
1 | # AUTOGENERATED DEPENDENCIES START
2 | empty.o: empty.c
3 | # AUTOGENERATED DEPENDENCIES END
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/float/depend:
--------------------------------------------------------------------------------
1 | $(OBJS): $(HDRS) $(ruby_headers)
2 |
3 | nextafter.o: nextafter.c $(top_srcdir)/missing/nextafter.c
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/float/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext(inc: true)
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/gvl/call_without_gvl/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/gvl/call_without_gvl")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/integer/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext(inc: true)
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/recursion/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require 'mkmf'
3 | create_makefile("-test-/recursion")
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/string/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext(inc: true)
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/struct/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | auto_ext(inc: true)
4 |
--------------------------------------------------------------------------------
/ruby/ext/json/generator/extconf.rb:
--------------------------------------------------------------------------------
1 | require 'mkmf'
2 |
3 | $defs << "-DJSON_GENERATOR"
4 | create_makefile 'json/ext/generator'
5 |
--------------------------------------------------------------------------------
/ruby/ext/openssl/ossl_kdf.h:
--------------------------------------------------------------------------------
1 | #if !defined(OSSL_KDF_H)
2 | #define OSSL_KDF_H
3 |
4 | void Init_ossl_kdf(void);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/ruby/ext/win32/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | if $mswin||$mingw||$cygwin
3 | create_makefile('win32')
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/ext/win32/resolv/extconf.rb:
--------------------------------------------------------------------------------
1 | if have_library('iphlpapi', 'GetNetworkParams')
2 | create_makefile('win32/resolv')
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/gems/minitest-5.11.3/lib/minitest/pride.rb:
--------------------------------------------------------------------------------
1 | require "minitest"
2 |
3 | Minitest.load_plugins
4 | Minitest::PrideIO.pride!
5 |
--------------------------------------------------------------------------------
/ruby/gems/net-telnet-0.2.0/lib/net/telnet/version.rb:
--------------------------------------------------------------------------------
1 | module Net
2 | class Telnet
3 | VERSION = "0.2.0"
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/gems/rake-12.3.3/bin/setup:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | set -euo pipefail
3 | IFS=$'\n\t'
4 | set -vx
5 |
6 | bundle install
7 |
--------------------------------------------------------------------------------
/ruby/gems/test-unit-3.2.9/test/fixtures/header.csv:
--------------------------------------------------------------------------------
1 | label,expected,target
2 | empty string,true,""
3 | plain string,false,hello
4 |
--------------------------------------------------------------------------------
/ruby/gems/test-unit-3.2.9/test/fixtures/header.tsv:
--------------------------------------------------------------------------------
1 | label expected target
2 | empty string true ""
3 | plain string false hello
4 |
--------------------------------------------------------------------------------
/ruby/lib/rdoc/version.rb:
--------------------------------------------------------------------------------
1 | module RDoc
2 |
3 | ##
4 | # RDoc version you are using
5 |
6 | VERSION = '6.1.2.1'
7 |
8 | end
9 |
--------------------------------------------------------------------------------
/ruby/lib/rubygems/resolver/molinillo.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | require 'rubygems/resolver/molinillo/lib/molinillo'
3 |
--------------------------------------------------------------------------------
/ruby/libexec/bundler:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | # frozen_string_literal: true
3 |
4 | load File.expand_path("../bundle", __FILE__)
5 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/lib/mspec/mocks.rb:
--------------------------------------------------------------------------------
1 | require 'mspec/mocks/mock'
2 | require 'mspec/mocks/proxy'
3 | require 'mspec/mocks/object'
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/integer/fixtures/classes.rb:
--------------------------------------------------------------------------------
1 | module IntegerSpecs
2 | class CoerceError < StandardError
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/reopen_stdout.rb:
--------------------------------------------------------------------------------
1 | STDOUT.reopen ARGV[0]
2 | system "echo from system"
3 | exec "echo from exec"
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/kernel/fixtures/caller_at_exit.rb:
--------------------------------------------------------------------------------
1 | at_exit {
2 | foo
3 | }
4 |
5 | def foo
6 | puts caller(0)
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_w.rb:
--------------------------------------------------------------------------------
1 | # Fails to define ModuleSpecs::Autoload::W::Y
2 | ScratchPad.record :loaded
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/dollar_zero.rb:
--------------------------------------------------------------------------------
1 | puts $0
2 | puts __FILE__
3 |
4 | if $0 == __FILE__
5 | print "OK"
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/emacs_magic_comment.rb:
--------------------------------------------------------------------------------
1 | # -*- encoding: big5 -*-
2 | $magic_comment_result = __ENCODING__.name
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/second_line_magic_comment.rb:
--------------------------------------------------------------------------------
1 |
2 | # encoding: big5
3 | $magic_comment_result = __ENCODING__.name
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/utf16-le-nobom.rb:
--------------------------------------------------------------------------------
1 | # e n c o d i n g : u t f - 1 6 l e
2 | p u t s ' h e l l o '
3 |
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/predefined/fixtures/data3.rb:
--------------------------------------------------------------------------------
1 | require_relative 'data4'
2 |
3 | puts DATA.read
4 |
5 | __END__
6 | data 3
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/coverage/fixtures/second_class.rb:
--------------------------------------------------------------------------------
1 | class SecondClass
2 | def some_method
3 | 42
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/socket/socket/new_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../spec_helper'
2 | require_relative '../fixtures/classes'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/add_builtin_type_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/add_domain_type_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/add_private_type_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/add_ruby_type_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/detect_implicit_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/generic_parser_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/parse_documents_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/read_type_class_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'fixtures/common'
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/optional/capi/fixtures/const_get_from.rb:
--------------------------------------------------------------------------------
1 | class CApiModuleSpecs
2 | class A
3 | C = 123
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/optional/capi/fixtures/module_autoload.rb:
--------------------------------------------------------------------------------
1 | class CApiModuleSpecs
2 | module RubyUnderAutoload
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/test/rexml/data/iso8859-1.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/rexml/data/iso8859-1.xml
--------------------------------------------------------------------------------
/ruby/test/rexml/data/jaxen24.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/ruby/test/rexml/data/pi2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | foo
4 |
5 | bar
6 |
7 |
--------------------------------------------------------------------------------
/ruby/test/rexml/data/ticket_61.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/rexml/data/ticket_61.xml
--------------------------------------------------------------------------------
/ruby/test/ruby/enc/test_euc_jp.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/ruby/enc/test_euc_jp.rb
--------------------------------------------------------------------------------
/ruby/benchmark/gc/hash2.rb:
--------------------------------------------------------------------------------
1 | value = 0.01
2 | h = {}
3 | n = 4*(10**6)
4 |
5 | 1.upto(n){|i|
6 | h["%020d" % i] = value * i
7 | }
8 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_not.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | obj = Object.new
3 | benchmark:
4 | vm1_not: |
5 | !obj
6 | loop_count: 30000000
7 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm3_clearmethodcache.rb:
--------------------------------------------------------------------------------
1 | i = 0
2 | while i<200_000
3 | i += 1
4 |
5 | Class.new{
6 | def m; end
7 | }
8 | end
9 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm_thread_alive_check1.rb:
--------------------------------------------------------------------------------
1 | 5_000.times{
2 | t = Thread.new{}
3 | while t.alive?
4 | Thread.pass
5 | end
6 | }
7 |
--------------------------------------------------------------------------------
/ruby/bootstraptest/test_marshal.rb:
--------------------------------------------------------------------------------
1 |
2 | assert_normal_exit %q{
3 | Marshal.load(Marshal.dump({"k"=>"v"}), lambda {|v| v})
4 | }
5 |
6 |
--------------------------------------------------------------------------------
/ruby/doc/images/boottime-classes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/doc/images/boottime-classes.png
--------------------------------------------------------------------------------
/ruby/ext/-test-/load/dot.dot/depend:
--------------------------------------------------------------------------------
1 | # AUTOGENERATED DEPENDENCIES START
2 | dot.dot.o: dot.dot.c
3 | # AUTOGENERATED DEPENDENCIES END
4 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/marshal/internal_ivar/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | create_makefile("-test-/marshal/internal_ivar")
3 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/printf/depend:
--------------------------------------------------------------------------------
1 | $(OBJS): $(HDRS) $(ruby_headers) \
2 | $(hdrdir)/ruby/encoding.h \
3 | $(hdrdir)/ruby/oniguruma.h
4 |
--------------------------------------------------------------------------------
/ruby/ext/psych/psych_parser.h:
--------------------------------------------------------------------------------
1 | #ifndef PSYCH_PARSER_H
2 | #define PSYCH_PARSER_H
3 |
4 | void Init_psych_parser(void);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/ruby/gems/power_assert-1.1.3/bin/setup:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | set -euo pipefail
3 | IFS=$'\n\t'
4 | set -vx
5 |
6 | bundle install
7 |
--------------------------------------------------------------------------------
/ruby/gems/test-unit-3.2.9/test/fixtures/header-label.csv:
--------------------------------------------------------------------------------
1 | label,expected,label
2 | upper case,HELLO,HELLO
3 | lower case,Hello,hello
4 |
--------------------------------------------------------------------------------
/ruby/gems/test-unit-3.2.9/test/fixtures/header-label.tsv:
--------------------------------------------------------------------------------
1 | label expected label
2 | upper case HELLO HELLO
3 | lower case Hello hello
4 |
--------------------------------------------------------------------------------
/ruby/lib/rdoc/ri/store.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | module RDoc::RI
3 |
4 | Store = RDoc::Store # :nodoc:
5 |
6 | end
7 |
8 |
--------------------------------------------------------------------------------
/ruby/sample/trick2013/kinaba/entry.rb:
--------------------------------------------------------------------------------
1 | !@THEqQUICKbBROWNfFXjJMPSvVLAZYDGgkyz&[%r{\"}mosx,4>6]|?'while(putc 3_0-~$.+=9/2^5;)<18*7and:`#
2 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/freeze_flag_one_literal.rb:
--------------------------------------------------------------------------------
1 | ids = Array.new(2) { "abc".object_id }
2 | p ids.first == ids.last
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/argf/fixtures/rewind.rb:
--------------------------------------------------------------------------------
1 | puts ARGF.lineno
2 | ARGF.gets
3 | puts ARGF.lineno
4 | ARGF.rewind
5 | puts ARGF.lineno
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/numbered_lines.txt:
--------------------------------------------------------------------------------
1 | Line 1: One
2 | Line 2: Two
3 | Line 3: Three
4 | Line 4: Four
5 | Line 5: Five
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/kernel/fixtures/autoload_b.rb:
--------------------------------------------------------------------------------
1 | module KSAutoloadB
2 | def self.loaded
3 | :ksautoload_b
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/kernel/fixtures/autoload_d.rb:
--------------------------------------------------------------------------------
1 | module KSAutoloadD
2 | def self.loaded
3 | :ksautoload_d
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_lm.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | L = :autoload_l
3 | M = :autoload_m
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/fixtures/code/recursive_require_fixture.rb:
--------------------------------------------------------------------------------
1 | require_relative 'recursive_require_fixture'
2 |
3 | ScratchPad << :loaded
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/binary_symbol.rb:
--------------------------------------------------------------------------------
1 | # encoding: binary
2 |
3 | p :il_était.to_s.bytes
4 | puts :il_était.encoding.name
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/second_token_magic_comment.rb:
--------------------------------------------------------------------------------
1 | 1 + 1 # encoding: big5
2 | $magic_comment_result = __ENCODING__.name
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/openstruct/fixtures/classes.rb:
--------------------------------------------------------------------------------
1 | module OpenStructSpecs
2 | class OpenStructSub < OpenStruct
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/win32ole/fixtures/event.xml:
--------------------------------------------------------------------------------
1 |
2 | Ruby
3 | trunk
4 |
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/yaml/fixtures/example_class.rb:
--------------------------------------------------------------------------------
1 | class FooBar
2 | def initialize(name)
3 | @name = name
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/test/rexml/data/underscore.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | <_b>2
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ruby/test/rexml/data/xmlfile-bug.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/rexml/data/xmlfile-bug.xml
--------------------------------------------------------------------------------
/ruby/test/ruby/enc/test_shift_jis.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/ruby/enc/test_shift_jis.rb
--------------------------------------------------------------------------------
/ruby/benchmark/hash_aref_fix.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 | nums = (1..26).to_a
3 | nums.each { |i| h[i] = i }
4 | 200_000.times { nums.each { |s| h[s] } }
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_literal_small2.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | 1_000_000.times.map { { "foo" => "bar", "bar" => "baz" } }
4 |
--------------------------------------------------------------------------------
/ruby/benchmark/string_index.rb:
--------------------------------------------------------------------------------
1 | str1 = "あ" * 1024 + "い" # not single byte optimizable
2 | str2 = "い"
3 | 100_000.times { str1.index(str2) }
4 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_ivar.yml:
--------------------------------------------------------------------------------
1 | prelude: "@a = 1\n"
2 | benchmark:
3 | vm1_ivar: |
4 | j = @a
5 | k = @a
6 | loop_count: 30000000
7 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm_thread_create_join.rb:
--------------------------------------------------------------------------------
1 | i = 0
2 | while i<100_000 # benchmark loop 3
3 | i += 1
4 | Thread.new{
5 | }.join
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/ext/sdbm/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require 'mkmf'
3 |
4 | $defs << "-D""BADMESS=0"
5 | create_makefile("sdbm")
6 |
--------------------------------------------------------------------------------
/ruby/gems/test-unit-3.2.9/test/fixtures/plus.csv:
--------------------------------------------------------------------------------
1 | label,expected,augend,addend
2 | positive positive,4,3,1
3 | positive negative,-1,1,-2
4 |
--------------------------------------------------------------------------------
/ruby/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt:
--------------------------------------------------------------------------------
1 | require "mkmf"
2 |
3 | create_makefile(<%= config[:makefile_path].inspect %>)
4 |
--------------------------------------------------------------------------------
/ruby/lib/irb/lc/.document:
--------------------------------------------------------------------------------
1 | # hide help-message files which contain usage information
2 | error.rb
3 | ja/encoding_aliases.rb
4 | ja/error.rb
5 |
--------------------------------------------------------------------------------
/ruby/sample/fib.awk:
--------------------------------------------------------------------------------
1 | function fib(n) {
2 | if ( n<2 ) return n; else return fib(n-2) + fib(n-1)
3 | }
4 |
5 | BEGIN { print fib(20); }
6 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/lib/mspec/version.rb:
--------------------------------------------------------------------------------
1 | require 'mspec/utils/version'
2 |
3 | module MSpec
4 | VERSION = SpecVersion.new "1.8.0"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/bin/hybrid_launcher.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | exec somehow this file
3 | #!ruby
4 | puts 'success'
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/thread/backtrace/location/fixtures/main.rb:
--------------------------------------------------------------------------------
1 | def example
2 | caller_locations[0].path
3 | end
4 |
5 | print example
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/net/ftp/fixtures/puttextfile:
--------------------------------------------------------------------------------
1 | This is an example file
2 | which is going to be transmitted
3 | using #puttextfile.
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/optional/capi/fixtures/path_to_class.rb:
--------------------------------------------------------------------------------
1 | class CApiClassSpecs
2 | class A
3 | module D
4 | end
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/shared/file/owned.rb:
--------------------------------------------------------------------------------
1 | describe :file_owned, shared: true do
2 | it "accepts an object that has a #to_path method"
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/shared/file/pipe.rb:
--------------------------------------------------------------------------------
1 | describe :file_pipe, shared: true do
2 | it "accepts an object that has a #to_path method"
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/shared/file/socket.rb:
--------------------------------------------------------------------------------
1 | describe :file_socket, shared: true do
2 | it "accepts an object that has a #to_path method"
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/test/rexml/data/stream_accents.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/rexml/data/stream_accents.xml
--------------------------------------------------------------------------------
/ruby/test/rubygems/plugin/load/rubygems_plugin.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | class TestGem
3 | TEST_PLUGIN_LOAD = :loaded
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_keys.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 |
3 | 10000.times do |i|
4 | h[i] = nil
5 | end
6 |
7 | 5000.times do
8 | h.keys
9 | end
10 |
--------------------------------------------------------------------------------
/ruby/benchmark/other-lang/fib.py:
--------------------------------------------------------------------------------
1 | def fib(n):
2 | if n < 3:
3 | return 1
4 | else:
5 | return fib(n-1) + fib(n-2)
6 |
7 | fib(34)
8 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_swap.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | a = 1
3 | b = 2
4 | benchmark:
5 | vm1_swap: |
6 | a, b = b, a
7 | loop_count: 30000000
8 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_unif1.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | def m a, b
3 | end
4 | benchmark:
5 | vm2_unif1: |
6 | m 100, 200
7 | loop_count: 6000000
8 |
--------------------------------------------------------------------------------
/ruby/ext/strscan/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | require 'mkmf'
3 | $INCFLAGS << " -I$(top_srcdir)"
4 | create_makefile 'strscan'
5 |
--------------------------------------------------------------------------------
/ruby/gems/net-telnet-0.2.0/Gemfile:
--------------------------------------------------------------------------------
1 | source 'https://rubygems.org'
2 |
3 | # Specify your gem's dependencies in net-telnet.gemspec
4 | gemspec
5 |
--------------------------------------------------------------------------------
/ruby/gems/rake-12.3.3/bin/console:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | require "bundler/setup"
4 | require "rake"
5 |
6 | require "irb"
7 | IRB.start
8 |
--------------------------------------------------------------------------------
/ruby/gems/xmlrpc-0.3.0/.travis.yml:
--------------------------------------------------------------------------------
1 | language: ruby
2 | rvm:
3 | - 2.3.3
4 | - 2.4.0
5 | - ruby-head
6 | before_install: gem update bundler
7 |
--------------------------------------------------------------------------------
/ruby/sample/trick2015/ksk_1/entry.rb:
--------------------------------------------------------------------------------
1 | %%%while eval '_=%%r%%(.)...\1=%%=~[%%%%,,,,,%%%s ?=]*%%%%%%#"]*%%%%3x+1?%%'.% %%",%*p(_||=eval($**%%%))
2 |
--------------------------------------------------------------------------------
/ruby/sample/trick2018/03-tompng/trick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/sample/trick2018/03-tompng/trick.png
--------------------------------------------------------------------------------
/ruby/spec/mspec/lib/mspec/helpers/flunk.rb:
--------------------------------------------------------------------------------
1 | def flunk(msg="This example is a failure")
2 | SpecExpectation.fail_with "Failed:", msg
3 | end
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/argf/fixtures/filename.rb:
--------------------------------------------------------------------------------
1 | puts $FILENAME while ARGF.gets
2 | # returns last current file even when closed
3 | puts $FILENAME
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/kernel/fixtures/eval_locals.rb:
--------------------------------------------------------------------------------
1 | begin
2 | eval("a = 2")
3 | eval("p a")
4 | rescue Object => e
5 | puts e.class
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_during_require.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | class AutoloadDuringRequire
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_i.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | I = :autoloaded
3 | end
4 |
5 | ScratchPad.record :loaded
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_s.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | S = :autoload_s
3 | end
4 |
5 | ScratchPad.record :loaded
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/freeze_magic_comment_required.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | $second_literal_id = "abc".object_id
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/shebang_magic_comment.rb:
--------------------------------------------------------------------------------
1 | #!/usr/bin/ruby
2 | # encoding: big5
3 | $magic_comment_result = __ENCODING__.name
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/net/ftp/fixtures/default_passive.rb:
--------------------------------------------------------------------------------
1 | require "net/ftp"
2 | puts Net::FTP.default_passive
3 | puts Net::FTP.new.passive
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/net/ftp/fixtures/putbinaryfile:
--------------------------------------------------------------------------------
1 | This is an example file
2 | which is going to be transmitted
3 | using #putbinaryfile.
4 |
--------------------------------------------------------------------------------
/ruby/test/rdoc/MarkdownTest_1.0.3/Tidyness.text:
--------------------------------------------------------------------------------
1 | > A list within a blockquote:
2 | >
3 | > * asterisk 1
4 | > * asterisk 2
5 | > * asterisk 3
6 |
--------------------------------------------------------------------------------
/ruby/test/rexml/data/LostineRiver.kml.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/rexml/data/LostineRiver.kml.gz
--------------------------------------------------------------------------------
/ruby/test/rexml/data/web2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_flatten.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 |
3 | 10000.times do |i|
4 | h[i] = nil
5 | end
6 |
7 | 1000.times do
8 | h.flatten
9 | end
10 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_values.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 |
3 | 10000.times do |i|
4 | h[i] = nil
5 | end
6 |
7 | 5000.times do
8 | h.values
9 | end
10 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_blockparam.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | def m &b
3 | end
4 | benchmark:
5 | vm1_blockparam: |
6 | m{}
7 | loop_count: 30000000
8 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_dstr.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | x = y = 'z'
3 | benchmark:
4 | vm2_dstr: |
5 | str = "foo#{x}bar#{y}baz"
6 | loop_count: 6000000
7 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_regexp.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | str = 'xxxhogexxx'
3 | benchmark:
4 | vm2_regexp: |
5 | /hoge/ =~ str
6 | loop_count: 6000000
7 |
--------------------------------------------------------------------------------
/ruby/ext/win32ole/win32ole_event.h:
--------------------------------------------------------------------------------
1 | #ifndef WIN32OLE_EVENT_H
2 | #define WIN32OLE_EVENT_H 1
3 |
4 | void Init_win32ole_event(void);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/freeze_magic_comment_two_literals.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | p "abc".object_id == "abc".object_id
4 |
--------------------------------------------------------------------------------
/ruby/test/ruby/test_mixed_unicode_escapes.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/ruby/test_mixed_unicode_escapes.rb
--------------------------------------------------------------------------------
/ruby/test/rubygems/data/null-type.gemspec.rz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/test/rubygems/data/null-type.gemspec.rz
--------------------------------------------------------------------------------
/ruby/benchmark/app_fib.rb:
--------------------------------------------------------------------------------
1 | def fib n
2 | if n < 3
3 | 1
4 | else
5 | fib(n-1) + fib(n-2)
6 | end
7 | end
8 |
9 | fib(34)
10 |
11 |
--------------------------------------------------------------------------------
/ruby/benchmark/dir_empty_p.rb:
--------------------------------------------------------------------------------
1 | require 'tmpdir'
2 | max = 100_000
3 | Dir.mktmpdir('bm_dir_empty_p') do |dir|
4 | max.times { Dir.empty?(dir) }
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_aref_flo.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 | strs = [*1..10000].map! {|i| i.fdiv(10)}
3 | strs.each { |s| h[s] = s }
4 | 50.times { strs.each { |s| h[s] } }
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_to_proc.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 |
3 | 10000.times do |i|
4 | h[i] = nil
5 | end
6 |
7 | 5000.times do |i|
8 | [i].map(&h)
9 | end
10 |
--------------------------------------------------------------------------------
/ruby/benchmark/other-lang/fib.rb:
--------------------------------------------------------------------------------
1 | def fib n
2 | if n < 3
3 | 1
4 | else
5 | fib(n-1) + fib(n-2)
6 | end
7 | end
8 |
9 | fib(34)
10 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_const.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | Const = 1
3 | benchmark:
4 | vm1_const: |
5 | j = Const
6 | k = Const
7 | loop_count: 30000000
8 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_simplereturn.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | def m
3 | return 1
4 | end
5 | benchmark:
6 | vm1_simplereturn: m
7 | loop_count: 30000000
8 |
--------------------------------------------------------------------------------
/ruby/doc/yarvarch.en:
--------------------------------------------------------------------------------
1 | #title YARV: Yet another RubyVM - Software Architecture
2 |
3 | maybe writing.
4 |
5 | * YARV instruction set
6 |
7 | <%= d %>
8 |
--------------------------------------------------------------------------------
/ruby/enc/utf_7.h:
--------------------------------------------------------------------------------
1 | #include "regenc.h"
2 | /* dummy for unsupported, stateful encoding */
3 | ENC_DUMMY("UTF-7");
4 | ENC_ALIAS("CP65000", "UTF-7");
5 |
6 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/symbol/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require_relative "../auto_ext.rb"
3 | have_func("rb_pin_dynamic_symbol")
4 | auto_ext
5 |
--------------------------------------------------------------------------------
/ruby/ext/fiddle/libffi-3.2.1/doc/stamp-vti:
--------------------------------------------------------------------------------
1 | @set UPDATED 8 November 2014
2 | @set UPDATED-MONTH November 2014
3 | @set EDITION 3.2.1
4 | @set VERSION 3.2.1
5 |
--------------------------------------------------------------------------------
/ruby/lib/bundler/vendored_molinillo.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | module Bundler; end
4 | require "bundler/vendor/molinillo/lib/molinillo"
5 |
--------------------------------------------------------------------------------
/ruby/lib/csv/version.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | class CSV
4 | # The version of the installed library.
5 | VERSION = "3.0.9"
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/sample/trick2013/yhara/remarks.en.markdown:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/sample/trick2013/yhara/remarks.en.markdown
--------------------------------------------------------------------------------
/ruby/spec/mspec/spec/fixtures/print_interpreter_spec.rb:
--------------------------------------------------------------------------------
1 | unless defined?(RSpec)
2 | puts ENV["RUBY_EXE"]
3 | puts ruby_cmd(nil).split.first
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/freeze_flag_across_files.rb:
--------------------------------------------------------------------------------
1 | require_relative 'freeze_flag_required'
2 |
3 | p "abc".object_id == $second_literal_id
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/incomplete.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/spec/ruby/core/io/fixtures/incomplete.txt
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/read_binary.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/spec/ruby/core/io/fixtures/read_binary.txt
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/read_euc_jp.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/spec/ruby/core/io/fixtures/read_euc_jp.txt
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/constant_unicode.rb:
--------------------------------------------------------------------------------
1 | # encoding: utf-8
2 |
3 | module ConstantUnicodeSpecs
4 | CS_CONSTλ = :const_unicode
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/predefined/fixtures/toplevel_binding_required_before.rb:
--------------------------------------------------------------------------------
1 | required = true
2 | p [:required_before, TOPLEVEL_BINDING.local_variables]
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/predefined/fixtures/toplevel_binding_variables_required.rb:
--------------------------------------------------------------------------------
1 | required = 2
2 | p [:required_after, TOPLEVEL_BINDING.local_variables]
3 |
--------------------------------------------------------------------------------
/ruby/test/rdoc/test.ja.txt:
--------------------------------------------------------------------------------
1 | こんにちは!
2 |
3 | 初めまして。アーロンと申します。
4 |
5 | どんな食べ物が好きですか?私はフランスの料理が大好きです。
6 | 日本の料理も大好きです。
7 |
8 | 食べ物を食べるのが大好きだけど、お皿を洗うのが大嫌いです。
9 |
--------------------------------------------------------------------------------
/ruby/test/rexml/data/bad.xml:
--------------------------------------------------------------------------------
1 |
2 | Here is an XML document.
3 |
4 | It has some elements, but it also has a hidden < error! (or two)
5 |
6 |
--------------------------------------------------------------------------------
/ruby/test/rexml/data/defaultNamespace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Hello
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_aref_dsym.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 | syms = ('a'..'z').map { |s| s.to_sym }
3 | syms.each { |s| h[s] = 1 }
4 | 200_000.times { syms.each { |s| h[s] } }
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_aref_str.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 | strs = ('a'..'z').to_a.map!(&:freeze)
3 | strs.each { |s| h[s] = s }
4 | 200_000.times { strs.each { |s| h[s] } }
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_ident_num.rb:
--------------------------------------------------------------------------------
1 | h = {}.compare_by_identity
2 | nums = (1..26).to_a
3 | nums.each { |n| h[n] = n }
4 | 200_000.times { nums.each { |n| h[n] } }
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_module_ann_const_set.yml:
--------------------------------------------------------------------------------
1 | benchmark:
2 | vm2_module_ann_const_set: |
3 | Module.new.const_set(:X, Module.new)
4 | loop_count: 6000000
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm3_gc_old_lazy.rb:
--------------------------------------------------------------------------------
1 | old_object = Array.new(1_000_000){''}
2 | 30_000.times do
3 | GC.start(full_mark: false, immediate_sweep: false)
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/win32/fd_setsize/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | if $mingw or $mswin
3 | create_makefile("-test-/win32/fd_setsize")
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/ext/digest/md5/md5cc.c:
--------------------------------------------------------------------------------
1 | #include "md5cc.h"
2 |
3 | void
4 | MD5_Finish(MD5_CTX *pctx, unsigned char *digest)
5 | {
6 | CC_MD5_Final(digest, pctx);
7 | }
8 |
--------------------------------------------------------------------------------
/ruby/ext/fiber/fiber.c:
--------------------------------------------------------------------------------
1 |
2 | void ruby_Init_Fiber_as_Coroutine(void);
3 |
4 | void
5 | Init_fiber(void)
6 | {
7 | ruby_Init_Fiber_as_Coroutine();
8 | }
9 |
--------------------------------------------------------------------------------
/ruby/ext/fiddle/libffi-3.2.1/doc/version.texi:
--------------------------------------------------------------------------------
1 | @set UPDATED 8 November 2014
2 | @set UPDATED-MONTH November 2014
3 | @set EDITION 3.2.1
4 | @set VERSION 3.2.1
5 |
--------------------------------------------------------------------------------
/ruby/gems/power_assert-1.1.3/LEGAL:
--------------------------------------------------------------------------------
1 | LEGAL NOTICE INFORMATION
2 | ------------------------
3 |
4 | All the files in this distribution are written by the author.
5 |
--------------------------------------------------------------------------------
/ruby/sample/fib.scm:
--------------------------------------------------------------------------------
1 | (define (fib n)
2 | (if (< n 2)
3 | n
4 | (+ (fib (- n 2)) (fib (- n 1)))))
5 |
6 | (display (fib 20))
7 | (newline)
8 | (quit)
9 |
--------------------------------------------------------------------------------
/ruby/sample/tempfile.rb:
--------------------------------------------------------------------------------
1 | require 'tempfile'
2 |
3 | f = Tempfile.new("foo")
4 | f.print("foo\n")
5 | f.close
6 | f.open
7 | p f.gets # => "foo\n"
8 | f.close!
9 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/Rakefile:
--------------------------------------------------------------------------------
1 | require 'bundler/setup'
2 | require 'rspec/core/rake_task'
3 |
4 | RSpec::Core::RakeTask.new(:spec)
5 |
6 | task :default => :spec
7 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/spec/runner/filters/b.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | B.:
3 | - b
4 | - bb
5 | B::C#:
6 | - b!
7 | - b=
8 | - b?
9 | - "-"
10 | - "[]"
11 | - "[]="
12 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/bom_UTF-16BE.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/spec/ruby/core/io/fixtures/bom_UTF-16BE.txt
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/bom_UTF-16LE.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/spec/ruby/core/io/fixtures/bom_UTF-16LE.txt
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/bom_UTF-32BE.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/spec/ruby/core/io/fixtures/bom_UTF-32BE.txt
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fixtures/bom_UTF-32LE.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/spec/ruby/core/io/fixtures/bom_UTF-32LE.txt
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/marshal/fixtures/random.dump:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/spec/ruby/core/marshal/fixtures/random.dump
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/string/fixtures/freeze_magic_comment.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | print (+ 'frozen string').frozen? ? 'immutable' : 'mutable'
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/net/ftp/spec_helper.rb:
--------------------------------------------------------------------------------
1 | require "net/ftp"
2 |
3 | if defined?(Net::FTP.default_passive)
4 | Net::FTP.default_passive = false
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/tool/m4/ac_msg_result.m4:
--------------------------------------------------------------------------------
1 | # -*- Autoconf -*-
2 | AC_DEFUN([AC_MSG_RESULT], [dnl
3 | { _AS_ECHO_LOG([result: $1])
4 | COLORIZE_RESULT([$1]); dnl
5 | }])dnl
6 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_ident_str.rb:
--------------------------------------------------------------------------------
1 | h = {}.compare_by_identity
2 | strs = ('a'..'z').to_a
3 | strs.each { |s| h[s] = s }
4 | 200_000.times { strs.each { |s| h[s] } }
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/io_select.rb:
--------------------------------------------------------------------------------
1 | # IO.select performance
2 |
3 | w = [ IO.pipe[1] ];
4 |
5 | nr = 1000000
6 | nr.times {
7 | IO.select nil, w
8 | }
9 |
10 |
--------------------------------------------------------------------------------
/ruby/benchmark/other-lang/fib.scm:
--------------------------------------------------------------------------------
1 | (define (fib n)
2 | (if (< n 3)
3 | 1
4 | (+ (fib (- n 1)) (fib (- n 2)))))
5 |
6 | (fib 34)
7 |
8 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_neq.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | obj1 = Object.new
3 | obj2 = Object.new
4 | benchmark:
5 | vm1_neq: |
6 | obj1 != obj2
7 | loop_count: 30000000
8 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm3_gc_old_immediate.rb:
--------------------------------------------------------------------------------
1 | old_object = Array.new(1_000_000){''}
2 | 30_000.times do
3 | GC.start(full_mark: false, immediate_sweep: true)
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/ext/-test-/win32/console/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | if $mingw or $mswin
3 | require_relative "../../auto_ext.rb"
4 | auto_ext
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/lib/rdoc/ri/formatter.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | ##
3 | # For RubyGems backwards compatibility
4 |
5 | module RDoc::RI::Formatter # :nodoc:
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/file/stat/fixtures/classes.rb:
--------------------------------------------------------------------------------
1 | class FileStat
2 | def self.method_missing(meth, file)
3 | File.lstat(file).send(meth)
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/main/fixtures/string_refinement.rb:
--------------------------------------------------------------------------------
1 | module StringRefinement
2 | refine(String) do
3 | def foo
4 | 'foo'
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_e.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | class E
3 | def loaded
4 | :autoload_e
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_g.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | class G
3 | def loaded
4 | :autoload_g
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_h.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | module H
3 | def loaded
4 | :autoload_h
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/vim_magic_comment.rb:
--------------------------------------------------------------------------------
1 | # vim: filetype=ruby, fileencoding=big5, tabsize=3, shiftwidth=3
2 | $magic_comment_result = __ENCODING__.name
3 |
--------------------------------------------------------------------------------
/ruby/test/rubygems/plugin/exception/rubygems_plugin.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | TestGem::TEST_PLUGIN_EXCEPTION = :loaded
3 | raise Exception.new('boom')
4 |
--------------------------------------------------------------------------------
/ruby/benchmark/app_uri.rb:
--------------------------------------------------------------------------------
1 | require 'uri'
2 |
3 | 100_000.times{
4 | uri = URI.parse('http://www.ruby-lang.org')
5 | uri.scheme
6 | uri.host
7 | uri.port
8 | }
9 |
--------------------------------------------------------------------------------
/ruby/benchmark/enum_lazy_uniq_20.rb:
--------------------------------------------------------------------------------
1 | uniq_data = (1..10_000).to_a
2 | N = 100
3 | enum = uniq_data.lazy.uniq {|i| i % 2000}.uniq {|i| i % 2000}
4 | N.times {enum.each {}}
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/enum_lazy_uniq_50.rb:
--------------------------------------------------------------------------------
1 | uniq_data = (1..10_000).to_a
2 | N = 100
3 | enum = uniq_data.lazy.uniq {|i| i % 5000}.uniq {|i| i % 5000}
4 | N.times {enum.each {}}
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_literal_small4.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | 1_000_000.times.map { { "foo" => "bar", "bar" => "baz", "baz" => "lol", "lol" => "lgtm" } }
4 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_shift.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 |
3 | 10000.times do |i|
4 | h[i] = nil
5 | end
6 |
7 | 50000.times do
8 | k, v = h.shift
9 | h[k] = v
10 | end
11 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_block.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | def m
3 | yield
4 | end
5 | benchmark:
6 | vm1_block: |
7 | m{
8 | }
9 | loop_count: 30000000
10 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_lvar_set.yml:
--------------------------------------------------------------------------------
1 | benchmark:
2 | vm1_lvar_set: |
3 | a = b = c = d = e = f = g = h = j = k = l = m = n = o = p = q = r = 1
4 | loop_count: 30000000
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_method.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | def m
3 | nil
4 | end
5 | benchmark:
6 | vm2_method: |
7 | m; m; m; m; m; m; m; m;
8 | loop_count: 6000000
9 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm_thread_close.rb:
--------------------------------------------------------------------------------
1 | 1000.times { Thread.new { sleep } }
2 | i = 0
3 | while i<100_000 # benchmark loop 3
4 | i += 1
5 | IO.pipe.each(&:close)
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/bootstraptest/test_struct.rb:
--------------------------------------------------------------------------------
1 | assert_equal 'Struct::Foo', %q{
2 | Struct.instance_eval { const_set(:Foo, nil) }
3 | Struct.new("Foo")
4 | Struct::Foo
5 | }
6 |
--------------------------------------------------------------------------------
/ruby/ext/fiddle/closure.h:
--------------------------------------------------------------------------------
1 | #ifndef FIDDLE_CLOSURE_H
2 | #define FIDDLE_CLOSURE_H
3 |
4 | #include
5 |
6 | void Init_fiddle_closure(void);
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/ruby/ext/fiddle/function.h:
--------------------------------------------------------------------------------
1 | #ifndef FIDDLE_FUNCTION_H
2 | #define FIDDLE_FUNCTION_H
3 |
4 | #include
5 |
6 | void Init_fiddle_function(void);
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/ruby/ext/json/parser/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require 'mkmf'
3 |
4 | have_func("rb_enc_raise", "ruby.h")
5 |
6 | create_makefile 'json/ext/parser'
7 |
--------------------------------------------------------------------------------
/ruby/ext/psych/psych_emitter.h:
--------------------------------------------------------------------------------
1 | #ifndef PSYCH_EMITTER_H
2 | #define PSYCH_EMITTER_H
3 |
4 | #include
5 |
6 | void Init_psych_emitter(void);
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/ruby/ext/psych/psych_to_ruby.h:
--------------------------------------------------------------------------------
1 | #ifndef PSYCH_TO_RUBY_H
2 | #define PSYCH_TO_RUBY_H
3 |
4 | #include
5 |
6 | void Init_psych_to_ruby(void);
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/ruby/sample/trick2018/05-tompng/preview_of_output.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/sample/trick2018/05-tompng/preview_of_output.png
--------------------------------------------------------------------------------
/ruby/spec/mspec/bin/mkspec:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | $:.unshift File.expand_path('../../lib', __FILE__)
4 |
5 | require 'mspec/commands/mkspec'
6 |
7 | MkSpec.main
8 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/bin/mspec:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | $:.unshift File.expand_path('../../lib', __FILE__)
4 |
5 | require 'mspec/commands/mspec'
6 |
7 | MSpecMain.main
8 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/lib/mspec/helpers/warning.rb:
--------------------------------------------------------------------------------
1 | def suppress_warning
2 | verbose = $VERBOSE
3 | $VERBOSE = nil
4 | yield
5 | ensure
6 | $VERBOSE = verbose
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/spec/fixtures/b_spec.rb:
--------------------------------------------------------------------------------
1 | unless defined?(RSpec)
2 | describe "Bar#baz" do
3 | it "works" do
4 | 1.should == 1
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/float/magnitude_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative 'shared/abs'
2 |
3 | describe "Float#magnitude" do
4 | it_behaves_like :float_abs, :magnitude
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_exception.rb:
--------------------------------------------------------------------------------
1 | ScratchPad.record(:exception)
2 |
3 | raise 'intentional error to test failure conditions during autoloading'
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_f.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | module F
3 | def self.loaded
4 | :autoload_f
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_z.rb:
--------------------------------------------------------------------------------
1 | class ModuleSpecs::Autoload::YY
2 | end
3 |
4 | class ModuleSpecs::Autoload::Z < ModuleSpecs::Autoload::YY
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/matrix/fixtures/classes.rb:
--------------------------------------------------------------------------------
1 | require 'matrix'
2 |
3 | class MatrixSub < Matrix
4 | def self.ins
5 | rows([[1, 0], [0, 1]])
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/socket/tcpsocket/new_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative 'shared/new'
2 |
3 | describe "TCPSocket.new" do
4 | it_behaves_like :tcpsocket_new, :new
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/benchmark/enum_lazy_uniq_100.rb:
--------------------------------------------------------------------------------
1 | uniq_data = (1..10_000).to_a
2 | N = 100
3 | enum = uniq_data.lazy.uniq {|i| i % 10000}.uniq {|i| i % 10000}
4 | N.times {enum.each {}}
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_ident_flo.rb:
--------------------------------------------------------------------------------
1 | h = {}.compare_by_identity
2 | strs = (1..10000).to_a.map!(&:to_f)
3 | strs.each { |s| h[s] = s }
4 | 50.times { strs.each { |s| h[s] } }
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_ident_obj.rb:
--------------------------------------------------------------------------------
1 | h = {}.compare_by_identity
2 | objs = 26.times.map { Object.new }
3 | objs.each { |o| h[o] = o }
4 | 200_000.times { objs.each { |o| h[o] } }
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_blockparam_call.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | def m &b
3 | b.call
4 | end
5 | benchmark:
6 | vm1_blockparam_call: |
7 | m{}
8 | loop_count: 30000000
9 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_length.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | a = 'abc'
3 | b = [1, 2, 3]
4 | benchmark:
5 | vm1_length: |
6 | a.length
7 | b.length
8 | loop_count: 30000000
9 |
--------------------------------------------------------------------------------
/ruby/ext/digest/bubblebabble/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require 'mkmf'
3 |
4 | $defs << "-DHAVE_CONFIG_H"
5 |
6 | create_makefile('digest/bubblebabble')
7 |
--------------------------------------------------------------------------------
/ruby/ext/psych/psych_yaml_tree.h:
--------------------------------------------------------------------------------
1 | #ifndef PSYCH_YAML_TREE_H
2 | #define PSYCH_YAML_TREE_H
3 |
4 | #include
5 |
6 | void Init_psych_yaml_tree(void);
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/add.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/bug.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/bug.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/date.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/date.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/find.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/find.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/ruby.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/ruby.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/zoom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/zoom.png
--------------------------------------------------------------------------------
/ruby/sample/trick2015/ksk_2/sample.cnf:
--------------------------------------------------------------------------------
1 | c
2 | c This is a sample input file.
3 | c
4 | p cnf 3 5
5 | 1 -2 3 0
6 | -1 2 0
7 | -2 -3 0
8 | 1 2 -3 0
9 | 1 3 0
10 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/bin/mspec-ci:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | $:.unshift File.expand_path('../../lib', __FILE__)
4 |
5 | require 'mspec/commands/mspec-ci'
6 |
7 | MSpecCI.main
8 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/spec/fixtures/die_spec.rb:
--------------------------------------------------------------------------------
1 | unless defined?(RSpec)
2 | describe "Deadly#spec" do
3 | it "dies" do
4 | abort "DEAD"
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/command_line/fixtures/freeze_flag_across_files_diff_enc.rb:
--------------------------------------------------------------------------------
1 | require_relative 'freeze_flag_required_diff_enc'
2 |
3 | p "abc".object_id != $second_literal_id
4 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/float/to_r_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "Float#to_r" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/numeric/magnitude_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative 'shared/abs'
2 |
3 | describe "Numeric#magnitude" do
4 | it_behaves_like :numeric_abs, :magnitude
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/abs_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/abs'
2 |
3 | describe "Rational#abs" do
4 | it_behaves_like :rational_abs, :abs
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/threadgroup/fixtures/classes.rb:
--------------------------------------------------------------------------------
1 | unless defined? Channel
2 | require 'thread'
3 | class Channel < Queue
4 | alias receive shift
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/bytes_magic_comment.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/spec/ruby/language/fixtures/bytes_magic_comment.rb
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/freeze_magic_comment_one_literal.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | ids = Array.new(2) { "abc".object_id }
4 | p ids.first == ids.last
5 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/hash_strings_utf8.rb:
--------------------------------------------------------------------------------
1 | # encoding: utf-8
2 |
3 | module HashStringsUTF8
4 | def self.literal_hash
5 | {"foo" => "bar"}
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/socket/tcpsocket/open_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative 'shared/new'
2 |
3 | describe "TCPSocket.open" do
4 | it_behaves_like :tcpsocket_new, :open
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/test/rubygems/plugin/standarderror/rubygems_plugin.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | TestGem::TEST_PLUGIN_STANDARDERROR = :loaded
3 | raise StandardError.new('boom')
4 |
--------------------------------------------------------------------------------
/ruby/test/rubygems/rubygems/commands/crash_command.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | class Gem::Commands::CrashCommand < Gem::Command
3 |
4 | raise "crash"
5 |
6 | end
7 |
--------------------------------------------------------------------------------
/extras/framework_resources/English.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/extras/framework_resources/English.lproj/InfoPlist.strings
--------------------------------------------------------------------------------
/ruby/benchmark/app_factorial.rb:
--------------------------------------------------------------------------------
1 | def fact(n)
2 | if(n > 1)
3 | n * fact(n-1)
4 | else
5 | 1
6 | end
7 | end
8 |
9 | 100.times {
10 | fact(5000)
11 | }
12 |
--------------------------------------------------------------------------------
/ruby/benchmark/enum_lazy_grep_v_100.rb:
--------------------------------------------------------------------------------
1 | grep_data = (1..10).to_a * 1000
2 | N = 100
3 | enum = grep_data.lazy.grep_v(->(i){i == 0}).grep_v(->(i){i == 0})
4 | N.times {enum.each {}}
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/enum_lazy_grep_v_20.rb:
--------------------------------------------------------------------------------
1 | grep_data = (1..10).to_a * 1000
2 | N = 100
3 | enum = grep_data.lazy.grep_v(->(i){i > 2}).grep_v(->(i){i > 2})
4 | N.times {enum.each {}}
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/enum_lazy_grep_v_50.rb:
--------------------------------------------------------------------------------
1 | grep_data = (1..10).to_a * 1000
2 | N = 100
3 | enum = grep_data.lazy.grep_v(->(i){i > 5}).grep_v(->(i){i > 5})
4 | N.times {enum.each {}}
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_ident_sym.rb:
--------------------------------------------------------------------------------
1 | h = {}.compare_by_identity
2 | syms = ('a'..'z').to_a.map(&:to_sym)
3 | syms.each { |s| h[s] = s }
4 | 200_000.times { syms.each { |s| h[s] } }
5 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_mutex.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | require 'thread'
3 |
4 | m = Thread::Mutex.new
5 | benchmark:
6 | vm2_mutex: |
7 | m.synchronize{}
8 | loop_count: 6000000
9 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_string_literal.yml:
--------------------------------------------------------------------------------
1 | benchmark:
2 | vm2_string_literal: |
3 | x = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
4 | loop_count: 6000000
5 |
--------------------------------------------------------------------------------
/ruby/gems/net-telnet-0.2.0/bin/setup:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -euo pipefail
3 | IFS=$'\n\t'
4 |
5 | bundle install
6 |
7 | # Do any other automated setup that you need to do here
8 |
--------------------------------------------------------------------------------
/ruby/lib/optparse/uri.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | # -*- ruby -*-
3 |
4 | require 'optparse'
5 | require 'uri'
6 |
7 | OptionParser.accept(URI) {|s,| URI.parse(s) if s}
8 |
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/brick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/brick.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/delete.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/plugin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/plugin.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/wrench.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/wrench.png
--------------------------------------------------------------------------------
/ruby/sample/occur.pl:
--------------------------------------------------------------------------------
1 | while (<>) {
2 | for (split(/\W+/)) {
3 | $freq{$_}++;
4 | }
5 | }
6 |
7 | for (sort keys %freq) {
8 | print "$_ -- $freq{$_}\n";
9 | }
10 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/bin/mspec-run:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | $:.unshift File.expand_path('../../lib', __FILE__)
4 |
5 | require 'mspec/commands/mspec-run'
6 |
7 | MSpecRun.main
8 |
--------------------------------------------------------------------------------
/ruby/spec/mspec/bin/mspec-tag:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | $:.unshift File.expand_path('../../lib', __FILE__)
4 |
5 | require 'mspec/commands/mspec-tag'
6 |
7 | MSpecTag.main
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/encoding/_dump_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "Encoding#_dump" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/encoding/_load_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "Encoding._load" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/enumerator/each_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/enumerator/each'
2 |
3 | describe "Enumerator#each" do
4 | it_behaves_like :enum_each, :each
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/fdatasync_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "IO#fdatasync" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/kernel/fixtures/caller.rb:
--------------------------------------------------------------------------------
1 | module KernelSpecs
2 | class CallerTest
3 | def self.locations(*args)
4 | caller(*args)
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/kernel/to_enum_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "Kernel#to_enum" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/matchdata/hash_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "MatchData#hash" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_v.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload::U
2 | class V
3 | def self.get_value
4 | :autoload_uvx
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/ceil_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/ceil'
2 |
3 | describe "Rational#ceil" do
4 | it_behaves_like :rational_ceil, :ceil
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/fdiv_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/fdiv'
2 |
3 | describe "Rational#fdiv" do
4 | it_behaves_like :rational_fdiv, :fdiv
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/hash_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/hash'
2 |
3 | describe "Rational#hash" do
4 | it_behaves_like :rational_hash, :hash
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/modulo_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/modulo'
2 |
3 | describe "Rational#%" do
4 | it_behaves_like :rational_modulo, :%
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/quo_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/divide'
2 |
3 | describe "Rational#quo" do
4 | it_behaves_like :rational_divide, :quo
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/to_f_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/to_f'
2 |
3 | describe "Rational#to_f" do
4 | it_behaves_like :rational_to_f, :to_f
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/to_i_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/to_i'
2 |
3 | describe "Rational#to_i" do
4 | it_behaves_like :rational_to_i, :to_i
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/to_s_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/to_s'
2 |
3 | describe "Rational#to_s" do
4 | it_behaves_like :rational_to_s, :to_s
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/time/tv_nsec_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "Time#tv_nsec" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/time/tv_usec_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "Time#tv_usec" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/zlib/gzipreader/each_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative 'shared/each'
2 |
3 | describe "GzipReader#each" do
4 | it_behaves_like :gzipreader_each, :each
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/test/rexml/data/text.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | baz
5 |
6 | baz
7 |
8 | baz
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ruby/benchmark/gc/hash1.rb:
--------------------------------------------------------------------------------
1 | value = 0.01
2 | h = {}
3 | n = 50_000
4 |
5 | 1.upto(n){|i|
6 | h["%020d" % i] = "v-#{i}"
7 | }
8 |
9 | (n * 1_000).times{
10 | ''
11 | }
12 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_aref_miss.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 | strs = ('a'..'z').to_a.map!(&:freeze)
3 | strs.each { |s| h[s] = s }
4 | strs = ('A'..'Z').to_a
5 | 200_000.times { strs.each { |s| h[s] } }
6 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_shift_u16.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 |
3 | (16384..65536).each do |i|
4 | h[i] = nil
5 | end
6 |
7 | 300000.times do
8 | k, v = h.shift
9 | h[k] = v
10 | end
11 |
--------------------------------------------------------------------------------
/ruby/benchmark/other-lang/fact.scm:
--------------------------------------------------------------------------------
1 | (define (fact n)
2 | (if (< n 2)
3 | 1
4 | (* n (fact (- n 1)))))
5 |
6 | (dotimes (i 10000)
7 | (fact 100))
8 |
9 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_struct_small_aref.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | s = Struct.new(:a, :b, :c)
3 | x = s.new
4 | benchmark:
5 | vm2_struct_small_aref: |
6 | x.a
7 | loop_count: 6000000
8 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_struct_small_href.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | s = Struct.new(:a, :b, :c)
3 | x = s.new
4 | benchmark:
5 | vm2_struct_small_href: |
6 | x[:a]
7 | loop_count: 6000000
8 |
--------------------------------------------------------------------------------
/ruby/ext/pathname/extconf.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: false
2 | require 'mkmf'
3 | have_struct_member("struct stat", "st_birthtimespec", "sys/stat.h")
4 | create_makefile('pathname')
5 |
--------------------------------------------------------------------------------
/ruby/gems/net-telnet-0.2.0/.travis.yml:
--------------------------------------------------------------------------------
1 | language: ruby
2 | rvm:
3 | - 2.3.6
4 | - 2.4.3
5 | - 2.5.0
6 | - ruby-head
7 |
8 | script:
9 | - rake test
10 | - mspec
11 |
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/arrow_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/arrow_up.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/package.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/package.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/tag_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/tag_blue.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/tag_green.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/tag_green.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/meta_method.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 | ##
3 | # MetaMethod represents a meta-programmed method
4 |
5 | class RDoc::MetaMethod < RDoc::AnyMethod
6 | end
7 |
8 |
--------------------------------------------------------------------------------
/ruby/miniprelude.c:
--------------------------------------------------------------------------------
1 | /* -*-c-*-
2 | THIS FILE WAS AUTOGENERATED BY template/prelude.c.tmpl. DO NOT EDIT.
3 |
4 | sources:
5 | */
6 | void
7 | Init_prelude(void)
8 | {
9 | }
10 |
--------------------------------------------------------------------------------
/ruby/sample/webrick/demo-servlet.rb:
--------------------------------------------------------------------------------
1 | require "webrick"
2 | require "./demo-app"
3 |
4 | class DemoServlet < WEBrick::HTTPServlet::AbstractServlet
5 | include DemoApplication
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/exception/args_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "NoMethodError#args" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/exception/status_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "SystemExit#status" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/tty_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/tty'
3 |
4 | describe "IO#tty?" do
5 | it_behaves_like :io_tty, :tty?
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/kernel/enum_for_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "Kernel#enum_for" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_k.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | class KHash < Hash
3 | K = :autoload_k
4 | end
5 | end
6 |
7 | ScratchPad.record :loaded
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/waitpid2_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "Process.waitpid2" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/exponent_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/exponent'
2 |
3 | describe "Rational#**" do
4 | it_behaves_like :rational_exponent, :**
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/floor_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/floor'
2 |
3 | describe "Rational#floor" do
4 | it_behaves_like :rational_floor, :floor
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/magnitude_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/abs'
2 |
3 | describe "Rational#abs" do
4 | it_behaves_like :rational_abs, :magnitude
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/round_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/round'
2 |
3 | describe "Rational#round" do
4 | it_behaves_like :rational_round, :round
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/hash_strings_usascii.rb:
--------------------------------------------------------------------------------
1 | # encoding: us-ascii
2 |
3 | module HashStringsUSASCII
4 | def self.literal_hash
5 | {"foo" => "bar"}
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/predefined/fixtures/toplevel_binding_dynamic_required.rb:
--------------------------------------------------------------------------------
1 | TOPLEVEL_BINDING.local_variable_set(:dynamic_set_required, 1)
2 | p TOPLEVEL_BINDING.local_variables
3 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_shift_u24.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 |
3 | (0xff4000..0xffffff).each do |i|
4 | h[i] = nil
5 | end
6 |
7 | 300000.times do
8 | k, v = h.shift
9 | h[k] = v
10 | end
11 |
--------------------------------------------------------------------------------
/ruby/benchmark/other-lang/ack.scm:
--------------------------------------------------------------------------------
1 | (define (ack m n)
2 | (cond ((zero? m) (+ n 1))
3 | ((zero? n) (ack (- m 1) 1))
4 | (else (ack (- m 1) (ack m (- n 1))))))
5 |
6 | (ack 3 9)
7 |
8 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm1_blockparam_yield.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | def bp_yield &b
3 | yield
4 | end
5 | benchmark:
6 | vm1_blockparam_yield: |
7 | bp_yield{}
8 | loop_count: 30000000
9 |
--------------------------------------------------------------------------------
/ruby/benchmark/vm2_struct_small_hset.yml:
--------------------------------------------------------------------------------
1 | prelude: |
2 | s = Struct.new(:a, :b, :c)
3 | x = s.new
4 | benchmark:
5 | vm2_struct_small_hset: |
6 | x[:a] = 1
7 | loop_count: 6000000
8 |
--------------------------------------------------------------------------------
/ruby/gems/did_you_mean-1.3.0/lib/did_you_mean/experimental.rb:
--------------------------------------------------------------------------------
1 | require 'did_you_mean/experimental/initializer_name_correction'
2 | require 'did_you_mean/experimental/ivar_name_correction'
3 |
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/brick_link.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/brick_link.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/page_green.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/page_green.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/transparent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/transparent.png
--------------------------------------------------------------------------------
/ruby/sample/drb/rinda_ts.rb:
--------------------------------------------------------------------------------
1 | require 'drb/drb'
2 | require 'rinda/tuplespace'
3 |
4 | uri = ARGV.shift
5 | DRb.start_service(uri, Rinda::TupleSpace.new)
6 | puts DRb.uri
7 | DRb.thread.join
8 |
--------------------------------------------------------------------------------
/ruby/sample/fact.rb:
--------------------------------------------------------------------------------
1 | def fact(n)
2 | return 1 if n == 0
3 | f = 1
4 | n.downto(1) do |i|
5 | f *= i
6 | end
7 | return f
8 | end
9 | print fact(ARGV[0].to_i), "\n"
10 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/argf/tell_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/pos'
3 |
4 | describe "ARGF.tell" do
5 | it_behaves_like :argf_pos, :tell
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/env/each_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/each'
3 |
4 | describe "ENV.each" do
5 | it_behaves_like :env_each, :each
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/env/index_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/key'
3 |
4 | describe "ENV.index" do
5 | it_behaves_like :env_key, :index
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/env/to_s_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "ENV.to_s" do
4 | it "returns \"ENV\"" do
5 | ENV.to_s.should == "ENV"
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/exception/reason_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "LocalJumpError#reason" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/exception/signm_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "SignalException#signm" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/exception/signo_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "SignalException#signo" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/exception/success_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "SystemExit#success?" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/float/abs_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/abs'
3 |
4 | describe "Float#abs" do
5 | it_behaves_like :float_abs, :abs
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/float/arg_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/arg'
3 |
4 | describe "Float#arg" do
5 | it_behaves_like :float_arg, :arg
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/float/quo_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/quo'
3 |
4 | describe "Float#quo" do
5 | it_behaves_like :float_quo, :quo
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/gc/profiler/clear_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "GC::Profiler.clear" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/io/isatty_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/tty'
3 |
4 | describe "IO#isatty" do
5 | it_behaves_like :io_tty, :isatty
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/nil/nil_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "NilClass#nil?" do
4 | it "returns true" do
5 | nil.nil?.should == true
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/proc/dup_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/dup'
3 |
4 | describe "Proc#dup" do
5 | it_behaves_like :proc_dup, :dup
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/gid/rid_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::GID.rid" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/tms/new_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Tms.new" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/uid/rid_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::UID.rid" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/range/end_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/end'
3 |
4 | describe "Range#end" do
5 | it_behaves_like :range_end, :end
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/coerce_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/coerce'
2 |
3 | describe "Rational#coerce" do
4 | it_behaves_like :rational_coerce, :coerce
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/time/day_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/day'
3 |
4 | describe "Time#day" do
5 | it_behaves_like :time_day, :day
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/time/mday_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/day'
3 |
4 | describe "Time#mday" do
5 | it_behaves_like :time_day, :mday
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/time/mon_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/month'
3 |
4 | describe "Time#mon" do
5 | it_behaves_like :time_month, :mon
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/time/now_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/now'
3 |
4 | describe "Time.now" do
5 | it_behaves_like :time_now, :now
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/unboundmethod/eql_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "UnboundMethod#eql?" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/break_lambda_toplevel.rb:
--------------------------------------------------------------------------------
1 | print "a,"
2 |
3 | print lambda {
4 | print "b,"
5 | break "break,"
6 | print "c,"
7 | }.call
8 |
9 | puts "d"
10 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/hash_strings_ascii8bit.rb:
--------------------------------------------------------------------------------
1 | # encoding: ascii-8bit
2 |
3 | module HashStringsASCII8BIT
4 | def self.literal_hash
5 | {"foo" => "bar"}
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/csv/open_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require 'csv'
3 |
4 | describe "CSV.open" do
5 | it "needs to be reviewed for spec completeness"
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/csv/read_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require 'csv'
3 |
4 | describe "CSV.read" do
5 | it "needs to be reviewed for spec completeness"
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/date/ajd_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require 'date'
3 |
4 | describe "Date#ajd" do
5 | it "needs to be reviewed for spec completeness"
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/date/ld_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require 'date'
3 |
4 | describe "Date#ld" do
5 | it "needs to be reviewed for spec completeness"
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/date/mjd_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require 'date'
3 |
4 | describe "Date#mjd" do
5 | it "needs to be reviewed for spec completeness"
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/date/mon_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require 'date'
3 |
4 | describe "Date#mon" do
5 | it "needs to be reviewed for spec completeness"
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/net/http/httpexceptions/fixtures/classes.rb:
--------------------------------------------------------------------------------
1 | module NetHTTPExceptionsSpecs
2 | class Simple < StandardError
3 | include Net::HTTPExceptions
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/shared/rational/fdiv.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe :rational_fdiv, shared: true do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/shared/rational/quo.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe :rational_quo, shared: true do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/benchmark/hash_shift_u32.rb:
--------------------------------------------------------------------------------
1 | h = {}
2 |
3 | (0xffff4000..0xffffffff).each do |i|
4 | h[i] = nil
5 | end
6 |
7 | 300000.times do
8 | k, v = h.shift
9 | h[k] = v
10 | end
11 |
--------------------------------------------------------------------------------
/ruby/ext/io/console/buildgem.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh -e
2 | cd ${0%/*}
3 | trap "mv depend.$$ depend" 0 2
4 | ${RUBY-ruby} -i.$$ -pe 'exit if /^win32_vk/' depend
5 | ${GEM-gem} build io-console.gemspec
6 |
--------------------------------------------------------------------------------
/ruby/gems/xmlrpc-0.3.0/bin/setup:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | set -euo pipefail
3 | IFS=$'\n\t'
4 | set -vx
5 |
6 | bundle install
7 |
8 | # Do any other automated setup that you need to do here
9 |
--------------------------------------------------------------------------------
/ruby/lib/bundler/gem_tasks.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | require "rake/clean"
4 | CLOBBER.include "pkg"
5 |
6 | require "bundler/gem_helper"
7 | Bundler::GemHelper.install_tasks
8 |
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/bullet_black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/bullet_black.png
--------------------------------------------------------------------------------
/ruby/lib/rdoc/generator/template/darkfish/images/wrench_orange.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apple-oss-distributions/ruby/HEAD/ruby/lib/rdoc/generator/template/darkfish/images/wrench_orange.png
--------------------------------------------------------------------------------
/ruby/missing/finite.c:
--------------------------------------------------------------------------------
1 | /* public domain rewrite of finite(3) */
2 |
3 | #include "ruby/missing.h"
4 |
5 | int
6 | finite(double n)
7 | {
8 | return !isnan(n) && !isinf(n);
9 | }
10 |
--------------------------------------------------------------------------------
/ruby/sample/fib.rb:
--------------------------------------------------------------------------------
1 | # calculate Fibonacci(20)
2 | # for benchmark
3 | def fib(n)
4 | if n<2
5 | n
6 | else
7 | fib(n-2)+fib(n-1)
8 | end
9 | end
10 | print(fib(20), "\n");
11 |
--------------------------------------------------------------------------------
/ruby/sample/trick2018/04-colin/entry.rb:
--------------------------------------------------------------------------------
1 | # Copyright 2018. Available for use under the terms of the MIT License.
2 | $🚀=0;def 🤔 🏷,🤔=0,&b;puts ' '*$🚀+(🤔 ?"":"🚫 ")+🏷;$🚀+=4;b&.[];$🚀-=4;end
3 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/argf/to_i_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/fileno'
3 |
4 | describe "ARGF.to_i" do
5 | it_behaves_like :argf_fileno, :to_i
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/complex/abs_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/abs'
3 |
4 | describe "Complex#abs" do
5 | it_behaves_like :complex_abs, :abs
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/complex/arg_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/arg'
3 |
4 | describe "Complex#arg" do
5 | it_behaves_like :complex_arg, :arg
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/env/element_set_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/store'
3 |
4 | describe "ENV.[]=" do
5 | it_behaves_like :env_store, :[]=
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/env/size_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/length'
3 |
4 | describe "ENV.size" do
5 | it_behaves_like :env_length, :size
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/env/store_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/store'
3 |
4 | describe "ENV.store" do
5 | it_behaves_like :env_store, :store
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/env/value_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/value'
3 |
4 | describe "ENV.value?" do
5 | it_behaves_like :env_value, :value?
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/exception/case_compare_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "SystemCallError.===" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/float/angle_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/arg'
3 |
4 | describe "Float#angle" do
5 | it_behaves_like :float_arg, :angle
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/float/fdiv_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/quo'
3 |
4 | describe "Float#fdiv" do
5 | it_behaves_like :float_quo, :fdiv
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/float/phase_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/arg'
3 |
4 | describe "Float#phase" do
5 | it_behaves_like :float_arg, :phase
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/float/to_i_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/to_i'
3 |
4 | describe "Float#to_i" do
5 | it_behaves_like :float_to_i, :to_i
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/gc/profiler/report_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "GC::Profiler.report" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/integer/abs_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/abs'
3 |
4 | describe "Integer#abs" do
5 | it_behaves_like :integer_abs, :abs
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/module/fixtures/autoload_nested.rb:
--------------------------------------------------------------------------------
1 | module ModuleSpecs::Autoload
2 | module GoodParent
3 | class Nested
4 | end
5 | end
6 | end
7 |
8 | ScratchPad.record(:loaded)
9 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/nil/to_s_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "NilClass#to_s" do
4 | it "returns the string ''" do
5 | nil.to_s.should == ""
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/numeric/abs_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/abs'
3 |
4 | describe "Numeric#abs" do
5 | it_behaves_like :numeric_abs, :abs
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/numeric/arg_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/arg'
3 |
4 | describe "Numeric#arg" do
5 | it_behaves_like :numeric_arg, :arg
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/proc/clone_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/dup'
3 |
4 | describe "Proc#clone" do
5 | it_behaves_like :proc_dup, :clone
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/proc/to_s_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/to_s'
3 |
4 | describe "Proc#to_s" do
5 | it_behaves_like :proc_to_s, :to_s
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/gid/switch_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::GID.switch" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/status/bit_and_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Status#&" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/status/to_i_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Status#to_i" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/status/to_s_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Status#to_s" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/sys/getegid_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Sys.getegid" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/sys/geteuid_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Sys.geteuid" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/sys/getgid_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Sys.getgid" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/sys/getuid_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Sys.getuid" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/sys/setegid_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Sys.setegid" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/sys/seteuid_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Sys.seteuid" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/sys/setgid_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Sys.setgid" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/sys/setrgid_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Sys.setrgid" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/sys/setruid_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Sys.setruid" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/sys/setuid_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Sys.setuid" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/tms/members_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::Tms.members" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/process/uid/switch_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../../spec_helper'
2 |
3 | describe "Process::UID.switch" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/rational/inspect_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../shared/rational/inspect'
2 |
3 | describe "Rational#inspect" do
4 | it_behaves_like :rational_inspect, :inspect
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/thread/add_trace_func_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "Thread#add_trace_func" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/thread/set_trace_func_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 |
3 | describe "Thread#set_trace_func" do
4 | it "needs to be reviewed for spec completeness"
5 | end
6 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/time/dst_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/isdst'
3 |
4 | describe "Time#dst?" do
5 | it_behaves_like :time_isdst, :dst?
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/time/to_i_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/to_i'
3 |
4 | describe "Time#to_i" do
5 | it_behaves_like :time_to_i, :to_i
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/core/time/to_s_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require_relative 'shared/inspect'
3 |
4 | describe "Time#to_s" do
5 | it_behaves_like :inspect, :to_s
6 | end
7 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/language/fixtures/match_operators.rb:
--------------------------------------------------------------------------------
1 | class OperatorImplementor
2 | def =~(val)
3 | return val
4 | end
5 |
6 | def !~(val)
7 | return val
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/ruby/spec/ruby/library/csv/foreach_spec.rb:
--------------------------------------------------------------------------------
1 | require_relative '../../spec_helper'
2 | require 'csv'
3 |
4 | describe "CSV.foreach" do
5 | it "needs to be reviewed for spec completeness"
6 | end
7 |
--------------------------------------------------------------------------------