matz
e2ea286ec9
* sample/svr.rb: obsolete TCPserver renamed. [ruby-core:24712]
...
* sample/tsvr.rb: ditto.
* sample/dualstack-httpd.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-03 09:26:26 +00:00
nobu
a6db50e02b
* sample/test.rb (valid_syntax?): should not capture BOM.
...
* test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 06:22:58 +00:00
nobu
53ecede90b
* sample/test.rb (valid_syntax?): skips BOM. [ruby-dev:38666]
...
* test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 05:37:23 +00:00
matz
62005d344b
* sample/optparse/opttest.rb: typo fixed. [ruby-dev:38544]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-27 18:48:49 +00:00
kou
461daa604b
* sample/rss/rss_recent.rb, sample/rss/list_description.rb: use UTF-8.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-16 08:50:38 +00:00
matz
b10617c3d1
* sample/drb/dhasenc.rb: add magic comment for encoding.
...
* sample/mine.rb: ditto.
* ext/tk/sample/tcltklib/sample1.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-16 02:00:42 +00:00
nobu
1c05712d43
* sample/test.rb (valid_syntax?): defaults to us-ascii.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-14 01:17:49 +00:00
nobu
ce720ca0dc
* sample/test.rb (valid_syntax?), test/ruby/test_system.rb
...
(TestSystem::valid_syntax?): use catch and throw instead of
return inside BEGIN block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-02 03:39:01 +00:00
ko1
7160543aeb
* error.c (exc_equal): == method should not raise Exception.
...
[ruby-dev:37519]
* sample/test.rb: fix test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-24 12:02:21 +00:00
takano32
ee01c3e38b
* sample/test.rb: rescue exception.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-21 01:44:58 +00:00
matz
929e0b91be
* parse.y (f_block_optarg): allow default for block parameters as
...
long as the value is primary. a patch from Eric Mahurin
<eric.mahurin at gmail.com> in [ruby-core:16880].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-06 18:39:36 +00:00
yugui
232e659214
* sample/exyacc.rb: fixed NoMethodError(Kernel#sub!).
...
replaced use of special variables with explicit IO
operations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-26 14:19:50 +00:00
mame
59f23bd421
* sample/coverage.rb: move from lib/coverage.rb because this remains in
...
an early phase of development.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-24 17:47:34 +00:00
akr
800ff52c17
wait signal arrival 10sec.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-13 13:20:12 +00:00
naruse
a10ded3ba0
* bootstraptest/runner.rb, bootstraptest/test_method.rb, enc/depend,
...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@15443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-12 06:28:23 +00:00
drbrain
6d59907c0f
Fix namespacing
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-17 19:29:16 +00:00
akr
6cdef2dc7e
* $Date$ keyword removed to avoid inclusion of locale dependent
...
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-06 15:49:38 +00:00
tadf
352d72719b
* lib/date.rb, lib/date/format.rb: introduced some constants
...
(for internal use) and aliases (minute and second).
* sample/cal.rb: trivial adjustments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-06 00:38:22 +00:00
tadf
3236366b90
use hard tab.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-02 01:46:26 +00:00
tadf
1f838ea1c1
* sample/time.rb: use Process.times instead of Time.times.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-02 01:15:30 +00:00
tadf
dec7f6903b
removed an entry.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-02 00:15:17 +00:00
tadf
af06cf81f1
* sample/goodfriday.rb: examples for date are enough. retired.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-02 00:12:05 +00:00
tadf
5b0ab11b0a
* sample/cal.rb: just updated with the newest version.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-02 00:04:08 +00:00
drbrain
ecb7eb6ba4
Move RDoc markup samples to sample/rdoc/markup directory
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-28 06:39:15 +00:00
naruse
f2c33914aa
* sample/from.rb: follow Ruby 1.9 libraries.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 03:23:15 +00:00
matz
3a067a5278
* sample/README: removed obsoleted files: dbmtest.rb,
...
getopts.test, mrshtest.rb, regx.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 02:57:15 +00:00
gotoyuzo
a560576158
* sample/biorhythm.rb: follow Ruby 1.9 libraries.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 21:21:16 +00:00
gotoyuzo
a3bfedac36
* sample/openssl: reviewed and remove dependency on getopts.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 07:31:23 +00:00
matz
389278af97
* sample/test.rb (valid_syntax): force_encoding input script.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 15:57:26 +00:00
ko1
40d8543fbd
* proc.c: support Proc#binding.
...
* sample/test.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 08:20:02 +00:00
ko1
860b40fd63
* compile.c (iseq_compile_each): remove "retry" in block.
...
("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: svn+ssh://ci.ruby-lang.org/ruby/trunk@14326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 08:46:49 +00:00
matz
16296af65d
sample/test.rb: remove $KCODE
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-30 12:47:49 +00:00
matz
8ba5375af1
* sample/test.rb: should update class variable tests
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-03 06:49:56 +00:00
nobu
54a3576eaa
* sample/test.rb, test/ruby/test_system.rb(valid_syntax?): keep
...
comment lines first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-18 03:24:32 +00:00
ko1
571f22f5fe
* compile.c (iseq_compile_each): fix next/redo stack consistency.
...
[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: svn+ssh://ci.ruby-lang.org/ruby/trunk@13068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-16 13:12:24 +00:00
ko1
f13e9b734c
* gc.c (os_live_obj): fix to skip T_VALUES.
...
* sample/test.rb: add an ObjectSpace test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-15 09:58:59 +00:00
ko1
18c81c3d3e
* sample/test.rb: fix to output file name if it contains
...
invalid syntax.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 07:58:45 +00:00
kou
71976790ec
* lib/rss, sample/rss, test/rss:
...
- 0.1.7 -> 0.1.8.
- supported <itunes:XXX>.
- reverted backward incompatibility API changes introduced 0.1.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-05 03:03:05 +00:00
ko1
616f4d3385
* bootstraptest/runner.rb: fix load path.
...
* common.mk: fix "test" rule to run with "btest".
* rubytest.rb, sample/test.rb: fix to show tests progress.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-06 09:23:53 +00:00
matz
71f8ca8bc4
* parse.y (assoc_list): remove expanded hash literal (no splat).
...
* lib/webrick/httpstatus.rb (WEBrick::HTTPStatus::EOFError): adapt
to new syntax.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-29 06:27:49 +00:00
ko1
f84c8cb190
* sample/test.rb: fix to show line information whether test succeeds.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 03:18:12 +00:00
ko1
affa7430b7
* compile.c, vm_macro.def: support tail call optimization
...
(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: svn+ssh://ci.ruby-lang.org/ruby/trunk@12304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-21 04:46:51 +00:00
ko1
9ca1fec41b
* sample/test.rb: import matzruby's sample/test.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-01 09:47:24 +00:00
matz
a8c748d277
* sample: replace TRUE, FALSE with true, false respectively.
...
a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
[ruby-dev:30713]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 13:53:09 +00:00
kou
966a25465a
* lib/rss, test/rss:
...
- supported Atom.
- bumped version 0.1.6 to 0.1.7.
* sample/rss/convert.rb: added new sample.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-17 10:13:25 +00:00
ko1
c5bd0c8e3b
* compile.c (iseq_compile_each, set_block_local_tbl) :
...
support NODE_LAMBDA (partly).
* sample/test.rb : restore test of NODE_LAMBDA
* test/ruby/test_lambda.rb : ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-05 03:43:12 +00:00
ko1
a3e1b1ce7e
* Merge YARV
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-31 15:02:22 +00:00
matz
6f1c934bc3
* class.c (rb_include_module): revert duplicate inclusion of
...
modules. [ruby-dev:29793]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-11-07 08:56:18 +00:00
matz
4c6084c4cd
* sample/test.rb: revert debug print.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 22:33:56 +00:00
matz
2d09685150
* eval.c (rb_yield_0): small refactoring.
...
* parse.y (bparam_item): fixed bugs in handling parenthesized LHS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 22:32:04 +00:00