Commit Graph

4696 Commits

Author SHA1 Message Date
Jun Hiroe 776a680e89 Enumerable#minmax_by 2014-03-23 11:41:23 +09:00
Yukihiro "Matz" Matsumoto bbee56f284 Merge pull request #1915 from suzukaze/add-enum.minmax
Add Enumerable#minmax
2014-03-23 02:13:06 +09:00
Yukihiro "Matz" Matsumoto 76b2ba886a Merge pull request #1916 from ksss/hash-enumerator
Hash#each_{key,value} support return Enumerator if non block given
2014-03-23 02:11:54 +09:00
ksss 5386cd9b9b Hash#each_{key,value} support return Enumerator
if non block given
2014-03-23 00:22:22 +09:00
Yukihiro "Matz" Matsumoto 539d9cb855 need not to add assertion in STR_SET_LEN() where n is mrb_int 2014-03-22 22:33:09 +09:00
Jun Hiroe 77291f3531 Support multiple values in Enumerable#minmax 2014-03-22 22:06:39 +09:00
Jun Hiroe 5027aaaf4e Add Enumerable#minmax 2014-03-22 21:52:08 +09:00
Yukihiro "Matz" Matsumoto 7182ef6358 Merge pull request #1914 from stomar/struct-emsg
use the same error message
2014-03-22 18:46:10 +09:00
Yukihiro "Matz" Matsumoto 6b43f71b21 Merge pull request #1913 from take-cheeze/fiber_unnecessary_get_args
Remove unnecessary mrb_get_args in fiber_switch.
2014-03-22 18:45:02 +09:00
Marcus Stollsteimer 4f0a163842 use the same error message 2014-03-22 09:51:46 +01:00
take_cheeze cad9648bde remove unnecessary mrb_get_args in fiber_switch 2014-03-22 17:51:43 +09:00
Yukihiro "Matz" Matsumoto 5488da6c44 Merge pull request #1907 from ksss/float-round
Float#round fix bug for infinity and nan cases
2014-03-22 16:58:56 +09:00
Yukihiro "Matz" Matsumoto 064030732a Merge branch 'master' of github.com:mruby/mruby 2014-03-22 16:56:43 +09:00
Yukihiro "Matz" Matsumoto 22d57105eb add Enumerable#min_by as well; ref #1912 2014-03-22 16:55:47 +09:00
Yukihiro "Matz" Matsumoto 04b5e705e0 wrap expr with paren 2014-03-22 16:54:54 +09:00
Yukihiro "Matz" Matsumoto ebb337b132 fix multiple value support of max_by; ref #1912 2014-03-22 16:47:56 +09:00
Yukihiro "Matz" Matsumoto 927bf68769 Merge pull request #1911 from cubicdaiya/issues/use_bool_macro
Use bool-macro instead of magic-number
2014-03-22 16:40:08 +09:00
Yukihiro "Matz" Matsumoto 2a1488756d Merge pull request #1910 from take-cheeze/fiber_error
Use FiberError in vm.c.
2014-03-22 16:39:46 +09:00
Jun Hiroe 5ef1021d88 Support mulitple values in Enumerable#max_by 2014-03-22 14:51:47 +09:00
Jun Hiroe af7db89aa3 Add Enumerable#max_by 2014-03-22 14:51:45 +09:00
cubicdaiya 51947f132b Use bool-macro instead of magic-number 2014-03-22 09:55:48 +09:00
take_cheeze f536492521 use FiberError in vm.c 2014-03-22 03:19:58 +09:00
Yukihiro "Matz" Matsumoto 7c82b9e1bf use mrb_get_args("i") 2014-03-21 23:36:03 +09:00
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
Yukihiro "Matz" Matsumoto 73eac77b70 Merge branch 'master' of github.com:mruby/mruby 2014-03-21 23:15:07 +09:00
Yukihiro "Matz" Matsumoto 6a458ab5a5 Merge pull request #1900 from take-cheeze/fiber_transfer
Implement Fiber#transfer.
2014-03-21 23:14:54 +09:00
Yukihiro "Matz" Matsumoto 9bf983ae02 Merge branch 'master' of github.com:mruby/mruby 2014-03-21 23:02:56 +09:00
Yukihiro "Matz" Matsumoto 01162ce812 Merge pull request #1904 from ktaobo/get-arg-int
Prevent accepting String value for mrb_get_args("i")
2014-03-21 23:02:46 +09:00
ksss 8891cea41c Float#round fix bug for infinity and nan cases 2014-03-21 22:24:33 +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 041b5a9f67 reduce object allocation in __update 2014-03-21 21:53:50 +09:00
Keita Obo 3faa76851d Prevent accepting String value for mrb_get_args("i")
Accepting String value for mrb_get_args("i")
causes unintentional expression.

  * `"str" * "3"` => `"strstrstr"`

This change prevents String->Integer conversion for mrb_get_args("i")
and fixes above problem.

See also:
https://github.com/mruby/mruby/issues/1903
2014-03-21 21:41:04 +09:00
Yukihiro "Matz" Matsumoto 07bd65ae65 flat_map to support multiple values; ref #1902 2014-03-21 13:35:39 +09:00
Yukihiro "Matz" Matsumoto 34a7c9f567 Merge pull request #1902 from suzukaze/add-enum-flat_map
Add Enumerable#{flat_map, collect_concat}
2014-03-21 13:32:54 +09:00
Yukihiro "Matz" Matsumoto 607cf951fc Merge pull request #1901 from ksss/compar-other
Fix behavior of Comparable methods when <=> return nil
2014-03-21 13:32:01 +09:00
Jun Hiroe 44763ebc74 Add Enumerable#{flat_map,collect_concat} 2014-03-21 12:34:21 +09:00
ksss 72fe192259 Fix behavior of Comparable methods
when <=> return nil
2014-03-21 11:58:47 +09:00
Yukihiro "Matz" Matsumoto 2c44f96e78 reduce hash creation by using update method 2014-03-21 09:31:44 +09:00
Yukihiro "Matz" Matsumoto 287f317f05 Merge branch 'master' of github.com:mruby/mruby 2014-03-21 09:24:40 +09:00
Yukihiro "Matz" Matsumoto 5bcb119ed7 use File#directory? instead of File#exist?; ref c2d8b0 2014-03-21 09:24:28 +09:00
Yukihiro "Matz" Matsumoto b331db1c47 Merge pull request #1899 from stomar/about
Reword mention of mrbtest in README
2014-03-21 09:21:09 +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
Yukihiro "Matz" Matsumoto 45b0e1f788 should be able to create hash with 127+ entries; close #1894 2014-03-21 09:18:10 +09:00
Marcus Stollsteimer 69ec2547ce Reword mention of mrbtest in README 2014-03-20 20:10:23 +01:00
Yukihiro "Matz" Matsumoto e96a1bc4e6 Merge pull request #1898 from akuroda/pr_true_test
add tests for TrueClass
2014-03-21 03:27:17 +09:00
Yukihiro "Matz" Matsumoto d3ae793ef7 Merge pull request #1897 from suzukaze/add-enum-count-comment
Add Enumerable#count comment
2014-03-21 03:26:49 +09:00
Yukihiro "Matz" Matsumoto 34002374fc Merge pull request #1895 from stomar/typos
Fix typos in README.md and doc/compile/README.md
2014-03-21 03:26:15 +09:00