Commit Graph

712 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 4380f86150 Special treatment for Hashes, not Arrays; ref #2349 2014-06-03 16:33:30 +09:00
Tomoyuki Sahara fe9f3fdd20 add 'String#%'. 2014-06-03 16:31:20 +09:00
Jun Hiroe b81f0d0ffb Add comments in String#lstrip, rstrip, strip, lstring_bang, rstrip_bang and strip_bang 2014-06-03 16:29:42 +09:00
take_cheeze 32bfa1f15c Add invalid key type check in Struct#[]=. 2014-05-28 23:21:13 +09:00
take_cheeze 7bc4d08f71 Support string key in Struct#[]=. 2014-05-28 23:14:28 +09:00
Yukihiro "Matz" Matsumoto 6cf5618b44 Merge branch 'master' of github.com:mruby/mruby 2014-05-25 23:19:35 +09:00
Yukihiro "Matz" Matsumoto 6d6957078e no one uses Array.try_convert, so removed it that discourages duck typing; close #2317 2014-05-25 23:18:45 +09:00
Yukihiro "Matz" Matsumoto af38511c1b Merge pull request #2314 from take-cheeze/fiber_test_refactor
Use `assert_*` method instead of using result value in fiber test.
2014-05-25 22:35:34 +09:00
take_cheeze 2d25a15b3b Use assert_* method instead of using result value.
Use `do ... end` for test block.
2014-05-24 23:39:53 +09:00
take_cheeze 2c451dd1fc Use assert_kind_of instead. 2014-05-24 23:18:03 +09:00
take_cheeze d8d07a2345 Move Kernel.local_variables to core. 2014-05-19 22:05:02 +09:00
Yukihiro "Matz" Matsumoto 91a025b1e6 reimplement Range#size using double with fixing corner cases; ref #2293 2014-05-19 18:04:27 +09:00
Jun Hiroe 4b3ff090ab Add Range#size 2014-05-19 16:17:10 +09:00
Yukihiro "Matz" Matsumoto ef01692c54 Merge pull request #2289 from take-cheeze/local_variables_iso
Add ISO index to `Kernel.local_variables`.
2014-05-19 15:00:57 +09:00
take_cheeze 3aeb4568ab Add ISO index to Kernel.eval and Kernel#eval. 2014-05-18 23:45:24 +09:00
take_cheeze 0f742392b5 Add ISO index to Kernel.local_variables. 2014-05-18 23:34:56 +09:00
Jun Hiroe ff890c191c Replace tabs with spaces in eval.c 2014-05-16 22:40:14 +09:00
Yukihiro "Matz" Matsumoto 41b46ca1ed register<nlocals may not have a local variable name (e.g. a block arg); fix #2258 2014-05-16 00:04:55 +09:00
Miura Hideki da8d07d5d4 Suport block in Kernel#eval 2014-05-15 20:28:26 +09:00
Yukihiro "Matz" Matsumoto 9dae3f67d6 compile mruby-bin-strip gem by default 2014-05-15 17:14:00 +09:00
Yukihiro "Matz" Matsumoto f0b86f36c3 move mrb_irep_remove_lv from etc.c to mruby-bin-strip gem 2014-05-15 17:13:16 +09:00
take_cheeze e0064acac7 Implement LVAR section removing option in mruby-strip. 2014-05-15 15:15:06 +09:00
Yukihiro "Matz" Matsumoto 0651051ded allow quit/exit to work within mirb; fix #2253 close #2254
also allow spaces around quit/exit.
2014-05-15 12:07:02 +09:00
Yukihiro "Matz" Matsumoto 6f6f50d529 adjust signedness in mruby-eval gem 2014-05-14 23:17:11 +09:00
Yukihiro "Matz" Matsumoto 2be348a0f1 mv opcode.h -> include/mruby/opcode.h and remove duplication from mruby-eval gem 2014-05-14 23:14:08 +09:00
Miura Hideki f10331cfe6 Modify eval for access outer local variable 2014-05-14 21:42:39 +09:00
Yukihiro "Matz" Matsumoto 27df1a84bc Kernel.local_variables to list UPVAR as well 2014-05-14 17:38:27 +09:00
Yukihiro "Matz" Matsumoto 10459a5eb2 Merge branch 'dump_lv' of https://github.com/take-cheeze/mruby into take-cheeze-dump_lv 2014-05-14 11:27:41 +09:00
Yukihiro "Matz" Matsumoto 0265b47833 remove unnecessary semicolons from a38f8f 2014-05-13 20:17:54 +09:00
Yukihiro "Matz" Matsumoto a38f8fe606 support comments in user-input; also add checks for buffer overflow 2014-05-13 16:03:41 +09:00
Yukihiro "Matz" Matsumoto 5867167ffd add dependency information based on #2239; fix #2236, close #2239 2014-05-13 13:08:18 +09:00
Yukihiro "Matz" Matsumoto f454f827ee should not use String#<< which is defined in mruby-string-ext; use Array#join instead; ref #2239 2014-05-13 12:59:21 +09:00
kyab 203740bac5 Pacify MSVC warnings for random.c 2014-05-10 23:50:57 +09:00
yui-knk d88a9d761f Add comment to Hash#each_pair. And change the line
Add comment about ISO.
Current place is misleading so change line No.
2014-05-10 20:16:19 +09:00
yui-knk 658a00ba49 Change to raise TypeError (Hash#merge, #merge!) 2014-05-10 10:18:15 +09:00
Yukihiro "Matz" Matsumoto 8152373d99 Merge pull request #2219 from kyab/fix_msvc_warning_time.c
Pacify MSVC warnings for time.c
2014-05-10 00:47:14 +09:00
kyab 4a05dce4a3 pacify MSVC warnings for time.c 2014-05-09 23:38:05 +09:00
take_cheeze d0c0beb880 Move __method__ to mruby-kernel-ext since it's not ISO method. 2014-05-09 22:44:10 +09:00
Yukihiro "Matz" Matsumoto 64b30b65ee Merge pull request #2216 from iij/pr-mirb-link-termcap
libreadline requires libtermcap on OpenBSD.
2014-05-09 14:45:25 +09:00
Tomoyuki Sahara 6a41149585 libreadline requires libtermcap on OpenBSD. 2014-05-09 14:26:12 +09:00
Jun Hiroe dc4c042df5 Add Hash#key 2014-05-09 00:46:33 +09:00
yui-knk 27167f8de0 Replace from include <>, to include "". 2014-05-08 08:46:55 +09:00
take_cheeze f0154d6e3a Remove Time defined check in test. 2014-05-07 21:21:18 +09:00
mattn 0b5fe0ad6f Fix build on mingw32/64: struct timeval isn't defined in default. See: 642477ef6a 2014-05-07 10:18:57 +09:00
take_cheeze 2fca5f3353 Add mruby-kernel-ext to default gembox. 2014-05-07 00:01:38 +09:00
take_cheeze 208bafba2d Move Kernel#fail definition to mruby-kernel-ext mrbgem. 2014-05-07 00:01:30 +09:00
yui-knk c2732a160a Add a comment to ObjectSpace.each_object. 2014-05-06 12:41:23 +09:00
take_cheeze 7bab3d0bb2 Implement day of week methods. 2014-05-05 22:41:16 +09:00
Jun Hiroe dcad562f73 Add Hash#keep_if 2014-05-05 20:26:28 +09:00
Jun Hiroe 015f60fcad Add Hash#invert 2014-05-05 11:15:48 +09:00