Commit Graph

4633 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto d7eb455cf3 Merge branch 'master' of github.com:mruby/mruby 2014-03-19 09:08:11 +09:00
Yukihiro "Matz" Matsumoto 72c274473b remove size_t cast in mrb_assert() since ((size_t)n <= SIZE_MAX) is always true 2014-03-19 09:07:59 +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
Yukihiro "Matz" Matsumoto 2f4eed2501 Merge pull request #1889 from iij/pr-struct-new-block-def
Set the newly created Struct object to self in its initialization block.
2014-03-19 07:54:22 +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 792c1add0c string functions arguments changed from mrb_int to size_t that would take strlen() 2014-03-19 00:46:27 +09:00
Yukihiro "Matz" Matsumoto 180b3d5678 change mrb_int to size_t that would take strlen() 2014-03-19 00:17:03 +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 598385e2d6 Merge pull request #1886 from iij/pr-kernel-loop-rescue-error
Kernel.loop should not catch StandardError.
2014-03-18 22:21:01 +09:00
Yukihiro "Matz" Matsumoto 4893a1f431 Merge pull request #1884 from monaka/pr-reduce-implicit-type-cast
Reduce implicit type casts.
2014-03-18 22:18:57 +09:00
Tomoyuki Sahara 4b4784f96f rescue StopIteration only. 2014-03-18 19:02:38 +09:00
Masaki Muranaka 1df355e300 Reduce implicit type casts. 2014-03-18 17:36:47 +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
Yukihiro "Matz" Matsumoto 9201af7d36 mark root fiber object; close #1865 2014-03-18 12:39:11 +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 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 26930ddc19 Merge branch 'refactor-enumerable.rb' of https://github.com/suzukaze/mruby into suzukaze-refactor-enumerable.rb 2014-03-17 08:45:05 +09:00
Yukihiro "Matz" Matsumoto cea951dc7a Merge branch 'master' of github.com:mruby/mruby 2014-03-17 08:44:46 +09:00
Yukihiro "Matz" Matsumoto 446d721715 Merge pull request #1875 from akuroda/pr_nil_test
add unit tests for NilClass
2014-03-17 08:41:41 +09:00
Jun Hiroe bdeef827ac Refactor Enumerable#include? 2014-03-17 01:18:45 +09:00
Jun Hiroe a21088b2d7 Refactor Enumerable#any? 2014-03-17 01:18:44 +09:00
Jun Hiroe b9632bce46 Refactor Enumerable#all? 2014-03-17 01:18:44 +09:00
Yukihiro "Matz" Matsumoto 5ac737cf88 add Enumerable#sort_by 2014-03-17 01:09:07 +09:00
Yukihiro "Matz" Matsumoto 027d6407cc make Enumerable methods to support multiple values; collect, detect, each_with_index, find_all, inject, max, min, partition, reject, sort 2014-03-17 00:53:08 +09:00
Yukihiro "Matz" Matsumoto ed2fe64076 Enumerable#entries to support multiple values; close #1868 2014-03-17 00:34:47 +09:00
take_cheeze 624e34a6fe don't show version '0.0.0' in build summary since it's default version 2014-03-17 00:34:25 +09:00
take_cheeze c35b0c5245 add summary to mrbgems without it 2014-03-17 00:34:25 +09:00
take_cheeze 4bd623ba75 print gem summary in print_build_summary method 2014-03-17 00:34:24 +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 75a4f1ac96 refactor Enumerable#{all?,any?} tests 2014-03-17 00:17:52 +09:00
Yukihiro "Matz" Matsumoto 3687e1f97b Merge branch 'master' of github.com:mruby/mruby 2014-03-17 00:16:01 +09:00
Yukihiro "Matz" Matsumoto 0d82ada922 Merge pull request #1869 from suzukaze/add-test-enumerable.rb
Add test enumerable.rb
2014-03-17 00:15:51 +09:00
Yukihiro "Matz" Matsumoto d53423fb7d Merge pull request #1870 from ksss/convert_type
fix bool number to macro
2014-03-17 00:15:01 +09:00
Yukihiro "Matz" Matsumoto e4ae3bf661 Merge pull request #1871 from ksss/numeric-plus
fix bug when `0 + other object`
2014-03-17 00:14:42 +09:00
Yukihiro "Matz" Matsumoto 5140e27b5a Merge pull request #1872 from ksss/numeric-mul
fix bug when `0 * other object`
2014-03-17 00:14:16 +09:00