/
ChangeLog
28624 lines (17023 loc) · 909 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Sun Jun 10 12:07:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby: moved public headers.
Sun Jun 10 10:42:04 2007 Tanaka Akira <akr@fsij.org>
* lib/securerandom.rb: renamed from lib/secrand.rb.
suggested by NaHi.
Sat Jun 8 06:40:05 2007 Tanaka Akira <akr@fsij.org>
* lib/secrand.rb: rename SecRand() to SecRand.random_number.
Fri Jun 8 16:34:20 2007 Tanaka Akira <akr@fsij.org>
* ext/zlib/zlib.c (gzfile_s_open): use FilePathValue to support
to_path.
Fri Jun 8 16:11:00 2007 Koichi Sasada <ko1@atdot.net>
* eval_jump.h: th->errinfo should clear with nil.
Fri Jun 8 14:53:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (call_args): allow splat argument after unpacked
assocs like 1.8 does.
* parse.y (call_args): ditto.
Fri Jun 8 14:26:18 2007 Tanaka Akira <akr@fsij.org>
* lib/secrand.rb: new file for secure random interface.
* lib/cgi/session.rb: use secrand for generating cookies.
Fri Jun 8 12:44:37 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* {win32,wince}/Makefile.sub: add lex.c rule.
Fri Jun 8 11:54:18 2007 Tanaka Akira <akr@fsij.org>
* lex.c.blt: moved from lex.c.
* Makefile.in: use lex.c.blt if gperf is not available.
[ruby-list:8212], [ruby-list:8214], [ruby-dev:28102]
Thu Jun 7 21:38:39 2007 Koichi Sasada <ko1@atdot.net>
* thread.c (rb_thread_execute_interrupts): invoke ensure when
main thread exits.
Thu Jun 7 19:02:48 2007 Tanaka Akira <akr@fsij.org>
* lib/pp.rb: call original "method" method instead of redefined one.
Thu Jun 7 17:20:57 2007 Koichi Sasada <ko1@atdot.net>
* iseq.c (prepare_iseq_build): freeze filename and name string.
* variable.c: freeze class name string.
Thu Jun 7 12:48:33 2007 Koichi Sasada <ko1@atdot.net>
* cont.c (cont_restore_1): fix to check root fiber [ruby-dev:30911].
* test/ruby/test_fiber.rb: add a test.
Thu Jun 07 07:24:36 2007 NARUSE, Yui <naruse@ruby-lang.org>
* lib/json/common.rb: Ponder offering parse! method.
* lib/json/editor.rb: be a bit more robust while loading data.
* ext/json/ext/{generator,parser}/extconf.rb:
add a have_header directive for st.h
* test/json: fix some tests.
Thu Jun 7 03:29:18 2007 Koichi Sasada <ko1@atdot.net>
* test_fiber.rb: add a test (Continuation and Fiber).
Thu Jun 7 03:17:24 2007 Koichi Sasada <ko1@atdot.net>
* cont.c (cont_new): add debug message.
* cont.c (cont_restore_1): copy stack information from fiber.
* cont.c (rb_fiber_s_new): fix to mark created fiber.
* test/ruby/test_fiber.rb: add some tests around Thread and Fiber.
* yarvcore.c (thread_free): fix to skip freeing stack if root fiber
is available.
Thu Jun 7 01:03:20 2007 Koichi Sasada <ko1@atdot.net>
* eval_intern.h, eval.c (ruby_init): remove POP_TAG_INIT().
* cont.c (rb_fiber_start): remove zero-clearing tag.
Wed Jun 6 20:23:46 2007 Koichi Sasada <ko1@atdot.net>
* insns.def (invokeblock): fix of splat argument.
(splat same as normal method dispatch)
Wed Jun 6 16:27:25 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* insns.def: fixed indentation.
Wed Jun 6 10:58:23 2007 Koichi Sasada <ko1@atdot.net>
* eval.c (rb_yield): fix to check Qundef.
Wed Jun 6 10:57:45 2007 Koichi Sasada <ko1@atdot.net>
* test/ruby/test_continuation.rb: add a test for last commit.
Wed Jun 6 10:55:42 2007 Koichi Sasada <ko1@atdot.net>
* cont.c (rb_cont_call): forbid calling dead fiber with
Cotinuation#call.
Wed Jun 6 10:50:01 2007 Koichi Sasada <ko1@atdot.net>
* compile.c (iseq_compile_each): fix around yield arguments
(with NODE_ARGSCAT).
Wed Jun 6 02:50:53 2007 Koichi Sasada <ko1@atdot.net>
* cont.c (rb_fiber_start): clear th->tag and check error to fix
[ruby-dev:30888] and [ruby-dev:30889].
* eval_intern.h: fix rb_fiber_start() prototype.
* test/ruby/test_fiber.rb: add tests for above.
Wed Jun 6 02:40:20 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* insnhelper.h, insns.def (DEC_SP): shoudn't use unary minus operator
in pointer operation. some compilers (such as VC++8 x64) cannot deal
it with expected way.
Wed Jun 6 02:19:48 2007 Koichi Sasada <ko1@atdot.net>
* parse.y (new_yield), compile.c (iseq_compile_each): fix
passing parameter.
* eval.c, eval_jump.h: simplify rb_yield*.
* proc.c (proc_mark): fix to mark proc->block.proc.
* proc.c (Init_Proc): add Proc#lambda?
* test/ruby/test_lambda.rb: add some tests.
* vm.c (invoke_block): fix to check lambda block or not.
* vm.c (th_yield_setup_args): fix to check arguments size
when lambda block.
Tue Jun 5 16:30:38 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* io.c (rb_f_p): returns arguments to intervene. [ruby-dev:29736]
Tue Jun 5 14:07:55 2007 Koichi Sasada <ko1@atdot.net>
* insns.def (invokeblock): check block is created by lambda
or Proc.new.
* vm.c (block_proc_is_lambda): added.
Tue Jun 5 14:47:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/pp.rb (PP::PPMethods::seplist): revert last change to work
around wrapper bug. [ruby-dev:30840]
Tue Jun 5 14:11:15 2007 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/nkf-utf8/nkf.c (kanji_convert): Fix guess fallback.
Tue Jun 5 13:32:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c, dir.c, eval.c, eval_jump.h, eval_method.h, numeric.c,
pack.c, parse.y, re.c, thread.c, vm.c, vm_dump.c, call_cfunc.ci,
thread_pthread.ci, thread_win32.ci: fixed indentation.
* call_cfunc.ci: protoized.
* thread_win32.ci: fixed typo.
Tue Jun 5 13:17:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* call_cfunc.ci, compile.c, dir.c, eval.c, eval_jump.h, numeric.c,
pack.c, re.c, thread.c, thread_win32.ci, vm.c, vm_dump.c: fixed
indentation.
Mon Jun 4 21:15:45 2007 NARUSE, Yui <naruse@ruby-lang.org>
* lib/json.rb, lib/json, ext/json, test/json:
import JSON library.
* ext/nkf: import nkf.c rev:1.124
Support CP10001.
Mon Jun 4 20:52:58 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* numeric.c (int_round): should not just truncate.
Sat Jun 2 16:48:55 2007 Koichi Sasada <ko1@atdot.net>
* cont.c (Fiber#pass): rename to Fiber#yield. Block parameter
of fiber body receive first yield values.
e.g.: Fiber.new{|x| p x}.yield(:ok) #=> :ok
* cont.c: rename rb_context_t#retval to rb_context_t#value.
* test/ruby/test_fiber.rb: ditto.
Sat Jun 2 16:45:21 2007 Koichi Sasada <ko1@atdot.net>
* proc.c (Init_Proc): remove a line break.
Sat Jun 2 01:27:27 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* numeric.c (int_round): small optimization to handle bignums.
Fri Jun 1 13:02:35 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* insnhelper.h (INC_SP): shouldn't cast ``x'' to unsigned type because
it might be a negative value.
* insnhelper.h, insns.def: shoudn't use unary minus operator in index
operator. some compilers (such as VC++8 x64) cannot deal it with
expected way.
Fri Jun 1 11:33:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (num_round): should convert self to Float.
[ruby-dev:30860]
Fri Jun 1 02:01:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* numeric.c (flo_round): now takes optional argument to specify
number of digits, like round() in Python/PHP.
* numeric.c (num_round): ditto.
Fri Jun 1 01:58:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* enum.c (each_with_index_i): should work well with continuation.
a patch from sheepman <sheepman AT sheepman.sakura.ne.jp>.
[ruby-dev:30846]
Thu May 31 17:27:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/benchmark.rb (Benchmark::Job::item): avoid modifying the
argument unintentionally. [ruby-talk:253676]
Wed May 30 14:43:00 2007 Koichi Sasada <ko1@atdot.net>
* cont.c (cont_capture): store all local variables in heap
([ruby-dev:30832]).
* vm.c (th_stack_to_heap): added.
* test/ruby/test_continuation.rb: add a test for above.
* eval_intern.h (th_get_ruby_level_cfp): fix to clean code.
Wed May 30 13:32:34 2007 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb (ResponseParser#next_token): fixed
error message.
* lib/net/imap.rb (ResponseParser#parse_error): fixed
the condition not to refer @token.symbol unexpectedly.
Thanks, Dick Monahan.
Wed May 30 13:24:33 2007 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/ftp.rb (Net::FTP#transfercmd): skip 2XX
responses for some FTP servers.
Wed May 30 04:18:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_eval_cmd): just return if no exceptions.
[ruby-dev:30820]
Wed May 30 02:14:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* signal.c (interrupt_init): needs to pass nil for Interrupt.
[ruby-core:11038]
* signal.c (trap): fixed segfaults. [ruby-dev:30830]
Wed May 30 00:50:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gc.c (rb_source_filename, obj_free): supress warnings.
* gc.c (garbage_collect, yarv_machine_stack_mark): fixed typo.
http://bugs.debian.org/426267
Wed May 30 00:24:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (open_args, arg_ambiguous, parser_warning): should not use
rb_warning in the parser.
Tue May 29 12:31:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/win32.c (rb_w32_opendir): removed duplicated code.
Tue May 29 10:55:24 2007 Koichi Sasada <ko1@atdot.net>
* cont.c: fix bug around Continuation and Fiber.
* test/ruby/test_continuation.rb: add tests for Continuation.
Tue May 29 10:54:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/win32.c (rb_w32_opendir, rb_w32_readdir): eliminate magic
numbers.
Mon May 28 10:27:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* cont.c: fixed a function name.
Mon May 28 03:56:44 2007 Koichi Sasada <ko1@atdot.net>
* cont.c: support Fiber. Check test/ruby/test_fiber.rb for detail.
Fiber is known as "Micro Thread", "Coroutine", and other terms.
At this time, only Fiber#pass is supported to change context.
I want to know more suitable method name/API for Fiber (... do you
know more suitable class name instead of Fiber?) as "suspend/resume",
"call", "yield", "start/kick/stop/restart", ....
* eval.c, eval_intern.h, thread.c, yarvcore.c, yarvcore.h: ditto.
Sat May 26 00:38:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (ruby_exec_internal): do nothing if no code.
* compile.c (rb_iseq_compile): check node if NULL before check
nd_type. [ruby-talk:252956]
Sat May 26 00:05:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_beginendblock.rb (test_should_propagate_signaled):
skip tests for exitstatus and termsig on the platforms where
signals not supported.
Fri May 25 16:04:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* yarvcore.c (Init_VM): wrap already initialized structs to use
it directly.
Fri May 25 11:09:47 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* regint.h (include): on some platform, defines.h redefines
SIZE_OF_LONG_LONG so souldn't re-include config.h after included
defines.h.
* regint.h (vsnprintf): ruby on windows already have vsnprintf macro.
Thu May 24 12:07:27 2007 Koichi Sasada <ko1@atdot.net>
* cont.c: check across trap violation.
* eval.c, yarvcore.h: ditto.
Thu May 24 11:46:55 2007 Koichi Sasada <ko1@atdot.net>
* gc.c, yarvcore.c: fix to mark VM structure on startup.
* yarvcore.h: disable USE_CACHED_VALUE.
Thu May 24 01:54:53 2007 Koichi Sasada <ko1@atdot.net>
* cont.c: support callcc which everyone love.
incomplete. please give me bug reports.
* common.mk, inits.c, thread.c: ditto.
* yarvcore.c: export thread_mark().
* yarvcore.h: disable value cache option.
* eval_intern.h: set th_get_ruby_level_cfp to inline.
Wed May 23 15:39:02 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* common.mk: add a rule for regsyntax.c.
Wed May 23 10:31:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* oniguruma.h: updated to Oniguruma 5.7.0.
* regsyntax.c, unicode.c: new files along with Oniguruma 5.x.
Wed May 23 06:51:46 2007 URABE Shyouhei <shyouhei@ruby-lang.org>
* lib/cgi.rb (CGI#[]): get rid of exceptions being raised.
[ruby-dev:30740], Thanks Kentaro KAWAMOTO.
Wed May 23 05:49:49 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb, ext/purelib.rb, lib/mkmf.rb, runruby.rb: clear default
load path to get rid of load pre-installed extensions/libraries.
[ruby-core:11017]
Tue May 22 16:37:36 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* ruby.c (set_arg0): support RSTRING_LEN on HP-UX. a patch from
WATANABE Tetsuya <Tetsuya.WATANABE AT nifty.com>. [ruby-dev:30806]
Mon May 21 13:40:00 2007 Koichi Sasada <ko1@atdot.net>
* 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.
Mon May 21 03:34:06 2007 Minero Aoki <aamine@loveruby.net>
* lib/net/smtp.rb: CRAM-MD5 authentication did not work.
[ruby-dev:30770]
Sat May 19 10:26:01 2007 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date/format.rb (Date._parse): detects some OFX dates
(Of course not fully).
Sat May 19 03:08:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* enum.c (enum_inject): minor improvement. [ruby-dev:30792]
* enum.c (one_i): no needs to iterate once the result became false.
* enum.c (enum_one): fix for an example.
* enum.c (one_iter_i, none_iter_i): DRY.;
Sat May 19 01:07:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* enum.c (enum_inject): it is now can work without block. you
have to specify two argument method name as the first argument.
* enum.c (Init_Enumerable): reduce is new alias to inject.
Sat May 19 01:05:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (Init_File): method definition mismatch.
Fri May 18 16:44:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* file.c (Init_File): add to_path method to File objects.
Fri May 18 11:12:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (DllMain, ruby_init_loadpath): use DLL instance handle given
to DllMain instead of VirtualQuery so that loadpath becomes relative
from the DLL on WinCE too.
Thu May 17 17:03:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-style.el (ruby-style-label-indent): for yacc rules.
Thu May 17 13:30:27 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (f_arg): remove typo from ripper description.
Thu May 17 13:23:38 2007 Koichi Sasada <ko1@atdot.net>
* parse.y, compile.c (set_arguments): fix to support in-paren
parameter (ex: def foo((a, b))).
Thu May 17 13:01:52 2007 Koichi Sasada <ko1@atdot.net>
* iseq.c (ruby_iseq_disasm): fix to show post arg info.
Thu May 17 12:56:52 2007 Koichi Sasada <ko1@atdot.net>
* debug.c (ruby_debug_node): fix to show node line.
Wed May 16 21:48:44 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* lib/logger.rb (Logger::Application): remove meaningless logdev
attribute and added logger attribute instead. [ruby-core:11143]
also added Logger#formatter rdoc comment.
Tue May 15 16:40:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_beginendblock.rb (test_endblockwarn): now parser
warnings emit source names and line numbers.
Tue May 15 15:01:38 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (init_stdhandle): stderr should be without buffering,
but mswin32 use buffering when stderr is not connected to tty.
Mon May 14 02:12:07 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_zip): a.zip(b,c) should return an array, not
enumerator.
* array.c (rb_ary_zip): a.zip(b,c) should return array with size
truncated to the size of its shortest argument array.
[incompatible]
Mon May 14 01:54:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_choice): should return nil when the array is
empty.
Sat May 12 18:26:36 2007 Minero Aoki <aamine@loveruby.net>
* lib/net/http.rb (tokens): forgot to add strip. [ruby-core:11120]
* test/net/http/test_http.rb: test Net::HTTP.post_form.
Fri May 11 15:27:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* iseq.c (iseq_data_to_ary): internal IDs must not be exposed.
[ruby-core:11073]
* parse.y (internal_id_gen): now returns scope local ID instead of
global one.
Thu May 10 15:15:53 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_super.rb: add tests.
Thu May 10 15:14:05 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/iconv/iconv.c (iconv_s_conv): rdoc fix.
Thu May 10 15:09:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (POINTER_P): pointer may be larger than long.
* parse.y (vtable_size, vtable_included, vtable_tblcpy,
vtable_to_tbl): constified.
Thu May 10 10:13:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (rb_thread_priority): rdoc fix; the initial value is
inherited from the creating thread. [ruby-core:10607]
Wed May 9 12:28:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bignum.c (Init_Bignum), numeric.c (Init_Numeric): added fdiv as
aliases of quo. [ruby-dev:30771]
Tue May 8 23:39:09 2007 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date/format.rb (Date._parse): revised treatment of
hyphened/separatorless dates.
* lib/date/format.rb: some trivial adjustments.
Tue May 8 20:23:07 2007 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date/format.rb: reverted.
Tue May 8 19:32:18 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
* lib/rational.rb: fix high-precision Rationals cannot be
converted to Floats. [ruby-Bugs:10502], [ruby-core:11069],
[ruby-dev:30743]
Mon May 7 10:59:55 2007 Kouhei Sutou <kou@cozmixng.org>
* lib/rss/image.rb, test/rss/test_image.rb: fixed Image module
namespace URI. reported by Dmitry Borodaenko. Thanks.
Sun May 6 18:44:11 2007 Minero Aoki <aamine@loveruby.net>
* lib/net/http.rb (Net::HTTP.post_form): allow an Array of String
for pairs argument. [ruby-Bugs:10340]
* lib/net/http.rb (Net::HTTP#set_form_data): ditto.
Sun May 6 17:54:36 2007 Minero Aoki <aamine@loveruby.net>
* lib/net/http.rb: Connection header field might include both of
"keep-alive" token and "close" token. [ruby-core:10818]
Sat May 5 16:26:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/date/format.rb (Format::Bag#method_missing): get rid of
modifying orginal argument. [ruby-core:11090]
Thu May 3 22:20:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in, defines.h, eval_load.c (rb_feature_p, rb_provided,
search_required, rb_require_safe), ext/extmk.rb: Fix
a bug where a statically linked extension cannot be autoloaded.
[ruby-dev:30023] / [ruby-dev:30239]
* thread.c: added an internal class, Barrier.
* thread.c: copied rdocs from fastthread.
* yarvcore.h (struct rb_vm_struct): moved loading_table from global.
Thu May 3 18:10:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_evalbody.ci, insns.def, vm.c, tool/insns2vm.rb (rb_num_t):
renamed to get rid of name clash. [ruby-dev:30504]
* yarvcore.c (ruby_thread_init): ditto.
Wed May 2 18:52:58 2007 Koichi Sasada <ko1@atdot.net>
* vm.c, yarvcore.h, yarvcore.c, insns.def: fix to mark VM stack
in correct range.
Wed May 2 17:13:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bignum.c (rb_big_quo): now calculate in integer. [ruby-dev:30753]
Wed May 2 15:14:56 2007 Koichi Sasada <ko1@atdot.net>
* eval_method.h: add redefine checks ([ruby-dev:30751]).
Wed May 2 11:22:52 2007 Koichi Sasada <ko1@atdot.net>
* compile.c: use Qtrue instead of 2.
* vm.c, insns.def: support "lambda" calling convention.
Wed May 2 06:46:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c, parse.y, ruby.h (rb_compile_warn, rb_compile_warning): warn
for compilation. the parser should no longer use rb_warn() and
rb_warning(). [ruby-dev:30121]
Wed May 2 05:45:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (assoc): result of assoc_new needs to be an assoc.
Wed May 2 05:40:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bignum.c (rb_big_pow): improvement by calculating from MSB and using
factorization. <http://yowaken.dip.jp/tdiary/20070426.html#p01>
Tue May 1 18:45:45 2007 Koichi Sasada <ko1@atdot.net>
* sample/test.rb: import matzruby's sample/test.rb.
Tue May 1 17:46:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_choice): a new method to choose an element
randomly from an array.
* array.c (rb_ary_choice): fixed mistake from RDoc.
Tue May 1 13:59:18 2007 Koichi Sasada <ko1@atdot.net>
* proc.c (proc_arity): fix an arity bug ([ruby-core:11060]).
Tue May 1 13:12:49 2007 Koichi Sasada <ko1@atdot.net>
* yarvcore.h, compile.c (set_arguments): support post arguments.
* test/ruby/test_method.rb: add tests for above.
* test/ruby/test_proc.rb: ditto.
* proc.c: fix an arity bug ([ruby-core:11029]).
* vm.c, vm.h, insns.def, vm_dump.h: fix bmethod process.
* vm.c: support block argument on block parameter.
Fri Apr 27 17:05:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (int_pow): bugfix of overflow detection.
* numeric.c (int_pow): rb_big_pow() may return other than Bignum.
Fri Apr 27 01:51:50 2007 Koichi Sasada <ko1@atdot.net>
* compile.c: support multiple splat (e.g, [a, *b, *c, e, *f]).
Fri Apr 27 00:03:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bignum.c (rb_big_pow): truncate all zero BDIGITs. [ruby-dev:30733]
Thu Apr 26 17:31:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bignum.c (rb_big_pow): reduce multiplying for even number.
* numeric.c (int_pow): calculate power in Fixnum as possible.
[ruby-dev:30726]
Thu Apr 26 17:18:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y: fixes for ripper.
* parse.y (primary): reduced duplcated code.
* parse.y (f_arg_item): should not override by meaningless value.
* parse.y (f_arg, assocs): should not use $$ before assigned.
* parse.y (assoc_list): dispatch assoclist_from_args for assocs as
well as args.
* parse.y (assoc): return assoc if dispatched result is $1.
Thu Apr 26 13:54:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-style.el: new file. C/C++ style for ruby source code.
Wed Apr 25 19:49:16 2007 Tanaka Akira <akr@fsij.org>
* ext/socket/socket.c (unix_send_io, unix_recv_io): use CMSG_DATA to
align file descriptor appropriately.
Wed Apr 25 15:23:29 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (NtInitialize, exit_handler): add initializing and
cleanup of critical section object for select.
* win32/win32.c (do_select): block reentrance.
* win32/win32.c (rb_w32_select): 0 sec polling of socket. this is
workaround because winsock cannot do select at same socket at the
same time by two or more threads.
Wed Apr 25 14:10:47 2007 Koichi Sasada <ko1@atdot.net>
* ext/probeprofiler/probeprofiler.c: fix function name and
return value.
Wed Apr 25 12:42:40 2007 Koichi Sasada <ko1@atdot.net>
* yarvcore.h: remove rb_control_frame_t#callee_id.
* vm_macro.def: ditto.
* eval_intern.h (exec_event_hooks): fix to check event flags
* eval_intern.h (EXEC_EVENT_HOOK): fix to re-check event flags.
* ext/probeprofiler : added. this profiler is sampling based
profiler.
* vm.c: add rb_thread_current_status() API for probeprofiler.
* thread.c (rb_thread_execute_interrupts): add comments.
Wed Apr 25 10:36:03 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval_intern.h (PUSH_TAG): no argument now.
* eval.c, eval_error.h, eval_jump.h, eval_load.c, proc.c, thread.c:
ditto.
* thread.c (alloc_event_fook, rb_thread_remove_event_hook): should
return value.
Tue Apr 24 09:33:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (do_stat, do_lstat, do_opendir): should not warn ENOTDIR.
[ruby-talk:248288]
Mon Apr 23 22:14:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb ($ruby): add extout directory to include path.
[ruby-core:11003]
* lib/mkmf.rb (libpathflag): not to append RPATHFLAG to current
directory.
* lib/mkmf.rb (init_mkmf): add current directory to default
library path with highest priority. [ruby-core:10960]
* lib/mkmf.rb (LINK_SO): LIBPATH to be placed before DLDFLAGS.
Fri Apr 20 16:05:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (LIBPATHFLAG, RPATHFLAG): no needs to be quoted,
it is done by libpathflag in mkmf.rb.
Fri Apr 20 12:27:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/optparse.rb: fix to override conv proc.
Fri Apr 20 12:21:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (ruby_cleanup): fixed access to out of bound, and inversed
the order of errinfos.
Fri Apr 20 10:33:23 2007 Koichi Sasada <ko1@atdot.net>
* eval_intern.h: add prototypes of rb_sourceline() and
rb_sourcefile().
Fri Apr 20 02:37:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (ruby_cleanup): re-send signal. [ruby-dev:30516]
* eval_error.h (error_handle): no message when exiting by signal.
* intern.h (rb_thread_signal_raise, ruby_default_signal): prototypes.
* signal.c (esignal_init): takes a signal number and an optional
signal name.
* signal.c (interrupt_init): pass SIGINT always.
* signal.c (ruby_default_signal): invoke system default signal
handler.
* signal.c (rb_f_kill): use NUM2PIDT instead of NUM2INT.
* signal.c (rb_signal_exec, trap): handle SIGTERM. [ruby-dev:30505]
* thread.c (rb_thread_signal_raise): now takes signal number instead
of signal name.
* thread.c (rb_thread_signal_exit): since rb_make_exception() calls
#exception method, rb_class_new_instance() is not needed here.
* yarvcore.h (struct rb_vm_struct), eval_jump.h (terminate_process):
exit_code is no longer stored in VM.
Thu Apr 19 18:37:49 2007 Koichi Sasada <ko1@atdot.net>
* eval.c, node.h, thread.c, yarvcore.[ch], eval_intern.h:
support set_trace_func (incomplete. id and klass
don't be passed). And support Thread#set_trace_func
which hook only specified thread and Thread#add_trace_func
which add new trace func instead of replace old one.
C level API was modified. See thread.c (logic) and
yarvcore.h (data structures).
* vm.c, vm_macro.def: add hook points.
* compile.c, insns.def: fix "trace" instruction.
* iseq.c, vm_macro.h: add compile option "trace_instruction".
* test/ruby/test_settracefunc.rb: hook "c-return" of set_trace_func.
Thu Apr 19 20:57:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (symbol): symbols should be followed by EXPR_ENDARG.
* parse.y (dsym): ditto.
* parse.y (parser_yylex): strings should be followed by
EXPR_ENDARG.
* parse.y (parser_yylex): ditto for numbers.
* parse.y (parser_yylex): EXPR_ENDARG after ']' and '}'.
Thu Apr 19 17:46:36 2007 Koichi Sasada <ko1@atdot.net>
* lib/optparse.rb: fix to override conv proc.
Wed Apr 18 10:41:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* util.c (ruby_strtod): exponent is radix 10. [ruby-talk:248272]
Wed Apr 18 02:50:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* yarvcore.c (th_init2): push initial blockptr value for
rb_block_given_p() outside ruby_exec(). [ruby-core:10923]
Wed Apr 18 02:30:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (LDFLAGS): prepend -L. instead appending it to
XLDFLAGS. [ruby-core:10933]
* configure.in (Makefile): remove $U for automake from MISSING.
[ruby-talk:248171]
Mon Apr 16 22:56:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/pty/expect_sample.rb: avoid symbolic link representation for
expect. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
[ruby-dev:30714]
Mon Apr 16 22:51:11 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* sample: replace TRUE, FALSE with true, false respectively.
a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
[ruby-dev:30713]
Mon Apr 16 17:08:02 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/optparse.rb (make_switch): do not clobber converter if pattern
has no convert method. reported by sheepman in [ruby-dev:30709].
Mon Apr 16 16:49:32 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/stringio/stringio.c (strio_seek): consistent behavior with
IO#seek. patch by sheepman in [ruby-dev:30710].
Mon Apr 16 16:34:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (parser_yylex): should set command_start after block
starting "do"s and braces. [ruby-core:10916]
Mon Apr 16 10:51:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* enum.c (enum_each_with_index): each_with_index to forward
arguments to each. [ruby-core:10921]
Mon Apr 16 10:43:10 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* time.c (time_arg): should allow to specify 24:00.
[ruby-core:10915]
Sun Apr 15 09:12:54 2007 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date/format.rb: added some zone names.
* lib/date/format.rb (_parse): now interprets doted numerical
dates as a big endian (except dd.mm.yyyy).
Thu Apr 12 17:13:22 2007 Koichi Sasada <ko1@atdot.net>
* thread.c (mutex_try_lock): check and set owner thread.
* thread_pthread.ci: fix to show error code in error message.
Thu Apr 12 17:11:54 2007 Koichi Sasada <ko1@atdot.net>
* eval.c (rb_rescue2): restore cfp ([ruby-dev:30582]).
Thu Apr 12 16:06:48 2007 Koichi Sasada <ko1@atdot.net>
* eval.c (rb_protect): restore cfp ([ruby-dev:30671]).
Thu Apr 12 16:04:31 2007 Koichi Sasada <ko1@atdot.net>
* compile.c (iseq_compile_each): check node->nd_state == 1, not !0.
Wed Apr 11 16:35:16 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.[ch] (rb_w32_enter_critical, rb_w32_leave_critical): no
need to reject reentrance. removed.
* rubysig.h (RUBY_CRITICAL): follow above changes.
* rubysig.h (TRAP_BEG, TRAP_END): no need to save errno.
Tue Apr 10 17:02:17 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (rb_w32_fclose, rb_w32_close): need to save errno
before calling original fclose()/close().
Tue Apr 10 16:14:22 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* thread_win32.ci (w32_wait_events): check whether interrupt_event is
valid handle or not.
* thread_win32.ci (native_thread_destroy): clear interrupt_event when
close it.
Tue Apr 10 15:53:17 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* thread_pthread.ci (native_thread_create): initialize sleep_cond.
fixed: [ruby-dev:30675]
Mon Apr 9 18:48:57 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* thread.c (do_select): ubf_select() is not necessary. interrupt is
checked in the loop.
Mon Apr 9 18:27:26 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* thread.c (do_select): use ubf_select() as UBF on windows.
* win32/win32.c (do_select): shouldn't call catch_interrupt() here.
fixed: [ruby-dev:30674], reported by wanabe.
Mon Apr 9 09:24:32 2007 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb (disconnect): call shutdown for
SSLSocket. Thanks, Technorama Ltd.
Sun Apr 8 13:28:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (defined_expr): test arguments of NODE_CALL and so
on as well as NODE_ATTRASGN. [ruby-core:10886]
Fri Apr 6 10:56:29 2007 NAKAMURA Usaku <usa@ruby-lang.org>