Commit Graph

4834 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 5bcaa749fc fix else indentation style 2014-04-02 02:16:09 +09:00
Yukihiro "Matz" Matsumoto 164dcd8b33 Hash#keys to update memory region directly 2014-04-01 15:19:53 +09:00
Yukihiro "Matz" Matsumoto 312e11da39 should adjust hash value order at deletion 2014-04-01 15:19:11 +09:00
Yukihiro "Matz" Matsumoto 1690fc4c99 implement Hash#== and eql? in Ruby 2014-04-01 14:56:23 +09:00
Yukihiro "Matz" Matsumoto 8b141b07b6 function expansion in hash.c 2014-04-01 14:37:10 +09:00
Yukihiro "Matz" Matsumoto d9feed6703 move Array#inspect implementation to mrblib/array.rb 2014-04-01 14:31:39 +09:00
Yukihiro "Matz" Matsumoto cf58d0d3e9 move Hash#inspect implementation to mrblib/hash.rb 2014-04-01 14:21:40 +09:00
Yukihiro "Matz" Matsumoto f05069fd1a Hash to preserve order as Ruby1.9 does 2014-04-01 14:18:21 +09:00
Yukihiro "Matz" Matsumoto 00f3484ff7 Merge pull request #1986 from take-cheeze/proc_macro
REnv macros.
2014-04-01 11:24:32 +09:00
take_cheeze 755ded2ef0 Use MRB_ENV_STACK_SHARED_P to check cioff field of REnv. 2014-04-01 01:53:28 +09:00
take_cheeze b38eb72d82 Add macro MRB_ENV_UNSHARE_STACK instead of assigning -1 directly. 2014-04-01 01:35:40 +09:00
take_cheeze 80534b6d14 Use MRB_ENV_STACK_LEN instead of accessing flags directly to get REnv's stack length. 2014-04-01 01:13:39 +09:00
Yukihiro "Matz" Matsumoto d7c29322b8 singleton class needs to set __outer__; fixed #1983 2014-03-31 14:12:47 +09:00
Yukihiro "Matz" Matsumoto 4c2969910f Hash function to avoid funcalls if possible 2014-03-31 13:44:35 +09:00
Yukihiro "Matz" Matsumoto 2c3530ff10 Merge pull request #1985 from take-cheeze/cfunc_with_env
Add API to define cfunc Proc with userdata.
2014-03-31 11:45:45 +09:00
Yukihiro "Matz" Matsumoto d1e755df0f Merge pull request #1984 from mattn/test_hex_oct_underscore
More tests for String#hex, String#oct as against 9434506035
2014-03-31 10:57:16 +09:00
take_cheeze bf6b1dfe21 Add API to define cfunc Proc with userdata.
The APIs are defined in mruby-proc-ext so include it before using this API.
See mruby-proc-ext's test code for usage.
This should resolve #1794.
2014-03-31 10:01:17 +09:00
mattn ea68fe2f15 More tests for String#hex, String#oct as against 9434506035 2014-03-31 09:47:21 +09:00
Yukihiro "Matz" Matsumoto 3eb3c99a6a Merge pull request #1982 from ksss/err-msg
Show error class name when raise Error
2014-03-31 09:32:07 +09:00
ksss 15eabcdbc4 Show error class name when raise Error 2014-03-31 08:14:14 +09:00
Yukihiro "Matz" Matsumoto a85fdbdba4 according to JIS/ISO, Array is not Comparable 2014-03-31 00:50:16 +09:00
Yukihiro "Matz" Matsumoto 2a1273d3bb Merge pull request #1981 from k-tsj/fix-method-name
Fix method name in Array#reverse_each
2014-03-30 18:44:38 +09:00
Kazuki Tsujimoto 01a798362f Fix method name 2014-03-30 18:32:19 +09:00
Yukihiro "Matz" Matsumoto b1eef40630 Merge pull request #1980 from take-cheeze/minirake_directory
Add -C (--directory) option to minirake.
2014-03-30 18:31:49 +09:00
take_cheeze d54c250839 Add -C (--directory) option to minirake. 2014-03-30 09:23:14 +09:00
Yukihiro "Matz" Matsumoto ebb29f0450 Merge branch 'master' of github.com:mruby/mruby 2014-03-30 08:29:20 +09:00
Yukihiro "Matz" Matsumoto 2277c374db revert #1974; ref #1979 2014-03-30 08:29:09 +09:00
Yukihiro "Matz" Matsumoto 8cdac8221d Merge pull request #1978 from suzukaze/add-array.fill
Add Array#fill
2014-03-29 20:59:08 +09:00
Jun Hiroe aa4a18e81e Add Array#fill 2014-03-29 20:22:07 +09:00
Yukihiro "Matz" Matsumoto a88403cc85 Merge pull request #1975 from take-cheeze/driver_mrb_intern_lit
Use mrb_intern_lit instead of mrb_intern in test driver.
2014-03-29 13:18:13 +09:00
Yukihiro "Matz" Matsumoto ea5088215f Merge pull request #1974 from ksss/enumerator-duck
Enumerator#initialize support duck-type
2014-03-29 13:17:37 +09:00
take_cheeze 98e49ebd7c Use mrb_intern_lit instead of mrb_intern in test driver. 2014-03-29 11:08:40 +09:00
ksss 5a2014b8f8 Enumerator#initialize support duck-type 2014-03-29 09:24:00 +09:00
Yukihiro "Matz" Matsumoto 938281c17a Merge pull request #1971 from suzukaze/fix-typo
Fix a typo
2014-03-29 00:22:32 +09:00
Yukihiro "Matz" Matsumoto 49d18ca848 Kernel#send should preserve nregs in callinfo; close #1970 2014-03-29 00:21:52 +09:00
Jun Hiroe 110486debe Fix a typo 2014-03-29 00:16:12 +09:00
Yukihiro "Matz" Matsumoto 7d413b7043 Merge branch 'master' of github.com:mruby/mruby 2014-03-28 23:21:42 +09:00
Yukihiro "Matz" Matsumoto e8cb971bbb Merge pull request #1969 from suzukaze/add-array.fetch
Add Array#fetch
2014-03-28 23:21:22 +09:00
Yukihiro "Matz" Matsumoto 97f22c9516 Array#reverse_each should return Enumerator; ref #1968 2014-03-28 23:18:55 +09:00
Yukihiro "Matz" Matsumoto 5625104291 Merge pull request #1968 from suzukaze/add-to_enum-unless-block
Add to_enum unless block
2014-03-28 23:16:19 +09:00
Yukihiro "Matz" Matsumoto 2b77fbe1e0 Merge pull request #1967 from ksss/define_singleton_method
Implement Kernel#define_singleton_method
2014-03-28 22:59:41 +09:00
Jun Hiroe de573e57a0 Add Array#fetch 2014-03-28 20:28:14 +09:00
Jun Hiroe ca1bc5290e Add to_enum unless block 2014-03-28 18:54:25 +09:00
ksss f0dd4cb673 Implement Kernel#define_singleton_method 2014-03-28 18:16:28 +09:00
Yukihiro "Matz" Matsumoto 03fa45760e Merge pull request #1966 from take-cheeze/backquote
Add test for backquote.
2014-03-28 13:14:17 +09:00
take_cheeze 2239350348 Add test for backquote.
* Implement code generation of NODE_DXSTR.
* Fix NOVAL NODE_XSTR.
2014-03-28 13:02:52 +09:00
Yukihiro "Matz" Matsumoto be58f1c9ab add Numeric#/ tests; ref #1965 2014-03-28 11:05:53 +09:00
Yukihiro "Matz" Matsumoto 514cafe6c3 do not use "to_f" to retrieve floats in mrb_get_args(); close #1965 2014-03-28 11:04:15 +09:00
Yukihiro "Matz" Matsumoto b8e434a5e6 initialize ci->target_class in mrb_toplevel_run; ref #1942 close mattn/mruby-require#20 2014-03-27 23:51:08 +09:00
Yukihiro "Matz" Matsumoto f2c086d7d5 Merge pull request #1963 from ksss/implement-__method__
Implement Kernel#__method__
2014-03-27 22:47:31 +09:00