-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
8953 lines (5678 loc) · 309 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
Wed Oct 19 00:09:06 2016 Nobuyoshi Nakada <[email protected]>
* addr2line.c (parse_debug_line_cu): boundary checks for
compressed debug sections. [ruby-dev:49840] [Bug #12850]
Tue Oct 18 16:36:40 2016 Nobuyoshi Nakada <[email protected]>
* configure.in (DLDFLAGS): append --compress-debug-sections=zlib
if available, which reduces the size of LIBRUBY_SO by half or
more.
Mon Oct 17 16:20:37 2016 Nobuyoshi Nakada <[email protected]>
* win32/configure.bat: add option to enable/disable to install
static ruby library. defaulted to "no". [Feature #12845]
* configure.in (install-static-library): add option to enable/
disable to install static ruby library. defaulted to "no" if
enable-shared. [Feature #12845]
* tool/rbinstall.rb (local-arch-lib): respect the option.
Sun Oct 16 15:09:06 2016 Martin Duerst <[email protected]>
* enc/windows_1254.c, test/ruby/enc/test_case_comprehensive.rb:
Implement non-ASCII case conversion for Windows-1254.
Sat Oct 15 14:17:05 2016 Nobuyoshi Nakada <[email protected]>
* vm_args.c (refine_sym_proc_call): search and call method with
refinements.
* vm_args.c (vm_caller_setup_arg_block): enable refinements when
enabled in the caller. [Feature #9451]
Sat Oct 15 00:54:01 2016 Nobuyoshi Nakada <[email protected]>
* process.c (proc_exec_cmd): use UTF-8 version aspawn.
[ruby-dev:49838] [Bug #12841]
Fri Oct 14 22:26:10 2016 Nobuyoshi Nakada <[email protected]>
* lib/optparse/kwargs.rb (OptionParser#define_by_keywords):
[EXPERIMENTAL] extract command line option definitions from the
information of keyword arguments.
Fri Oct 14 18:27:18 2016 SHIBATA Hiroshi <[email protected]>
* object.c: Improve documentation for Float conversion.
[ruby-core:71661][Bug #11736][ci skip]
Fri Oct 14 18:00:20 2016 SHIBATA Hiroshi <[email protected]>
* lib/logger.rb: Improve Logger.new option documentation.
[Feature #12803][ruby-core:77467]
Fri Oct 14 17:20:24 2016 Nobuyoshi Nakada <[email protected]>
* lib/optparse.rb (make_switch, parse_in_order): unify underscores
to hyphens.
Fri Oct 14 10:48:37 2016 Eric Wong <[email protected]>
* lib/webrick/utils.rb (TimeoutHandler): use monotonic clock
(watch): ditto
Thu Oct 13 19:41:32 2016 Nobuyoshi Nakada <[email protected]>
* io.c (copy_stream_body): use IO to write to copy to duplex IO.
http://twitter.com/knu/status/786505317974585344
Thu Oct 13 17:05:57 2016 Dwain Faithfull <[email protected]>
* hash.c (rb_hash_compact, rb_hash_compact_bang): Removes nil
values from the original hash, to port Active Support behavior.
[Feature #11818]
Thu Oct 13 11:35:33 2016 Nobuyoshi Nakada <[email protected]>
* array.c (rb_ary_sort_bang, rb_ary_sort, rb_ary_sort_by_bang):
[DOC] describe that sort may not be stable.
* enum.c (enum_sort, enum_sort_by): ditto.
Thu Oct 13 11:31:40 2016 Nobuyoshi Nakada <[email protected]>
* test/rexml/xpath/test_text.rb (test_ancestors): Array#sort may
not be stable. [ruby-core:76088] [Bug #12509]
* test/rss/test_maker_{0.9,1.0,2.0}.rb (test_items): ditto.
Thu Oct 13 10:37:31 2016 Eric Wong <[email protected]>
* doc/extension.rdoc: wording fix
Thu Oct 13 00:39:08 2016 Nobuyoshi Nakada <[email protected]>
* test/ruby/test_array.rb (test_sort_bang_with_freeze): make a
clone to copy a <=> singleton method, instead of dup. which
element will be called is not predictable.
[ruby-core:76088] [Bug #12509]
Thu Oct 13 00:21:27 2016 Simon Soriano <[email protected]>
* doc/extension.rdoc: Replace "You can defined hooked variables"
with "You can define hooked variables". [Fix GH-1460]
Wed Oct 12 21:05:50 2016 NAKAMURA Usaku <[email protected]>
* ruby.c (open_load_file): revert r56385. it introduced incompatibility
about `DATA.binmode?`.
Wed Oct 12 15:24:53 2016 SHIBATA Hiroshi <[email protected]>
* tool/downloader.rb: Removed verification of gem certification.
Because signed gem is not working on rubygems ecosystem.
* tool/gem-unpack.rb: ditto.
Tue Oct 11 22:08:24 2016 Nobuyoshi Nakada <[email protected]>
* io.c (prep_io): fix typo of struct member name.
[ruby-core:77550] [Bug #12829]
Tue Oct 11 16:45:24 2016 Tanaka Akira <[email protected]>
* lib/uri/generic.rb (URI.find_proxy): Add an optional argument, env.
Tue Oct 11 16:38:32 2016 Tanaka Akira <[email protected]>
* lib/pp.rb (String#pretty_print): Defined to print a string as
multiple lines.
[ruby-core:76800] [Feature#12664] proposed by Petr Chalupa.
Mon Oct 10 15:22:27 2016 Nobuyoshi Nakada <[email protected]>
* ruby.c (open_load_file): bind the open fd to an IO instance
before waiting FIFO, not to leak the fd if interrupted.
Mon Oct 10 12:40:54 2016 Nobuyoshi Nakada <[email protected]>
* ruby.c (open_load_file): compare with EXEEXT instead of hard
coded name, and do not match with mere EXEEXT.
* ruby.c (open_load_file): open in binary mode if available, as
parser deals with EOLs.
* io.c (prep_io): reduce isatty call (and its system call) on
Cygwin.
Sun Oct 9 23:05:53 2016 Prathamesh Sonpatki <[email protected]>
* array.c, class.c: Fixed documentation where Fixnum was referred
directly to use Integer, as Fixnum and Bignum are now unified
into Integer and direct usage is deprecated. [Fix GH-1459]
Sun Oct 9 11:37:19 2016 Nobuyoshi Nakada <[email protected]>
* vm_core.h (VM_ASSERT): stringify expr here before expansion in
RUBY_ASSERT_WHEN.
Sat Oct 8 10:54:22 2016 Nobuyoshi Nakada <[email protected]>
* ext/-test-/memory_status/memory_status.c (read_status): use
Win32 GetProcessMemoryInfo API.
* ext/-test-/memory_status/memory_status.c: get memory sizes by
mach task_info system call.
Sat Oct 8 09:06:55 2016 Aurelien Jacobs <[email protected]>
* lib/logger.rb (Logger::Period#next_rotate_time): fix monthly log
rotate when DST is applied during a month of 31 days.
[Fix GH-1458]
Fri Oct 7 20:21:39 2016 Nobuyoshi Nakada <[email protected]>
* gc.c (gc_prof_setup_new_record): fix the condition to get
rusage.
* gc.c (gc_profile_dump_major_reason): remove undefined flags.
Fri Oct 7 19:18:33 2016 Masaki Suketa <[email protected]>
* ext/win32ole/*.c, ext/win32ole/win32ole.h: use RB_INT2FIX instead of
INT2FIX, and so on.
Fri Oct 7 14:18:40 2016 SHIBATA Hiroshi <[email protected]>
* basictest/test.rb: Adjust spaces in class declarations
with inheritance. [fix GH-1227] Patch by @adrfer
* lib/irb/*: ditto.
* lib/prime.rb: ditto.
* lib/shell/builtin-command.rb: ditto.
* object.c: ditto.
* sample/*.rb: ditto.
* test/-ext-/method/test_arity.rb: ditto.
Thu Oct 6 17:29:44 2016 Nobuyoshi Nakada <[email protected]>
* load.c (rb_require_safe): SyntaxError created by the parser just
has the message and needs to set up the backtrace.
[ruby-core:77491] [Bug #12811]
* load.c (rb_load_internal0): load/require is not the main
script.
Thu Oct 6 13:35:15 2016 Marc-Andre Lafortune <[email protected]>
* enum.c: [DOC] Improve doc [ci-skip]
Thu Oct 6 11:38:14 2016 Chris Jones <[email protected]>
* ext/readline/extconf.rb: Update error message with correct words.
[fix GH-1453][ci skip] Patch by @magikid
Thu Oct 6 11:01:49 2016 Tieg Zaharia <[email protected]>
* lib/uri/common.rb (WEB_ENCODINGS_): Update URI::WEB_ENCODINGS_
hash, and fix documented command to grab it. [Fix GH-1430]
Thu Oct 6 10:37:13 2016 SHIBATA Hiroshi <[email protected]>
* enum.c: Add reduce/inject alias note.
[fix GH-1400][ci skip] Patch by @getaaron
Thu Oct 6 10:30:27 2016 Nobuyoshi Nakada <[email protected]>
* thread.c (update_coverage): check coverage values, and ignore
non-fixnum values.
Thu Oct 6 09:19:21 2016 Nobuyoshi Nakada <[email protected]>
* io.c (fptr_finalize): use dedicated macro RB_INTEGER_TYPE_P.
Wed Oct 5 18:02:44 2016 SHIBATA Hiroshi <[email protected]>
* lib/net/http/response.rb: Improve document readability.
[fix GH-1411][ci skip] Patch by @stz-seongheon
Wed Oct 5 15:43:32 2016 Nobuyoshi Nakada <[email protected]>
* node.c (dump_node): flatten statements in NODE_BLOCK.
Wed Oct 5 14:27:36 2016 Byron Bowerman <[email protected]>
* range.c: Add docs for max/min behavior with exclusive range.
[fix GH-1433][ci skip] Patch by @BM5k
Wed Oct 5 12:57:21 2016 Richard Schneeman <[email protected]>
* ext/socket/*.c: Add proper require for example to work.
[fix GH-1378][ci skip] Patch by @schneems
Wed Oct 5 11:47:19 2016 SHIBATA Hiroshi <[email protected]>
* io.c: Fixed equivalent ruby code with core implemention.
[fix GH-1429][ci skip] Patch by @sos4nt
Wed Oct 5 11:36:21 2016 SHIBATA Hiroshi <[email protected]>
* lib/delegate.rb: Added missing spaces and Removed needless spaces.
[fix GH-1454][ci skip] Patch by @bogdanvlviv
Wed Oct 5 03:24:55 2016 Marc-Andre Lafortune <[email protected]>
* enum.c: Make Enumerable#chunk with no block return
an Enumerator [#2172]
Wed Oct 5 01:19:45 2016 NAKAMURA Usaku <[email protected]>
* internal.h (ST2FIX): new macro to convert st_index_t to Fixnum.
a hash value of Object might be Bignum, but it causes many troubles
especially the Object is used as a key of a hash. so I've gave up
to do so.
* array.c (rb_ary_hash): use above macro.
* bignum.c (rb_big_hash): ditto.
* hash.c (rb_obj_hash, rb_hash_hash): ditto.
* numeric.c (rb_dbl_hash): ditto.
* proc.c (proc_hash): ditto.
* re.c (rb_reg_hash, match_hash): ditto.
* string.c (rb_str_hash_m): ditto.
Tue Oct 4 12:59:44 2016 Koichi ITO <[email protected]>
* array.c (rb_ary_dig): [DOC] update an example of error message
by Array#dig, because of Integer Unification. [Fix GH-1455]
Tue Oct 4 09:55:12 2016 Nobuyoshi Nakada <[email protected]>
* ext/bigdecimal/bigdecimal.c (BigDecimal_div2): need more room
for precision to round. [ruby-core:77475] [Bug #12805]
Tue Oct 4 06:05:46 2016 NARUSE, Yui <[email protected]>
* regcomp.c (onig_print_compiled_byte_code): make the shown address
look relative.
Tue Oct 4 05:53:11 2016 NARUSE, Yui <[email protected]>
* regexec.c (OPCODE_EXEC_HOOK): op is p-1 because p is already
incremented.
* regexec.c (OPCODE_EXEC_HOOK): use the exact end address.
* regexec.c (match_at): don't call OPCODE_EXEC_HOOK in CASE()
when it comes from goto fail.
Mon Oct 3 21:24:41 2016 Kazuhiro NISHIYAMA <[email protected]>
* NEWS: mention Readline.quoting_detection_proc{,=}.
Mon Oct 3 21:19:46 2016 Kazuhiro NISHIYAMA <[email protected]>
* lib/logger.rb: [DOC] Fix default value of shift_age.
Mon Oct 3 17:20:05 2016 George Brocklehurst <[email protected]>
* ext/readline/readline.c (readline_s_set_quoting_detection_proc):
support rl_char_is_quoted_p. [Feature #12659]
* ext/readline/readline.c (readline_s_get_quoting_detection_proc):
ditto.
Sun Oct 2 08:22:28 2016 Nobuyoshi Nakada <[email protected]>
* include/ruby/ruby.h (RB_INT2FIX, RB_LONG2FIX): prefix RB to
global symbols to get rid of name conflicts with other headers.
Sun Oct 2 07:51:20 2016 Nobuyoshi Nakada <[email protected]>
* string.c (rb_str_hash_m): hash values may be negative.
Sun Oct 2 02:04:12 2016 NAKAMURA Usaku <[email protected]>
* string.c (rb_str_hash_m): st_index_t is not guaranteed as the same
size with int, and of course also not guaranteed the value can be
Fixnum.
Sun Oct 2 02:03:06 2016 NAKAMURA Usaku <[email protected]>
* numeric.c (rb_fix2str): detect unnormalized Fixnum value.
Sat Oct 1 23:08:47 2016 NAKAMURA Usaku <[email protected]>
* ext/date/date_parse.c (date_zone_to_diff): it's nonsence and really
harm that to use unary minus operator with unsigned value.
get rid of test failures introduced at r56312.
Sat Oct 1 22:17:49 2016 Nobuyoshi Nakada <[email protected]>
* compile.c (iseq_compile_each): move numeric literal range
optimization from fixup_nodes() in parse.y.
Sat Oct 1 19:19:34 2016 Nobuyoshi Nakada <[email protected]>
* compile.c (compile_flip_flop): simplify generated code.
* compile.c (compile_branch_condition): flip-flop can appear only
in conditional expressions.
Sat Oct 1 02:02:02 2016 NAKAMURA Usaku <[email protected]>
* win32/win32.c (poll_child_status): rb_w32_wait_events_blocking() sets
errno internally, then should not set it here.
Fri Sep 30 19:06:21 2016 Anton Davydov <[email protected]>
* lib/uri/http.rb: Documentation and code style improvements.
* test/uri/test_http.rb: Added test for coverage.
[fix GH-1427][ruby-core:77255][Misc #12756]
Fri Sep 30 18:43:20 2016 Jason Yeo <[email protected]>
* doc/syntax/control_expressions.rdoc: Add missing 'as'
[ci skip][fix GH-1448] Patch by @jsyeo
Thu Sep 29 23:38:04 2016 Kazuhiro NISHIYAMA <[email protected]>
* lib/yaml/store.rb (YAML::Store#dump): use table argument instead
of @table directly.
Thu Sep 29 22:22:22 2016 Kazuhiro NISHIYAMA <[email protected]>
* lib/yaml/store.rb (YAML::Store#initialize): Fix arguments.
[ruby-dev:49821] [Bug #12800]
* test/yaml/test_store.rb: Add tests from test/test_pstore.rb.
* test/yaml/test_store.rb (YAMLStoreTest#test_with_options): Add options test.
* lib/yaml/store.rb (YAML::Store#dump): Revert to to_yaml.
* lib/yaml/store.rb (YAML::Store#empty_marshal_data): Use to_yaml with options.
* lib/yaml/store.rb (YAML::Store#empty_marshal_checksum): Use CHECKSUM_ALGO.
Thu Sep 29 19:34:23 2016 Pete Higgins <[email protected]>
* thread_sync.c (rb_queue_pop, rb_szqueue_push, rb_szqueue_pop):
Document exception types, ThreadError, raised by Queue and
SizedQueue. [Fix GH-1451]
Thu Sep 29 19:21:02 2016 Pete Higgins <[email protected]>
* thread_sync.c (Init_thread_sync): Remove confusing doc comments,
which are picked up by rdoc unexpectedly, from Queue and
SizedQueue. [Fix GH-1450]
Wed Sep 28 23:14:19 2016 Nobuyoshi Nakada <[email protected]>
* lib/pstore.rb (PStore::CHECKSUM_ALGO): find available hashing
algorithm for checksum. MD5 is not available in FIPS mode.
[Feature #6943]
Wed Sep 28 13:00:25 2016 ksss <[email protected]>
* signal.c (sig_signame): [DOC] Add documentation in the case of
return nil. [Fix GH-1449]
Wed Sep 28 10:43:27 2016 URABE Shyouhei <[email protected]>
* .travis.yml: delete comments. They were outdated.
Wed Sep 28 09:57:48 2016 Nobuyoshi Nakada <[email protected]>
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update
rubygems to 2.6.7.
Release note of 2.6.7: https://github.com/rubygems/rubygems/commit/60f35bd1d2359fc30301d2d4cd72bc6833e8d12a
Wed Sep 28 00:21:00 2016 Nobuyoshi Nakada <[email protected]>
* error.c (rb_warning_s_warn): the argument must be an
ASCII-compatible string. [ruby-core:77430] [Bug #12793]
Tue Sep 27 23:22:31 2016 Nobuyoshi Nakada <[email protected]>
* parse.y (symbol, dsym, parser_set_number_literal): set state to
ENDARG, so that `do` after a literal should be `do_block` and
bound to the outer method. [ruby-core:72482] [Bug #11873]
* parse.y (parse_ident): revert r56198.
* parse.y (warn_balanced): the state of symbol and numeric
literals is now EXPR_ENDARG, do not exclude it.
Tue Sep 27 22:59:42 2016 URABE Shyouhei <[email protected]>
* NEWS: news about Warning.warn.
Tue Sep 27 18:10:18 2016 Jeremy Evans <[email protected]>
* error.c: This makes all warnings raised call Warning.warn, which
by default does the same thing it does currently
(rb_write_error_str). You can override Warning.warn to change
the behavior. [ruby-core:75016] [Feature #12299]
Tue Sep 27 17:35:28 2016 Nobuyoshi Nakada <[email protected]>
* iseq.c (iseqw_s_compile_file): deal with syntax error as well as
compile, and should not abort when rescued.
Tue Sep 27 12:07:17 2016 NARUSE, Yui <[email protected]>
* lib/cgi/cookie.rb (parse): don't allow , as a separator. [Bug #12791]
* lib/webrick/cookie.rb (parse): ditto.
Mon Sep 26 21:37:21 2016 Akinori MUSHA <[email protected]>
* man/erb.1, man/irb.1, man/ri.1, man/ruby.1: Remove Ns before
punctuation.
Mon Sep 26 16:23:49 2016 Kazuki Yamaguchi <[email protected]>
* ext/stringio/stringio.c (strio_seek): Avoid signed integer overflow.
It's not harmful in practice here, but is still undefined behavior.
* ext/stringio/stringio.c (strio_extend): Check that the new length does
not exceed LONG_MAX. This fixes the invalid write on the overflow.
* test/stringio/test_stringio.rb (test_write_integer_overflow): Add a
test case for the above fix in strio_extend().
Mon Sep 26 15:43:34 2016 Kazuki Yamaguchi <[email protected]>
* eval_intern.h (TH_PUSH_TAG): Initialize struct rb_vm_tag::tag with
Qundef rather than 0 which is equal to Qfalse. Since Kernel#throw(obj)
searches a tag with rb_vm_tag::tag == obj, throw(false) can
accidentally find an unrelated tag which is not created by
Kernel#catch. [ruby-core:77229] [Bug #12743]
* test/ruby/test_exception.rb (test_throw_false): Add a test case for
this.
Mon Sep 26 14:36:12 2016 Naotoshi Seo <[email protected]>
* lib/tempfile.rb: provide default basename parameter for
Tempfile.create. [Feature #11965] Patch by Yuki Kurihara
* test/test_tempfile.rb: ditto.
Mon Sep 26 14:10:54 2016 Ary Borenszweig <[email protected]>
* string.c (lstrip_offset): add a fast path in the case of single
byte optimizable strings, as well as rstrip_offset.
[ruby-core:77392] [Feature #12788]
Mon Sep 26 12:00:12 2016 Nobuyoshi Nakada <[email protected]>
* gems/bundled_gems: update to minitest-5.9.1.
Mon Sep 26 11:50:03 2016 Kazuki Yamaguchi <[email protected]>
* tool/rbinstall.rb (gem): Don't install gemspec if no files will be
installed for the gem. This happens when the extension library is not
compiled.
Mon Sep 26 11:06:47 2016 Kazuki Yamaguchi <[email protected]>
* string.c (enc_strlen, rb_enc_strlen_cr): Avoid signed integer
overflow. The result type of a pointer subtraction may have the same
size as long. This fixes String#size returning an negative value on
i686-linux environment:
str = "\x00" * ((1<<31)-2))
str.slice!(-3, 3)
str.force_encoding("UTF-32BE")
str << 1234
p str.size
Sun Sep 25 22:48:06 2016 namusyaka <[email protected]>
* lib/erb.rb (ERB::Compiler::TrimScanner#stag): The :stag accessor
has already been available because it is defined in parent
Scanner class. [Fix GH-1445]
Sun Sep 25 19:21:26 2016 Kazuki Tsujimoto <[email protected]>
* node.c (dump_array): remove duplicate header of NODE_ARRAY/
NODE_VALUES.
Sat Sep 24 22:26:20 2016 Nobuyoshi Nakada <[email protected]>
* ext/extmk.rb (extract_makefile, extmake, configuration): store
extra libraries to be installed.
* tool/rbinstall.rb (ext-arch): install extra libraries.
* ext/zlib/extconf.rb: install zlib if built.
Sat Sep 24 14:24:55 2016 Kazuhiro NISHIYAMA <[email protected]>
* spec/README: update URL.
Sat Sep 24 11:28:22 2016 Koichi ITO <[email protected]>
* fix typos, "a" before "Integer" to "an". [Fix GH-1438]
Sat Sep 24 10:19:41 2016 Nobuyoshi Nakada <[email protected]>
* test/misc/test_ruby_mode.rb (assert_indent): since write-region
in Emacs 25.1 no longer displays the "Wrote file" message, shows
the explicit message to check if successfully finished.
[ruby-core:77355] [Bug #12785]
* test/misc/test_ruby_mode.rb (EXPR_SAVE): use a numeric prefix
argument of 0, not to make the previous version into a backup
file, instead of backup-inhibited.
* test/misc/test_ruby_mode.rb (run_emacs): always save the buffer
if modified.
Fri Sep 23 23:57:40 2016 Shugo Maeda <[email protected]>
* vm_method.c (make_method_entry_refined): fix wrong use of ||.
Fri Sep 23 21:38:58 2016 Akinori MUSHA <[email protected]>
* tool/mdoc2man.rb (Mdoc2Man#parse_macro): Add support for the
`Lk` macro.
* tool/mdoc2man.rb (Mdoc2Man#shift_arg): A new function to extract
a possibly quoted argument.
Fri Sep 23 20:36:05 2016 Shugo Maeda <[email protected]>
* eval.c (rb_mod_refine): refine modules as well.
[ruby-core:76199] [Feature #12534]
Fri Sep 23 20:19:09 2016 Akinori MUSHA <[email protected]>
* man/ruby.1: Update the paragraphs in "Rich Libraries" which
included a dead link.
Fri Sep 23 20:05:27 2016 Akinori MUSHA <[email protected]>
* man/ruby.1, man/erb.1, man/irb.1, man/ri.1: Use the `Lk` macro
for hyperlinks, which has been available since mdocml 1.5.1
(released more than seven years ago).
Fri Sep 23 15:47:04 2016 Nobuyoshi Nakada <[email protected]>
* lib/forwardable.rb (_delegator_method): allow private methods to
be delegated, with warnings. [ruby-core:77341] [Bug #12782]
Fri Sep 23 12:15:29 2016 Nobuyoshi Nakada <[email protected]>
* compile.c (iseq_peephole_optimize): enable tail call
optimization inside a conditional block.
Thu Sep 22 13:00:04 2016 Kazuhiro NISHIYAMA <[email protected]>
* gc.c (gc_start_internal): [DOC] methods without arguments
like r56194. [Bug #12777]
Wed Sep 21 17:43:53 2016 NARUSE, Yui <[email protected]>
* process.c (InitVM_process): Support CLOCK_MONOTONIC_RAW_APPROX,
CLOCK_UPTIME_RAW, and CLOCK_UPTIME_RAW_APPROX which are introduced
by macOS 10.12.
Wed Sep 21 13:47:33 2016 Nobuyoshi Nakada <[email protected]>
* parse.y (brace_body, do_body): preserve cmdarg_stack so that
`do` after cmdarg in a block should be `do_block` and bound to
the outer method. [ruby-core:72482] [Bug #11873]
* parse.y: `do` after cmdarg in parentheses should be `do_block`
and bound to the outer method. [ruby-core:72482] [Bug #11873]
* parse.y (brace_body, do_body): extract block bodies.
Tue Sep 20 23:02:50 2016 Nobuyoshi Nakada <[email protected]>
* gc.c (gc_start_internal): [DOC] add ObjectSpace.garbage_collect
and fix GC#garbage_collect. [Bug #12777]
Tue Sep 20 21:24:01 2016 Kazuhiro NISHIYAMA <[email protected]>
* doc/extension.ja.rdoc: translate r56189 (rb_gc_adjust_memory_usage).
Tue Sep 20 17:52:28 2016 SHIBATA Hiroshi <[email protected]>
* gems/bundled_gems: Update rake-11.3.0
Tue Sep 20 16:52:23 2016 Nobuyoshi Nakada <[email protected]>
* gc.c (rb_gc_adjust_memory_usage): notify memory usage to the GC
engine by extension libraries, to trigger GC. [Feature #12690]
Mon Sep 19 17:05:22 2016 Nobuyoshi Nakada <[email protected]>
* numeric.c (Init_Numeric), bignum.c (Init_Bignum): deprecate
Fixnum and Bignum. this may be reverted after previews.
[Feature #12739]
Mon Sep 19 10:36:53 2016 Nobuyoshi Nakada <[email protected]>
* enumerator.c (lazy_init_yielder): directly call stored functions.
[Feature #6183]
* enumerator.c (lazy_add_method): create lazy enumerator which
uses lazy_init_yielder().
Sun Sep 18 22:48:54 2016 Kouhei Sutou <[email protected]>
* lib/rss/rss.rb (RSS::BaseModel): Remove needless codes.
[Bug #12773][ruby-dev:49813]
Reported by Kazuhiro NISHIYAMA. Thanks!!!
Sun Sep 18 19:23:47 2016 Kazuhiro NISHIYAMA <[email protected]>
* lib/sync.rb: Fix NameError when error.
Sat Sep 17 22:46:02 2016 Koichi ITO <[email protected]>
* vm_insnhelper.c (vm_throw_start): Remove too much ";"
[fix GH-1432]
Sat Sep 17 19:19:06 2016 Kazuki Yamaguchi <[email protected]>
* test/openssl/test_ssl.rb (test_ctx_options): Fix test failure on
Ubuntu 16.04. The fix in r56147 was incomplete. This is a cherry-pick
of the commit b039f3e268c2 at ruby/openssl.
Sat Sep 17 10:49:35 2016 Kazuhiro NISHIYAMA <[email protected]>
* doc/extension.ja.rdoc: translate r56130 (rb_check_arity).
Sat Sep 17 02:40:52 2016 Aaron Patterson <[email protected]>
* ext/objspace/objspace_dump.c: Fix stream processing support for heap
dumps. Full heap dumps should use JSON lines (http://jsonlines.org)
so that we can process very large heaps without loading the entire
heap dump in to memory at once.
Fri Sep 16 22:10:31 2016 Naohisa Goto <[email protected]>
* ext/openssl/ossl_ssl.c (ssl_npn_select_cb_common): Fix compile error
with old version of fcc (Fujitsu C Compiler) on Solaris 10.
[Bug #12769] [ruby-dev:49809]
Fri Sep 16 21:28:25 2016 Naohisa Goto <[email protected]>
* internal.h (MAYBE_UNUSED): The fallback definition is needed.
Fix compile error with some non-GCC compilers such as
Oracle Solaris Studio 12.3 on Solaris 10.
[Bug #12767] [ruby-dev:49807]
* internal.h (WARN_UNUSED_RESULT): ditto.
Fri Sep 16 21:19:51 2016 Naohisa Goto <[email protected]>
* hash.c (each_pair_i_fast): Fix compile error with old version of
fcc on Solaris 10. [Bug #12768] [ruby-dev:49808]
Fri Sep 16 19:46:05 2016 NAKAMURA Usaku <[email protected]>
* win32/Makefile.sub (config.h): fixed compile error with VC introduced
by previous commit.
Fri Sep 16 14:54:34 2016 URABE Shyouhei <[email protected]>
* internal.h (WARN_UNUSED_RESULT): moved to configure.in, to
actually check its availability rather to check GCC's version.
* configure.in (WARN_UNUSED_RESULT): moved to here.
* configure.in (RUBY_FUNC_ATTRIBUTE): change function declaration
to return int rather than void, because it makes no sense for a
warn_unused_result attributed function to return void.
Funny thing however is that it also makes no sense for noreturn
attributed function to return int. So there is a fundamental
conflict between them. While I tested this, I confirmed both
GCC 6 and Clang 3.8 prefers int over void to correctly detect
necessary attributes under this setup. Maybe subject to change
in future.
* internal.h (UNINITIALIZED_VAR): renamed to MAYBE_UNUSED, then
moved to configure.in for the same reason we move
WARN_UNUSED_RESULT.
* configure.in (MAYBE_UNUSED): moved to here.
* internal.h (__has_attribute): deleted, because it has no use now.
* string.c (rb_str_enumerate_lines): refactor macro rename.
* string.c (rb_str_enumerate_bytes): ditto.
* string.c (rb_str_enumerate_chars): ditto.
* string.c (rb_str_enumerate_codepoints): ditto.
* thread.c (do_select): ditto.
* vm_backtrace.c (rb_debug_inspector_open): ditto.
* vsnprintf.c (BSD_vfprintf): ditto.
Fri Sep 16 14:35:55 2016 URABE Shyouhei <[email protected]>
* ChangeLog (add-log-time-format): Not exactly sure when but
recently (25.x maybe), emacs changed its API to take optional
two arguments. We have to follow that.
Fri Sep 16 06:43:25 2016 Aaron Patterson <[email protected]>
* lib/uri/generic.rb (def check_password): don't include bad password
in URI exception output
* test/uri/test_generic.rb (def test_set_component): test for behavior
Thu Sep 15 21:40:03 2016 Kazuhiro NISHIYAMA <[email protected]>
* doc/extension.ja.rdoc: Fix file name.
Thu Sep 15 00:59:30 2016 NARUSE, Yui <[email protected]>
* benchmark/: add vnmakarov's benchmarks around hash [ruby-core:75265]
Wed Sep 14 07:02:31 2016 NARUSE, Yui <[email protected]>
* hash.c (each_pair_i_fast): use rb_yield_values2 to avoid var args.
Tue Sep 13 21:32:54 2016 Kazuki Yamaguchi <[email protected]>
* string.c (STR_HEAP_SIZE, RESIZE_CAPA_TERM, str_new0, rb_str_buf_new,
str_shared_replace, rb_str_init, str_make_independent_expand,
rb_str_resize): Avoid overflow by casting the length to size_t. size_t
should be able to represent LONG_MAX+termlen.
* string.c (rb_str_modify_expand): Check that the new length is in the
range of long before resizing. Also refactor to use RESIZE_CAPA_TERM
macro.
* string.c (str_buf_cat): Fix so that it does not create a negative
length String. Also fix the condition for 'string sizes too big', the
total length can be up to LONG_MAX.
* string.c (rb_str_plus): Check the resulting String length does not
exceed LONG_MAX.
* string.c (rb_str_dump): Fix integer overflow. The dump result will be
longer then the original String.
Tue Sep 13 21:30:53 2016 Kazuki Yamaguchi <[email protected]>
* gc.c (heap_extend_pages, get_envparam_size, ruby_malloc_size_overflow,
gc_profile_dump_on): Use PRIuSIZE instead of PRIdSIZE as the passed
value is size_t, not ssize_t.
* iseq.c (get_line_info, rb_iseq_disasm_insn): Ditto.
* sprintf.c (rb_str_format): Ditto.
* thread_win32.c (native_thread_create): Ditto.
* vm.c (get_param): Ditto.
* ext/objspace/objspace_dump.c (dump_append_string_content,
dump_object): Ditto.
* ext/socket/raddrinfo.c (host_str, port_str): Ditto.
Tue Sep 13 21:27:35 2016 Kazuki Yamaguchi <[email protected]>
* string.c (STR_EMBEDDABLE_P): Renamed from STR_EMBEDABLE_P(). And use
it in more places.
Tue Sep 13 21:23:51 2016 Kazuhiro NISHIYAMA <[email protected]>
* README.md: Drop support for BeOS now that Haiku is stable since
2.3.0.
* README.ja.md: ditto.
Tue Sep 13 21:11:56 2016 Nobuyoshi Nakada <[email protected]>
* string.c (STR_EMBEDABLE_P): extract the predicate macro to tell
if the given length is capable in an embedded string, and fix
possible integer overflow.
Tue Sep 13 18:37:08 2016 Koichi Sasada <[email protected]>
* test/ruby/test_exception.rb: fix thread issues.
* use Queue instead of a local variable for synchronization.
* join created thread to solve leaking threads warning.
Tue Sep 13 16:07:26 2016 Kazuki Yamaguchi <[email protected]>
* string.c (rb_str_set_len): The buffer overflow check is wrong. The
space for termlen is allocated outside the capacity returned by
rb_str_capacity(). This fixes r41920 ("string.c: multi-byte
terminator", 2013-07-11). [ruby-core:77257] [Bug #12757]
* test/-ext-/string/test_set_len.rb (test_capacity_equals_to_new_size):
Test for this change. Applying only the test will trigger [BUG].
Tue Sep 13 06:03:34 2016 NARUSE, Yui <[email protected]>
* common.mk (benchmark): fix lib path.
Tue Sep 13 00:39:47 2016 Aaron Patterson <[email protected]>
* class.c (singleton_class_of): Copy superclass serial number to
singleton class. This improves singleton class IMC hit rates.
[Feature #12364] [ruby-core:75425]
Mon Sep 12 13:46:23 2016 Anton Davydov <[email protected]>
* lib/uri/mailto.rb: Removed needless `return` and use `.` instead of `::`
with class method.
* test/uri/test_mailto.rb: Added tests for coverage.
[fix GH-1426][Misc #12750][ruby-core:77242]
Sun Sep 11 21:30:26 2016 Kazuhiro NISHIYAMA <[email protected]>
* NEWS: News about Module.used_modules.
Sun Sep 11 19:06:49 2016 NAKAMURA Usaku <[email protected]>
* win32/win32.c (rb_w32_write_console): should set written length as the
return value. [Bug #12748] [ruby-dev:49786]
Fri Sep 9 22:43:29 2016 Kazuhiro NISHIYAMA <[email protected]>
* gems/bundled_gems: sort lines.
Fri Sep 9 17:59:46 2016 Nobuyoshi Nakada <[email protected]>
* thread.c (rb_threadptr_raise): set cause from the called thread,
but not from the thread to be interrupted.
[ruby-core:77222] [Bug #12741]
Fri Sep 9 13:50:05 2016 Nobuyoshi Nakada <[email protected]>
* doc/extension.rdoc, doc/extension.ja.rdoc: fix file name.
pointed out by @takkanm in the RubyKaigi talk.
Fri Sep 9 13:14:53 2016 Martin Duerst <[email protected]>
* News: Announcing update to Unicode version 9.0.0 [ci skip]
Fri Sep 9 10:10:00 2016 Nobuyoshi Nakada <[email protected]>
* variable.c (rb_const_search): warn with the actual class/module
name which defines the deprecated constant.
* variable.c (rb_const_search): raise with the actual class/module
name which defines the private constant.
Thu Sep 8 17:47:18 2016 Kazuki Tsujimoto <[email protected]>
* array.c (flatten): use rb_obj_class instead of rb_class_of
because rb_class_of may return a singleton class.
[ruby-dev:49781] [Bug #12738]
Thu Sep 8 17:40:15 2016 Nobuyoshi Nakada <[email protected]>
* tool/rbinstall.rb (gem): use the bindir of each gemspec instead
of hardcoded 'bin', since rdoc 5.0.0 overrides it.
Thu Sep 8 16:47:03 2016 Shugo Maeda <[email protected]>
* eval.c (rb_mod_s_used_modules): rename Module.used_refinements to
Module.used_modules. [Feature #7418] [ruby-core:49805]
Thu Sep 8 14:21:48 2016 SHIBATA Hiroshi <[email protected]>
* ext/psych/psych.gemspec, lib/rdoc/rdoc.gemspec: Use file list instead of
git output. It shows warning message when invoke `make install`
[Bug #12736][ruby-dev:49778]
Thu Sep 8 13:41:46 2016 Shugo Maeda <[email protected]>
* insns.def (setclassvariable, setconstant): warn when self is a
refinement. [Bug #10103] [ruby-core:64143]
Thu Sep 8 11:29:00 2016 Kenta Murata <[email protected]>
* hash.c (rb_hash_transform_values, rb_hash_transform_values_bang):
Rename map_v to transform_values.
[Feature #12512] [ruby-core:76095]
* test/ruby/test_hash.rb: ditto.
Thu Sep 8 10:08:35 2016 Kazuki Yamaguchi <[email protected]>
* {ext,test}/openssl: Import Ruby/OpenSSL 2.0.0.beta.2. The full commit
history since v2.0.0.beta.1 can be found at:
https://github.com/ruby/openssl/compare/v2.0.0.beta.1...v2.0.0.beta.2
Thu Sep 8 07:23:34 2016 SHIBATA Hiroshi <[email protected]>
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0.beta2
Fixed ri parse defect with left-hand matched classes.
https://github.com/rdoc/rdoc/pull/420
Thu Sep 8 01:12:47 2016 Shugo Maeda <[email protected]>
* eval.c (rb_mod_s_used_refinements): new method
Module.used_refinements. based on the patch by Charlie
Somerville. [Feature #7418] [ruby-core:49805]
Wed Sep 7 17:50:38 2016 Nobuyoshi Nakada <[email protected]>
* include/ruby/util.h (setenv): remove POSIX-noncompliant
definition with 2 arguments.
Wed Sep 7 17:35:37 2016 Martin Duerst <[email protected]>
* unicode/8.0.0/casefold.h, name2ctype.h, unicode/data/8.0.0:
removing directories/files related to Unicode version 8.0.0
Wed Sep 7 17:21:55 2016 Nobuyoshi Nakada <[email protected]>
* lib/timeout.rb (Timeout#timeout): add custom error message
argument. [Feature #11650]
Wed Sep 7 17:13:05 2016 Martin Duerst <[email protected]>
* common.mk: Updated Unicode version to 9.0.0 [Feature #12513]
* unicode/9.0.0/casefold.h, name2ctype.h, unicode/data/9.0.0:
new directories/files for Unicode version 9.0.0
Wed Sep 7 16:00:45 2016 Tanaka Akira <[email protected]>
* lib/open-uri.rb: Allow http to https redirection.
Note that https to http is still forbidden.
[ruby-core:20485] [Feature #859] by Roman Shterenzon.