Commit Graph

190 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 8e45630896 Merge branch 'master' of github.com:mruby/mruby 2013-05-08 16:25:40 +09:00
Yukihiro "Matz" Matsumoto 595b1990bc mirb should handle exception from inspect; close #1238 2013-05-08 16:25:20 +09:00
Masaki Muranaka a46eacb213 Move Hash#values_at to mruby-hash-ext gem. 2013-05-08 13:22:35 +09:00
Gilad Zohari 17eef070da add type check in Hash#merge! 2013-05-03 23:36:02 +03:00
Daniel Bovensiepen bffc9878ec Apply :core parameter to full-core.gembox 2013-05-02 02:54:21 +08:00
Daniel Bovensiepen 3afa961e8c Apply :core parameter to default.gembox 2013-05-02 02:54:08 +08:00
Yukihiro "Matz" Matsumoto 96637a7723 remove unnecessary intern; access to non-member cause IndexError 2013-04-29 15:48:16 +09:00
Yukihiro "Matz" Matsumoto 02f843d8dc rename mrb_to_id to mrb_obj_to_sym since symbol is nothing to do with identifier in mruby 2013-04-29 15:35:30 +09:00
Yukihiro "Matz" Matsumoto 22469f3be1 use mrb_free to free random state 2013-04-29 09:13:30 +09:00
Yukihiro "Matz" Matsumoto 975d52d804 fix memory leaks in mruby-random 2013-04-29 09:11:38 +09:00
Daniel Bovensiepen 7fbf615d37 Add gembox which contains all default GEMs 2013-04-27 16:49:45 +08:00
Daniel Bovensiepen c8efde34da Add gembox which contains all core GEMs 2013-04-27 16:49:26 +08:00
Masaki Muranaka 433cb13e6d Add tests to make sure. As we do not use standard library for formatting. 2013-04-25 15:35:16 +09:00
Masaki Muranaka da4b3d1c2c Move regression test as String#dump is not in ther core but the mrbgems. 2013-04-25 15:28:25 +09:00
Yukihiro "Matz" Matsumoto 1b31cbfbc8 add new macro MRB_ARGS_ARG(n1,n2) to specify required and optional arugments at once 2013-04-25 11:53:36 +09:00
Yukihiro "Matz" Matsumoto 30d580ecbc rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206 2013-04-25 09:47:36 +09:00
h2so5 2fa8bf4683 Add Symbol#to_proc, Symbol.all_symbols 2013-04-21 18:01:09 +09:00
Yukihiro "Matz" Matsumoto c79172dfd5 put spaces after if/while 2013-04-20 23:11:43 +09:00
h2so5 79e7bbc8e8 Add String#swapcase,swapcase!,concat,casecmp,start_with,end_with 2013-04-19 21:01:37 +09:00
h2so5 1a375c6fd4 Add mruby-proc-ext 2013-04-17 22:59:57 +09:00
h2so5 1d10912076 Add mruby-range-ext 2013-04-14 13:59:46 +09:00
Yukihiro "Matz" Matsumoto 78b0abcfaf string interpolation (#{foo}) does stringify implicitly; no need to call #to_s 2013-04-11 23:11:43 +09:00
Yukihiro "Matz" Matsumoto f7313b6082 Merge branch 'fix-type-error-message' of https://github.com/h2so5/mruby into h2so5-fix-type-error-message 2013-04-11 23:06:50 +09:00
h2so5 1f571dd5fc Fix TypeError messages 2013-04-11 19:47:35 +09:00
Yukihiro "Matz" Matsumoto cf7fb8819f Merge branch 'monaka-pr-move-mirb-mruby-to-mrbgems' 2013-04-11 18:44:30 +09:00
Yukihiro "Matz" Matsumoto 65fccc2899 rename mruby,mirb gems to mruby-bin-{mruby,mirb} 2013-04-11 18:43:03 +09:00
Masaki Muranaka 9d8143f930 Move mirb and mruby to mrbgems. 2013-04-11 15:22:07 +09:00
MATSUMOTO Ryosuke d2c88fe850 Change mruby-random License to MIT
refs: http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/license.html
2013-04-08 16:55:05 +09:00
Masaki Muranaka 1efb1bbaff Use mrb_name_error() as possible. 2013-04-04 16:24:43 +09:00
Yukihiro "Matz" Matsumoto 75f5535c4f rename DATA API: mrb_get_datatype -> mrb_data_get_ptr; mrb_check_datatype -> mrb_data_check_and_get 2013-04-04 04:30:39 +09:00
Masaki Muranaka 2ae9b08b37 Fix to fit new raisef format. 2013-04-01 09:03:20 +09:00
Masaki Muranaka c260ef894e Rename mrb_fix2str() to mrb_fixnum_to_str(). This is for naming consistency. 2013-03-29 22:19:26 +09:00
Masaki Muranaka 710f625254 Remove mrb_flt2big() as there is no bignum in the core.
Add new API mrb_flo_to_fixnum(). You can replace mrb_flt2big() to mrb_flo_to_fixnum() with few modifications.
2013-03-29 22:19:26 +09:00
Masaki Muranaka 05ad6902fd Remove API mrb_string_value(). There have mrb_str_to_str() in the core. And mrb_string_value() is no merit to keep using. 2013-03-29 18:01:25 +09:00
Masaki Muranaka a01e968cdb Remove limits.h from numeric.h. Add limits.h to some C files. 2013-03-29 10:06:40 +09:00
Yukihiro "Matz" Matsumoto 5a089aa4d6 Merge pull request #1091 from monaka/pr-fix-raisef-format-in-struct.c
Fix raisef() format strings in struct.c.
2013-03-28 06:37:47 -07:00
Masaki Muranaka 384db0d809 Fix format for new mrb_raisef(). 2013-03-28 21:35:56 +09:00
Masaki Muranaka 5c4c2f3788 Fix raisef formats in struct.c. 2013-03-28 16:07:50 +09:00
Carson McDonald 61a8a61828 Use mrb_check_datatype directly to avoid warning. 2013-03-27 09:44:16 -04:00
kurodash 1c4820642d Fix build error on VS2012 toolchain.
A local variables define beginning of a scope block.
VS2012 unacceptable ";;" in struct definition.
2013-03-27 18:24:40 +09:00
MATSUMOTO Ryosuke 6e110cb43d Add test for Random::srand 2013-03-27 12:02:59 +09:00
mattn 46c13080f9 Fix test for mruby-random 2013-03-27 11:50:52 +09:00
mattn 00326ba7f1 Add test for mruby-random 2013-03-27 11:47:33 +09:00
MATSUMOTO Ryosuke 07dc11cae3 Support mt instance valiables 2013-03-27 10:39:11 +09:00
mattn 46a4673308 Refactoring mruby-rand 2013-03-26 23:03:19 +09:00
MATSUMOTO Ryosuke ffa79b1aec Add Random#rand and Random#srand 2013-03-26 21:58:12 +09:00
MATSUMOTO Ryosuke d2c946f68d Add Kernel#rand and Kernel#srand 2013-03-26 21:55:33 +09:00
MATSUMOTO Ryosuke e870270773 Changed to static functions 2013-03-26 21:49:15 +09:00
MATSUMOTO Ryosuke bdd27cbdca Change Random module to class 2013-03-26 21:48:10 +09:00
MATSUMOTO Ryosuke 7328b68b9f Adjusted indent, space and tab 2013-03-24 11:35:42 +09:00