summaryrefslogtreecommitdiffstats
path: root/sample
Commit message (Collapse)AuthorAgeFilesLines
* * sample/svr.rb: obsolete TCPserver renamed. [ruby-core:24712]matz2009-08-033-3/+3
| | | | | | | | * sample/tsvr.rb: ditto. * sample/dualstack-httpd.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?): should not capture BOM.nobu2009-06-171-1/+1
| | | | | | | * test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?): skips BOM. [ruby-dev:38666]nobu2009-06-171-3/+4
| | | | | | | * test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/optparse/opttest.rb: typo fixed. [ruby-dev:38544]matz2009-05-271-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/rss/rss_recent.rb, sample/rss/list_description.rb: use UTF-8.kou2009-05-162-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/drb/dhasenc.rb: add magic comment for encoding.matz2009-05-162-0/+2
| | | | | | | | * sample/mine.rb: ditto. * ext/tk/sample/tcltklib/sample1.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?): defaults to us-ascii.nobu2009-05-141-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?), test/ruby/test_system.rbnobu2009-02-021-2/+2
| | | | | | | | (TestSystem::valid_syntax?): use catch and throw instead of return inside BEGIN block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (exc_equal): == method should not raise Exception.ko12008-12-241-2/+4
| | | | | | | | | [ruby-dev:37519] * sample/test.rb: fix test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: rescue exception.takano322008-12-211-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (f_block_optarg): allow default for block parameters asmatz2008-09-061-0/+58
| | | | | | | long as the value is primary. a patch from Eric Mahurin <eric.mahurin at gmail.com> in [ruby-core:16880]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/exyacc.rb: fixed NoMethodError(Kernel#sub!).yugui2008-07-261-17/+15
| | | | | | | replaced use of special variables with explicit IO operations. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/coverage.rb: move from lib/coverage.rb because this remains inmame2008-07-241-0/+60
| | | | | | | an early phase of development. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* wait signal arrival 10sec.akr2008-02-131-1/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb, bootstraptest/test_method.rb, enc/depend,naruse2008-02-121-1/+1
| | | | | | | | instruby.rb, lib/mkmf.rb, lib/test/unit/util/procwrapper.rb, mkconfig.rb, sample/test.rb, template/vm.inc.tmpl, test/ruby/test_stringchar.rb: fixes arround String#gsub. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix namespacingdrbrain2008-01-171-6/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * $Date$ keyword removed to avoid inclusion of locale dependentakr2008-01-061-1/+0
| | | | | | | string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb: introduced some constantstadf2008-01-061-3/+5
| | | | | | | | | (for internal use) and aliases (minute and second). * sample/cal.rb: trivial adjustments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use hard tab.tadf2008-01-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/time.rb: use Process.times instead of Time.times.tadf2008-01-021-6/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* removed an entry.tadf2008-01-021-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/goodfriday.rb: examples for date are enough. retired.tadf2008-01-021-48/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/cal.rb: just updated with the newest version.tadf2008-01-021-24/+24
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Move RDoc markup samples to sample/rdoc/markup directorydrbrain2007-12-282-0/+56
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/from.rb: follow Ruby 1.9 libraries.naruse2007-12-251-73/+88
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/README: removed obsoleted files: dbmtest.rb,matz2007-12-255-90/+0
| | | | | | getopts.test, mrshtest.rb, regx.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/biorhythm.rb: follow Ruby 1.9 libraries.gotoyuzo2007-12-241-75/+40
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/openssl: reviewed and remove dependency on getopts.rb.gotoyuzo2007-12-247-947/+49
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax): force_encoding input script.matz2007-12-211-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c: support Proc#binding.ko12007-12-201-0/+10
| | | | | | | | * sample/test.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): remove "retry" in block.ko12007-12-192-25/+1
| | | | | | | | | | | | | | | | | ("iter{retry}" cause syntax error) Currently, "begin; ...; rescue; iter{retry}; end" cause syntax error too. * bootstraptest/test_jump.rb: ditto. * lib/drb/invokemethod.rb: ditto. * sample/drb/darrayc.rb: ditto. * sample/test.rb: ditto. * test/drb/drbtest.rb: ditto. * test/ruby/test_iterator.rb: ditto. * sample/test.rb: add a 'test' directory on the SYSTEM test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sample/test.rb: remove $KCODEmatz2007-11-301-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: should update class variable testsmatz2007-10-031-6/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb, test/ruby/test_system.rb(valid_syntax?): keepnobu2007-08-181-1/+4
| | | | | | | comment lines first. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): fix next/redo stack consistency.ko12007-08-161-1/+2
| | | | | | | | | | [ruby-dev:31373] * bootstraptest/test_syntax.rb: add tests for above. * sample/test.rb: fix to use __FILE__ instead of $0 to know basedir. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (os_live_obj): fix to skip T_VALUES.ko12007-08-151-0/+5
| | | | | | | | * sample/test.rb: add an ObjectSpace test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: fix to output file name if it containsko12007-08-061-1/+2
| | | | | | | | invalid syntax. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, sample/rss, test/rss:kou2007-08-053-4/+5
| | | | | | | | | - 0.1.7 -> 0.1.8. - supported <itunes:XXX>. - reverted backward incompatibility API changes introduced 0.1.7. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb: fix load path.ko12007-07-061-1/+5
| | | | | | | | | * common.mk: fix "test" rule to run with "btest". * rubytest.rb, sample/test.rb: fix to show tests progress. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (assoc_list): remove expanded hash literal (no splat).matz2007-06-291-9/+8
| | | | | | | * lib/webrick/httpstatus.rb (WEBrick::HTTPStatus::EOFError): adapt to new syntax. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: fix to show line information whether test succeeds.ko12007-06-151-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c, vm_macro.def: support tail call optimizationko12007-05-211-1/+1
| | | | | | | | | | | | | (on default, this feature is not enabled). * iseq.c, compile.c, vm_opts.h: add "tailcall_optimization" option. * sample/test.rb (test_ok): fix to adjust tailcall stack layout. * insns.def, vm.c, compile.c, yarvcore.c, yarvcore.h: add opt_gt, opt_le instructions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: import matzruby's sample/test.rb.ko12007-05-011-26/+26
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample: replace TRUE, FALSE with true, false respectively.matz2007-04-166-7/+7
| | | | | | | a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>. [ruby-dev:30713] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss:kou2007-03-175-15/+102
| | | | | | | | | - supported Atom. - bumped version 0.1.6 to 0.1.7. * sample/rss/convert.rb: added new sample. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each, set_block_local_tbl) :ko12007-01-051-2/+1
| | | | | | | | | | support NODE_LAMBDA (partly). * sample/test.rb : restore test of NODE_LAMBDA * test/ruby/test_lambda.rb : ditto git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Merge YARVko12006-12-311-12/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_include_module): revert duplicate inclusion ofmatz2006-11-071-1/+1
| | | | | | | modules. [ruby-dev:29793] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: revert debug print.matz2006-10-051-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_yield_0): small refactoring.matz2006-10-051-3/+3
| | | | | | | * parse.y (bparam_item): fixed bugs in handling parenthesized LHS. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e