1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/sample
matz 70bbad3cfd * array.c: replace rb_protect_inspect() and rb_inspecting_p() by
rb_exec_recursive() in eval.c.

* eval.c (rb_exec_recursive): new function.

* array.c (rb_ary_join): use rb_exec_recursive().

* array.c (rb_ary_inspect, rb_ary_hash): ditto.

* file.c (rb_file_join): ditto.

* hash.c (rb_hash_inspect, rb_hash_to_s, rb_hash_hash): ditto.

* io.c (rb_io_puts): ditto.

* object.c (rb_obj_inspect): ditto

* struct.c (rb_struct_inspect): ditto.

* lib/set.rb (SortedSet::setup): a hack to shut up warning.
  [ruby-talk:132866]

* lib/time.rb (Time::strptime): add new function.  inspired by
  [ruby-talk:132815].

* lib/parsedate.rb (ParseDate::strptime): ditto.

* regparse.c: move st_*_strend() functions from st.c.  fixed some
  potential memory leaks.

* exception error messages updated.  [ruby-core:04497]

* ext/socket/socket.c (Init_socket): add bunch of Socket
  constants.  Patch from Sam Roberts <sroberts@uniserve.com>.
  [ruby-core:04409]

* array.c (rb_ary_s_create): no need for negative argc check.
  [ruby-core:04463]

* array.c (rb_ary_unshift_m): ditto.

* lib/xmlrpc/parser.rb (XMLRPC::FaultException): make it subclass
  of StandardError class, not Exception class.  [ruby-core:04429]

* parse.y (fcall_gen): lvar(arg) will be evaluated as
  lvar.call(arg) when lvar is a defined local variable. [new]

* object.c (rb_class_initialize): call inherited method before
  calling initializing block.

* eval.c (rb_thread_start_1): initialize newly pushed frame.

* lib/open3.rb (Open3::popen3): $? should not be EXIT_FAILURE.
  fixed: [ruby-core:04444]

* eval.c (is_defined): NODE_IASGN is an assignment.

* ext/readline/readline.c (Readline.readline): use rl_outstream
  and rl_instream.  [ruby-dev:25699]

* ext/etc/etc.c (Init_etc): sGroup needs HAVE_ST_GR_PASSWD check
  [ruby-dev:25675]

* misc/ruby-mode.el: [ruby-core:04415]

* lib/rdoc/generators/html_generator.rb: [ruby-core:04412]

* lib/rdoc/generators/ri_generator.rb: ditto.

* struct.c (make_struct): fixed: [ruby-core:04402]

* ext/curses/curses.c (window_color_set): [ruby-core:04393]

* ext/socket/socket.c (Init_socket): SO_REUSEPORT added.
  [ruby-talk:130092]

* object.c: [ruby-doc:818]

* parse.y (open_args): fix too verbose warnings for the space
  before argument parentheses.  [ruby-dev:25492]

* parse.y (parser_yylex): ditto.

* parse.y (parser_yylex): the first expression in the parentheses
  should not be a command.  [ruby-dev:25492]

* lib/irb/context.rb (IRB::Context::initialize): [ruby-core:04330]

* object.c (Init_Object): remove Object#type.  [ruby-core:04335]

* st.c (st_foreach): report success/failure by return value.
  [ruby-Bugs-1396]

* parse.y: forgot to initialize parser struct.  [ruby-dev:25492]

* parse.y (parser_yylex): no tLABEL on EXPR_BEG.
  [ruby-talk:127711]

* document updates - [ruby-core:04296], [ruby-core:04301],
  [ruby-core:04302], [ruby-core:04307]

* dir.c (rb_push_glob): should work for NUL delimited patterns.

* dir.c (rb_glob2): should aware of offset in the pattern.

* string.c (rb_str_new4): should propagate taintedness.

* env.h: rename member names in struct FRAME; last_func -> callee,
  orig_func -> this_func, last_class -> this_class.

* struct.c (rb_struct_set): use original method name, not callee
  name, to retrieve member slot.  [ruby-core:04268]

* time.c (time_strftime): protect from format modification from GC
  finalizers.

* object.c (Init_Object): remove rb_obj_id_obsolete()

* eval.c (rb_mod_define_method): incomplete subclass check.
  [ruby-dev:25464]

* gc.c (rb_data_object_alloc): klass may be NULL.
  [ruby-list:40498]

* bignum.c (rb_big_rand): should return positive random number.
  [ruby-dev:25401]

* bignum.c (rb_big_rand): do not use rb_big_modulo to generate
  random bignums.  [ruby-dev:25396]

* variable.c (rb_autoload): [ruby-dev:25373]

* eval.c (svalue_to_avalue): [ruby-dev:25366]

* string.c (rb_str_justify): [ruby-dev:25367]

* io.c (rb_f_select): [ruby-dev:25312]

* ext/socket/socket.c (sock_s_getservbyport): [ruby-talk:124072]

* struct.c (make_struct): [ruby-dev:25249]

* dir.c (dir_open_dir): new function.  [ruby-dev:25242]

* io.c (rb_f_open): add type check for return value from to_open.

* lib/pstore.rb (PStore#transaction): Use the empty content when a
  file is not found.  [ruby-dev:24561]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-04 06:47:45 +00:00
..
drb using "DRb.thread.join" instead of "gets" 2004-06-27 15:36:32 +00:00
logger * lib/logger.rb: new file. Logger, formerly called devel-logger or 2003-09-18 06:31:25 +00:00
openssl * lib/logger.rb: trim tail space of each line. no user visible change. 2004-03-26 16:47:16 +00:00
optparse * sample/optparse/subcommand.rb: a sample for sub commands like 2004-12-11 04:09:07 +00:00
ripper * parse.y [ripper]: on__scan event removed. 2004-09-22 05:22:50 +00:00
rss * sample/rss/tdiary_plugin/rss-recent.rb: added site information. 2005-03-03 02:52:55 +00:00
soap * lib/soap/*, test/soap/*, sample/soap/authheader/*: eval cleanup. 2004-12-21 15:08:56 +00:00
testunit * test/testunit/*: Added. 2003-09-19 02:48:46 +00:00
webrick * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_service): 2005-01-07 11:05:22 +00:00
wsdl * added files: 2004-07-03 13:33:20 +00:00
biorhythm.rb use values_at instead of select. 2003-05-05 14:02:14 +00:00
cal.rb synchronized with date2 3.6.1 2004-09-25 23:10:36 +00:00
cbreak.rb Initial revision 1998-01-16 12:19:09 +00:00
clnt.rb Strive to give better examples. 2002-12-19 20:26:16 +00:00
dbmtest.rb Initial revision 1998-01-16 12:13:05 +00:00
dir.rb The use of $_ and ~/RE/ is discouraged. 2002-12-19 20:30:05 +00:00
dualstack-fetch.rb * string.c (rb_str_slice_bang): if there's no corresponding 2002-07-11 08:22:18 +00:00
dualstack-httpd.rb Synchronize MANIFEST with reality. Add missing files. 2001-05-26 03:38:39 +00:00
eval.rb Improve. 2002-12-19 20:42:50 +00:00
export.rb Initial revision 1998-01-16 12:13:05 +00:00
exyacc.rb * sample/exyacc.rb: escape '}' to avoid warning. 2004-01-19 13:27:38 +00:00
fact.rb Improve. 2002-12-19 20:42:50 +00:00
fib.awk Initial revision 1998-01-16 12:13:05 +00:00
fib.pl 2000-02-23 2000-02-23 05:23:12 +00:00
fib.py 1.4.0 1999-08-13 05:45:20 +00:00
fib.rb Initial revision 1998-01-16 12:13:05 +00:00
fib.scm matz 2000-11-27 09:23:38 +00:00
freq.rb 19991129 1999-11-29 06:33:02 +00:00
from.rb matz 2000-10-10 07:03:36 +00:00
fullpath.rb Fix a bug. 2002-12-19 20:39:26 +00:00
getopts.test Initial revision 1998-01-16 12:13:05 +00:00
goodfriday.rb updated to the new version (based on date2 3.3). 2002-06-22 15:26:58 +00:00
less.rb Initial revision 1998-01-16 12:13:05 +00:00
list.rb 1.4.0 1999-08-13 05:45:20 +00:00
list2.rb Initial revision 1998-01-16 12:13:05 +00:00
list3.rb Initial revision 1998-01-16 12:13:05 +00:00
mine.rb 19991201 1999-12-01 09:24:48 +00:00
mkproto.rb * sample/mkproto.rb: ditto and fix bug. 2002-07-26 07:47:50 +00:00
mpart.rb 20000105 2000-01-05 04:41:21 +00:00
mrshtest.rb 000919 2000-09-19 07:54:28 +00:00
observ.rb This commit was generated by cvs2svn to compensate for changes in r372, 1999-01-20 04:59:39 +00:00
occur.pl Initial revision 1998-01-16 12:13:05 +00:00
occur.rb Be consistent on the use of the implicit $_. 2002-12-19 20:45:24 +00:00
occur2.rb Improve. 2002-12-19 20:56:37 +00:00
philos.rb matz 2000-09-27 09:11:13 +00:00
pi.rb Improve. 2002-12-19 20:56:37 +00:00
rcs.awk Initial revision 1998-01-16 12:13:05 +00:00
rcs.dat Initial revision 1998-01-16 12:13:05 +00:00
rcs.rb Improve. 2002-12-19 20:56:37 +00:00
README * array.c (rb_ary_equal): a == b is true when b is non T_ARRAY 2003-02-04 07:27:43 +00:00
regx.rb Initial revision 1998-01-16 12:13:05 +00:00
sieve.rb * re.c (rb_reg_expr_str): need to process backslashes properly. 2002-06-28 14:42:46 +00:00
svr.rb Strive to give better examples. 2002-12-19 20:26:16 +00:00
test.rb * array.c: replace rb_protect_inspect() and rb_inspecting_p() by 2005-03-04 06:47:45 +00:00
time.rb Improve. 2002-12-19 20:56:37 +00:00
trojan.rb Improve. 2002-12-19 20:56:37 +00:00
tsvr.rb Improve. 2002-12-19 20:56:37 +00:00
uumerge.rb changes from personal modifies -- matz 2000-12-28 05:00:47 +00:00

README		this file
biorhythm.rb	biorhythm calculator
cal.rb		cal(1) clone
cbreak.rb	no echo done by ioctl
clnt.rb		socket client
dbmtest.rb	test for dbm
dir.rb		directory access
dualstack-fetch.rb	IPv6 demo
dualstack-httpd.rb	IPv6 demo
dstore.rb	object database on dbm
eval.rb		simple evaluator
export.rb	method access example
exyacc.rb	extrace BNF from yacc file
fact.rb		factorial calculator
fib.awk		Fibonacci number (AWK)
fib.pl		Fibonacci number (Perl)
fib.py		Fibonacci number (Python)
fib.rb		Fibonacci number (Ruby)
fib.scm		Fibonacci number (Scheme)
freq.rb		count word occurrence
from.rb		scan mail spool
fullpath.rb	convert ls -lR to fullpath format
getopts.test	test fot getopt.rb
goodfriday.rb	print various christian calendar event.
io.rb		io test
irb.rb		interactive ruby
less.rb		front end for less
list.rb		stupid object sample
list2.rb	stupid object sample
list3.rb	stupid object sample
mine.rb		simple mine sweeper	
mkproto.rb     extract prototype from C
mpart.rb	split file int multi part
mrshtest.rb	test marshal
observ.rb	observer design pattern sample
occur.pl	count word occurrence (Perl)
occur.rb	count word occurrence (Ruby)
occur2.rb	count word occurrence - another style
philos.rb	famous dining philosophers
pi.rb		calculate PI
rcs.awk		random character stereogram (AWK)
rcs.rb		random character stereogram (Ruby)
rcs.dat		data for random character stereogram
rd2html.rb	rd (Ruby Document) to HTML translator
regx.rb		regular expression tester
sieve.rb	sieve of Eratosthenes
svr.rb		socket server
test.rb		test suite used by `make test'
time.rb		/usr/bin/time clone
trojan.rb	simple tool to find file that may be trojan horse.
tsvr.rb		socket server using thread
uumerge.rb	merge files and uudecode them