Commit Graph

4594 Commits

Author SHA1 Message Date
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
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
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
Yukihiro "Matz" Matsumoto 777d460fb8 Merge pull request #1873 from suzukaze/refactor-assert.rb
Refactor assert_true
2014-03-17 00:13:45 +09:00
Akira Kuroda 395c0087d4 add unit tests for NilClass 2014-03-17 00:13:34 +09:00
Yukihiro "Matz" Matsumoto ffdef362ec Merge pull request #1874 from ksss/float-plus
float + nil should be raise TypeError
2014-03-17 00:13:24 +09:00
Yukihiro "Matz" Matsumoto 55c1942b43 add Enumerable#first to mruby-enum-ext 2014-03-17 00:04:34 +09:00
ksss 0fab9d557e float + nil should be raise TypeError 2014-03-16 23:39:58 +09:00
Jun Hiroe d27dcbe9d2 Refactor assert_true 2014-03-16 23:26:29 +09:00
ksss 9dcce29749 fix bug when 0 * other object 2014-03-16 23:08:31 +09:00
ksss e9f3dca0f4 fix bug when 0 + other object 2014-03-16 22:52:25 +09:00
ksss a481976056 fix bool number to macro 2014-03-16 21:06:08 +09:00
Jun Hiroe 8ba04a09a9 Add Enumerable#any?(&block) tests 2014-03-16 18:58:39 +09:00
Jun Hiroe cf556f0ad9 Add Enumerable#all?(&block) tests 2014-03-16 18:49:05 +09:00
Yukihiro "Matz" Matsumoto 18bebd3acd Merge pull request #1867 from cubicdaiya/issues/indent_style
Unify indent style
2014-03-16 14:41:01 +09:00
cubicdaiya cee152670a unify indent style 2014-03-16 07:44:44 +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 b09b774dda Merge pull request #1863 from take-cheeze/fiber_double_resume
Add Fiber's double resume test and fix it.
2014-03-15 15:59:54 +09:00
Yukihiro "Matz" Matsumoto 62505d51cc calc hash value directly for strings, symbols and numbers 2014-03-15 15:53:12 +09:00
Yukihiro "Matz" Matsumoto 048bca43c9 string length type to be mrb_int 2014-03-15 15:47: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
Yukihiro "Matz" Matsumoto b868ce8a77 Hash#shift may return any entries 2014-03-15 15:01:17 +09:00
Yukihiro "Matz" Matsumoto ddd1bfda02 type of mrb_type() should be enum mrb_vtype when MRB_NAN_BOXING is on 2014-03-15 14:30:17 +09:00
Yukihiro "Matz" Matsumoto fc75cff14e Merge pull request #1859 from ksss/enumerator
Fix Enumerator
2014-03-15 11:35:02 +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
ksss bc63518fa7 modify core method that return Enumerator object if not block given 2014-03-15 08:15:04 +09:00
ksss 29964cfdac make private method enumerator_block_call 2014-03-14 23:42:04 +09:00
Yukihiro "Matz" Matsumoto e893349e95 Merge pull request #1857 from mitchellh/f-fix-mingw-time
Don't redefine timeval in MinGW environments
2014-03-14 16:30:48 +09:00
Mitchell Hashimoto 3843a286b6 Don't redefine timeval on MingW64 environments 2014-03-13 23:23:28 -07:00
Yukihiro "Matz" Matsumoto 94df66fb08 Merge branch 'master' of github.com:mruby/mruby 2014-03-14 07:40:07 +09:00
Yukihiro "Matz" Matsumoto 1b6f6413db Merge pull request #1855 from take-cheeze/fix_mrbc_compile_error
Fix compile error check of Mrbc command.
2014-03-14 07:39:53 +09:00
take_cheeze deb5f59bec fix compile error check of Mrbc command 2014-03-14 03:44:22 +09:00
Yukihiro "Matz" Matsumoto 2bd099c842 remove new_label(s) where label position can be obtained from genop() 2014-03-14 03:11:11 +09:00
Yukihiro "Matz" Matsumoto 8094a503f0 move dependency check from runtime to mrbgem.rake 2014-03-14 02:59:50 +09:00
Yukihiro "Matz" Matsumoto 58362fc30c remove ambiguity warnings 2014-03-14 02:44:14 +09:00
Yukihiro "Matz" Matsumoto 113ab60784 mruby-enumerator: move definitions in core_mod.rb to mrblib core 2014-03-14 02:41:22 +09:00