-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
22376 lines (14400 loc) · 773 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
Sat Jan 5 21:15:10 2013 NARUSE, Yui <[email protected]>
* lib/net/http/generic_request.rb:
Amazon ECA API and GTE/1.3 disallow requests whose host has port
number if its port number equlas to default port number of the
scheme. [Bug #7650]
Sat Jan 5 13:58:59 2013 Eric Hodel <[email protected]>
* doc/syntax/modules_and_classes.rdoc: Improved description of methods
on a module or class as suggested by Tobias Buhlmann
Sat Jan 5 13:38:07 2013 Masaki Matsushita <[email protected]>
* string.c (rb_str_enumerate_lines): fix invalid byte sequence error
when a separator is passed. The patch is from yoshidam (Yoshida
Masato).
[Bug #7646] [ruby-dev:46827]
* test/ruby/test_string.rb: a test for above.
Sat Jan 5 12:25:42 2013 Nobuyoshi Nakada <[email protected]>
* test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err):
check stdout and stderr both.
Sat Jan 5 10:21:54 2013 Eric Hodel <[email protected]>
* doc/syntax/modules_and_classes.rdoc: Added documentation of syntax
for Modules and Classes.
* doc/syntax/methods.rdoc: Moved some text to the Modules and
Classes syntax document.
Sat Jan 5 08:38:27 2013 Eric Hodel <[email protected]>
* doc/syntax/methods.rdoc: Added return values and scope sections,
slightly modified from the original patch. Fixes #227 from github by
Dave Brown.
Sat Jan 5 08:21:41 2013 KOSAKI Motohiro <[email protected]>
* io.c (rb_cloexec_fcntl_dupfd): improve #ifdef condition.
* io.c (rb_maygvl_fd_fix_cloexec): ditto.
Sat Jan 5 07:54:59 2013 Eric Hodel <[email protected]>
* lib/rubygems/commands/cleanup_command.rb: Clean all possible gems
using multiple passes. Fixes RubyGems bug #422. Refactored for
maintainability.
* test/rubygems/test_gem_commands_cleanup_command.rb: Test for above.
Sat Jan 5 05:04:39 2013 KOSAKI Motohiro <[email protected]>
* gc.c (vm_xrealloc): add a few comment why we avoid realloc(ptr,0).
Fri Jan 4 20:17:06 2013 Yuki Yugui Sonoda <[email protected]>
* Makefile.in (RBCONFIG): Moved from common.mk in order to use the
variable in Makefile.in.
* win32/Makefile.sub (RBCONFIG): Ditto.
Fri Jan 4 19:45:50 2013 Yuki Yugui Sonoda <[email protected]>
* common.mk (run, parse): Use BTESTRUBY instead of MINIRUBY to handle
cross-compiling cases, e.g. NativeClient.
Fri Jan 4 17:58:16 2013 Yuki Yugui Sonoda <[email protected]>
* common.mk (yes-btest): btest depends on also $(arch)-fake.rb and
rbconfig.rb on building for NativeClient.
* Makefile.in (fake): Avoid generating $(arch)-fake.rb unless cross
compiling.
* configure.in (CROSS_COMPILING): New substitution.
Fri Jan 4 16:26:45 2013 Eric Hodel <[email protected]>
* lib/rubygems/doctor.rb: Process directories in order in case the
filesystem doesn't. [ruby-trunk - Bug #7618]
Process specifications before other directories in case of bugs.
* test/rubygems/test_gem_doctor.rb: Test for above.
* lib/rubygems.rb: Updated version.
* test/rubygems/test_require.rb: Fixed double require of
benchmark.rb. RubyGems bug #420.
* test/rubygems/test_gem_commands_check_command.rb: Fixed unused
variable warnings.
* test/rubygems/test_gem_commands_query_command.rb: ditto
* test/rubygems/test_gem_installer.rb: ditto
Fri Jan 4 15:05:25 2013 Eric Hodel <[email protected]>
* lib/rdoc/cross_reference.rb: Fixed matching of C#=== or #===. RDoc
bug #164
* test/rdoc/test_rdoc_cross_reference.rb: Test for above.
* lib/rdoc/parser/changelog.rb: Fixed parsing of dates. RDoc bug #165
* test/rdoc/test_rdoc_parser_changelog.rb: Test for above.
* lib/rdoc/parser.rb: Fixed parsing multibyte files with incomplete
characters at byte 1024. [ruby-trunk - Bug #6393]
Fixed handling of -E. [ruby-trunk - Bug #6392]
* test/rdoc/test_rdoc_options.rb: Test for above.
* test/rdoc/test_rdoc_parser.rb: ditto.
* test/rdoc/test_rdoc_parser_c.rb: ditto.
* test/rdoc/test_rdoc_parser_changelog.rb: ditto.
* test/rdoc/test_rdoc_parser_markdown.rb: ditto.
* test/rdoc/test_rdoc_parser_rd.rb: ditto.
* test/rdoc/test_rdoc_rdoc.rb: ditto.
* lib/rdoc/tom_doc.rb: Fixed parsing of [] in TomDoc arguments list.
RDoc bug #167
* test/rdoc/test_rdoc_tom_doc.rb: Test for above.
* lib/rdoc.rb: Update version.
Fri Jan 4 11:51:00 2013 Zachary Scott <[email protected]>
* lib/forwardable.rb: Fix rdoc parameters for ::def_single_delegator.
Patch by Vladimir Andrijevik [Github Fixes #230]
Fri Jan 4 00:35:11 2013 Yuki Yugui Sonoda <[email protected]>
Fix failures on btest for NativeClient.
* bootstraptest/runner.rb (nacl?): New method to distinguish NaCl
cross build.
* bootstraptest/test_io.rb: Skip unsupported operations.
* bootstraptest/test_literal.rb: ditto.
Fri Jan 4 00:29:40 2013 Yuki Yugui Sonoda <[email protected]>
* io.c (rb_cloexec_fcntl_dupfd): Fix failures in
bootstrap_test/test_io.rb. NativeClient does not support F_DUPFD
but supports dup2(2).
Thu Jan 3 17:46:50 2013 Kouhei Sutou <[email protected]>
* lib/rexml/element.rb (REXML::Elements#add): Remove too much
"elements" in document. Sorry...
Thu Jan 3 17:42:32 2013 Kouhei Sutou <[email protected]>
* lib/rexml/element.rb (REXML::Elements#each): Add missing
"elements" in document. [ruby-talk:402713]
Reported by Wesley Rishel. Thanks!!!
Thu Jan 3 15:13:00 2013 Zachary Scott <[email protected]>
* ext/psych/lib/psych.rb (Psych.load): Return value of
Psych::SyntaxError.message should be same as example.
Patch by Ippei Obayashi [ruby-core:51193] [Bug #7636]
Thu Jan 3 14:58:00 2013 Zachary Scott <[email protected]>
* lib/forwardable.rb (SingleForwardable): Fix example in overview
Patch by Vladimir Andrijevik [Github Fixes #231]
Thu Jan 3 14:32:47 2013 Yuki Yugui Sonoda <[email protected]>
* configure.in (OBJCOPY): Fixes build error for NativeClient.
Avoid disabling OBJCOPY for NativeClient.
* thread_pthread.c (rb_reserved_fd_p): USE_SLEEPY_TIMER_THREAD is
always defined. Fixes compilation error for NativeClient.
Wed Jan 02 03:09:00 2012 Zachary Scott <[email protected]>
* ext/zlib/zlib.c (Zlib::GzipReader): Fix typo by zed_0xff
[Fixes Github #229]
Wed Jan 02 02:29:00 2012 Zachary Scott <[email protected]>
* hash.c (rb_hash_update): Revert documentation from r38672
See: https://github.com/ruby/ruby/pull/228#issuecomment-11791013
Wed Jan 02 02:16:00 2012 Zachary Scott <[email protected]>
* hash.c (rb_hash_update): Documentation for Hash#merge and shallow
copies Patch by Yorick Peterse [Fixes Github #228]
Mon Dec 31 15:10:00 2012 Zachary Scott <[email protected]>
* vm_backtrace.c: Add documentation for Kernel#caller_locations,
Kernel#caller, and Thread::Backtrace::Location
Mon Dec 31 13:05:00 2012 Zachary Scott <[email protected]>
* test/ruby/test_backtrace.rb: Add test for r37957 [Feature #7434]
Sun Dec 30 23:33:36 2012 Nobuyoshi Nakada <[email protected]>
* parse.y (simple_re_meta): escaped closing parenthesis has different
meaning. [Bug #7610] [ruby-core:51088]
Sun Dec 30 12:09:47 2012 Charlie Somerville <[email protected]>
* configure.in: use 4 argument form of AC_CHECK_HEADERS to force
autoconf to use compiler's result
Sun Dec 30 10:58:04 2012 Kazuki Tsujimoto <[email protected]>
* test/ruby/test_keyword.rb: add a test for passing hash
as a last argument. [ruby-dev:46712] [Bug #7529]
Sun Dec 30 10:51:29 2012 Kazuki Tsujimoto <[email protected]>
* vm_insnhelper.c: set keyword hash on Proc/block calls.
[ruby-core:51172] [Bug #7630]
* test/ruby/test_keyword.rb: add tests for above.
Sat Dec 29 21:57:11 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/completion.rb: treat rightly completion for symbol on irb
[Bug #7632].
Sat Dec 29 21:51:30 2012 Shugo Maeda <[email protected]>
* ext/curses/curses.c (window_cury, window_curx, window_maxy,
window_maxx, window_begy, window_begx): use RB_UNUSED_VAR()
to suppress unused-but-set-variable warnings.
Sat Dec 29 16:45:00 2012 Zachary Scott <[email protected]>
* iseq.c (RubyVM::InstructionSequence): rdoc formatting
Sat Dec 29 15:28:00 2012 Zachary Scott <[email protected]>
* iseq.c (RubyVM::InstructionSequence): Add rdoc for new iseq features
added from r38085, this includes ::of, #path, #absolute_path,
#label, #base_label, #first_lineno, and #inspect
Sat Dec 29 14:06:00 2012 Zachary Scott <[email protected]>
* iseq.c (rb_iseq_line_trace_all, rb_iseq_line_trace_specify): Add
rdoc for experimental C level api of iseq, from r38076
Sat Dec 29 11:37:36 2012 Nobuyoshi Nakada <[email protected]>
* object.c (rb_obj_clone): attach clone to its singleton class during
cloning singleton class so that singleton_method_added will be called
on it. based on the patch by shiba (satoshi shiba)[Bug #5283] in
[ruby-dev:44477]. [Bug #5283]
Sat Dec 29 10:10:39 2012 Nobuyoshi Nakada <[email protected]>
* configure.in (crt_externs.h): use standard macro AC_CHECK_HEADERS.
Fri Dec 28 23:12:44 2012 Charlie Somerville <[email protected]>
* configure.in: check for the whether crt_externs.h is present when compiling
for darwin (this header is missing in the iOS SDK)
* eval_intern.h: check HAVE_CRT_EXTERNS_H before including crt_externs.h, if
not defined, include missing/crt_externs.h instead
* hash.c: ditto
* missing/setproctitle.c: ditto
* missing/crt_externs.h: declare _NSGetEnviron() function and define environ
for iOS
Fri Dec 28 21:40:36 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/context.rb: IRB::Context#new: Check from JobManager
inside IRB namespace [Bug #7628]. Thanks rafaelfranca for bug
report and its patch.
Fri Dec 28 17:06:17 2012 Akinori MUSHA <[email protected]>
* misc/ruby-electric.el (ruby-electric-curlies): Automatically
indent closing curly brackets when
ruby-electric-newline-before-closing-bracket is true.
Fri Dec 28 11:50:42 2012 Nobuyoshi Nakada <[email protected]>
* vm_insnhelper.c (vm_yield_setup_block_args): pass single argument to
single optional parameter unchanged without splatting. [Bug #7621]
[ruby-dev:46801]
Fri Dec 28 11:17:47 2012 Shugo Maeda <[email protected]>
* proc.c (method_eq): fix the documentation to refer to owner.
[ruby-core:51105] [Bug #7613]
* test/ruby/test_method.rb (test_alias_onwer): new test to confirm
that `a == b' returns false if owners of a and b are different.
Fri Dec 28 07:07:43 2012 NARUSE, Yui <[email protected]>
* def/id.def: use split(/^/) instead of String#lines to support
Ruby 1.8.5 as BASERUBY.
Thu Dec 27 21:56:56 2012 NARUSE, Yui <[email protected]>
* variable.c (rb_mod_remove_const): fix segv caused by r38558.
Tue Dec 28 01:13:48 2012 James Edward Gray II <[email protected]>
* lib/csv.rb: Added more Hash methods to CSV::Row.
Thu Dec 27 23:27:15 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/ruby-lex.rb: make lex_state to EXPR_END when next token
is an operator after SYMBEG [Bug #6378].
Thu Dec 27 21:30:21 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/ruby-lex.rb: allow to handle recursive heredocs on
irb[Bug #5648].
Thu Dec 27 20:45:29 2012 Masaki Matsushita <[email protected]>
* ext/stringio/stringio.c (strio_getline): fix not to raise TypeError
when limit is nil.
[Bug #7232] [ruby-core:48531]
* test/stringio/test_stringio.rb: a test for above.
Thu Dec 27 21:08:23 2012 Charlie Somerville <[email protected]>
* vm_core.h (VM_DEFINECLASS_TYPE): explicit cast to enum type to avoid 64->32
shorten warning
Thu Dec 27 20:11:29 2012 Masaki Matsushita <[email protected]>
* ext/stringio/stringio.c (strio_ungetc): raise IOError instead of RuntimeError
if the string is frozen.
[Bug #7231] [ruby-core:48530]
* ext/stringio/stringio.c (strio_ungetbyte): ditto.
* test/stringio/test_stringio.rb: a test for above.
Wed Dec 26 23:55:18 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/context.rb: fix IRB::Inspector#keys_with_inspector [Bug #7598]
Wed Dec 26 23:26:15 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/context.rb: IRB::Context#use_readline= has been obsolete
[Bug #6339].
Wed Dec 26 21:32:46 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/context.rb: make a correct prompt from
IRB.conf[:IRB_NAME] on irb [Bug #6338]. Patched by sho-h.
Wed Dec 26 21:09:19 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/ext/math-mode.rb: make not able to change math-mode
after irb starting [Bug #6302]. Patched by sho-h.
Wed Dec 26 12:52:36 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/init.rb: change default debug level for
irb[ruby-dev:46805], [Bug #6301].
Wed Dec 26 11:54:11 2012 KOSAKI Motohiro <[email protected]>
* configure.in: enable -fPIE when checking -pie for fixing
OpenBSD build error. Patch by George Koehler. Thank you!
[Bug #7606] [ruby-core:51082]
Wed Dec 26 07:31:24 2012 Nobuyoshi Nakada <[email protected]>
* string.c (rb_enc_cr_str_copy_for_substr): empty string is always
valid or 7bit.
* string.c (rb_str_enumerate_lines, rb_str_chop): reduce duplicated
code.
* string.c (rb_str_enumerate_chars): prevent shared copy from GC.
Wed Dec 26 01:31:16 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/init.rb, lib/irb/context.rb: fix conf.debug_level=
[Bug #6301] and fix irb command option: -- irb_debug_level for irb.
Wed Dec 26 00:59:18 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/ruby-lex.rb: improve RubyLex performance for large files
[Bug #5202]. Patch by ryanmelt.
Tue Dec 25 22:21:06 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/output-method.rb: raise right exception when
IRB::OutputMethod#print don't defined [Bug #6657].
Tue Dec 25 22:06:33 2012 Koichi Sasada <[email protected]>
* vm_trace.c (rb_threadptr_exec_event_hooks_and_pop_frame):
pop a frame before JUMP_TAG() if exception occurred.
This change fix bug of Ruby 1.9.
[ruby-core:51128] [ruby-trunk - Bug #7624]
* vm_core.h (EXEC_EVENT_HOOK_AND_POP_FRAME): add to use
`rb_threadptr_exec_event_hooks_and_pop_frame()'.
* vm.c (vm_exec): use EXEC_EVENT_HOOK_AND_POP_FRAME() while
exception handling. While exception handling, if an exception
is raised in hooks, need to pop current frame and raise this
raised exception by hook.
* test/ruby/test_settracefunc.rb: add a test.
Tue Dec 25 21:08:53 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/init.rb, lib/irb/lc/ja/error.rb, lib/irb/lc/error.rb:
raise exception when illegal RC_NAME_GENERATOR defined [Bug #6455].
Tue Dec 25 19:22:17 2012 Keiju Ishitsuka <[email protected]>
* lib/irb/workspace.rb: define method to private on top-level irb
[Bug #5776]. Patch by davidbalbert.
Tue Dec 25 19:09:51 2012 NAKAMURA Usaku <[email protected]>
* bignum.c, include/ruby/intern.h (rb_big_eql): exported.
* thread.c (recursive_check): object_id maybe a Bignum, not Fixnum on
LLP64. see also r38493 and r38548.
reported by Heesob Park at [ruby-core:51083] [Bug #7607], and patched
by shirosaki at [ruby-core:51095]
Tue Dec 25 18:53:35 2012 Koichi Sasada <[email protected]>
* vm_core.h, eval_intern.h (CHECK_STACK_OVERFLOW): move
CHECK_STACK_OVERFLOW() to vm_core.h and rename to
CHECK_VM_STACK_OVERFLOW().
This change is only move and rename.
* tool/instruction.rb: catch up above changes.
* vm.c, vm_insnhelper.c: ditto.
* vm_insnhelper.c (vm_stackoverflow): add a function to unify
raising vm stackoverflow exception.
Tue Dec 25 16:16:54 2012 Koichi Sasada <[email protected]>
* vm_core.h (RUBY_VM_THREAD_VM_STACK_SIZE): change default
VM stack size (128 KB or 256 KB -> 512 KB or 1024 KB).
This re-sizing corrects smaller value introduced at r38478.
Newer value is same VM stack size of Ruby 1.9.
[ruby-dev:46797] [ruby-trunk - Bug #7603]
Tue Dec 25 13:38:12 2012 Nobuyoshi Nakada <[email protected]>
* error.c (compile_err_append, compile_warn_print, warn_print): use
rb_write_error_str() instead of writing to rb_stderr directly.
* io.c (rb_write_error_str): a stopgap measure not to unblock GVL.
warning from require seems to still have race condition errors.
Tue Dec 25 00:59:29 2012 Nobuyoshi Nakada <[email protected]>
* node.h (NODE_OP_CDECL), compile.c (iseq_compile_each),
parse.y (stmt, arg): allow scoped constant op-assignment.
[ruby-core:40154] [Bug #5449]
Mon Dec 24 04:56:48 2012 NARUSE, Yui <[email protected]>
* lib/net/http/generic_request.rb (Net::HTTPGenericRequest):
set content-length to zero on empty post requests
by Gregory Ostermayr <[email protected]>
https://github.com/ruby/ruby/pull/201 fix GH-201
Sun Dec 23 19:09:16 2012 Koichi Sasada <[email protected]>
* thread.c: rename methods:
from Thread.async_interrupt_timing to Thread.handle_interrupt,
from Thread.async_interrupted? to Thread.pending_interrupt?.
Also rename option from `defer' to `never'.
[ruby-core:51074] [ruby-trunk - Feature #6762]
* vm_core.c, thread.c: rename functions and data structure
`async_errinfo' to `pending_interrupt'.
* thread.c: add global variables sym_immediate, sym_on_blocking and
sym_never.
* cont.c, process.c, vm.c, signal.c: ditto.
* lib/sync.rb, lib/thread.rb: catch up this renaming.
* test/ruby/test_thread.rb: ditto.
Sun Dec 23 17:57:30 2012 Nobuyoshi Nakada <[email protected]>
* lib/profiler.rb (Profiler__::PROFILE_PROC, print_profile): store
profile data per threads for concurrent-execution.
[ruby-core:22046] [Bug #1152]
* lib/profiler.rb (Profiler__::Wrapper): support calling singleton
methods of an instance of BasicObject.
* lib/profiler.rb (Profiler__::PROFILE_PROC): use TracePoint.
Sun Dec 23 16:13:00 2012 Zachary Scott <[email protected]>
* lib/erb.rb: typos for ERB::new link
Sun Dec 23 16:06:00 2012 Zachary Scott <[email protected]>
* lib/erb.rb: Document ERB::new trim_mode '-' for lines ending in -%>
[ruby-core:51084] [Bug #7608]
Sun Dec 23 15:25:00 2012 Zachary Scott <[email protected]>
* lib/irb/ruby-lex.rb: Add handling for %i and %I quoting to irb
Patch by flori [ruby-core:49550] [Bug #7392] [Github Issue #157]
Sun Dec 23 15:05:48 2012 Nobuyoshi Nakada <[email protected]>
* vm_eval.c (rb_check_funcall_with_hook): rb_check_funcall with hook
which is called before calling method_missing or target method.
* marshal.c (w_object, r_object0): use rb_check_funcall_with_hook
instead of respond_to? and call.
Sun Dec 23 14:52:00 2012 Zachary Scott <[email protected]>
* re.c (rb_reg_eqq): doc: #=== is not a synonym for #=~, added example
[ruby-dev:46746] [Bug #7571]
Sun Dec 23 14:35:13 2012 Nobuyoshi Nakada <[email protected]>
* thread.c (BLOCKING_REGION): if fail_if_interrupted is false ignore
the result of blocking_region_begin(), since it always is true in
that case. suppress "uninitialized" warnings.
Sun Dec 23 09:34:07 2012 Eric Hodel <[email protected]>
* lib/rubygems/commands/check_command.rb: Added --doctor and --dry-run
options to clean up after failed uninstallation.
* test/rubygems/test_gem_commands_check_command.rb: Test for above.
* lib/rubygems/commands/push_command.rb: Allow pushes from RubyGems
2.0.0.preview3
* lib/rubygems/commands/update_command.rb: Use Gem.ruby_version
* lib/rubygems/dependency.rb: Update style.
* lib/rubygems/installer.rb: Ensure installed gem specifications will
be useable. Refactor.
* test/rubygems/test_gem_installer.rb: ditto.
* lib/rubygems/validator.rb: Fixed bug with unreadable files.
* lib/rubygems.rb: Fixed broken methods.
* test/rubygems/test_gem.rb: Test for above.
* test/rubygems/test_gem_commands_push_command.rb: Fixed overridden
Gem.latest_rubygems_version
Sun Dec 23 01:52:01 2012 Akinori MUSHA <[email protected]>
* io.c (rb_io_lines, rb_io_bytes, rb_io_chars, rb_io_codepoints):
Deprecate IO#{lines,bytes,chars,codepoints} and those of ARGF.
[Feature #6670]
* ext/stringio/stringio.c (strio_lines, strio_bytes, strio_chars)
(strio_codepoints): Deprecate
StringIO#{lines,bytes,chars,codepoints}. [Feature #6670]
* ext/zlib/zlib.c (rb_gzreader_lines, rb_gzreader_bytes):
Deprecate Zlib::GzipReader#{lines,bytes}. [Feature #6670]
Sat Dec 23 01:35:00 2012 Zachary Scott <[email protected]>
* lib/optparse.rb: Documentation for OptionParser to remove 'shadowed
outer local variable' from example and make obvious ARGV with
non-option arguments.
Patch by Marcus Stollsteimer [ruby-core:47460] [Bug #6997]
Sat Dec 23 00:08:00 2012 Kenta Murata <[email protected]>
* include/ruby/intern.h: add the prototype declaration of
rb_num_coerce_bit.
* numeric.c (rb_num_coerce_bit): the new coerce function for bitwise
binary operation.
* bignum.c (rb_big_and): use coerce to convert the argument, which isn't
a Fixnum nor a Bignum, to the corresponding Integer object so that
bitwise operations can support Integer-mimic objects.
[Bug #1792] [ruby-core:39491]
* bignum.c (rb_big_or): ditto.
* bignum.c (rb_big_xor): ditto.
* numeric.c (bit_coerce): ditto.
* numeric.c (fix_and): ditto.
* numeric.c (fix_or): ditto.
* numeric.c (fix_xor): ditto.
* test/ruby/test_integer.rb: add tests for the above changes.
* test/ruby/test_bignum.rb: ditto.
Sun Dec 23 00:04:54 2012 Nobuyoshi Nakada <[email protected]>
* internal.h (QUOTE, QUOTE_ID): quote unprintable chars in strings and
IDs. [Bug #7574] [ruby-dev:46749]
* string.c (rb_str_quote_unprintable): ditto.
Sat Dec 22 23:59:18 2012 Nobuyoshi Nakada <[email protected]>
* error.c (rb_compile_error, rb_compile_warn, rb_compile_warning),
(rb_warn, rb_warning): support PRIsVALUE.
Sat Dec 22 22:04:58 2012 CHIKANAGA Tomoyuki <[email protected]>
* cont.c (rb_fiber_start): unify conditions.
Sat Dec 22 21:47:55 2012 KOSAKI Motohiro <[email protected]>
* io.c (rb_io_wait_writable): use rb_thread_check_ints() instead
of rb_thread_fd_writable().
* io.c (rb_io_wait_readable): ditto.
Sat Dec 22 20:31:10 2012 Nobuyoshi Nakada <[email protected]>
* object.c (rb_mod_const_get): symbol cannot be nested constant name.
Sat Dec 22 19:26:35 2012 Nobuyoshi Nakada <[email protected]>
* object.c (rb_mod_const_get): check more strictly. [ruby-dev:46748]
[Bug #7573]
Wed Dec 19 02:34:48 2012 CHIKANAGA Tomoyuki <[email protected]>
* cont.c (rb_fiber_start): in case of jump with TAG_FATAL,
enqueue error into async_errinfo_queue, because you cannot call
TH_TAG_JUMP() in this function. [ruby-dev:45218] [Bug #5993]
* thread.c (rb_threadptr_execute_interrupts): now INT2FIX(TAG_FATAL)
can be popped from async_errinfo_queue.
* vm.c (rb_vm_make_jump_tag_but_local_jump): revert r38441.
rb_vm_make_jump_tag_but_local_jump() shouldn't return exception
in case of state == TAG_FATAL.
* test/ruby/test_fiber.rb (test_exit_in_fiber): fix a test to illuminate
Thread.exit should terminate current Thread.
Sat Dec 22 13:15:08 2012 Hiroshi Shirosaki <[email protected]>
* gc.c (obj_id_to_ref): add a macro to treat Bignum object id.
This follows the change r38493.
* gc.c (id2ref): fix for working fine with Bignum object id on x64
Windows.
* gc.c (wmap_finalize): ditto.
Sat Dec 22 11:30:21 2012 Masaki Matsushita <[email protected]>
* struct.c (make_struct): remove junk ID check to allow members who
have junk name like "foo\000".
* test/ruby/test_struct.rb: Test for above.
[Bug #7575] [ruby-dev:46750]
Sat Dec 22 05:34:54 2012 Eric Hodel <[email protected]>
* lib/net/http.rb: Requests may be created with a URI which sets the
Host header. Responses contain the requested URI for easier redirect
following. [ruby-trunk - Feature #6482]
* lib/net/http/generic_request.rb: ditto.
* lib/net/http/response.rb: ditto.
* NEWS (net/http): Updated for above.
* test/net/http/test_http.rb: Tests for above.
* test/net/http/test_http.rb: ditto.
* test/net/http/test_httpresponse.rb: ditto.
Sat Dec 22 02:35:00 2012 Zachary Scott <[email protected]>
* lib/irb/slex.rb(#match): Typo, should be D_DETAIL
[ruby-core:51071] [Bug#7600]
Sat Dec 22 02:29:00 2012 Zachary Scott <[email protected]>
* lib/irb/input-method.rb, lib/irb.rb: Typo in
InputMethod#readable_atfer_eof? to #readable_after_eof?
[ruby-core:51069] [Bug #7599]
Sat Dec 22 02:19:38 2012 KOSAKI Motohiro <[email protected]>
* vm_dump.c (rb_vm_bugreport): revert r38533.
* addr2line.c (fill_lines): add ELF sanity check.
[Bug #7597] [ruby-dev:46786]
Sat Dec 22 02:05:00 2012 Zachary Scott <[email protected]>
* lib/irb/inspector.rb, lib/irb/context.rb: Move IRB::INSPECTORS and
class methods to IRB::Inspector [ruby-core:51067][Bug #7598]
Sat Dec 22 00:28:46 2012 NAKAMURA Usaku <[email protected]>
* object.c (rb_obj_hash): shouldn't assume object_id can be long.
based on a patch by Heesob Park at [ruby-core:51060].
cf. [Backport #7454]
Fri Dec 21 23:15:25 2012 Kouhei Sutou <[email protected]>
* ext/fiddle/lib/fiddle/struct.rb (Fiddle::CStructEntity#set_ctypes):
CPtr -> Pointer.
* test/fiddle/test_c_struct_entry.rb
(Fiddle::TestCStructEntity#test_aref_pointer):
Added the test for the above.
Fri Dec 21 23:12:05 2012 Kouhei Sutou <[email protected]>
* ext/fiddle/lib/fiddle/struct.rb (Fiddle::CStructEntity#set_ctypes):
CPtr -> Pointer.
* test/fiddle/test_c_struct_entry.rb
(Fiddle::TestCStructEntity#test_aref_pointer_array):
Added the test for the above.
Fri Dec 21 22:43:36 2012 Kouhei Sutou <[email protected]>
* ext/fiddle/lib/fiddle/import.rb (Fiddle::Importer#sizeof):
CPtr -> Pointer.
* test/fiddle/test_import.rb (Fiddle::TestImport#test_sizeof):
Added the test for the above.
Fri Dec 21 22:34:17 2012 Koichi Sasada <[email protected]>
* test/ruby/test_iseq.rb: disable a test which checks features
removed at r38532.
Fri Dec 21 22:02:00 2012 NAKAMURA Usaku <[email protected]>
* win32/{dir.h,win32.c} (rb_w32_readdir): removed old rb_w32_readdir()
and renamed from rb_w32_readdir_with_enc().
[ruby-core:24864] [Feature #1927]
* dir.c (READDIR): follow above change.
Fri Dec 21 21:12:54 2012 Masaya Tarui <[email protected]>
* vm_dump.c (rb_vm_bugreport): commentout addr2line call temporarily
in order to avoid segv. anyone can fix addr2line?
[Bug #7597] [ruby-dev:46786]
Fri Dec 21 20:38:28 2012 Koichi Sasada <[email protected]>
* iseq.c (Init_ISeq): remove definition of the following methods:
ISeq#line_trace_all and ISeq#line_trace_specify because they are
half baked.
C APIs are remained as experimental. These functions will be
renamed, removed their parameters may be changed.
You can use these methods by C exts. Please give us your comments.
Fri Dec 21 20:21:04 2012 Koichi Sasada <[email protected]>
* vm_trace.c (tracepoint_new): add code to support specified thread.
But not tested and this feature is not supported officially.
Fri Dec 21 19:37:15 2012 Koichi Sasada <[email protected]>
* ruby.c (process_options): need to acquire env from TOPLEVEL_BINDING
each time.
`bind->env' may update after `eval()'.
[Bug #7536]
Fri Dec 21 18:46:50 2012 Koichi Sasada <[email protected]>
* include/ruby/debug.h, vm_core.h: define rb_trace_arg_t at
include/ruby/debug.h (move from vm_core.h).
Fri Dec 21 17:48:15 2012 Koichi Sasada <[email protected]>
* vm_core.h, vm_trace.c: fix multi-threading bug for tracing.
Move `trace_arg' from rb_tp_t::trace_arg to rb_thread_t::trace_arg.
`trace_arg' may changed by multiple threads.
rb_thread_t::trace_arg can represent rb_thread_t::trace_running
(null or non-null) and rb_thread_t::trace_running is removed.
After that, `rb_tp_t' is not needed to check tracing or not
(A running thread knows tracing or not). This is why I remove
tp_attr_check_active() and make new function get_trace_arg().
And this modification disable to work the following code:
TracePoint.trace{|tp|
Thread.new{p tp.event} # access `tp' from other threads.
}
I believe nobody mix threads at trace procedure.
This is current limitation.
[Bug #7590]
* cont.c (fiber_switch, rb_cont_call): use rb_thread_t::trace_arg
instead of rb_thread_t::trace_running.
* test/ruby/test_settracefunc.rb: add a multi-threading test.
Fri Dec 21 16:38:08 2012 Nobuyoshi Nakada <[email protected]>
* template/id.h.tmpl (ID2ATTRSET): compile time constant macro for
ID_ATTRSET.
* defs/id.def (KeywordError): check duplication.
* defs/id.def: support for other scope IDs,
ID_{INSTANCE,GLOBAL,CONST,CLASS}.
Fri Dec 21 14:45:00 2012 Zachary Scott <[email protected]>
* lib/irb.rb, lib/irb/*: Documentation for IRB
Fri Dec 21 11:31:02 2012 Eric Hodel <[email protected]>
* lib/rake/*: Updated to rake 0.9.6
* doc/rake/*: ditto
* test/rake/*: ditto
Fri Dec 21 08:56:34 2012 Masaya Tarui <[email protected]>
* vm_trace.c (rb_suppress_tracing): remove unused variable 'vm_tracing'
Fri Dec 21 01:01:45 2012 Masaya Tarui <[email protected]>
* lib/irb/completion.rb (CompletionProc): support completion of
instance variables. [ruby-dev:46710] [Bug #7520]
Thu Dec 20 20:58:25 2012 Masaya Tarui <[email protected]>
* vm_trace.c (rb_suppress_tracing): bugfix for vm->trace_running
counter. And if tracing is already true, vm_trace_running ops is
skipped to control overflow.
Thu Dec 20 18:29:54 2012 Nobuyoshi Nakada <[email protected]>
* include/ruby/ruby.h (RTEST, NIL_P): make bare expressions without
outermost parentheses.
Thu Dec 20 17:29:00 2012 Shugo Maeda <[email protected]>
* NEWS: fix the description for Refinements.
Thu Dec 20 16:53:59 2012 Shugo Maeda <[email protected]>
* vm_core.h (rb_vm_defineclass_type_t),
compile.c (iseq_compile_each), insns.def (defineclass): change the
meaning of the third operand of defineclass as follows:
lower 3bits: the type of the defineclass
0 = class, 1 = singleton class, 2 = module
4th bit: a flag represents whether the defineclass is scoped
0 = not scoped (e.g., class Foo)
1 = scoped (e.g., class Bar::Baz)
5th bit: a flag represents whether the superclass is specified
0 = not specified (e.g., class Foo)
1 = specified (e.g., class Bar < Foo)
If the superclass is specified and is not a class, a TypeError
should be raised. [ruby-dev:46747] [Bug #7572]
* test/ruby/test_class.rb: related test.
Thu Dec 20 16:52:37 2012 Martin Bosslet <[email protected]>
* NEWS: announce AEAD encryption support in the OpenSSL extension.
Thu Dec 20 16:40:13 2012 NAKAMURA Usaku <[email protected]>
* gc.c (nonspecial_obj_id): VALUE is not compatible with Fixnum on
LLP64 platform, such as 64bit Windows.
reported by Heesob Park at [ruby-core:50255] [Bug #7454], and the
fix is suggested by akr.
Thu Dec 20 16:39:04 2012 Martin Bosslet <[email protected]>
* ext/openssl/ossl_cipher.c: fix errors for installations that do not
feature Authenticated Encryption.
* ext/openssl/extconf.rb: detect presence of EVP_CTRL_GCM_GET_TAG to
determine whether Authenticated Encryption can be used.
[Feature #6980] [ruby-core:47426]
Thu Dec 20 15:55:46 2012 Martin Bosslet <[email protected]>
* ext/openssl/ossl.c: do not use FIPS_mode_set if not available.
* test/openssl/utils.rb: revise comment about setting FIPS mode to
false.
* test/openssl/test_fips.rb: remove tests that cause errors on
ruby-ci.
[Feature #6946] [ruby-core:47345]
Thu Dec 20 15:22:59 2012 Eric Hodel <[email protected]>
* lib/rdoc/parser/ruby.rb: Ignore methods defined on constants to
prevent modules with the names of constants from appearing in the
documentation.
* test/rdoc/test_rdoc_parser_ruby.rb: Test for the above.
Thu Dec 20 15:00:33 2012 Martin Bosslet <[email protected]>
* ext/openssl/ossl_cipher.c: add support for Authenticated Encryption
with Associated Data (AEAD) for OpenSSL versions that support the
GCM encryption mode. It's the only mode supported for now by OpenSSL
itself. Add Cipher#authenticated? to detect whether a chosen mode
does support Authenticated Encryption.
* test/openssl/test_cipher.rb: add tests for Authenticated Encryption.
[Feature #6980] [ruby-core:47426] Thank you, Stephen Touset for
providing a patch!
Thu Dec 20 12:56:53 2012 Eric Hodel <[email protected]>
* lib/rdoc/markup/to_html.rb (class RDoc): Added current heading and
top links to headings.
* lib/rdoc/generator/template/darkfish/rdoc.css: ditto
* test/rdoc/test_rdoc_generator_markup.rb: Test for above
* test/rdoc/test_rdoc_markup_to_html.rb: ditto
* test/rdoc/test_rdoc_comment.rb: Removed trailing whitespace.
Thu Dec 20 11:05:26 2012 Nobuyoshi Nakada <[email protected]>
* test/ruby/envutil.rb (assert_valid_syntax): move from
test_syntax.rb.
* test/ruby/envutil.rb (assert_normal_exit): validate syntax before
running because this assertion passes even if the code fails by
SyntaxError.
Thu Dec 20 10:29:58 2012 Martin Bosslet <[email protected]>
* test/openssl/test_pkey_dh.rb: revert special treatment of
FIPS-capable installations since FIPS mode is now disabled for the
tests.
Thu Dec 20 10:23:12 2012 Martin Bosslet <[email protected]>
* ext/openssl/ossl.c: add OpenSSL.fips_mode= to allow enabling FIPS
mode manually.
* test/openssl/utils.rb: turn off FIPS mode for tests. This prevents
OpenSSL installations with FIPS mode enabled by default from raising
FIPS-related errors during the tests.
* test/openssl/test_fips.rb: add tests for FIPS-capable OpenSSL
installations.
[Feature #6946] [ruby-core:47345]
Thu Dec 20 06:59:52 2012 Koichi Sasada <[email protected]>
* vm.c: support variable VM/Machine stack sizes.
Specified by the following environment variables:
- RUBY_THREAD_VM_STACK_SIZE: vm stack size used at thread creation.
default: 128KB (32bit CPU) or 256KB (64bit CPU).
- RUBY_THREAD_MACHINE_STACK_SIZE: machine stack size used at thread
creation. default: 512KB or 1024KB.
- RUBY_FIBER_VM_STACK_SIZE: vm stack size used at fiber creation.
default: 64KB or 128KB.
- RUBY_FIBER_MACHINE_STACK_SIZE: machine stack size used at fiber
creation. default: 256KB or 256KB.
This values are specified at launched timing. You can not change
these values at running time.
Environ variables are only *hints* because:
- They are aligned to 4KB.
- They have minimum values (depend on OSs).
- Machine stack settings are ignored by some OSs.
Default values especially fiber stack sizes are increased.
This change affect Fiber's behavior:
(1) You can run more complex program on a Fiber.
(2) You can not make many (thousands) Fibers because of
lack of address space (on 32bit CPU).
If (2) bothers you,
(a) Use 64bit CPU with big memory, or
(b) Specify RUBY_FIBER_(VM|MACHINE)_STACK_SIZE correctly.
You need to choose correct stack size carefully. These values
are completely rely on systems (OS/compiler and so on).
[Feature #4614], [Bug #7212]
* vm_core.h (rb_vm_t::default_params): add to record above settings.
* vm.c (RubyVM::DEFAULT_PARAMS): add new constant to see
above setting.
* thread_pthread.c: support RUBY_THREAD_MACHINE_STACK_SIZE.
* cont.c: support RUBY_FIBER_(VM|MACHINE)_STACK_SIZE.
* test/ruby/test_fiber.rb: add tests for above.
* test/ruby/test_thread.rb: ditto.
Thu Dec 20 06:25:44 2012 Koichi Sasada <[email protected]>
* test/ruby/test_fiber.rb: remove a strange single quote character.
With this character, this script exits by SyntaxError.
Thu Dec 20 01:03:00 2012 Zachary Scott <zachary@zacharyscott>
* ext/.document: Add missing ext modules to .document