Commit Graph

482 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto c978fd7b35 should test Enumerable#first; close #1905 2014-03-21 23:33:59 +09:00
Yukihiro "Matz" Matsumoto da34749db0 add const qualifier to pacify warning; ref #1900 2014-03-21 23:19:07 +09:00
take_cheeze e854a0e850 make Fiber#transfer compatible with CRuby 2014-03-21 22:10:47 +09:00
take_cheeze d4d4f1b0d5 implement Fiber#transfer 2014-03-21 22:10:47 +09:00
Yukihiro "Matz" Matsumoto 07bd65ae65 flat_map to support multiple values; ref #1902 2014-03-21 13:35:39 +09:00
Jun Hiroe 44763ebc74 Add Enumerable#{flat_map,collect_concat} 2014-03-21 12:34:21 +09:00
Yukihiro "Matz" Matsumoto 2c44f96e78 reduce hash creation by using update method 2014-03-21 09:31:44 +09:00
Yukihiro "Matz" Matsumoto bb5e4cfd6d Merge branch 'master' of github.com:mruby/mruby 2014-03-21 09:20:11 +09:00
Yukihiro "Matz" Matsumoto 298c07d6ca add Hash#each_pair 2014-03-21 09:19:53 +09:00
Jun Hiroe 6cfc5795af Add Enumerable#count comment 2014-03-21 00:44:00 +09:00
take_cheeze de65d4e2a7 make behavior of Fiber without block compatible with CRuby 2014-03-20 04:49:14 +09:00
take_cheeze daaedf320c refactor and use assert_raise in fiber test checking exception raise 2014-03-20 04:40:50 +09:00
take_cheeze 272fe3d864 use FiberError in fiber exception raise 2014-03-20 04:38:34 +09:00
Yukihiro "Matz" Matsumoto 07d81a113d enum methods to support multiple values; all?, any?, grep, include?, drop, drop_while, take, take_while, each_cons, each_slice, group_by, first, count 2014-03-19 15:36:55 +09:00
Yukihiro "Matz" Matsumoto 2bf718faf8 Merge pull request #1882 from ksss/enum-find_all
Enumerable#find_all return Enumerator if non block given
2014-03-19 10:43:54 +09:00
Yukihiro "Matz" Matsumoto d9107fd157 Merge pull request #1890 from take-cheeze/fiber_resuming
Revert MRB_FIBER_RESUMED as MRB_FIBER_RESUMING.
2014-03-19 08:59:45 +09:00
Yukihiro "Matz" Matsumoto 9084e03556 rename mrb_yield_internal to mrb_yield_with_class since it's no longer internal 2014-03-19 08:57:54 +09:00
Tomoyuki Sahara 40c18fca77 self must be the newly created object in initialization block; close #1858 2014-03-19 01:08:46 +09:00
Tomoyuki Sahara 93694fe521 export mrb_yield_internal. 2014-03-19 01:08:01 +09:00
take_cheeze 4be7a8b7e8 add root fiber resume test to know double resume checking is working 2014-03-19 01:05:21 +09:00
take_cheeze 19c4bf6fcb revert MRB_FIBER_RESUMED as MRB_FIBER_RESUMING to fix recurive resume 2014-03-19 01:05:21 +09:00
Yukihiro "Matz" Matsumoto 3e24e06b29 add a space after C reserved words 2014-03-18 23:57:29 +09:00
Yukihiro "Matz" Matsumoto 575d919122 should not use nil as default value for Enumerable#count since it prevent counting nil in enums; ref #1887 2014-03-18 23:50:31 +09:00
Yukihiro "Matz" Matsumoto 290faf88df Merge pull request #1887 from suzukaze/add-enumerable.count
Add Enumerable#count
2014-03-18 23:48:15 +09:00
Yukihiro "Matz" Matsumoto 53a282ac0e stricter check for double resume; close #1885 2014-03-18 23:47:01 +09:00
Jun Hiroe 17fdd81573 Add Enumerable#count test 2014-03-18 23:08:24 +09:00
Jun Hiroe 02ac5dd9f1 Add Enumerable#count 2014-03-18 23:06:01 +09:00
Yukihiro "Matz" Matsumoto 31b2980acb Merge pull request #1880 from ksss/enum-each_with_index
Enumrable#each_with_index return Enumerator if non block given
2014-03-18 22:22:23 +09:00
Yukihiro "Matz" Matsumoto 555c187687 Merge pull request #1883 from suzukaze/add-test-enumerable
Add enumerable test
2014-03-18 22:21:37 +09:00
Yukihiro "Matz" Matsumoto b844b96858 add Fiber#== from #1865 patch 2014-03-18 12:42:35 +09:00
Yukihiro "Matz" Matsumoto 4c690b23a6 add fiber assertion from #1865 patch 2014-03-18 12:41:51 +09:00
Jun Hiroe 0349283fab Add Enumerable#first test 2014-03-18 00:30:31 +09:00
Jun Hiroe 7380acf1b6 Add Enumerable#sort_by test 2014-03-18 00:29:14 +09:00
ksss fd80d4ecdd Enumerable#find_all return Enumerator if non block given 2014-03-17 23:32:31 +09:00
ksss 9abe413530 Enumrable#each_with_index return Enumerator if non block given 2014-03-17 22:31:40 +09:00
Yukihiro "Matz" Matsumoto 2f8dbd8e5d recover description in default.gembox 2014-03-17 08:57:02 +09:00
Yukihiro "Matz" Matsumoto 2abfeeafdb Merge branch 'mrbgem_summary' of https://github.com/take-cheeze/mruby into take-cheeze-mrbgem_summary 2014-03-17 08:53:16 +09:00
Yukihiro "Matz" Matsumoto 5ac737cf88 add Enumerable#sort_by 2014-03-17 01:09:07 +09:00
take_cheeze c35b0c5245 add summary to mrbgems without it 2014-03-17 00:34:25 +09:00
take_cheeze c73f8d4def move summary of mrbgems in default gembox to its spec 2014-03-17 00:34:24 +09:00
Yukihiro "Matz" Matsumoto 55c1942b43 add Enumerable#first to mruby-enum-ext 2014-03-17 00:04:34 +09:00
Yukihiro "Matz" Matsumoto ef884caca5 Merge branch 'master' of github.com:mruby/mruby 2014-03-15 16:03:21 +09:00
Yukihiro "Matz" Matsumoto c476c1b528 symbol length type to be mrb_int 2014-03-15 15:43:40 +09:00
take_cheeze 62f05614ee Add Fiber's double resume test and fix it. 2014-03-15 15:18:06 +09:00
ksss 447764763c add test for Array#each_index if non block given 2014-03-15 08:21:39 +09:00
ksss 4f8e11ae57 optimize from each to enumerator_block_call 2014-03-15 08:21:39 +09:00
ksss 0bb7f5e950 fix variable name typo 2014-03-15 08:21:39 +09:00
ksss 9447c637a5 test split and to detail 2014-03-15 08:21:34 +09:00
ksss 6b3cc0052d fix self modifying bug 2014-03-15 08:15:16 +09:00
ksss 47fc784b56 fix return value for with_index 2014-03-15 08:15:16 +09:00