-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
11538 lines (7372 loc) · 386 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 Aug 13 22:12:59 2013 Kenichi Kamiya <[email protected]>
* random.c (rb_random_ulong_limited): coerce before check negative.
[Fixes GH-379]
Tue Aug 13 21:52:15 2013 Kenichi Kamiya <[email protected]>
* object.c (Init_Object): undef Module#prepend_features on Class, as
well as Module#append_features. [Fixes GH-376]
* test_class.rb: Added test for above. And ensure type checking
on similar methods as module_function.
Tue Aug 13 08:52:18 2013 Zachary Scott <[email protected]>
* doc/syntax/literals.rdoc: [DOC] String literal concat by @cknadler
[Fixes GH-380] https://github.com/ruby/ruby/pull/380
Mon Aug 12 23:07:21 2013 Masaya Tarui <[email protected]>
* gc.c (gc_marks_test): inhibit gc for st's operation.
Mon Aug 12 15:59:50 2013 Nobuyoshi Nakada <[email protected]>
* parse.y (parser_whole_match_p): treat CR in middle of a line as a
mere whitespace.
Mon Aug 12 15:16:58 2013 Koichi Sasada <[email protected]>
* class.c (rb_prepend_module): make T_ICLASS object shady because
this T_ICLASS object seems to share method table with other class
objects. It was causes WB miss.
TODO: need to know the data structure.
* test/ruby/test_module.rb: add a test for WB miss.
Mon Aug 12 13:47:54 2013 Zachary Scott <[email protected]>
* process.c: [DOC] RDoc formatting of Process.clock_gettime
Mon Aug 12 13:29:09 2013 Zachary Scott <[email protected]>
* lib/yaml/dbm.rb: [DOC] Document call-seq for YAML::DBM
Mon Aug 12 12:57:26 2013 Zachary Scott <[email protected]>
* ext/dbm/extconf.rb: [DOC] Hide from RDoc
Some libraries might want to document extconf.rb so RDoc treats it
like any other ruby program. However, DBM users shouldn't care about
these methods.
Mon Aug 12 12:53:39 2013 Zachary Scott <[email protected]>
* ext/dbm/dbm.c: [DOC] Reformat headings of DBM class
Mon Aug 12 12:46:31 2013 Zachary Scott <[email protected]>
* lib/yaml.rb, lib/yaml/: [DOC] Document YAML::DBM#key and add
references to similar methods with more detail. This patch brings
lib/yaml to 100% documentation coverage.
Mon Aug 12 02:51:32 2013 NARUSE, Yui <[email protected]>
* ext/readline/readline.c (readline_s_set_input): on OS X with editline,
Readline.readline doesn't work because readline_get doesn't use
rl_getc. The difference is introduced by r42402 [ruby-dev:47509]
[Bug #8644]. Before it rb_io_stdio_file set ifp->stdio_file.
Therefore add manually setting the value.
* ext/readline/readline.c (readline_s_set_output): ditto.
Sun Aug 11 23:27:00 2013 Nobuyoshi Nakada <[email protected]>
* file.c (rb_str_encode_ospath): OS path encoding on Mac OS X is also
fixed.
Sun Aug 11 22:57:24 2013 Nobuyoshi Nakada <[email protected]>
* test/ruby/test_require.rb (assert_require_nonascii_path): OS path
encoding on Windows is fixed, so encoding of __FILE__ should be it.
[ruby-core:56498] [Bug #8764]
Sun Aug 11 19:11:45 2013 Kouhei Sutou <[email protected]>
* test/rexml/parser/test_sax2.rb: Expand abbreviated class name.
Sun Aug 11 19:06:03 2013 Kouhei Sutou <[email protected]>
* lib/rexml/sax2listener.rb (REXML::SAX2Listener#notationdecl): Fix
wrong number of arguments in the template listener.
[Bug #8731] [ruby-dev:47582]
Reported by Ippei Obayashi.
* test/rexml/parser/test_sax2.rb: Add tests for parsing notation
declarations with SAX2 API.
Sun Aug 11 18:44:04 2013 Kouhei Sutou <[email protected]>
* lib/rexml/sax2listener.rb (REXML::SAX2Listener#elementdecl): Fix wrong
examples. [Bug #8731] [ruby-dev:47582]
Reported by Ippei Obayashi.
Sun Aug 11 18:42:13 2013 Kouhei Sutou <[email protected]>
* lib/rexml/parsers/sax2parser.rb
(REXML::Parsers::SAX2Parser#handle_entitydecl): Extract.
Sun Aug 11 18:40:25 2013 Kouhei Sutou <[email protected]>
* lib/rexml/parsers/sax2parser.rb (REXML::Parsers::SAX2Parser#parse):
Fix wrong "%" position in parameter entity declaration event argument.
* test/rexml/parser/test_sax2.rb: Add tests for the above case.
Sun Aug 11 18:08:40 2013 Kouhei Sutou <[email protected]>
* lib/rexml/parsers/sax2parser.rb (REXML::Parsers::SAX2Parser#parse):
Support NDATA in external ID entity declaration.
* test/rexml/parser/test_sax2.rb: Add tests for the above case.
Sun Aug 11 18:07:39 2013 Kouhei Sutou <[email protected]>
* lib/rexml/parsers/baseparser.rb
(REXML::Parsers::BaseParser#pull_event): Support optional NDATA
in external ID entity declaration.
Sun Aug 11 17:54:07 2013 Kouhei Sutou <[email protected]>
* NEWS (REXML::Parsers::SAX2Parser): Add about this change.
* lib/rexml/parsers/sax2parser.rb (REXML::Parsers::SAX2Parser#parse):
Fix wrong number of arguments. Document says "an array of the
entity declaration" but it passes two or more arguments.
This is a bug but it break backward compatibility.
Reported by Ippei Obayashi. [Bug #8731] [ruby-dev:47582]
* lib/rexml/sax2listener.rb (REXML::SAX2Listener#entitydecl): ditto.
The listener template accepted two arguments.
* test/rexml/parser/test_sax2.rb: Add tests for external ID case.
Sun Aug 11 17:41:41 2013 Kouhei Sutou <[email protected]>
* test/rexml/parser/test_sax2.rb: Add SAX2 API test.
Sun Aug 11 15:10:40 2013 Nobuyoshi Nakada <[email protected]>
* parse.y (rb_enc_symname_type): allow ID_ATTRSET for ID_INSTANCE,
ID_GLOBAL, ID_CLASS, ID_JUNK too. [Bug #8756]
Sun Aug 11 13:17:00 2013 Charlie Somerville <[email protected]>
* include/ruby/encoding.h: Reduce ENCODING_INLINE_MAX to 127 as this
should be sufficient to represent all the encodings Ruby supports.
Sun Aug 11 11:54:38 2013 Tanaka Akira <[email protected]>
* process.c (rb_clock_gettime): New method.
This is accepted in the meeting:
https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20130809
This method is accepted as a CRuby feature.
I.e. Other Ruby implementations don't need to implement it.
[ruby-core:56087] [Feature #8658]
Sun Aug 11 10:40:48 2013 Zachary Scott <[email protected]>
* lib/time.rb: [DOC] Correcting rdoc visibility of time.rb constants
Reported by Tanaka Akira [ruby-core:56517]
Sun Aug 11 04:48:14 2013 NARUSE, Yui <[email protected]>
* file.c (rb_str_normalize_ospath):
HFS Plus (Mac OS Extended) uses a variant of Normal Form D in which
U+2000 through U+2FFF, U+F900 through U+FAFF, and U+2F800 through
U+2FAFF are not decomposed (this avoids problems with round trip
conversions from old Mac text encodings).
http://developer.apple.com/library/mac/qa/qa1173/_index.html
Therefore fix r42457 to exclude the range.
Sun Aug 11 03:26:07 2013 Tanaka Akira <[email protected]>
* bignum.c (bitsize): Fix a conditional expression.
Sun Aug 11 02:44:03 2013 Zachary Scott <[email protected]>
* lib/time.rb: [DOC] Document constants by @markijbema [Fixes GH-377]
https://github.com/ruby/ruby/pull/377
Sun Aug 11 01:28:52 2013 Tanaka Akira <[email protected]>
* configure.in: Revert r42458.
It removes the HAVE_CLOCK_GETTIME from config.h.
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20130809T044800Z.diff.html.gz
Sat Aug 10 13:53:22 2013 Nobuyoshi Nakada <[email protected]>
* parse.y (rb_id_attrset): allow other than ID_ATTRSET.
* parse.y (intern_str): ditto. try stem ID for ID_INSTANCE,
ID_GLOBAL, ID_CLASS, ID_JUNK too. [Bug #8756]
Sat Aug 10 12:49:50 2013 Kouhei Sutou <[email protected]>
* lib/rexml/parsers/baseparser.rb
(REXML::Parsers::BaseParser::CDATA_END): Use "\A" instead of "^".
It is not an used constant but I fix it. (Or should I remove it?)
Sat Aug 10 12:47:19 2013 Kouhei Sutou <[email protected]>
* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser):
Fix wrong constant name. "]>" pattern match is the same but
it is used for "<!DOCTYPE" end mark not "<![CDATA[" end mark.
Sat Aug 10 12:43:15 2013 Kouhei Sutou <[email protected]>
* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser):
Use "\A" instead of "^" in document type declaration patterns
because they are used as the head match in content not the head
match in line. They don't cause any problems in the current code
but it should be fixed.
Sat Aug 10 12:39:00 2013 Kouhei Sutou <[email protected]>
* test/rexml/parse/test_document_type_declaration.rb: Add tests for
parsing document type declaration.
Sat Aug 10 12:00:45 2013 Kouhei Sutou <[email protected]>
* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::SYSTEM):
Fix loose "head" match regular expression. It doesn't cause any
problem in the current code but it should be fixed because readers
may confuse it.
Patch by Ippei Obayashi. Thanks!!!
Sat Aug 10 11:58:24 2013 Kouhei Sutou <[email protected]>
* test/rexml/parse/test_notation_declaration.rb (#test_system_public):
Add a test for PUBLIC notation and SYSTEM notation order case.
Sat Aug 10 11:31:35 2013 Kouhei Sutou <[email protected]>
* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::PUBLIC):
Fix loose "head" match regular expression.
[Bug #8701] [ruby-dev:47551]
Patch by Ippei Obayashi. Thanks!!!
* test/rexml/parse/test_notation_declaration.rb (#test_system_public):
Add a test for the above case.
Sat Aug 10 09:20:21 2013 Zachary Scott <[email protected]>
* NEWS: [DOC] typo in example reported by @moretea
https://github.com/ruby/ruby/commit/a39e724#commitcomment-3831489
Sat Aug 10 09:19:04 2013 Zachary Scott <[email protected]>
* proc.c: [DOC] rdoc code formatting
Sat Aug 10 09:12:01 2013 Nobuyoshi Nakada <[email protected]>
* parse.y (rb_id_attrset): check if the argument is valid type as an
attribute.
Sat Aug 10 05:44:08 2013 Zachary Scott <[email protected]>
* lib/rss/trackback.rb: [DOC] Hide RSS::Trackback from rdoc
Patch by Steve Klabnik [Bug #8755] [ruby-core:56456]
Sat Aug 10 04:52:21 2013 Tanaka Akira <[email protected]>
* bignum.c (big_div_struct): Use size_t.
(bigdivrem1): Ditto.
(bigdivrem_num_extra_words): Ditto.
(bigdivrem_single): Ditto.
(bigdivrem_normal): Ditto.
(bary_divmod): Ditto.
Fri Aug 9 23:47:15 2013 Kouhei Sutou <[email protected]>
* lib/rss/rexmlparser.rb: Remove needless REXML version check.
Both RSS Parser and REXML are bundled in Ruby. RSS Parser can
always use the latest REXML. [Bug #8754] [ruby-core:56454]
Patch by Steve Klabnik. Thanks!!!
Fri Aug 9 22:51:10 2013 Nobuyoshi Nakada <[email protected]>
* configure.in (XLDFLAGS, LIBRUBYARG_STATIC): CoreFoundation framework
option is now needed always, regardless enable-shared.
[ruby-core:56467] [Bug #8759]
Fri Aug 9 22:20:51 2013 Nobuyoshi Nakada <[email protected]>
* ruby.c (load_file_internal): use rb_parser_compile_string_path and
rb_parser_compile_file_path, String path name versions. [Bug #8753]
Fri Aug 9 07:16:00 2013 Charlie Somerville <[email protected]>
* ext/io/console/console.c: delete redefinition of rb_cloexec_open.
drop support for 1.8 and 1.9 from the next release of io-console gem.
Fri Aug 9 19:13:54 2013 Koichi Sasada <[email protected]>
* NEWS: update about new methods for Binding.
Fri Aug 9 18:48:09 2013 Koichi Sasada <[email protected]>
* proc.c: add Binding#local_variable_get/set/defined?
to access local variables which a binding contains.
Most part of implementation by nobu.
* test/ruby/test_proc.rb: add a tests for above.
* vm.c, vm_core.h (rb_binding_add_dynavars): add a new function
to add a new environment to create space for new local variables.
Fri Aug 9 14:02:01 2013 SHIBATA Hiroshi <[email protected]>
* tool/make-snapshot: Fix order of priority for option parameter.
Fri Aug 9 12:06:49 2013 Nobuyoshi Nakada <[email protected]>
* file.c (rb_str_normalize_ospath): normalize to Normalization Form C
using CFString.
Fri Aug 9 10:53:57 2013 Kazuki Tsujimoto <[email protected]>
* time.c (get_timeval, get_new_timeval): use rb_obj_class()
instead of CLASS_OF() because CLASS_OF() may return
a singleton class.
Fri Aug 9 10:42:11 2013 Kazuki Tsujimoto <[email protected]>
* vm_insnhelper.c (vm_invoke_block): returning from lambda proc
now always exits from the Proc. [ruby-core:56193] [Feature #8693]
* NEWS, test/ruby/test_lambda.rb: ditto. Patch by nobu.
Fri Aug 9 00:10:32 2013 Nobuyoshi Nakada <[email protected]>
* enumerator.c (lazy_zip_func): fix non-single argument. fix
out-of-bound access and pack multiple yielded values.
[ruby-core:56383] [Bug #8735]
Thu Aug 8 23:01:20 2013 Nobuyoshi Nakada <[email protected]>
* object.c (rb_mod_singleton_p): new method Module#singleton_class? to
return whether the receiver is a singleton class or not.
[ruby-core:51087] [Feature #7609]
Thu Aug 8 21:56:44 2013 Tanaka Akira <[email protected]>
* time.c (time_overflow_p): Avoid signed integer overflow.
(rb_time_new): Fix overflow condition.
Thu Aug 8 19:58:02 2013 Koichi Sasada <[email protected]>
* thread.c (rb_threadptr_pending_interrupt_check_mask):
use RARRAY_RAWPTR() instead of RARRAY_PTR() because
there is no new reference.
Thu Aug 8 19:56:52 2013 Koichi Sasada <[email protected]>
* string.c (rb_str_format_m): use RARRAY_RAWPTR() instead of
RARRAY_PTR() because there is no new reference.
Thu Aug 8 19:55:51 2013 Koichi Sasada <[email protected]>
* include/ruby/ruby.h: define USE_RGENGC_LOGGING_WB_UNPROTECT.
Thu Aug 8 16:44:25 2013 Koichi Sasada <[email protected]>
* include/ruby/ruby.h: add old macro name `RUBY_EVENT_SWITCH'.
This macro name is obsolete because it is renamed to
RUBY_INTERNAL_EVENT_SWITCH, but it has compatibility problem
using this macro name like ruby-prof.
I want to remove this macro after ruby 2.1.
Thu Aug 8 15:37:53 2013 NAKAMURA Usaku <[email protected]>
* test/coverage/test_coverage.rb (TestCoverage#test_big_code): use `1'
instead of `p' to get rid of a side effect.
Kernel#p without any argument seems to do nothing, but flushes stdout.
and, if stdout is redirected to file, fsync() will be called on
Windows. so, when running test-all on Windows with redirection, such
as CI environment, this test took a lot of time.
Thu Aug 8 14:54:18 2013 Shugo Maeda <[email protected]>
* NEWS: add description of incompatibility introduced by r42396.
[ruby-core:56329] [Bug #8722]
Thu Aug 8 14:50:36 2013 NARUSE, Yui <[email protected]>
* common.mk (mini): portable target to build miniruby
* common.mk (bisect): run git-bisect with miniruby
* common.mk (bisect-ruby): run git-bisect with ruby
* tool/bisect.sh: script for git-bisect
Thu Aug 8 12:11:43 2013 NAKAMURA Usaku <[email protected]>
* test/webrick/test_httpresponse.rb (test_send_body_*_chunked): these
expectations assumes that the IOs are binmode. fixed test failures
introduced at r42427 on Windows.
Thu Aug 8 10:27:18 2013 Nobuyoshi Nakada <[email protected]>
* range.c (range_last): revert r42400. [Bug #8739]
Thu Aug 8 10:26:25 2013 Nobuyoshi Nakada <[email protected]>
* file.c (rb_str_normalize_ospath): extract and move from dir.c.
Thu Aug 8 05:59:00 2013 Charlie Somerville <[email protected]>
* test/openssl/test_ssl.rb: Fix test for CVE-2013-4073.
Patch by Antonio Terceiro. [Bug #8750] [ruby-core:56437]
Thu Aug 8 03:37:38 2013 Eric Hodel <[email protected]>
* lib/webrick/httpresponse.rb: Allow #body to be an IO-like object
that responds to #readpartial and #read.
[ruby-trunk - Feature #8155]
* NEWS: NEWS for above
* test/webrick/test_httpresponse.rb: Tests for above.
Wed Aug 7 23:06:26 2013 Akinori MUSHA <[email protected]>
* ruby.c (Process.argv0): New method to return the original value
of $0. [Feature #8696]
Wed Aug 7 23:05:55 2013 Akinori MUSHA <[email protected]>
* ruby.c (Process.setproctitle): New method to change the title of
the running process that is shown in ps(1). [Feature #8696]
Wed Aug 7 20:05:38 2013 Tanaka Akira <[email protected]>
* bignum.c (rb_big_odd_p): Check the bignum length.
(rb_big_even_p): Ditto.
Wed Aug 7 19:29:26 2013 Tanaka Akira <[email protected]>
* bignum.c (dbl2big): A condition simplified.
Wed Aug 7 16:34:30 2013 NAKAMURA Usaku <[email protected]>
* test/webrick/test_cgi.rb (TestWEBrickCGI#{start_cgi_server,test_cgi}):
mswin is not only mswin32 but also mswin64. [Bug #8746]
Wed Aug 7 16:19:12 2013 Koichi Sasada <[email protected]>
* cont.c (rb_fiber_start): use RARRAY_RAWPTR() instead of
RARRAY_PTR() because there is no new reference.
* proc.c (curry): ditto.
* proc.c (rb_proc_call): remove line break.
Wed Aug 7 13:20:12 2013 Koichi Sasada <[email protected]>
* random.c (random_load): use RARRAY_RAWPTR() instead of
RARRAY_PTR() because there is no new reference.
Wed Aug 7 12:58:23 2013 Koichi Sasada <[email protected]>
* thread.c (thread_start_func_2): use RARRAY_RAWPTR() instead of
RARRAY_PTR() because there is no new reference.
Wed Aug 7 09:00:24 2013 Zachary Scott <[email protected]>
* string.c: [DOC] Description of rb_str_equal [Fixes GH-375]
Based on a patch by @markijbema
https://github.com/ruby/ruby/pull/375
Wed Aug 7 08:30:38 2013 Zachary Scott <[email protected]>
* ext/openssl/ossl_hmac.c: [DOC] Documentation for OpenSSL::HMAC
based on a patch by @repah documenting-ruby/ruby#14
https://github.com/documenting-ruby/ruby/pull/14
Wed Aug 7 07:46:23 2013 Zachary Scott <[email protected]>
* lib/rss/utils.rb: [DOC] RSS::Utils by Steve Klabnik [Bug #8745]
Wed Aug 7 07:38:39 2013 Tanaka Akira <[email protected]>
* bignum.c (nlz16): Removed.
(nlz32): Ditto.
(nlz64): Ditto.
(nlz128): Ditto.
(nlz_int): New function.
(nlz_long): New function.
(nlz_long_long): New function.
(nlz_int128): New function.
(nlz): Follow above changes.
(bitsize): Follow above changes.
Tue Aug 6 22:38:15 2013 Zachary Scott <[email protected]>
* time.c: [DOC] Typo in Time overview by @sparr [Fixes GH-374]
https://github.com/ruby/ruby/pull/374
Tue Aug 6 22:35:32 2013 Zachary Scott <[email protected]>
* lib/rss/1.0.rb: [DOC] Document RSS10 by Steve Klabnik [Bug #8740]
Tue Aug 6 22:14:11 2013 Kouji Takao <[email protected]>
* ext/readline/readline.c (readline_s_delete_text): remove
checking "$SAFE == 4".
* ext/readline/readline.c: fix rdoc, remove "Raises SecurityError"
and add "Raises NotImplementedError".
Tue Aug 6 22:04:38 2013 Kouji Takao <[email protected]>
* ext/readline/readline.c, test/readline/test_readline.rb: fix
indent.
Tue Aug 6 21:59:56 2013 Nobuyoshi Nakada <[email protected]>
* range.c (range_last): return nil for empty range, or in the case the
predecessor is smaller than the begin. [Bug #8739]
Tue Aug 6 21:48:31 2013 Kouji Takao <[email protected]>
* ext/readline/readline.c (readline_s_set_point, Init_readline):
add Readline.point=(pos). Patched by naruse. [ruby-dev:47535]
[Feature #8675]
Tue Aug 6 21:14:11 2013 Kouji Takao <[email protected]>
* ext/readline/readline.c (Init_readline, readline_s_set_output)
(clear_rl_outstream, readline_s_set_input, clear_rl_instream)
(readline_readline): fix causing SEGV if closed IO object that is
set Readline.input or Readline.output. Patched by akr
[ruby-dev:47509] [Bug #8644]
Tue Aug 6 17:56:40 2013 Koichi Sasada <[email protected]>
* vm_insnhelper.c (vm_push_frame): change type of stack_max to size_t.
Tue Aug 6 17:42:47 2013 Nobuyoshi Nakada <[email protected]>
* range.c (range_last): exclude the last number of the exclusive range
if the end is Numeric. [ruby-dev:47587] [Bug #8739]
Tue Aug 6 17:42:21 2013 Nobuyoshi Nakada <[email protected]>
* win32/win32.c (rb_w32_conv_from_wchar): converted string to CP_UTF8
should have UTF-8 encoding. otherwise no conversion takes place
later.
Tue Aug 6 17:21:38 2013 Koichi Sasada <[email protected]>
* vm_insnhelper.c (vm_push_frame): fix stack overflow check codes.
Stack overflow check should be done *after* pushing a stack frame.
However, some stack overflow checking codes checked *before*
pushing a stack frame with iseq->stack_max.
To solve this problem, add a new parameter `stack_max' to specify
a possible consuming stack size.
* vm_core.h (CHECK_VM_STACK_OVERFLOW0): add to share the stack overflow
checking code.
* insns.def: catch up this change.
* vm.c, vm_eval.c: ditto.
* test/ruby/test_exception.rb: add a stack overflow test.
This code is reported by nobu.
Tue Aug 6 17:02:17 2013 Nobuyoshi Nakada <[email protected]>
* win32/win32.c (rb_w32_conv_from_wchar): use WideCharToMultiByte(),
as like as mbstr_to_wstr(), in the first step of the conversion from
WCHAR.
Tue Aug 6 16:14:32 2013 Shugo Maeda <[email protected]>
* vm_eval.c (eval_string_with_cref): copy cref to limit the scope of
refinements in the eval string. [ruby-core:56329] [Bug #8722]
* test/ruby/test_refinement.rb: related test.
Tue Aug 6 12:23:12 2013 Tanaka Akira <[email protected]>
* bignum.c (rb_big_realloc): Use VALGRIND_MAKE_MEM_UNDEFINED to
declare undefined memory area.
(bignew_1): Ditto.
* internal.h (VALGRIND_MAKE_MEM_DEFINED): Moved from gc.c
(VALGRIND_MAKE_MEM_UNDEFINED): Ditto.
Tue Aug 6 01:40:37 2013 Zachary Scott <[email protected]>
* process.c: [DOC] Document caveats of command form of Process.spawn
with regard to the shell and OS. Patched by Steve Klabnik [Bug #8550]
Tue Aug 6 01:28:35 2013 Zachary Scott <[email protected]>
* lib/rss/0.9.rb: [DOC] Typo in example [Bug #8732]
Tue Aug 6 01:22:37 2013 Zachary Scott <[email protected]>
* lib/rss/2.0.rb: [DOC] Document RSS::Rss by Steve Klabnik #8740
* lib/rss/atom.rb: [DOC] Typo in rdoc by Steve Klabnik
Mon Aug 5 23:47:59 2013 Tanaka Akira <[email protected]>
* bignum.c: Rename local variables.
Mon Aug 5 22:23:59 2013 Zachary Scott <[email protected]>
* vm_trace.c: [DOC] Fix TracePoint return values in examples
Based on a patch by @sho-h [Fixes GH-373]
https://github.com/ruby/ruby/pull/373
Mon Aug 5 17:38:15 2013 Nobuyoshi Nakada <[email protected]>
* win32/win32.c (rb_w32_write_console): use MultiByteToWideChar() for
the last step of conversion to WCHAR, to get rid of warnings from
rb_enc_find() in miniruby. [ruby-dev:47584] [Bug #8733]
* win32/win32.c (wstr_to_mbstr, mbstr_to_wstr): fix wrong trimming.
WideCharToMultiByte() and MultiByteToWideChar() do not count
NUL-terminator in the size for conversion result, unless the input
length is -1.
Mon Aug 5 11:51:00 2013 Charlie Somerville <[email protected]>
* include/ruby/encoding.h: document which user flags are used by
ENCODING_MASK for better greppability
Mon Aug 5 10:01:00 2013 Charlie Somerville <[email protected]>
* object.c (rb_class_inherited_p): allow iclasses to be tested for
inheritance. [Bug #8686] [ruby-core:56174]
* test/ruby/test_method.rb: add test
Mon Aug 5 06:13:48 2013 Zachary Scott <[email protected]>
* enumerator.c: [DOC] Remove reference to Enumerator::Lazy#cycle
Patch by @kachick [Fixes GH-372]
https://github.com/ruby/ruby/pull/372
Mon Aug 5 03:57:16 2013 Zachary Scott <[email protected]>
* lib/rss/0.9.rb: [DOC] Document RSS09 by Steve Klabnik [Bug #8732]
Mon Aug 5 03:35:11 2013 Zachary Scott <[email protected]>
* lib/rexml/attribute.rb: [DOC] Update example for #namespace
Patch by Ippei Obayashi [Bug #8685] [ruby-core:56173]
Sun Aug 4 21:08:29 2013 Masaki Matsushita <[email protected]>
* array.c (rb_ary_zip): performance implement by using
ALLOCA_N() to allocate tmp buffer.
Sun Aug 4 07:14:49 2013 Tanaka Akira <[email protected]>
* README.EXT, README.EXT.ja: Mention rb_integer_pack and
rb_integer_unpack.
Sun Aug 4 01:54:45 2013 Tanaka Akira <[email protected]>
* bignum.c (BARY_TRUNC): New macro.
(bary_cmp): Use BARY_TRUNC.
(bary_mul_toom3): Ditto.
(bary_divmod): Ditto.
(abs2twocomp): Ditto.
(bigfixize): Ditto.
(rb_cstr_to_inum): Ditto.
(big2str_karatsuba): Ditto.
(bigdivrem): Ditto.
Sun Aug 4 00:57:58 2013 Tanaka Akira <[email protected]>
* bignum.c (big2str_karatsuba): Don't allocate new temporary buffer
if the buffer is enough for current invocation.
Sun Aug 4 00:22:34 2013 Tanaka Akira <[email protected]>
* bignum.c (bary2bdigitdbl): New function.
(bdigitdbl2bary): Ditto.
(bary_mul_single): Use bdigitdbl2bary.
(power_cache_get_power): Ditto.
(bary_divmod): Use bary2bdigitdbl.
(big2str_orig): Ditto.
(bigdivrem): Ditto.
Sat Aug 3 22:47:11 2013 Tanaka Akira <[email protected]>
* bignum.c: The branch condition of selecting multiplication
algorithms should check smaller argument because Karatsuba and Toom3
is effective only if both arguments are big.
(bary_mul_toom3_branch): Compare the smaller argument to
TOOM3_MUL_DIGITS.
(bary_mul): Compare the smaller argument to KARATSUBA_MUL_DIGITS.
Sat Aug 3 22:23:31 2013 Tanaka Akira <[email protected]>
* bignum.c (big2str_orig): Receive the number to stringize as
BDIGIT array and size.
(big2str_karatsuba): Receive the number to stringize as BDIGIT array
and size. Use an temporary array of BDIGIT.
(rb_big2str1): Follow the above change.
Sat Aug 3 13:30:04 2013 Tanaka Akira <[email protected]>
* bignum.c (MAX_BASE36_POWER_TABLE_ENTRIES): Renamed from
MAX_BIG2STR_TABLE_ENTRIES.
(base36_power_cache): Renamed from big2str_power_cache.
(base36_numdigits_cache): Renamed from big2str_numdigits_cache.
Sat Aug 3 10:33:52 2013 Nobuyoshi Nakada <[email protected]>
* parse.y (parser_set_integer_literal): use rb_rational_raw1() for
integral rational because no reduction is needed with 1.
Sat Aug 3 09:46:07 2013 Nobuyoshi Nakada <[email protected]>
* ext/etc/etc.c (setup_passwd, setup_group): set proper encodings to
string members.
Sat Aug 3 09:30:57 2013 Nobuyoshi Nakada <[email protected]>
* struct.c (rb_struct_define_under): new function to define Struct
under the given namespace, not under Struct. [Feature #8264]
* ext/etc/etc.c: use rb_struct_define_under.
Sat Aug 3 06:55:29 2013 NAKAMURA Usaku <[email protected]>
* parse.y (value_expr_gen): now NODE_DEFN and NODE_DEFS are not void
value expressions. get rid of wrong warning with -w, and make to
pass tests with chkbuild. ref. [Feature #3753]
Sat Aug 3 04:23:48 2013 Eric Hodel <[email protected]>
* doc/syntax/refinements.rdoc: Remove mention of instance_eval and
module_eval from scope section per:
http://twitter.com/shugomaeda/status/363219951336693761
Sat Aug 3 02:22:05 2013 Tanaka Akira <[email protected]>
* bignum.c (big2str_orig): Refactored.
Sat Aug 3 01:20:19 2013 Tanaka Akira <[email protected]>
* bignum.c (bigadd_core): Removed.
(bigadd): Use bary_add instead of bigadd_core.
Sat Aug 3 00:52:43 2013 Tanaka Akira <[email protected]>
* bignum.c (rb_big2str1): Simplify power_level calculation.
Sat Aug 3 00:34:20 2013 Masaki Matsushita <[email protected]>
* array.c (rb_ary_zip): use rb_ary_new2() to create buffer
if rb_block_arity() > 1.
Sat Aug 3 00:12:00 2013 Masaki Matsushita <[email protected]>
* NEWS: Add the description that IO#seek supports SEEK_DATA
and SEEK_HOLE.
Fri Aug 2 23:57:57 2013 NAKAMURA Usaku <[email protected]>
* vm.c (m_core_define_method, m_core_define_singleton_method): now
the value of def-expr is the Symbol of the name of the method, not
nil.
ref. [ruby-dev:42151] [Feature #3753]
* test/ruby/test_syntax.rb (TestSyntax#test_value_of_def): test for
above changes.
Fri Aug 2 23:54:11 2013 Masaki Matsushita <[email protected]>
* array.c (rb_ary_zip): performance improvement by avoiding
array creation if rb_block_arity() > 1.
Fri Aug 2 23:50:53 2013 Tanaka Akira <[email protected]>
* bignum.c (power_cache_get_power): Apply bigtrunc to the result of
bigsq.
(big2str_karatsuba): Fix number of leading zero characters.
Fri Aug 2 23:48:36 2013 Nobuyoshi Nakada <[email protected]>
* parse.y (parser_yylex): calculate denominator directly as powers of
ten, not parsing string.
* parse.y (parser_number_literal_suffix): return bit set of found
suffixes.
* parse.y (parser_set_number_literal, parser_set_integer_literal):
split from parser_number_literal_suffix to set yylval.
* parse.y (parser_yylex): parse rational number literal with decimal
point precisely.
* parse.y (simple_numeric): integrate numeric literals and simplify
numeric rules.
* ext/ripper/eventids2.c (ripper_init_eventids2): ripper support for
new literals, tRATIONAL and tIMAGINARY.
Fri Aug 2 18:33:28 2013 Tanaka Akira <[email protected]>
* bignum.c (big2str_karatsuba): Reduce power_level more than one at
recursion, if possible.
(rb_big2str1): Follow the above change.
Fri Aug 2 12:25:15 2013 Tanaka Akira <[email protected]>
* bignum.c (bary_mul): Swap x and y for bary_mul1 if x is longer than y.
[ruby-dev:47565] [Bug #8719] Reported by Narihiro Nakamura.
Fri Aug 2 10:39:00 2013 Charlie Somerville <[email protected]>
* parse.y (negate_lit): add T_RATIONAL and T_COMPLEX to the switch
statement, and call rb_bug() if an unknown type is passed to
negate_lit(). [ruby-core:56316] [Bug #8717]
* bootstraptest/test_literal_suffix.rb (assert_equal): add test
Fri Aug 2 09:14:47 2013 Eric Hodel <[email protected]>
* doc/syntax/refinements.rdoc: Improve description of where you may
activate refinements.
Fri Aug 2 07:45:55 2013 Tanaka Akira <[email protected]>
* bignum.c (big2str_orig): Remove len argument.
(big2str_karatsuba): Ditto.
(rb_big2str1): Follow above change.
Thu Aug 2 02:32:00 2013 Kenta Murata <[email protected]>
* NEWS: Add the description of number literal suffixes.
Thu Aug 2 00:02:00 2013 Kenta Murata <[email protected]>
* bootstraptest/test_literal_suffix.rb: add two test cases to
examine that "1if true" and "1rescue nil" are recognized as 1.
Thu Aug 1 23:45:00 2013 Kenta Murata <[email protected]>
* rational.c (rb_flt_rationalize_with_prec): new public C function
to rationalize a Float instance with a precision.
* rational.c (rb_flt_rationalize): new public C function to
rationalize a Float instance. A precision is calculated from
the given float number.
* include/ruby/intern.h: Add rb_flt_rationalize_with_prec and
rb_flt_rationalize.
* parse.y: implement number literal suffixes, 'r' and 'i'.
[ruby-core:55096] [Feature #8430]
* bootstraptest/test_literal_suffix.rb: add tests for parser to scan
number literals with the above tsuffixes.
Thu Aug 1 23:55:08 2013 Tanaka Akira <[email protected]>
* bignum.c (rb_big2str1): Remove a local variable.
Thu Aug 1 23:33:01 2013 Tanaka Akira <[email protected]>
* bignum.c (rb_cstr_to_inum): Use power_cache_get_power.
Thu Aug 1 21:02:48 2013 Tanaka Akira <[email protected]>
* bignum.c (rb_big2str1): Raise an error for too big number.
Thu Aug 1 20:46:29 2013 Tanaka Akira <[email protected]>
* bignum.c (power_cache_get_power): Hide cached Bignum objects.
Thu Aug 1 19:15:05 2013 Tanaka Akira <[email protected]>
* bignum.c (rb_big2str1): Remove non-trim mode.
(rb_big2str0): Non-trim mode implemented here.
(big2str_find_n1): Change the result type to long again.
(big2str_base_powerof2): Don't take arguments: len and trim.
(rb_big2str): Follow above change.
Thu Aug 1 12:37:58 2013 Tanaka Akira <[email protected]>
* bignum.c (big2str_alloc): New function to allocate the result string.
It is called after actual length is calculated.
(big2str_struct): Add fields: negative, result and ptr.
(big2str_orig): Write out the result via b2s->ptr.
(big2str_orig): Ditto.
(rb_big2str1): Don't allocate the result string at beginning.
Thu Aug 1 07:36:27 2013 Tanaka Akira <[email protected]>
* bignum.c (big2str_orig): Use temporary buffer when trim mode.
Thu Aug 1 06:28:48 2013 Tanaka Akira <[email protected]>
* bignum.c (big2str_orig): Simplified because RBIGNUM_LEN(x) <= 2 now.
(big2str_struct): Two fields added: hbase2, hbase2_numdigits.
(rb_big2str1): Initialize above fields.
Thu Aug 1 04:06:17 2013 Nobuyoshi Nakada <[email protected]>
* lib/rdoc/options.rb (RDoc#finish): include root path in include
paths, to work in another directory than the source directory.
[ruby-core:56282] [Bug #8712]
* test/test_rdoc_markup_pre_process.rb (TestRDocMarkupPreProcess#setup):
fix input_file_name, as the test script is not pre-processed.
Thu Aug 1 01:45:18 2013 Tanaka Akira <[email protected]>
* bignum.c (big2str_karatsuba): Fix a condition of power_level.
Thu Aug 1 01:09:02 2013 Tanaka Akira <[email protected]>
* bignum.c (LOG2_KARATSUBA_BIG2STR_DIGITS): Removed.
(KARATSUBA_BIG2STR_DIGITS): Removed.
(big2str_numdigits_cache): New variable.
(power_cache_get_power): Merged with power_cache_get_power0.
This function returns maxpow_in_bdigit_dbl(base)**(2**power_level).
(rb_big2str1): use power_cache_get_power.
Wed Jul 31 23:59:28 2013 Tanaka Akira <[email protected]>
* bignum.c (big2str_find_n1): Change the return type to size_t.
(big2str_orig): Ditto.
(big2str_karatsuba): Ditto.
(rb_big2str1): Follow the above changes.
Wed Jul 31 23:19:06 2013 Tanaka Akira <[email protected]>
* bignum.c (power_cache_get_power): Change numdigits_ret to size_t *.
(big2str_orig): Change len argument to size_t.
(big2str_karatsuba): Ditto.
(rb_big2str1): Follow the above changes.
Wed Jul 31 22:59:47 2013 Kouhei Sutou <[email protected]>
* test/rexml/parse/test_notation_declaration.rb: Change class
name to follow file name change.
Wed Jul 31 22:57:50 2013 Kouhei Sutou <[email protected]>
* test/rexml/test_notationdecl_parsetest.rb: Rename to ...
* test/rexml/parse/test_notation_declaration.rb: ... this.
Wed Jul 31 22:54:39 2013 Kouhei Sutou <[email protected]>
* test/rexml/test_notationdecl_mixin.rb: Remove duplicated tests.
Wed Jul 31 22:52:55 2013 Kouhei Sutou <[email protected]>
* test/rexml/test_notationdecl_parsetest.rb: Fix typos in expected
value.
pubilc ->
public
^^
Wed Jul 31 22:50:51 2013 Kouhei Sutou <[email protected]>
* test/rexml/test_notationdecl_parsetest.rb: Add tests that focus
system literal in external ID system notation declaration.
Wed Jul 31 22:36:21 2013 Tanaka Akira <[email protected]>
* bignum.c (bary_cmp): Extracted from rb_big_cmp.
(power_cache_get_power): Change n1 argument (number of digits) to
power_level which is just passed to power_cache_get_power0.
(big2str_karatsuba): Ditto.
(rb_big2str1): Calculate the initial power_level.
Wed Jul 31 22:04:36 2013 Kouhei Sutou <[email protected]>
* test/rexml/test_notationdecl_parsetest.rb: Fix a typo.
Extern ID ->
ExternalID
^^
Wed Jul 31 22:01:36 2013 Kouhei Sutou <[email protected]>
* test/rexml/test_notationdecl_parsetest.rb: Add tests that focus
public ID in external ID notation declaration.
Wed Jul 31 22:01:24 2013 Kazuhiro NISHIYAMA <[email protected]>
* parse.y: fix build error with bison-3.0.
Wed Jul 31 21:58:53 2013 Kouhei Sutou <[email protected]>
* test/rexml/test_notationdecl_parsetest.rb: Split test patterns.
Wed Jul 31 21:42:33 2013 Kouhei Sutou <[email protected]>