Commit Graph

738 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 13728e203e add Enumerable#to_h; ref #2348 2014-06-04 23:37:13 +09:00
Yukihiro "Matz" Matsumoto 172060877a add Hash#to_h; ref #2348 2014-06-04 18:57:31 +09:00
Yukihiro "Matz" Matsumoto b01bb33b75 fix String#lines comment; ref mattn@2e1855a 2014-06-04 10:51:09 +09:00
Yukihiro "Matz" Matsumoto 04962ca075 Merge pull request #2357 from mattn/string-lines
Add String#lines
2014-06-04 10:45:11 +09:00
Yukihiro "Matz" Matsumoto e3074eff6f Merge pull request #2356 from mattn/string-codepoints
Add String#chars, String#each_char, String#codepoints, String#each_codepoint
2014-06-04 10:41:24 +09:00
mattn c927277486 Add String#lines 2014-06-04 10:41:07 +09:00
mattn 6d0388c68e Refactor variable definitions 2014-06-04 10:28:34 +09:00
mattn 5410b9c46c arena save/restore 2014-06-04 10:20:51 +09:00
mattn f18771eb42 Add String#chars, String#each_char, String#codepoints, String#each_codepoint 2014-06-04 10:10:58 +09:00
Yukihiro "Matz" Matsumoto 9763eee616 add dependency from mruby-string-utf8 to mruby-string-ext to ensure loading order 2014-06-04 09:47:01 +09:00
Yukihiro "Matz" Matsumoto c31c6c0833 Merge pull request #2352 from suzukaze/fix-indent
Fix indents in mruby-string-utf8
2014-06-04 09:12:46 +09:00
Yukihiro "Matz" Matsumoto 82515722ff Merge pull request #2353 from suzukaze/refactor-string-utf8
Refactor mrb_utf8_strlen() in mruby-string-utf8
2014-06-04 09:12:25 +09:00
Yukihiro "Matz" Matsumoto a789f776c7 Merge pull request #2351 from mattn/add-string-utf8.chr
Add string String#chr for utf8
2014-06-04 09:11:50 +09:00
Yukihiro "Matz" Matsumoto 863abfc298 Merge pull request #2350 from suzukaze/add-string.chr
Implement String#chr
2014-06-04 09:11:23 +09:00
Yukihiro "Matz" Matsumoto c3ed6e3d25 use is_a? Array for String#% argument check as the original PR did in #2349 2014-06-04 09:08:22 +09:00
Jun Hiroe ce45304ec4 Refactor mrb_utf8_strlen() in mruby-string-utf8 2014-06-03 20:56:17 +09:00
Jun Hiroe 73874f4008 Fix indents in mruby-string-utf8 2014-06-03 20:53:51 +09:00
mattn 1fab96668c Add test 2014-06-03 20:33:02 +09:00
mattn ab0b1c4783 Implement String#chr for utf-8 2014-06-03 20:20:30 +09:00
Jun Hiroe e67817fcec Implement String#chr 2014-06-03 19:49:38 +09:00
Yukihiro "Matz" Matsumoto 9fe8653e86 Merge branch 'iij-pr-string-percent' 2014-06-03 16:34:45 +09:00
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
Yukihiro "Matz" Matsumoto 037a1d7088 Merge pull request #2348 from takkanm/add_array_to_h
Add Array#to_h
2014-06-03 15:50:52 +09:00
Yukihiro "Matz" Matsumoto 896c131231 Merge pull request #2346 from suzukaze/add-string-comment2
Fix indent in String#casecmp comments
2014-06-03 15:44:13 +09:00
Mitsutaka Mimura a0b12bf6b4 Add Array#to_h 2014-06-02 23:06:02 +09:00
Jun Hiroe 85ed19ca4d Fix indent in String#casecmp comments 2014-06-02 22:03:29 +09:00
Jun Hiroe cbe73e93f7 Add comments in String#lstrip, rstrip, strip, lstring_bang, rstrip_bang and strip_bang 2014-06-02 22:00:05 +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