-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
4974 lines (3119 loc) · 169 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 Dec 11 10:37:47 2011 Nobuyoshi Nakada <[email protected]>
* object.c (rb_check_to_int): new function to convert a VALUE to
an Integer if possible, but returns nil instead of raising an
exception otherwise.
Sun Dec 11 10:34:39 2011 Nobuyoshi Nakada <[email protected]>
* process.c (rb_exit_status_code): extract from rb_f_exit_bang and
rb_f_exit. assume 0 to be success in Kernel#exit! too.
Fri Dec 9 19:24:31 2011 NARUSE, Yui <[email protected]>
* enc/trans/iso-8859-16-tbl.rb: add ISO-8859-16 converter.
* enc/trans/single_byte.trans: ditto.
Fri Dec 9 14:28:40 2011 NARUSE, Yui <[email protected]>
* file.c (file_path_convert): don't convert it when the path string is
ascii only. [ruby-core:41556] [Bug #5733]
tests are contributed by nobu.
Fri Dec 9 08:00:15 2011 Luis Lavena <[email protected]>
* include/ruby/win32.h: undef stat to silence mingw-w64 stat
redefinition warnings (GCC 4.6.3).
Thu Dec 8 23:38:24 2011 CHIKANAGA Tomoyuki <[email protected]>
* variable.c (set_const_visibility): clear inline-cache when constant's
visibility is modified. [ruby-dev:44929]
* test/ruby/test_module.rb (test_private_constants_clear_inlinecache):
add test for it.
Thu Dec 8 23:26:11 2011 NAKAMURA Usaku <[email protected]>
* ext/extmk.rb (extract_makefile): should sort after map, not before
it. in this case there is no difference, but we should write better
code. this bad smell was caught by nagachika.
Thu Dec 8 22:31:13 2011 NAKAMURA Usaku <[email protected]>
* ext/extmk.rb (extract_makefile): need to sort the array of current
srcs before comparing to the sorted old srcs.
fixed the problem that the configuring stage of exts were always
run, introduced at r33801.
Thu Dec 8 13:26:24 2011 NAKAMURA Usaku <[email protected]>
* test/rexml/test_order.rb (OrderTester#test_more_ordering): use
Zlib::GzipReader.open instead of Zlib::GzipReader.new with File.new.
fixed a test error on Windows introduced at r33946.
Thu Dec 8 13:11:26 2011 NAKAMURA Usaku <[email protected]>
* test/ruby/test_process.rb (TestProcess#test_sete[gu]id): silently
skip if not implemented such functions (such as, on Windows).
fixed test errors on Windows introduced at r33953.
Thu Dec 8 12:57:50 2011 NAKAMURA Usaku <[email protected]>
* ext/socket/extconf.rb: forgotten to define HAVE_SOCKETPAIR for
windows.
fixed test errors on Windows introduced at r33947.
Thu Dec 8 12:11:06 2011 Nobuyoshi Nakada <[email protected]>
* configure.in (RUBY_WERROR_FLAG): append all warning flags which
are enabled to compile, so that printf format modifiers properly
fail. [ruby-core:41351] [Bug #5679]
Thu Dec 8 07:20:15 2011 Eric Hodel <[email protected]>
* doc/re.rdoc: Document difference between match and =~, options with
Regexp.new and global variables. Patch by Sylvain Daubert.
[Ruby 1.9 - Bug #5709]
Thu Dec 8 06:53:10 2011 Eric Hodel <[email protected]>
* doc/re.rdoc: Fix example code to match documentation. Patch by
Jarno Lamberg. [Ruby 1.9 - Bug #5624]
Wed Dec 7 19:04:22 2011 Nobuyoshi Nakada <[email protected]>
* configure.in (rpath): fix typo in the help string. a patch from
Yuji Yamano <yyamano AT kt.rim.or.jp> in [ruby-list:48568].
Wed Dec 7 18:55:56 2011 Nobuyoshi Nakada <[email protected]>
* vm.c (vm_set_top_stack, vm_set_eval_stack): check for stack
overflow with stack_max before push new frame. [ruby-core:41520]
[Bug #5720]
* vm.c (vm_set_main_stack): no stack overflow chances after
vm_set_eval_stack().
Wed Dec 7 09:58:15 2011 Eric Hodel <[email protected]>
* ext/bigdecimal/bigdecimal.c: Document +@, -@, hash, INFINITY, Nan.
Patch by Sylvain Daubert. [Ruby 1.9 - Feature #5622]
Wed Dec 7 09:48:00 2011 Eric Hodel <[email protected]>
* io.c (Init_IO): Mention io/console methods. [Ruby 1.9 - Bug #5602]
* ext/io/console/console.c: Mention that io/console must be required
similar to lib/time.rb
Wed Dec 7 08:04:31 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych.rb (module Psych): parse and load methods take
an optional file name that is used when raising Psych::SyntaxError
exceptions
* ext/psych/lib/psych/syntax_error.rb (module Psych): allow nil file
names and handle nil file names in the exception message
* test/psych/test_exception.rb (module Psych): Tests for changes.
Tue Dec 6 18:26:33 2011 Tanaka Akira <[email protected]>
* ext/dbm/dbm.c: use db_version() instead of DB_VERSION_STRING to
detect runtime Berkeley DB version.
use dpversion instead of _QDBM_VERSION to detect runtime QDBM
version.
[ruby-dev:44948]
Tue Dec 6 12:30:41 2011 Tanaka Akira <[email protected]>
* ext/dbm/extconf.rb: detect gdbm_version in libgdbm.
* ext/dbm/dbm.c: make DBM::VERSION more informative for gdbm, qdbm and
Berkeley DB 1.x. [ruby-dev:44944]
Tue Dec 6 07:26:37 2011 Eric Hodel <[email protected]>
* range.c: Improve documentation for Range. Patch by Chris Zetter.
[Ruby 1.9 - Bug #5656]
Mon Dec 5 19:08:04 2011 Nobuyoshi Nakada <[email protected]>
* regparse.c (PFETCH_READY): separate gcc specific trick.
Mon Dec 5 19:01:59 2011 Nobuyoshi Nakada <[email protected]>
* process.c (proc_seteuid_m): fix argument.
* test/ruby/test_process.rb (test_geteuid): fix typo.
* test/ruby/test_process.rb (test_getegid, test_set[eg]uid): add.
Mon Dec 5 18:56:55 2011 Nobuyoshi Nakada <[email protected]>
* bignum.c (big_rshift), compile.c (validate_label,
iseq_build_from_ary_exception), cont.c (cont_capture), dir.c
(dir_open_dir), gc.c (objspace_each_objects), io.c (pipe_open)
(rb_io_advise), parse.y (parser_compile_string)
(rb_parser_compile_file), proc.c (binding_free), process.c
(rb_proc_exec_n, rb_seteuid_core, proc_setegid, rb_setegid_core)
(p_uid_exchange, p_gid_exchange), regparse.c (strdup_with_null),
signal.c (sig_dfl), vm.c (rb_iseq_eval, rb_iseq_eval_main),
vm_insnhelper.c (vm_expandarray): suppress
unused-but-set-variable warnings.
* class.c (rb_obj_methods), compile.c (iseq_compile_each),
iseq.c(iseq_load, rb_iseq_parameters), pack.c (pack_pack),
regcomp.c (is_not_included, update_string_node_case_fold),
transcode.c (rb_econv_open0, make_replacement),
vm_eval.c (raise_method_missing): remove unused variable.
* signal.c (reserved_signal_p): static.
Mon Dec 5 14:27:23 2011 NAKAMURA Usaku <[email protected]>
* include/ruby/{subst.h,win32.h}, ext/socket/rubysocket.h: revert
r33876. [ruby-core:41475] [Bug #5706]
* ext/socket/extconf.rb: the alternative hack for [Bug #5675].
Mon Dec 5 10:18:45 2011 NAKAMURA Usaku <[email protected]>
* ext/zlib/zlib.c (rb_gzreader_initialize): revert a part of r33937.
1st, to change the mode of an IO is very sensitive problem, so
the maintainer of this library should judge it.
2nd, usually Zlib::GzipReader.new is not called directly. #initialize
is called via .open, and in the method the I/O is opened in binary
mode, so there is no problem without changing the mode in #initialize.
Sun Dec 4 22:53:12 2011 Tanaka Akira <[email protected]>
* lib/tempfile.rb: don't use lock directory. [ruby-dev:39197]
Sun Dec 4 22:34:43 2011 Tanaka Akira <[email protected]>
* lib/tempfile.rb (Tempfile::MAX_TRY): remove unused constant.
Sun Dec 4 12:11:28 2011 Kazuki Tsujimoto <[email protected]>
* lib/pp.rb: fix rdoc.
Sun Dec 4 12:03:16 2011 NARUSE, Yui <[email protected]>
* lib/delegate.rb (Delegator#methods): Kernel#methods receives
zero or one argument. [ruby-core:37118] [Bug #4882]
Sun Dec 4 10:15:00 2011 Luis Lavena <[email protected]>
* ext/zlib/zlib.c (rb_gzreader_initialize): use binary mode by default
under Windows. Patch by Hiroshi Shirosaki. [ruby-core:40706]
[Feature #5562]
* include/ruby/encoding.h (void rb_econv_binmode): define NEWLINE
decorator.
* io.c (rb_cloexec_fcntl_dupfd): Introduce NEED_READCONV and
NEED_WRITECONV to replace universal newline decorator by CRLF only
when required to improve file reading and writing under Windows.
Patch by Hiroshi Shirosaki. [ruby-core:40706] [Feature #5562]
* io.c (do_writeconv): adjust binary mode if required.
* io.c (read_all, appendline, swallow, rb_io_getline_1): ditto.
* io.c (io_getc, rb_io_each_codepoint, rb_io_ungetc): ditto.
* io.c (rb_io_binmode, rb_io_ascii8bit_binmode): ditto.
* io.c (rb_io_extract_modeenc, rb_sysopen): ditto.
* io.c (pipe_open, prep_stdio, io_encoding_set): ditto.
* io.c (rb_io_s_pipe, copy_stream_body): ditto.
* test/ruby/test_io_m17n.rb (EOT): add test for pipe and stdin in
binary mode.
* win32/win32.c (init_stdhandle): remove O_BINARY from stdhandle
initialization.
* win32/win32.c (rb_w32_write): use FTEXT mode accordingly.
Sat Dec 3 20:49:16 2011 Yusuke Endoh <[email protected]>
* variable.c (set_const_visibility): print a warning when no argument
is passwd to Module#private_constant. [ruby-list:48558]
* vm_method.c (set_method_visibility): ditto for
Module#private_class_method.
Sat Dec 3 20:43:14 2011 Yusuke Endoh <[email protected]>
* variable.c (set_const_visibility): Module#private_constant has
changed the visibility of only the first argument. Now it changes
all of them. [ruby-list:48558]
* test/ruby/test_module.rb: add a test for above.
Sat Dec 3 07:17:29 2011 Nobuyoshi Nakada <[email protected]>
* Makefile.in (CFLAGS): append ARCH_FLAG.
* configure.in (ARCH_FLAG): exclude from CFLAGS.
* configure.in (UNIVERSAL_INTS): include short int. fix for
test/mkmf.
Fri Dec 2 15:48:08 2011 Nobuyoshi Nakada <[email protected]>
* ext/bigdecimal/bigdecimal.c (VpAllocReal): reduce extra frac.
Fri Dec 2 15:41:24 2011 Nobuyoshi Nakada <[email protected]>
* configure.in: check whether -pie or -Wl,-pie is valid as
LDFLAGS. [ruby-core:41438] [Bug#5697]
* configure.in: use $linker_flag for LDFLAGS option which is not
limited to particular platforms.
Thu Dec 1 23:21:58 2011 CHIKANAGA Tomoyuki <[email protected]>
* thread_pthread.c (thread_timer): call prctl(PR_SET_NAME) only if
PR_SET_NAME is available.
Thu Dec 1 22:31:16 2011 Tanaka Akira <[email protected]>
* io.c (linux_get_maxfd): change local variable name.
Thu Dec 1 16:59:24 2011 Nobuyoshi Nakada <[email protected]>
* ext/socket/extconf.rb: add arguments for macro calls.
[ruby-core:41370] [Bug#5681]
Thu Dec 1 16:20:16 2011 Nobuyoshi Nakada <[email protected]>
* lib/mkmf.rb (MakeMakefile#try_func): fix broken patch at r33834.
Thu Dec 1 14:43:17 2011 Nobuyoshi Nakada <[email protected]>
* ext/bigdecimal/bigdecimal.h (Real): suppress false warning from
clang. [ruby-core:41418] [Bug#5693]
Thu Dec 1 10:31:55 2011 Nobuyoshi Nakada <[email protected]>
* configure.in (LDFLAGS): -fstack-protector is always needed to
link static library created with it. [ruby-core:41387]
[Bug#5686]
Thu Dec 1 07:03:51 2011 KOSAKI Motohiro <[email protected]>
* configure.in: add sys/prctl.h test.
* thread_pthread.c (thread_timer): call prctl(PR_SET_NAME) to change
thread name. It may help to debug.
Wed Nov 30 23:35:45 2011 NARUSE, Yui <[email protected]>
* variable.c (rb_path2class): don't raise NameError when the middle
constant of the path is not defined but defined on toplevel.
[ruby-core:41410] [Bug #5691]
Wed Nov 30 20:02:02 2011 Martin Duerst <[email protected]>
* transcode.c: Simplified rb_econv_binmode, avoided a warning on cygwin.
Wed Nov 30 08:57:07 2011 Eric Hodel <[email protected]>
* lib/mkmf.rb: Use MakeMakefile's rm_f to avoid conflict with Rake or
FileUtils.
* test/ruby/test_module.rb: Hide MakeMakefile's inclusion in Object
Wed Nov 30 09:12:43 2011 NAKAMURA Usaku <[email protected]>
* lib/rdoc/encoding.rb (RDoc::Encoding.read_file): fixup newline chars
on Windows.
see https://github.com/rdoc/rdoc/issues/87
* test/rdoc/test_rdoc_markup_pre_process.rb
(TestRDocMarkupPreProcess#test_include_file,
TestRDocMarkupPreProcess#test_include_file_encoding_incompatible):
follow above change.
Wed Nov 30 09:09:37 2011 Aaron Patterson <[email protected]>
* ext/psych/parser.c (parse): parse method can take an option file
name for use in exception messages.
* test/psych/test_parser.rb: corresponding tests.
Tue Nov 29 09:07:59 2011 Eric Hodel <[email protected]>
* lib/mkmf.rb: Fix indentations of constants at end of module.
Document some constants.
Tue Nov 29 09:58:23 2011 Nobuyoshi Nakada <[email protected]>
* io.c (rb_write_error2): suppress unused variable warning.
Tue Nov 29 07:45:26 2011 Eric Hodel <[email protected]>
* lib/mkmf.rb: Wrap comments to 78 columns and clean up formatting.
Tue Nov 29 05:54:18 2011 Eric Hodel <[email protected]>
* lib/mkmf.rb: Wrap mkmf.rb in module MakeMakefile to clean up Object
documentation. [Ruby 1.9 - Feature #5658]
* ext/extmk.rb: Use MakeMakefile::CONFIG instead of Object::CONFIG
* test/mkmf/base.rb: ditto
Tue Nov 29 00:08:57 2011 Yuki Sonoda (Yugui) <[email protected]>
* common.mk (INSTRUBY_ARGS): added --mantype to apply mdoc2man.rb
to man pages. Fixes #5598.
(do-install-nodoc, do-install-local, do-install-man,
dont-install-nodoc, dont-install-local, dont-install-man):
No longer needs --mantype.
Reported by Rainer Orth <ro AT cebitec.uni-bielefeld.de>,
patch by George Koehler <xkernigh AT netscape.net>.
Mon Nov 28 22:26:31 2011 NAKAMURA Usaku <[email protected]>
* test/rake/test_rake_directory_task.rb
(TestRakeDirectoryTask#test_directory_win32): shouldn't create any
file/directory on root directory. create on @tempdir (= Dir.pwd).
see https://github.com/jimweirich/rake/issues/91
Mon Nov 28 12:57:29 2011 Nobuyoshi Nakada <[email protected]>
* io.c (rb_write_error2): fwrite() returns ssize_t.
Mon Nov 28 12:47:19 2011 NAKAMURA Usaku <[email protected]>
* parse.y (nodetype, nodeline): static. these functions are for
debugging, and not intend to be public.
Mon Nov 28 12:37:54 2011 NAKAMURA Usaku <[email protected]>
* gc.c (initial_params): static. it seems to be forgotten at r33501.
Mon Nov 28 12:32:24 2011 NAKAMURA Usaku <[email protected]>
* include/ruby/win32.h, win32/win32.c (GetCurrentThreadHandle): remove
unused old API.
Mon Nov 28 12:29:20 2011 NAKAMURA Usaku <[email protected]>
* win32/mkexports.rb (Exports#initialize): remove old symbol name.
Mon Nov 28 12:15:28 2011 Nobuyoshi Nakada <[email protected]>
* win32/mkexports.rb (Exports#read_substitution): need to read
from subst.h too. [Bug #5675]
Mon Nov 28 11:46:35 2011 NAKAMURA Usaku <[email protected]>
* io.c (rb_io_flush): release GVL during fsync() on Windows.
Mon Nov 28 11:00:25 2011 NAKAMURA Usaku <[email protected]>
* include/ruby/subst.h: typo of r33876.
Mon Nov 28 10:36:00 2011 Nobuyoshi Nakada <[email protected]>
* include/ruby/subst.h: moved Windows specific substitutions from
win32.h.
* ext/socket/rubysocket.h: include ruby/subst.h. [Bug #5675]
Mon Nov 28 10:20:58 2011 NAKAMURA Usaku <[email protected]>
* win32/{Makeilfe.sub,win32.c} (FILE_COUNT, FILE_READPTR): move the
definitions from config.h to win32.c. I dared to have left such
macros, for other future compiler support.
[ruby-core:41313] [Bug #5674]
Mon Nov 28 09:28:30 2011 NAKAMURA Usaku <[email protected]>
* win32/win32.c (rb_w32_uchmod): typo. [Bug#5671] [ruby-dev:44898]
* test/ruby/test_file.rb (TestFile#test_chmod_m17n): test of above bug.
Sun Nov 27 21:25:33 2011 KOSAKI Motohiro <[email protected]>
* configure.in: added -fno-strict-overflow. it suppress annoying
-Wstrict-overflow warning.
Sun Nov 27 20:58:02 2011 KOSAKI Motohiro <[email protected]>
* io.c (rb_write_error2): get rid of warning on linux. fwrite
of glibc is tagged __attribute__ ((__warn_unused_result__))
if _FORTIFY_SOURCE != 0.
* vm_dump.c (rb_vm_bugreport): ditto.
Sun Nov 27 19:09:02 2011 Nobuyoshi Nakada <[email protected]>
* configure.in (stack_protector): disable on mingw. [Bug#5676]
* Makefile.in (DLDFLAGS): also needs -fstack-protector.
[Bug#5676]
Sun Nov 27 14:13:33 2011 KOSAKI Motohiro <[email protected]>
* configure.in: add -fstack-protector into XLDFLAGS as well as
XCFLAGS if stack-protector is used.
Sun Nov 27 13:09:25 2011 KOSAKI Motohiro <[email protected]>
* configure.in: workaround to avoid MacOS X build error.
Maybe autoconf 2.61 is slightly buggy. [ruby-core:41316]
Sun Nov 27 04:57:11 2011 NARUSE, Yui <[email protected]>
* configure.in (--no-undefined): r33840 breaks FreeBSD and DragonFly
with gcc 4.4 or later. Their environ is in /usr/libexec/ld-elf.so.1,
so it will be false negative.
Sun Nov 27 04:55:45 2011 NARUSE, Yui <[email protected]>
* lib/net/http.rb (Net::HTTP::SSL_IVNAMES): rerefix 33701.
SSL_ATTRIBUTES stores names for set_params, they are symbol.
SSL_IVNAMES stores instance variable names.
Sun Nov 27 00:16:07 2011 Tanaka Akira <[email protected]>
* io.c (copy_stream_body): use 0666 for permission argument for open.
[ruby-core:40865]
Sat Nov 26 23:01:38 2011 Martin Bosslet <[email protected]>
* test/openssl/test_engine.rb: remove side effect of generic engine
load by explicitly loading software-based "openssl" engine for
all tests.
Sat Nov 26 20:41:48 2011 NARUSE, Yui <[email protected]>
* lib/net/http.rb (Net::HTTP.get_response): enable use_ssl
if given URI object is https.
patched by Mark Ferlatte [ruby-core:40665] [Bug #5545]
* lib/net/http.rb (Net::HTTP.post_form): ditto.
Sat Nov 26 20:01:18 2011 NARUSE, Yui <[email protected]>
* lib/net/http.rb (Net::HTTP::SSL_ATTRIBUTES): refix 33701.
store instance variable symbol names.
Sat Nov 26 15:40:25 2011 URABE Shyouhei <[email protected]>
* .travis.yml (script): should be ./configure
Sat Nov 26 15:39:18 2011 URABE Shyouhei <[email protected]>
* .travis.yml (before_script): wrong name, sorry.
Sat Nov 26 15:31:34 2011 URABE Shyouhei <[email protected]>
* .travis.yml (before-script): autoconf required.
Sat Nov 26 15:24:05 2011 URABE Shyouhei <[email protected]>
* .travis.yml: Travis enable.
Sat Nov 26 10:47:50 2011 Martin Bosslet <[email protected]>
* ext/openssl/extconf.rb: remove checks for available functions.
* ext/openssl/missing.h: ditto.
Thanks, Tim Mooney for reporting this!
[Bug #5432] [ruby-core:40088]
Sat Nov 26 10:22:28 2011 Martin Bosslet <[email protected]>
* ext/openssl/ossl_ssl.c: add comment on where to find implementation
of OpenSSL::SSL::SSLSocket#session.
Sat Nov 26 05:00:25 2011 Nobuyoshi Nakada <[email protected]>
* configure.in (--no-undefined): RUBY_TRY_CFLAGS does nothing for
linker flags. use RUBY_TRY_LDFLAGS.
Fri Nov 25 11:37:07 2011 KOSAKI Motohiro <[email protected]>
* io.c (ioctl_narg_len, linux_iocparm_len): reinstantiate linux
specific narg length calculation.
* test/ruby/test_io.rb (test_ioctl_linux2): add new test for old and
unstructured ioctl.
Fri Nov 25 10:39:14 2011 KOSAKI Motohiro <[email protected]>
* Makefile.in (EXTLDFLAGS): export it.
* configure.in: add --no-undefined if --enable-shared is specified.
Gentoo enabled this option long time. Also, export EXTLDFALGS.
Fri Nov 25 08:48:35 2011 KOSAKI Motohiro <[email protected]>
* configure.in: turn on PIE if --enable-shared is not specified.
Fri Nov 25 08:05:07 2011 KOSAKI Motohiro <[email protected]>
* configure.in: add -fstack-protector. It help to protect us from
stack smashing attack.
Fri Nov 25 08:03:28 2011 KOSAKI Motohiro <[email protected]>
* configure.in: add -D_FORTIFY_SOURCE=2. It provide some compile
time and runtime check for security.
Fri Nov 25 08:00:23 2011 KOSAKI Motohiro <[email protected]>
* lib/mkmf.rb: get rid of warnings of mkmf.rb if -Wmissing-declarations
and/or -Wold-style-definition warnings if specified.
Patch by Nikolai Weibull. Thank you! [Bug #5459] [ruby-core:40200]
Fri Nov 25 07:46:09 2011 KOSAKI Motohiro <[email protected]>
* configure.in: add -Wall always.
Thu Nov 24 20:02:40 2011 Tanaka Akira <[email protected]>
* test/openssl/test_engine.rb: use IO#reopen to restore stderr.
Thu Nov 24 19:59:56 2011 Tanaka Akira <[email protected]>
* io.c (rb_io_reopen): re-initialize buffering mode for stdout and
stderr.
Thu Nov 24 11:12:48 2011 KOSAKI Motohiro <[email protected]>
* io.c (rb_io_fsync,rb_io_fdatasync): release GVL during fsync().
fsync() and fdatasync() may take a long time on slow disks and/or
if there is much dirty data.
Patch by Eric Wong. [Feature #5665] [ruby-core:41247]
Thu Nov 24 10:05:02 2011 Martin Bosslet <[email protected]>
* test/openssl/test_engine.rb: Suppress output from 'openssl'
engine's RC4 cipher.
[Bug #5633] [ruby-core:41026]
Thu Nov 24 08:05:02 2011 Martin Bosslet <[email protected]>
* ext/openssl/ossl_pkey_dsa.c: remove redundant colon from error
message.
* ext/openssl/ossl_ssl.c: ditto.
* ext/openssl/ossl_pkey_rsa: ditto.
patched by Eric Hodel [Bug #5604] [ruby-core:40896]
Wed Nov 23 20:03:43 2011 NARUSE, Yui <[email protected]>
* io.c (ioctl_narg_len): don't use _IOC_SIZE macro on Linux.
On Linux some constants for ioctl(2) doesn't include the size of
its return value and 16bit value; for example FIONREAD 0x541B.
Moreover the manual, ioctl_list(2), says "Note that the size
bits are very unreliable: in lots of cases they are wrong,
either because of buggy macros using sizeof(sizeof(struct)),
or because of legacy values."
So we shouldn't use it.
Tue Nov 22 18:07:32 2011 NAKAMURA Usaku <[email protected]>
* win32/win32.c (_pioinfo): need to declare _pioinfo() before using
_osfhnd and other macros which uses _pioinfo() internally.
Tue Nov 22 17:49:45 2011 Nobuyoshi Nakada <[email protected]>
* win32/win32.c (_pioinfo): make an inline function.
Tue Nov 22 11:26:08 2011 NARUSE, Yui <[email protected]>
Tue Nov 22 11:33:58 2011 Nobuyoshi Nakada <[email protected]>
* win32/win32.c (dupfd): argument of _osfhnd and so on should not
have side effect.
Tue Nov 22 11:26:08 2011 NARUSE, Yui <[email protected]>
* bignum.c (rb_big_divide): refix of r33536. Don't change behavior of Bignum#/.
[ruby-core:40429] [Bug #5490]
Tue Nov 22 10:46:57 2011 NARUSE, Yui <[email protected]>
* numeric.c (ruby_float_step): improve floating point calculations.
[ruby-core:35753] [Bug #4576]
* numeric.c (ruby_float_step): correct the error of floating point
numbers on the excluding case.
patched by Masahiro Tanaka [ruby-core:39608]
* numeric.c (ruby_float_step): use the end value when the current
value is greater than or equal to the end value.
patched by Akira Tanaka [ruby-core:39612]
Tue Nov 22 06:59:21 2011 Tanaka Akira <[email protected]>
* test/ruby/test_io.rb (test_fcntl_dupfd): there is no known platform
which don't have F_DUPFD. [ruby-dev:44874]
Tue Nov 22 04:46:22 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych.rb: remove autoload from psych
* ext/psych/lib/psych/json.rb: ditto
Tue Nov 22 00:44:59 2011 Tanaka Akira <[email protected]>
* test/ruby/test_io.rb (test_fcntl_dupfd): the argument of F_DUPFD is
minimum file descriptor.
Tue Nov 22 00:25:17 2011 Tanaka Akira <[email protected]>
* io.c (linux_get_maxfd): get rid of a warning.
Mon Nov 21 23:39:14 2011 Tanaka Akira <[email protected]>
* io.c (linux_get_maxfd): new function to find maximum fd on Linux.
(rb_close_before_exec): use linux_get_maxfd.
Mon Nov 21 06:16:24 2011 NARUSE, Yui <[email protected]>
* cont.c (fiber_switch): ignore fiber context switch
because destination fiber is same as current fiber.
With out this, it may segv on FreeBSD 9.
patched by Koichi Sasada.
Sun Nov 20 23:22:42 2011 Nobuyoshi Nakada <[email protected]>
* ext/extmk.rb (extract_makefile, extmake): regenerate makefiles
if globbed source file list is changed.
* lib/mkmf.rb (create_makefile): store ORIG_SRCS.
Sun Nov 20 22:43:03 2011 NARUSE, Yui <[email protected]>
* enc/unicode.c (PROPERTY_NAME_MAX_SIZE): +1.
reported by Ken Takata. [ruby-dev:44894][Bug #5652]
Sun Nov 20 11:01:28 2011 Tanaka Akira <[email protected]>
* lib/set.rb (SortedSet.setup): remove old_init after initialize
method is redefined. The remove before redefinition makes the
warning prevention fragile. [ruby-dev:44892]
Sun Nov 20 04:01:45 2011 Nobuyoshi Nakada <[email protected]>
* Makefile.in (enc/unicode/name2ctype.h): remove duplicated
ifdefs.
Sat Nov 19 19:31:47 2011 Tanaka Akira <[email protected]>
* time.c (TIME_COPY_GMT): copy vtm.utc_offset and vtm.zone too.
patch by Tomoyuki Chikanaga.
[ruby-dev:44827] [Bug #5586]
Sat Nov 19 16:36:57 2011 Tanaka Akira <[email protected]>
* test/net/http/test_http.rb: remove temporally files in ensure clause.
Sat Nov 19 08:18:41 2011 Tanaka Akira <[email protected]>
* test/net/http/test_http.rb: remove temporally files.
Fri Nov 18 17:18:16 2011 Nobuyoshi Nakada <[email protected]>
* ext/io/console/console.c (console_raw, console_set_raw)
(console_getch): optional parameters. [EXPERIMENTAL]
Fri Nov 18 16:12:11 2011 Nobuyoshi Nakada <[email protected]>
* ext/io/console/console.c (console_cooked, console_set_cooked):
new methods to reset cooked mode. [EXPERIMENTAL]
Fri Nov 18 13:20:26 2011 NAKAMURA Usaku <[email protected]>
* test/unit/assertions.rb (MINI_DIR): quick dirty hack to get rid of
warnings when using assert/assert_respond_to.
Fri Nov 18 13:03:38 2011 NAKAMURA Usaku <[email protected]>
* io.c (rb_cloexec_open): set O_NOINHERIT instead of O_CLOEXEC if it is
available (for Windows).
* win32/win32.c (fcntl): on F_DUPFD, determine the inheritance of the
new handle by O_NOINHERIT flag of original fd.
Fri Nov 18 08:00:41 2011 Ryan Davis <[email protected]>
* lib/minitest/*: Imported minitest 2.8.1 (r6750)
* test/minitest/*: ditto
* configure.in: Improved gcc-llvm error message to help people migrate.
Thu Nov 17 20:43:34 2011 Tanaka Akira <[email protected]>
* ext/dbm/extconf.rb: revert a part of the patch in [ruby-dev:41531].
don't use db.h with other headers. [ruby-dev:44884].
Thu Nov 17 20:23:03 2011 NAKAMURA Usaku <[email protected]>
* benchmark/bm_io_select[23].rb: use Process::RLIMIT_NOFILE only when
it is defined. if it is not defined, assume 64 as the max of fds.
Thu Nov 17 10:36:46 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych.rb (load_file): make sure opened yaml files are
also closed. [ruby-core:41088]
Wed Nov 16 18:13:52 2011 Nobuyoshi Nakada <[email protected]>
* Makefile.in (LIBRUBY_A): check if generated linked library is
valid for extconf.
Wed Nov 16 13:51:40 2011 NAKAMURA Usaku <[email protected]>
* bignum.c (rb_big2ulong): need to calc in unsigned long, because
the range of VALUE is larger than it on LLP64 platform, such as Win64.
this change fixes the failures of test/-ext-/num2int.
Wed Nov 16 12:02:47 2011 NAKAMURA Usaku <[email protected]>
* test/webrick/test_cgi.rb (TestWEBrickCGI#start_cgi_server): there are
no guarantee of existence of RbConfig::CONFIG['LIBPATHENV'].
it only exists in Unix-like environments.
* test/webrick/test_filehandler.rb
(WEBrick::TestFileHandler#test_script_disclosure): ditto.
Wed Nov 16 11:34:20 2011 NAKAMURA Usaku <[email protected]>
* io.c (argf_next_argv): wrong timing of setting ecflags.
fixed the failure of TestArgf#test_textmode introduced at r33662.
Wed Nov 16 10:45:00 2011 NAKAMURA Usaku <[email protected]>
* ext/-test-/num2int/num2int.c: remove an unnecessary and wrong decl
of rb_stdout. it's declared in ruby.h correctly.
Wed Nov 16 10:26:41 2011 NAKAMURA Usaku <[email protected]>
* bignum.c (rb_big2ull): add a cast to get rid of a VC++ warning.
Wed Nov 16 09:39:27 2011 NARUSE, Yui <[email protected]>
* lib/minitest/unit.rb (assert_raises): experimental fix to run
correctly on chkbuild over 64bit linux. call exception_details only
when the detail is really needed to avoid create needless inspect
under ulimit-ed environment.
Wed Nov 16 06:34:30 2011 Tanaka Akira <[email protected]>
* test/ruby/test_thread.rb (test_condvar_timed_wait): use
assert_operator.
Tue Nov 15 21:56:25 2011 Tanaka Akira <[email protected]>
* test/ruby/test_sleep.rb (test_sleep_5sec): 0.1sec tolerance is too
small for busy environment.
Tue Nov 15 20:08:55 2011 Tanaka Akira <[email protected]>
* io.c, thread.c, ext/pty/pty.c, ext/fiddle/closure.c: use
__linux__ macro for consistency.
Tue Nov 15 14:45:15 2011 KOSAKI Motohiro <[email protected]>
* include/ruby/ruby.h(NUM2LONG, NUM2INT, NUM2SHORT, NUM2LL,
INT2NUM, UINT2NUM, LONG2NUM, ULONG2NUM, NUM2CHR): wrap by
macros.
Tue Nov 15 13:38:14 2011 Naohisa Goto <[email protected]>
* include/ruby/defines.h (FLUSH_REGISTER_WINDOWS): move sparc asm code
to a separate file sparc.c for preventing inlining optimization.
Patched by Jurij Smakov. [Bug #5244] [ruby-core:40685]
* sparc.c (rb_sparc_flush_register_windows): ditto.
* configure.in: ditto.
Tue Nov 15 13:11:35 2011 KOSAKI Motohiro <[email protected]>
* include/ruby/ruby.h: get rid of gcc specific rb_long2int(),
NUM2LONG(), NUM2INT(), NUM2SHORT(), NUM2LL(), INT2NUM(),
UINT2NUM(), LONG2NUM(), ULONG2NUM() and NUM2CHR()
implementation. Because 1) They don't make any better code
at all. 2) Inline function have a better debugger supoort.
Tue Nov 15 09:58:25 2011 KOSAKI Motohiro <[email protected]>
* test/ruby/test_io.rb (TestIO#test_fcntl_dupfd): fix OpenBSD test
failure. [ruby-dev:44872]
Tue Nov 15 09:50:21 2011 NARUSE, Yui <[email protected]>
* regcomp.c (print_indent_tree): fix double printing of ENCLOSE_OPTION
children bug. patched by Suraj Kurapati. [ruby-core:40964]
Tue Nov 15 01:53:48 2011 Ayumu AIZAWA <[email protected]>
* test/ruby/test_io.rb (test_fcntl_dupfd): fix test error on
SnowLeopard. Pointed out by CHIKANAGA Tomoyuki. [ruby-dev:44866]
Mon Nov 14 22:06:02 2011 Tanaka Akira <[email protected]>
* ext/openssl/ossl_pkey.c (ossl_pkey_new_from_file): set close-on-exec
flag.
* ext/openssl/ossl_x509cert.c (rb_fd_fix_cloexec): ditto.
Mon Nov 14 14:54:17 2011 KOSAKI Motohiro <[email protected]>
* bignum.c (rb_big2ull): fix 32bit platform breakage. we must
not assume sizeof(VALUE) == sizeof(LONG_LONG).
* test/-ext-/num2int/test_num2int.rb (class TestNum2int):
fix false assumption on 32bit platform.
Mon Nov 14 14:52:54 2011 KOSAKI Motohiro <[email protected]>
* numeric.c (rb_fix2ushort): fix typo. use num rb_num2ushort()
instead of num2uint().
Sun Nov 13 10:31:03 2011 KOSAKI Motohiro <[email protected]>
* include/ruby/ruby.h: add #ifdef comment.
Sun Nov 13 10:28:18 2011 KOSAKI Motohiro <[email protected]>
* include/ruby/ruby.h: add NUM2SHORT(), NUM2USHORT() macros.
* numeric.c: ditto.
* test/-ext-/num2int/test_num2int.rb: add testcases for NUM2SHORT().
* ext/-test-/num2int/num2int.c: ditto.
Sun Nov 13 10:23:48 2011 KOSAKI Motohiro <[email protected]>
* bignum.c (rb_big2ull): fix off-by-twice bug of NUM2ULL.
* test/-ext-/num2int/test_num2int.rb (class TestNum2int):
fix a testcase too.
Sun Nov 13 10:22:44 2011 KOSAKI Motohiro <[email protected]>
* test/-ext-/num2int/test_num2int.rb (class TestNum2int):
add FIXNUM tests.
Sun Nov 13 09:57:29 2011 KOSAKI Motohiro <[email protected]>
* numeric.c (check_uint): fix off-by-one bug of NUM2UINT.
* bignum.c (rb_big2ulong): fix off-by-one bug of NUM2ULONG.
* test/-ext-/num2int/test_num2int.rb: add a testcase for NUM2INT()
NUM2UINT(), NUM2LONG(), NUM2ULONG(), NUM2LL and NUM2ULL().
* ext/-test-/num2int/depend: ditto.
* ext/-test-/num2int/extconf.rb: ditto.
* ext/-test-/num2int/num2int.c: ditto.
Sun Nov 13 23:47:29 2011 Nobuyoshi Nakada <[email protected]>
* ext/dbm/extconf.rb: use convertible_int.
Sun Nov 13 23:45:57 2011 Nobuyoshi Nakada <[email protected]>
* lib/mkmf.rb (checking_for): should not modify the result.
* lib/mkmf.rb (have_struct_member): accept compiler options.
* lib/mkmf.rb (convertible_int): add restricted support of struct
member, and TYPEOF_ macro.
Sun Nov 13 23:21:24 2011 Tanaka Akira <[email protected]>
* ext/gdbm/gdbm.c (fgdbm_reorganize): set close-on-exec flag after
gdbm_reorganize(). gdbm_reorganize() opens a new database internally.
Sun Nov 13 19:57:18 2011 Tanaka Akira <[email protected]>
* ext/dbm/extconf.rb: rollback for each headers for each libraries.
Sun Nov 13 16:24:48 2011 Tanaka Akira <[email protected]>
* ext/dbm/extconf.rb: treat libc as a choice for a library which
provide ndbm API.
Sun Nov 13 15:40:43 2011 Tanaka Akira <[email protected]>
* ext/dbm/extconf.rb: duplicate $libs and $defs when save them.
Sun Nov 13 12:43:48 2011 Tanaka Akira <[email protected]>
* ext/dbm/extconf.rb: rollback $libs and $defs when db detection is
failed. It fixes -lgdbm -lqdbm when the system has qdbm and gdbm
without gdbm_compat.
Sat Nov 12 21:14:51 2011 KOSAKI Motohiro <[email protected]>
* test/webrick/test_cgi.rb (class TestWEBrickCGI): respect
RbConfig::CONFIG["LIBPATHENV"]. [Bug #5135] [ruby-core:38653]
* test/webrick/test_filehandler.rb (class WEBrick): ditto.
Sat Nov 12 20:57:29 2011 KOSAKI Motohiro <[email protected]>
* test/ruby/test_io.rb (test_fcntl_dupfd): skip if Fcntl::DUPFD
is not defined. Pointed out by CHIKANAGA Tomoyuki. Thanks.
Sat Nov 12 17:26:10 2011 Nobuyoshi Nakada <[email protected]>
* io.c (do_ioctl, ioctl_narg_len, setup_narg, rb_ioctl): use
ioctl_req_t.
Sat Nov 12 17:01:49 2011 Nobuyoshi Nakada <[email protected]>
* ext/dbm/extconf.rb (headers.db_check): reduce duplicated code.
Sat Nov 12 15:59:42 2011 Tanaka Akira <[email protected]>
* ext/dbm/extconf.rb: dbm_clearerr should be available in all ndbm
implementation. If it is not available, it is caused by
header/library mismatch such that Berkeley DB header & gdbm library.
* ext/dbm/dbm.c (fdbm_store): use dbm_clearerr() unconditionally.
gdbm 1.9 provides it as a real function instead of a empty macro.
Sat Nov 12 13:35:33 2011 KOSAKI Motohiro <[email protected]>
* bootstraptest/runner.rb: don't suppress SIGINT.
[Feature #5612] [ruby-dev:44856]
Sat Nov 12 11:20:36 2011 KOSAKI Motohiro <[email protected]>
* io.c (fcntl_narg_len): introduce narg calculation for fcntl instead
of hard coded 256.
* io.c (setup_narg): ditto.
Sat Nov 12 11:19:35 2011 KOSAKI Motohiro <[email protected]>
* test/ruby/test_io.rb (test_fcntl_dupfd): add another fcntl test.
Sat Nov 12 11:18:17 2011 KOSAKI Motohiro <[email protected]>
* test/ruby/test_io.rb (test_fcntl_lock_freebsd): add a testcase
of fcntl lock for freebsd.
Sat Nov 12 11:16:32 2011 KOSAKI Motohiro <[email protected]>
* io.c (ioctl_narg_len): Linux doesn't have IOCPARM_LEN macro, but
has _IOC_SIZE. support it.
Sat Nov 12 11:13:18 2011 KOSAKI Motohiro <[email protected]>
* io.c (rb_ioctl): don't expose our sanity check value to ruby script.
It may change string value meaning if the value is string.
(e.g. MacOS X has F_GETPATH ioctl)
* io.c (rb_fcntl): ditto.
Sat Nov 12 11:06:02 2011 KOSAKI Motohiro <[email protected]>
* io.c (ioctl_req_t): Type of req argument of ioctl() depend on platform.
Moreover almost all linux ioctl can't be represented by 32bit integer