Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [DOC] Fix formatting issue in Enumerable | Peter Zhu | 2022-08-08 | 1 | -1/+1 |
| | |||||
* | Rename rb_ary_tmp_new to rb_ary_hidden_new | Peter Zhu | 2022-07-26 | 1 | -2/+2 |
| | | | | | | rb_ary_tmp_new suggests that the array is temporary in some way, but that's not true, it just creates an array that's hidden and not on the transient heap. This commit renames it to rb_ary_hidden_new. | ||||
* | Expand tabs [ci skip] | Takashi Kokubun | 2022-07-21 | 1 | -307/+307 |
| | | | | [Misc #18891] | ||||
* | Revert flawed doc for slice_after, slice_when, and chunk_while (#5952) | Burdette Lamar | 2022-05-28 | 1 | -55/+107 |
| | | | Restores doc for the methods that were cited in https://bugs.ruby-lang.org/issues/18765. | ||||
* | Simplify example code for Enumerable#each_with_object | Colin Hart | 2022-04-25 | 1 | -2/+4 |
| | |||||
* | [DOC] Repair format and links in What's Here sections (#5711) | Burdette Lamar | 2022-03-25 | 1 | -61/+65 |
| | | | | | * Repair format and links in What's Here for Comparable and Array * Repair format for What's Here in enum.c | ||||
* | Raise ArgumentError when calling Enumberable#inject without block or arguments | Jeremy Evans | 2022-03-23 | 1 | -1/+9 |
| | | | | | | | | Previously, this would work as expected if the enumerable contained 0 or 1 element, and would raise LocalJumpError otherwise. That inconsistent behavior is likely to lead to bugs. Fixes [Bug #18635] | ||||
* | [DOC] Use RDoc link style for links in the same class/module | Peter Zhu | 2022-02-07 | 1 | -6/+6 |
| | | | | | | | | | | I used this regex: (?<=\[)#(?:class|module)-([A-Za-z]+)-label-([A-Za-z0-9\-\+]+) And performed a global find & replace for this: rdoc-ref:$1@$2 | ||||
* | Prefer the dedecated conversion function | Nobuyoshi Nakada | 2022-01-08 | 1 | -1/+1 |
| | |||||
* | Enhanced RDoc for Enumerable (#5393) | Burdette Lamar | 2022-01-04 | 1 | -3/+19 |
| | | | A little more about the classes that include or extend Enumerable. | ||||
* | Make Enumerable#each_cons return object if over size | Jeremy Evans | 2021-11-16 | 1 | -5/+5 |
| | | | | | | | | | This behavior changed in dfb47bbd17c3c2b8ce17dbafaf62df023b0224b2, but only for normal exit, not for early exit. Fix it for early exit as well. While here, fix example code in documentation so that it doesn't indicate that the method returns nil. | ||||
* | Delegate keywords from Enumerable#to_a to #each | Jeremy Evans | 2021-11-05 | 1 | -1/+1 |
| | | | | Fixes [Bug #18289] | ||||
* | Fix `Enumerable#each_cons` and `Enumerable#each_slice` to return a receiver | TSUYUSATO Kitsune | 2021-10-25 | 1 | -6/+6 |
| | | | | Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com> Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> | ||||
* | [DOC] Fix code markup [ci skip] | Nobuyoshi Nakada | 2021-10-25 | 1 | -2/+2 |
| | | | | Code markup in RDoc must not be concatenated with anothr word. | ||||
* | Accommondate earlier reviews of RDoc for Enumerable (#4943) | Burdette Lamar | 2021-10-06 | 1 | -8/+36 |
| | |||||
* | Enhanced RDoc for Enumerable (#4941) | Burdette Lamar | 2021-10-06 | 1 | -38/+40 |
| | | | | | | | | Treated: #sum #uniq #compact | ||||
* | Enhanced RDoc for Enumerable (#4938) | Burdette Lamar | 2021-10-05 | 1 | -110/+57 |
| | | | | | | | | Treats: #slice_after #slice_when #chunk_while | ||||
* | Enhanced RDoc for Enumerable#slice_before (#4932) | Burdette Lamar | 2021-10-05 | 1 | -17/+33 |
| | | | | | * Enhanced RDoc for Enumerable#slice_before * Enhanced RDoc for Enumerable#slice_before | ||||
* | Enhanced RDoc for Enumerable#chunk (#4930) | Burdette Lamar | 2021-10-04 | 1 | -45/+62 |
| | |||||
* | Using NIL_P macro instead of `== Qnil` | S.H | 2021-10-03 | 1 | -2/+2 |
| | |||||
* | Enhanced RDoc for Enumerable (#4922) | Burdette Lamar | 2021-10-01 | 1 | -29/+46 |
| | | | | | | | | Treated: #drop #drop_while #cycle | ||||
* | Enhanced RDoc for Enumerable (#4918) | Burdette Lamar | 2021-10-01 | 1 | -35/+80 |
| | | | | | | | | Treats: #zip #take #take_while | ||||
* | Enhanced RDoc for Enumerable (#4917) | Burdette Lamar | 2021-09-30 | 1 | -75/+110 |
| | | | | | | | | | | | Treats: #each_with_index #reverse_each #each_entry #each_slice #each_cons #each_with_object | ||||
* | Enhanced RDoc for Enumerable (#4910) | Burdette Lamar | 2021-09-29 | 1 | -124/+160 |
| | | | | | | | | | | | | Treats: #min #max #minmax #min_by #max_by #minmax_by #include? | ||||
* | Enhanced RDoc for Enumerable (#4908) | Burdette Lamar | 2021-09-28 | 1 | -58/+121 |
| | | | | | | | | Treated: #none? #one? #min | ||||
* | Enhanced RDoc for Enumerable (#4906) | Burdette Lamar | 2021-09-28 | 1 | -88/+176 |
| | | | | | | | | | | | | | Treats: #partition #group_by #tally #first #sort #sort_by #all? #any? | ||||
* | Enhanced RDoc for Enumerable#inject (#4876) | Burdette Lamar | 2021-09-20 | 1 | -38/+131 |
| | |||||
* | Using RB_BIGNUM_TYPE_P macro | S-H-GAMELINKS | 2021-09-11 | 1 | -3/+3 |
| | |||||
* | Enhanced RDoc for Enumerable (#4808) | Burdette Lamar | 2021-09-10 | 1 | -26/+21 |
| | | | | | | #to_a #to_h #inject | ||||
* | Extracted repeatedly defined IDs | Nobuyoshi Nakada | 2021-07-27 | 1 | -27/+53 |
| | |||||
* | Enhanced RDoc for Enumerable (#4479) | Burdette Lamar | 2021-05-10 | 1 | -101/+104 |
| | | | | | | | | | | | | | Methods treated: #count #find #find_index #select #filter_map #reject #map #flat_map | ||||
* | Enhanced RDoc for Enumerable (#4473) | Burdette Lamar | 2021-05-08 | 1 | -21/+39 |
| | | | Enhanced RDoc for Enumerable: #grep and #grep_v. | ||||
* | Fix Enumerable#tally with some arguments pattern [Feature #17744] | Kenichi Kamiya | 2021-03-27 | 1 | -3/+7 |
| | | | | | | | | | | | | | | * Add test cases for Enumerable#tally with hash argument * Add ruby/spec for Enumerable#tally with hash argument * Fix Enumerable#tally does not update given frozen hash * Add test cases for Enumerable#tally with hash convertible arguments * Fix SEGV when Enumerable#tally takes non Hash convertible * FIx cosmetic damage enum.c | ||||
* | Enumerable#tally with the resulting hash [Feature #17744] | Nobuyoshi Nakada | 2021-03-26 | 1 | -6/+22 |
| | |||||
* | Add write-barrier in tally | Nobuyoshi Nakada | 2021-03-20 | 1 | -1/+4 |
| | |||||
* | Fix Enumerable#inject with high negative fixnums [Bug #17731] | Marc-Andre Lafortune | 2021-03-19 | 1 | -1/+1 |
| | |||||
* | Improve Enumerable#tally performance | Nobuyoshi Nakada | 2021-03-16 | 1 | -6/+14 |
| | | | | | | | | | Iteration per second (i/s) | |compare-ruby|built-ruby| |:------|-----------:|---------:| |tally | 52.814| 114.936| | | -| 2.18x| | ||||
* | RDoc: Enhanced introduction for Enumerable (#4004) | Burdette Lamar | 2021-01-04 | 1 | -7/+129 |
| | | | | | | | * RDoc: Enhanced introduction for Enumerable * RDoc: Enhanced introduction for Enumerable * RDoc: Enhanced introduction for Enumerable | ||||
* | Fix indent [ci skip] | Kazuhiro NISHIYAMA | 2021-01-05 | 1 | -4/+4 |
| | | | | | Suggested by @hanachin at https://github.com/rurema/doctree/pull/2425#discussion_r551327592 | ||||
* | Add Enumerable#compact and Enumerator::Lazy#compact | zverok | 2021-01-02 | 1 | -0/+43 |
| | |||||
* | Removed leading spaces [ci skip] | Nobuyoshi Nakada | 2020-12-16 | 1 | -1/+1 |
| | |||||
* | Optimize `Enumerable#grep{_v}` | Marc-Andre Lafortune | 2020-12-15 | 1 | -12/+40 |
| | | | | [Bug #17030] | ||||
* | Removed canonicalization for mathn | Nobuyoshi Nakada | 2020-11-10 | 1 | -10/+1 |
| | |||||
* | Fix links | S-H-GAMELINKS | 2020-11-10 | 1 | -1/+1 |
| | |||||
* | Don't redefine #rb_intern over and over again | Stefan Stüben | 2020-10-21 | 1 | -4/+1 |
| | |||||
* | Respect visibility in non-array Enumerable#inject [Bug #13592] | Nobuyoshi Nakada | 2020-07-24 | 1 | -1/+1 |
| | |||||
* | add spaces [ci skip] | 卜部昌平 | 2020-06-29 | 1 | -0/+14 |
| | |||||
* | sum_iter: do not goto into a branch | 卜部昌平 | 2020-06-29 | 1 | -107/+115 |
| | | | | | I'm not necessarily against every goto in general, but jumping into a branch is definitely a bad idea. Better refactor. | ||||
* | Update example code in Enumerator#chunk documentation [ci skip] | Jeremy Evans | 2020-06-12 | 1 | -1/+1 |
| | | | | | | | | | The code assumed that /usr/share/dict/words did not use mixed case, and it does at least on a few operating systems. From CryptoRAT (Luke Elliot) Fixes [Bug #16957] | ||||
* | docs: fix typo | szTheory | 2020-06-07 | 1 | -2/+2 |
| |