/
ChangeLog
7849 lines (4903 loc) · 267 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
Tue Mar 13 15:17:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (block_param, f_args): add rules for the case arguments
begin with kwrest. [ruby-core:42455][Bug #5989]
Tue Mar 13 12:37:53 2012 NARUSE, Yui <naruse@ruby-lang.org>
* io.c (io_encoding_set): always warn if external encoding and internal
encoding are identical. [ruby-core:40727] [Bug #5568]
Tue Mar 13 12:37:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
Bug #5350
* gc.c: add ObjectSpace::WeakMap. [ruby-dev:44565][Bug #5350]
* lib/weakref.rb: use WeakMap instead of _id2ref.
Tue Mar 13 10:59:48 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/rbinstall.rb (prepare): skip if basedir is not defined.
[ruby-core:39135][Bug #5238]
* tool/rbinstall.rb (CONFIG.[]): check for mandatory
configurations.
Tue Mar 13 00:09:18 2012 Shugo Maeda <shugo@ruby-lang.org>
* enumerator.c (enumerable_lazy): added documentation.
Mon Mar 12 20:19:25 2012 Tanaka Akira <akr@fsij.org>
* lib/tmpdir.rb (Dir::tmpdir): test the current directory suitable for
temporary directory.
Mon Mar 12 20:08:16 2012 Tanaka Akira <akr@fsij.org>
* lib/fileutils.rb (fu_have_symlink?): specify TypeError for rescue
clause.
Mon Mar 12 19:23:13 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* encoding.c (rb_find_encoding): new function find encoding from
arbitrary object as a pointer to rb_encoding, and return NULL if
not found.
* io.c (io_encoding_set): just warn unsupported encodings, but not
exception. [ruby-core:40726] [Bug #5567]
Mon Mar 12 19:03:32 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_method.c (Init_eval_method): respond_to? and
respond_to_missing? are public.
Mon Mar 12 14:56:52 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* node.h (NEW_YIELD), parse.y (new_yield_gen): array-values flags
has been already obsolete. patch by Thomas Enebo.
[ruby-core:41929][Bug #5847]
Mon Mar 12 12:44:33 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_method.c (Init_eval_method): copy basic methods to Exception.
[ruby-core:40287][Bug #5473]
Mon Mar 12 10:13:36 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval_jump.c (rb_exec_end_proc): remember the latest exit status.
[ruby-core:43173][Bug #5218]
Mon Mar 12 07:33:12 2012 Tanaka Akira <akr@fsij.org>
* lib/tmpdir.rb: update document for changing
FileUtils.remove_entry_secure to FileUtils.remove_entry.
* NEWS: add incompatiblity note for lib/tmpdir.rb.
Mon Mar 12 07:19:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/tmpdir.rb (Dir.tmpdir): should not use world-writable but
non-sticky directory.
* lib/tmpdir.rb (Dir.mktmpdir): check the parent directory.
Mon Mar 12 07:04:11 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* random.c (Init_Random): removed rb_Random_DEFAULT and register as
mark-object instead of global variable.
Mon Mar 12 07:03:32 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* random.c (random_s_rand): ensure default PRNG is re-initialized
after fork. patched by Eric Wong. [ruby-core:41209][Bug #5661]
Sun Mar 11 23:57:29 2012 NARUSE, Yui <naruse@ruby-lang.org>
* pack.c (pack_unpack): when unpack('M') occurs an illegal byte
sequence, output the "=" character and the following character in
the decoded data without any transformation.
[ruby-dev:44875] [Bug #5635]
Sun Mar 11 22:32:43 2012 NARUSE, Yui <naruse@ruby-lang.org>
* ext/json: Merge 164a75c8bd2007d32c4d7665d53140d8fc126dcd.
[ruby-core:41917] [Bug #5846]
Sun Mar 11 17:10:04 2012 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb: Put error message into STDERR if failed to launch
worker (job) process. [ruby-dev:44802] [Bug #5577]
* lib/test/unit/parallel.rb: If failed to increment_io, exit with code
2. [ruby-dev:44802] [Bug #5577]
Sun Mar 11 15:46:45 2012 Shota Fukumori <sorah@tubusu.net>
* io.c: fix rdoc of `IO.binwrite` to show same as `IO.write` except
it opens file with mode "wb:ASCII-8BIT". [Bug #5782] [ruby-core:42592]
Sat Mar 10 23:52:28 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* st.c: pack tables also generic keys. patched by Sokolov Yura at
https://github.com/ruby/ruby/pull/84
* st.c: add st_foreach_check for fixing iteration over packed table
and st_delete_safe. patched by Sokolov Yura at
https://github.com/ruby/ruby/pull/84
* st.c: fix packed num_entries on delete_safe. patched by Sokolov
Yura at https://github.com/ruby/ruby/pull/84
Fri Mar 9 14:29:32 2012 Shugo Maeda <shugo@ruby-lang.org>
* enumerator.c (lazy_flat_map): add Enumerable::Lazy#flat_map.
Fri Mar 9 06:29:22 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych.rb (load, parse): stop parsing or loading after
the first document has been parsed.
* test/psych/test_stream.rb: pertinent tests.
Fri Mar 9 06:17:05 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych.rb (parse_stream, load_stream): if a block is
given, documents will be yielded to the block as they are parsed.
[ruby-core:42404] [Bug #5978]
* ext/psych/lib/psych/handlers/document_stream.rb: add a handler that
yields documents as they are parsed
* test/psych/test_stream.rb: corresponding tests.
Fri Mar 9 00:35:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* enumerator.c (lazy_initialize, enumerable_lazy): no additional
arguments.
Fri Mar 9 00:30:23 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* enumerator.c: add Enumerable#lazy. based on the patch by
Innokenty Mikhailov at <https://github.com/ruby/ruby/pull/101>
[ruby-core:37164] [Feature #4890]
Fri Mar 9 00:25:59 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* enumerator.c (enumerator_each, generator_each): pass arguments to
the block with yielder.
Fri Mar 9 00:25:02 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (rb_ary_cat): new function to concat objects into array.
Thu Mar 8 16:44:02 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* .gdbinit (rb_numtable_entry): update for recent refactoring of
st_table.
Wed Mar 7 22:41:50 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* lib/xmlrpc/client.rb (module XMLRPC): fix typo.
* test/xmlrpc/test_client.rb (test_async_call): add test for
XMLRPC::Client#call_async to check above fix.
Wed Mar 7 16:30:24 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (rb_load_fail): should honor encoding.
* load.c (load_failed): ditto.
Wed Mar 7 12:26:25 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (rb_load_fail): use path as a string, not char*.
* internal.h: (rb_load_fail): moved from ruby/intern.h.
* ruby.c (load_file_internal): fname cannot be NULL.
Wed Mar 7 08:32:43 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* error.c (rb_loaderror_with_path): Adding the missing file as an
instance variable to the LoadError exception.
[ruby-core:39079]
* load.c: call rb_loaderror_with_path so that the missing path is
added to the exception.
* ruby.c: call rb_loaderror rather than raising our own LoadError
exception.
* include/ruby/intern.h: add declaration for rb_loaderror_with_path.
* test/ruby/test_require.rb: add supporting test for LoadError#path
method.
Wed Mar 7 08:28:00 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/xmlrpc/parser.rb: support i8 types. Thanks Stas Kelvich!
[ruby-core:29246] [Feature #3090]
* test/xmlrpc/test_client.rb: supporting test
Wed Mar 7 07:43:29 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/xmlrpc/client.rb: assume servers that do not send a Content-Type
header are sending 'text/xml'. Thanks Nathan Leavitt!
[ruby-core:41204] [Bug #5660]
* test/xmlrpc/test_client.rb: supporting test
Wed Mar 7 07:39:28 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* test/xmlrpc/test_client.rb: adding a test for performing an XMLRPC
call.
* test/xmlrpc/data/blog.xml: supporting XML document for the response.
Tue Mar 6 16:24:01 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_tokadd_string): escape simple regexp meta
character terminators.
Tue Mar 6 10:11:43 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/io/console/console.c (set_rawmode): clear ECHOE and ECHOK
bits too.
* ext/io/console/console.c (echo_p): ignore ECHOE and ECHOK bits.
[ruby-dev:45309] [Bug #6116]
* ext/io/console/console.c (console_raw): fix rdoc.
* ext/io/console/console.c (console_set_echo): mentioned about
platform dependency.
Tue Mar 6 07:18:10 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/xmlrpc/client.rb: switch net/http post2 calls to modern
`request_post` methods.
Tue Mar 6 02:31:20 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/core_ext.rb: only extend Kernel if IRB is loaded
in order to stop method pollution.
Tue Mar 6 01:34:19 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (block_call): rules for block_call after block_call.
based on a patch by pasberth https://github.com/ruby/ruby/pull/102
[ruby-dev:45308][Bug #6115]
Tue Mar 6 01:24:13 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (block_command, block_call): simplified rules.
Mon Mar 5 18:28:35 2012 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/ruby/test_regexp.rb (TestRegexp#test_source): fix typo.
* test/ruby/test_regexp.rb (TestRegexp#test_equal): ditto.
Mon Mar 5 17:11:44 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/syck/lib/syck/rubytypes.rb (Exception.yaml_new): fix bug
that causes YAML serialization problem for Exception.
Exception#initialize doesn't use visible instance variable for
the exception message, so call the method with the message.
patched by Jingwen Owen Ou <jingweno AT gmail.com>.
http://github.com/ruby/ruby/pull/41
Mon Mar 5 16:50:22 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_sleep.rb (TestSleep#test_sleep_5sec): syntax error.
* test/ruby/test_sleep.rb (TestSleep#test_sleep_5sec): call uname
only on linux because it's a workaround for linux only.
Mon Mar 5 12:44:12 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* st.c (unpack_entries): chain entries directly. based on a patch
by Sokolov Yura <funny.falcon AT gmail.com>.
* st.c (unpack_entries): use union instead of casted pointer.
patched by Sokolov Yura <funny.falcon AT gmail.com>.
* st.c: use PACKED_ENT and FIND_ENTRY. patched by Sokolov
Yura <funny.falcon AT gmail.com>.
* st.c (unpack_entries): reallocate bins if packed array size
is not same as initial bins size. based on a patch by
Sokolov Yura <funny.falcon AT gmail.com>.
Mon Mar 5 11:51:48 2012 NARUSE, Yui <naruse@ruby-lang.org>
* ext/bigdecimal/lib/bigdecimal/math.rb: remove description about
BigMath#log. patched by Sho Hashimoto [ruby-dev:45307] [Bug #6112]
* string.c (str_byteslice): fix typo.
Sun Mar 4 23:21:10 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_tokadd_string): regexp engine doesn't need
terminators to be escaped. [ruby-core:40364][Bug #5484]
Sat Mar 3 22:51:46 2012 Tanaka Akira <akr@fsij.org>
* process.c (rb_run_exec_options_err): chdir at last to interpret
relative pathnames from the current directory of the parent process.
Sat Mar 3 12:20:44 2012 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_strftime.c: reassigned some variables.
Sat Mar 3 12:12:16 2012 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_{parse,strptime}.c: [ruby-dev:45303].
Sat Mar 3 10:09:21 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/xmlrpc/client.rb (initialize): net/http defaults to 1_2 in 1.8+,
so we can safely remove the call to enable it.
Sat Mar 3 08:42:25 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/xmlrpc/client.rb (new2): use URI for uri parsing.
* test/xmlrpc/test_client.rb: test that query params are passed to the
client constructor.
Sat Mar 3 08:20:10 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/xmlrpc/client.rb (new2): raises an ArgumentError on bad
arguments.
* test/xmlrpc/test_client.rb: tests for bad uris
Sat Mar 3 08:08:11 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/xmlrpc/client.rb (new2): fix custom port specification when an
SSL uri is used.
* test/xmlrpc/test_client.rb: tests for XMLRPC::Client.new2
Sat Mar 3 08:03:29 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/syck/rubyext.c (mktime_do): use ISDIGIT().
[ruby-core:43060] [Bug #6108]
* ext/syck/token.c (sycklex_yaml_utf8): cast as unsigned char.
[ruby-core:43060] [Bug #6108]
Sat Mar 3 06:57:14 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (ruby_pc): make configurable. [Bug #6051]
Fri Mar 2 17:49:03 2012 Hiroshi Nakamura <nahi@ruby-lang.org>
* .travis.yml (branches): Enable TravisCI for ruby_1_9_3.
Fri Mar 2 17:13:33 2012 Hiroshi Nakamura <nahi@ruby-lang.org>
* test/ruby/test_array.rb (test_combination2): Make the test case for
[ruby-core:29240] more descriptive.
cf. http://bugs.jruby.org/6518
Fri Mar 2 16:37:11 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (file_expand_path): use wcscasecmp().
Fri Mar 2 16:36:31 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread_pthread.c (native_cond_timeout): cast explicitly to suppress
a warning.
Fri Mar 2 16:35:56 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (pipe_open): cmd is no longer used if fork is available.
Thu Mar 1 16:13:18 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* internal.h (rb_file_const, rb_file_load_ok): moved functions for
internal use only.
Thu Mar 1 15:40:05 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/makedirs.bat: new command to make intermediate
directories, and not to report any errors if the directory
already exists.
* win32/Makefile.sub (MAKEDIRS): enable command extensions.
Thu Mar 1 01:25:43 2012 NARUSE, Yui <naruse@ruby-lang.org>
* regparse.c (is_onechar_cclass): optimize character class
Merge Onigmo 27278c12e6674043cc8affca6507e20e119a86ee.
* regparse.c (is_onechar_cclass): [bug] unexpected match occurs when a
char class contains no char
* enc/unicode.c (init_case_fold_table): define the sizes of case
folding tables in casefold.h
Wed Feb 29 16:11:34 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/Makefile.sub (MAKEDIRS): use mkdir of cmd.exe instead of ruby.
[Bug #6103] [ruby-core:43012]
* win32/README.win32: added a notice about command extension of cmd.exe.
Wed Feb 29 15:39:39 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_io.rb (TestIO#test_readpartial_locktmp): skip on
windows because of the platform restriction.
Wed Feb 29 15:38:50 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/memory_status.rb (Memory): syntax error.
Wed Feb 29 13:06:42 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/memory_status.rb: use /proc/self/status if it is in
the expected format.
Wed Feb 29 06:14:51 2012 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: reverted r34825.
Tue Feb 28 23:20:01 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
* Makefile.in (PLATFORM_DIR): add a variable for `win32` directory.
* Makefile.in (clean-platform): add new target.
It cleans `win32` directory.
* common.mk (clean): add a dependency for `win32` directory.
* common.mk (distclean): ditto.
* common.mk (distclean-platform): add new target.
It cleans `win32` directory.
* common.mk ($(PLATFORM_D)): add new target to make `win32` directory.
* common.mk (win32/win32.$(OBJEXT)): move win32.o into `win32`
directory.
* common.mk (win32/file.$(OBJEXT)): add new target for win32/file.c.
* configure.in: move win32.o into `win32` directory and add
win32/file.o to MISSING.
* file.c (file_load_ok, rb_file_load_ok): replace static
file_load_ok() with public rb_file_load_ok().
It's to link Windows implementation in win32/file.c.
* file.c (rb_find_file_ext_safe): ditto.
* file.c (rb_find_file_safe): ditto.
* win32/file.c (rb_file_load_ok): new file. Add Windows specific
optimized implementation of rb_file_load_ok(). We created a
separated file to avoid too many #ifdef macro which is unreadable.
* win32/Makefile.sub (PLATFORM_DIR): add a variable for `win32`
directory.
* win32/Makefile.sub (MISSING): move win32.obj into `win32`
directory and add win32/file.obj to MISSING.
* win32/Makefile.sub (MAKEDIRS): replace MINIRUBY with BASERUBY.
It's because miniruby doesn't exist when making `win32` directory.
* win32/Makefile.sub (clean-platform): add new target to clean `win32`
directory.
* win32/Makefile.sub ({$(srcdir)}.c{}.obj): make it not match
win32/file.c to build properly.
* win32/Makefile.sub (win32/win32.$(OBJEXT)): move win32.obj into
`win32` directory.
Patch created with Luis Lavena.
[ruby-core:42480] [Feature #5999]
Tue Feb 28 20:27:25 2012 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: [ruby-core:42998]
Tue Feb 28 18:47:44 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (io_binwrite, rb_io_syswrite): use shared frozen source
strings.
* io.c (io_fread, io_getpartial, rb_io_sysread): set buffer size
after check if readable, which can cause thread switch.
[ruby-dev:45297][Bug #6099]
Tue Feb 28 17:16:01 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/time.rb (Time#xmlschema): use strftime specifiers instead of
fractional exponential calculation which yields undesirable
result. [ruby-core:42997][Bug #6100]
Tue Feb 28 14:15:29 2012 Eric Hodel <drbrain@segment7.net>
* lib/net/protocol.rb: Add OpenTimeout subclass of Timeout::Error
* lib/net/pop.rb: Modernize Timeout usage. Patch by Eric Wong.
Use Net::OpenTimeout instead of Timeout::Error. [Bug #5765]
* lib/net/http.rb: ditto
* lib/net/smtp.rb: ditto
* lib/net/telnet.rb: ditto
Tue Feb 28 13:51:12 2012 Eric Hodel <drbrain@segment7.net>
* lib/net/http.rb: Retry HTTP requests for additional network errors.
Introduce OpenTimeout subclass of Timeout::Error. [Bug #6001]
* test/net/http/test_http.rb: Reduce timeout to 0.01s for faster test
* test/net/http/test_https.rb: ditto
Tue Feb 28 11:44:49 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (debugflags): check if -ggdb is accepted.
[ruby-core:42875][Bug #6080]
Tue Feb 28 10:28:51 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych.rb: default open YAML files with utf8 external
encoding. [ruby-core:42967]
* test/psych/test_tainted.rb: ditto
Mon Feb 27 23:46:09 2012 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (opt_bv_decl): allow newline at the end. [ruby-dev:45292]
Mon Feb 27 20:43:05 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* io.c (rb_io_set_pos): add rdoc about textmode.
* test/ruby/test_io.rb (TestIO#test_setpos): use binmode.
Mon Feb 27 17:00:15 2012 Akinori MUSHA <knu@iDaemons.org>
* string.c (rb_str_crypt): Update rdoc and state that this
function is system dependent. Reviewed by nobu, thanks to
@takai.
Mon Feb 27 17:03:20 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): since methods
can be overridden, so should not make an assumption on the type
of results. [ruby-core:42969][Bug #6093]
Mon Feb 27 10:54:20 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (try_cppflags, try_cflags, try_ldflags): replace the
target flags if the given flag is accepted.
Mon Feb 27 10:53:44 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/rubygems/test_gem_specification.rb (test_self_from_yaml_syck_default_key_bug):
ignore the test for too old versions.
Mon Feb 27 10:53:12 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::Runner#puke): skips with no
messages should be trivial.
Mon Feb 27 10:50:23 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c, process.c, time.c, ext: use rb_sys_fail_str instead of
rb_sys_fail.
Mon Feb 27 10:48:49 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/openssl/extconf.rb: suppress useless deprecation warnings
from OpenSSL added by Apple.
Sun Feb 26 23:29:49 2012 NARUSE, Yui <naruse@ruby-lang.org>
* regparse.c (add_code_range_to_buf0): wrong condition of duplicated
warnings.
Sun Feb 26 11:26:44 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (iseq_compile_each): call on special object instead of
self. since stabby lambda is a syntax, so it should not be
affected by the context. [ruby-core:42349][Bug #5966]
* insns.def (send): no special deal for FCALL. self should be put
on TOS instead.
Sun Feb 26 05:35:43 2012 NARUSE, Yui <naruse@ruby-lang.org>
* error.c (report_bug): use buf and snprintf to avoid consuming stack.
[ruby-dev:45272] [Bug #6058]
Sat Feb 25 17:41:19 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb (headers): try ambiguous headers at last.
Sat Feb 25 17:07:15 2012 NARUSE, Yui <naruse@ruby-lang.org>
* lib/fileutils.rb: use chomp(?/) instead of sub to optimize and avoid
to regexping invalid string.
Sat Feb 25 16:18:24 2012 NARUSE, Yui <naruse@ruby-lang.org>
* complex.c (nucomp_marshal_load): raise error on invalid data.
reported by John Firebaugh [ruby-core:42860] [Bug #6076]
Sat Feb 25 14:46:54 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/dl/dl.c (Init_dl): support intrinsic types, size_t, ptrdiff_t
and intptr_t. [ruby-core:42460][Feature #5992]
* ext/fiddle/fiddle.c (Init_fiddle): ditto.
* ext/dl/lib/dl/cparser.rb (DL::CParser#parse_ctype): ditto.
Sat Feb 25 11:08:28 2012 Tanaka Akira <akr@fsij.org>
* ext/curses/curses.c (Init_curses): use rb_define_const once for
Curses::VERSION.
* ext/dbm/dbm.c (Init_dbm): ditto for DBM::VERSION.
Sat Feb 25 10:34:22 2012 Tanaka Akira <akr@fsij.org>
* ext/curses/curses.c (Init_curses): make Curses::VERSION
understandable without context.
* ext/dbm/dbm.c (Init_dbm): ditto for DBM::VERSION.
Sat Feb 25 07:53:58 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_tokadd_string): insert a backslash only if
quoted by single quotes. [ruby-dev:45281] [Bug #6069]
Sat Feb 25 07:53:49 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (dir_inspect), io.c (rb_io_inspect): keep encoding of path.
[Bug #6072]
Sat Feb 25 07:53:40 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (dir_initialize): keep path in original encoding.
* error.c (syserr_initialize): prefer the encoding of message over
locale. [ruby-dev:45279][Bug #6071]
Sat Feb 25 06:55:29 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (utime_internal): fix a variable missed to replace.
[ruby-core:42864] [Bug #6077]
Fri Feb 24 18:21:55 2012 Hiroshi Nakamura <nahi@ruby-lang.org>
* test/zlib/test_zlib.rb (TestZlibGzipReader#test_encoding): Add
encoding testcases for GzipReader#read. read() emits
Encoding.default_external in contrast to read(size) emits BINARY.
See also: http://bugs.jruby.org/6208
Fri Feb 24 17:56:39 2012 URABE Shyouhei <shyouhei@ruby-lang.org>
* test/ruby/test_literal.rb (TestRubyLiteral#test_special_const):
test for https://bugs.php.net/bug.php?id=61095
Fri Feb 24 16:48:29 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c, file.c, io.c (rb_sys_fail_path): use rb_sys_fail_str.
* error.c: new functions to deal exceptions with string instances.
* dir.c, file.c, io.c: use rb_sys_fail_path.
Fri Feb 24 15:49:07 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (__builtin_unreachable): check for clang.
[ruby-core:42849]
* include/ruby/ruby.h (UNREACHABLE): fallback definition.
Fri Feb 24 13:54:33 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/parser.c: prevent a memory leak by protecting calls to
handler callbacks.
* test/psych/test_parser.rb: test to demonstrate leak.
Fri Feb 24 12:07:34 2012 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
* lib/net/http.rb: Fix documentation. Patched from Florian Mhun
via http://github.com/ruby/ruby/pull/96
Fri Feb 24 11:48:07 2012 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
* string.c (rb_str_prepend): Fix documentation for String#prepend.
Patched from Franck Verrot via http://github.com/ruby/ruby/pull/98
and Andrew Horsman via http://github.com/ruby/ruby/pull/55
Fri Feb 24 10:08:33 2012 Eric Hodel <drbrain@segment7.net>
* lib/net/http.rb (Net::HTTP#transport_request): Fix infinite loop
upon EOFError or Errno::ECONNRESET where count is reset to 0.
* test/net/http/test_http.rb (class TestNetHTTPKeepAlive): Test for
above.
Fri Feb 24 09:05:40 2012 Eric Hodel <drbrain@segment7.net>
* complex.c (Init_Complex): Document Complex::I. Patch by Sylvain
Daubert. [Feature #5623]
Fri Feb 24 08:52:09 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_tokadd_string, parser_yylex): insert a backslash
if the next character is non-ascii. [ruby-dev:45278] [Bug #6069]
Fri Feb 24 08:13:20 2012 Eric Hodel <drbrain@segment7.net>
* lib/profiler.rb: Add Profiler documentation by Gonzalo Rodriguez.
[Bug #5816]
Fri Feb 24 08:08:38 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/parser.c: set parser encoding based on the YAML input
rather than user configuration.
* test/psych/test_encoding.rb: corresponding tests.
* test/psych/test_parser.rb: ditto
* test/psych/test_tainted.rb: ditto
Fri Feb 24 08:02:52 2012 Eric Hodel <drbrain@segment7.net>
* hash.c (Init_Hash): Add section on how objects are used as Hash keys
and how to use custom classes as Hash keys.
Fri Feb 24 07:36:11 2012 Eric Hodel <drbrain@segment7.net>
* object.c (rb_obj_eql): Improve equality documentation by adding an
example of equal? vs == and recommending eql? be aliased to == when
overridden.
Fri Feb 24 07:21:15 2012 Eric Hodel <drbrain@segment7.net>
* object.c (rb_obj_hash): Added note that the hash value is not
deterministic on Marc-Andre's suggestion. Expanded description of
the purpose of the hash method. [Bug #6068]
Thu Feb 23 23:01:21 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb: unused macro removed.
Thu Feb 23 22:26:53 2012 Tanaka Akira <akr@fsij.org>
* test/test_curses.rb: new file.
Thu Feb 23 19:57:56 2012 Tanaka Akira <akr@fsij.org>
* ext/curses/rain.rb: trap SIGHUP, SIGINT, SIGQUIT and SIGTERM only.
Thu Feb 23 19:56:48 2012 Tanaka Akira <akr@fsij.org>
* signal.c (sig_trap): show signal name on error.
Thu Feb 23 12:21:48 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb: use DBM_SUFFIX only to detect header of
Berkeley DB.
Thu Feb 23 10:00:18 2012 Eric Hodel <drbrain@segment7.net>
* io.c (rb_io_f_sync): Fix double-negative typo. [ruby-trunk - #5837]
Thu Feb 23 09:57:21 2012 Eric Hodel <drbrain@segment7.net>
* load.c (rb_f_require): Add note to require for scope of items in the
loaded file. [ruby-trunk - #5910]
Thu Feb 23 03:58:08 2012 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/ostruct.rb (delete_field): Bug fix so previous value is
returned. Patch by Nick Recobra [Bug #6063]
Thu Feb 23 02:33:00 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_extract_modeenc): fail only if conflicting
text/binary modes given explicitly. [ruby-dev:45268][Bug #6055]
Wed Feb 22 23:27:08 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/iconv/test_option.rb: enabled. [ruby-core:42802][Bug #6061]
Wed Feb 22 21:45:56 2012 Tanaka Akira <akr@fsij.org>
* ext/curses/curses.c: use defined() to suppress a warning.
Wed Feb 22 21:44:29 2012 Tanaka Akira <akr@fsij.org>
* ext/curses/extconf.rb: refactored.
Wed Feb 22 20:42:28 2012 Tanaka Akira <akr@fsij.org>
* ext/curses/extconf.rb: try to distinguish curses_version is a
function or variable.
* ext/curses/curses.c (Init_curses): refine Curses::VERSION.
Wed Feb 22 19:47:03 2012 Tanaka Akira <akr@fsij.org>
* ext/curses/extconf.rb: show the chosen header and library.
Wed Feb 22 19:22:31 2012 Tadayoshi Funaba <tadf@dotrb.org>
* reverted 34739 for test/date.
Wed Feb 22 19:08:55 2012 Tanaka Akira <akr@fsij.org>
* ext/curses/extconf.rb: refactored.
Wed Feb 22 18:44:41 2012 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb (setup_options): add option "--retry" as opposite
for "--no-retry"
Wed Feb 22 18:34:02 2012 Shota Fukumori <sorah@tubusu.net>
* lib/test/unit.rb (setup_options): add option "--show-skip" to
cancel "--hide-skip" (-q)
Wed Feb 22 17:36:22 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_s_foreach): argument check before making Enumerator.
[ruby-dev:31525]
Wed Feb 22 17:07:35 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_s_foreach): return enumerator including kerword
arguments. [ruby-dev:45267][Bug #6054]
Wed Feb 22 12:15:16 2012 NARUSE, Yui <naruse@ruby-lang.org>
* configure.in: allow llvm-gcc because it work fine with r34278.
Wed Feb 22 10:57:08 2012 NARUSE, Yui <naruse@ruby-lang.org>
* regparse.c (fetch_token): don't use // comment.
Wed Feb 22 10:32:11 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/mkmf/test_framework.rb: try CoreFoundation framework, than
Cocoa which is dependent on QuickTime SDK which has separated
since Xcode 4.3.
Wed Feb 22 10:18:05 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (test-all, test-ruby): more dependencies.
Wed Feb 22 06:48:55 2012 Eric Hodel <drbrain@segment7.net>
* file.c (rb_f_test): Fix formatting of Kernel#test rdoc.
Wed Feb 22 06:12:15 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb: check DBM_SUFFIX for Mac OS X.
Its ndbm.h doesn't include db.h.
Wed Feb 22 06:02:42 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/dbm.c (fdbm_initialize): disable Berkeley DB error messages.
* ext/dbm/extconf.rb: check DBC type for above.
[ruby-dev:45269]
Tue Feb 21 20:23:47 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* hash.c (rb_any_hash): treat Qundef like as other special constants.
* hash.c (hash_foreach_iter): fix signature.
Tue Feb 21 19:39:34 2012 Tanaka Akira <akr@fsij.org>
* ext/curses/curses.c (Init_curses): use curses_version() for
Curses::VERSION.
Tue Feb 21 18:21:25 2012 Narihiro Nakamura <authornari@gmail.com>
* gc.c : remove gc_clear_mark_on_sweep_slots() and use
rest_sweep() instead of it, because some dead objects might be
marked in next the mark phase by false pointers.
[ruby-core:42672]
Tue Feb 21 16:08:17 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* proc.c (rb_hash_proc): get wrapped pointer properly. [Bug #6048]
Tue Feb 21 14:41:10 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* template/ruby.pc.in: added rubylibprefix, {rubylib,vendor,site}dir
and {ruby,vendor,site}archdir. [ruby-core:42766][Feature #6052]
Tue Feb 21 09:13:25 2012 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* proc.c (method_hash, proc_hash): Fix {Unbound}Method#hash
[Bug #6048]. Isolate hash computation for proc
* internal.h: Declaration for above
* vm_method.c (rb_method_definition_hash): Computation for
hash part of a method definition
* method.h: Declaration for above
* test/ruby/test_method.rb: Test for above
Tue Feb 21 02:56:15 2012 Yukihiro Matsumoto <matz@ruby-lang.org>
* enumerator.c (enumerator_rewind): update the documentation.
fixed: #6053
Mon Feb 20 23:38:35 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* enc/depend: ignore mktable.c because it's not encoding library.
[ruby-core:42760] [Bug #6049]
Mon Feb 20 21:40:53 2012 Tanaka Akira <akr@fsij.org>
* ext/curses/extconf.rb: fold too long lines.
Mon Feb 20 21:16:48 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
* lib/fileutils.rb: revert a line modified accidentally at r34669.
This fixes mingw test errors in TestDir_M17N.
[ruby-core:42728] [Feature #4970]
Mon Feb 20 21:09:27 2012 Tanaka Akira <akr@fsij.org>
* ext/curses/curses.c (Init_curses): define Curses::VERSION.
Mon Feb 20 21:08:00 2012 Tanaka Akira <akr@fsij.org>
* ext/curses/extconf.rb: restore $libs and $defs for each
header/library choice.
Mon Feb 20 19:57:26 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb: weaken header/library consistency check if db is
"ndbm". It seems several (possibly historical) distributions
provide libndbm. However the content of libndbm vary: Berkeley DB,
GDBM or even 4.3BSD NDBM. (Mandriva, Tru64 UNIX, OpenSuSE,
SCO OpenServer, ...)
"ndbm" is not searched automatically now (dblib doesn't contain it)
but configure --with-dbm-type=ndbm choose libndbm and ndbm.h.
Mon Feb 20 19:15:57 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb: refine variable names.
Mon Feb 20 15:50:33 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in: check if -fstack-protector is really available.
Sun Feb 19 23:43:38 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb: show header and library found.
Sun Feb 19 23:01:01 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/dbm.c (Init_dbm): refine DBM::VERSION definition.
* ext/dbm/extconf.rb: provide RUBYDBM_GDBM_HEADER macro.
Sun Feb 19 17:07:27 2012 Tanaka Akira <akr@fsij.org>
* test/dbm/test_dbm.rb (test_dbmfile_suffix): check pag and dir is
empty for 4.3BSD ndbm.
Sun Feb 19 03:00:30 2012 Tanaka Akira <akr@fsij.org>
* test/dbm/test_dbm.rb (test_dbmfile_suffix): check magic numbers.
Sun Feb 19 01:05:41 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb: detect GDBM's ndbm.h by testing dbm_clearerr is
an empty macro.
Sun Feb 19 00:25:55 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb: don't choose 'dbm' if _GDB_H_ is defined which
is available since GDBM 1.9 because 'gdbm_compat' is appropriate
choice since GDBM 1.8.1.
Sat Feb 18 23:27:00 2012 Kenta Murata <mrkn@mrkn.jp>
* random.c: remove a duplicated comment.
Sat Feb 18 18:43:13 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb (dblib): prefer recent GDBM over older GDBM.