summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2014-12-23Merge pull request #2684 from kou/fix-splat-and-multiple-assignmentsYukihiro "Matz" Matsumoto
Fix splat and multiple assignments
2014-12-23mruby-eval: fix typosdottaka
2014-12-23Fix splat and multiple assignmentsKouhei Sutou
Case1: From variable Code: a = [1, 2, 3, 4, 5] b, c, *d = a p [a, b, c, d] Before: [[1, 2, 3, 4, 5], 1, 2, []] After: [[1, 2, 3, 4, 5], 1, 2, [3, 4, 5]] Ruby: [[1, 2, 3, 4, 5], 1, 2, [3, 4, 5]] Case2: From variables Code: a = [1, 2, 3] b = [4, 5, 6, 7] c, d, *e, f, g = *a, *b p [a, b, c, d, e, f, g] Before: [[1, 2, 3], [4, 5, 6, 7], 1, 2, [], 6, 7] After: [[1, 2, 3], [4, 5, 6, 7], 1, 2, [3, 4, 5], 6, 7] Ruby: [[1, 2, 3], [4, 5, 6, 7], 1, 2, [3, 4, 5], 6, 7] Case 3: "for" Code: a = [1, 2, 3, 4, 5, 6, 7] for b, c, *d, e, f in [a] do p [a, b, c, d, e, f] end Before: [[1, 2, 3, 4, 5, 6, 7], 1, 2, [], nil, nil] After: [[1, 2, 3, 4, 5, 6, 7], 1, 2, [3, 4, 5], 6, 7] Ruby: [[1, 2, 3, 4, 5, 6, 7], 1, 2, [3, 4, 5], 6, 7]
2014-12-20Merge pull request #2681 from sdottaka/mrdb-break-windowsYukihiro "Matz" Matsumoto
mrdb: fix that break command cannot handle Windows paths
2014-12-20mrdb: fix that break command cannot handle Windows pathssdottaka
Before fix: ``` $ mrdb c:\tmp\b.rb (c:\tmp\b.rb:1) break c:\tmp\b.rb:3 Class name 'c' is invalid. ``` After fix: ``` $ mrdb c:\tmp\b.rb (c:\tmp\b.rb:1) break c:\tmp\b.rb:3 Breakpoint 1: file c:\tmp\b.rb, line 3. ```
2014-12-19now retrieves number of arguments of blocks from OP_ENTER op code; close #2671Yukihiro "Matz" Matsumoto
2014-12-19block_given? should return correct value when called in blocks; close #2678Yukihiro "Matz" Matsumoto
avoid a loop to find parent's callinfo using mrb->c->cibase[env->cioff]
2014-12-19block_given? should return false on top-level; ref #2678Yukihiro "Matz" Matsumoto
2014-12-19mrdb, mirb: Add fflush() so that a external program can read output immediately.sdottaka
2014-12-18Merge pull request #35 from tmtm/fix-read-create-many-objectsTomoyuki Sahara
FIX: IO#read create a large number of objects.
2014-12-18FIX: IO#read create a large number of objects.TOMITA Masahiro
2014-12-17String#[]: float handling merged to #2677Yukihiro "Matz" Matsumoto
2014-12-17Merge branch 'h2so5-string-nil-index'Yukihiro "Matz" Matsumoto
2014-12-17try to convert not only nil but every objects to fixnums; ref #2677Yukihiro "Matz" Matsumoto
2014-12-17String#[] should reject nil indexh2so5
2014-12-17Merge pull request #33 from iij/revert-32-fix-read-create-many-objectsTomoyuki Sahara
Revert "FIX: IO#read create a large number of objects."
2014-12-17Revert "FIX: IO#read create a large number of objects."Tomoyuki Sahara
2014-12-17Merge pull request #32 from tmtm/fix-read-create-many-objectsTomoyuki Sahara
FIX: IO#read create a large number of objects.
2014-12-17mruby-eval: proc from env may be NULL; close #2676Yukihiro "Matz" Matsumoto
2014-12-17avoid out-of-bounds access of irep->lv; ref #2671, fix #2675Yukihiro "Matz" Matsumoto
allocation size of irep->iv is irep->nlocals-1.
2014-12-17mrb_str_new(mrb, "", len) creates an unmodifiable string object; ref #2674Yukihiro "Matz" Matsumoto
2014-12-17Merge pull request #2674 from suzukaze/string.prependYukihiro "Matz" Matsumoto
Add String#prepend
2014-12-17Add String#prependJun Hiroe
2014-12-17FIX: IO#read create a large number of objects.TOMITA Masahiro
2014-12-17eval() should preserve stack in env properly; fix #2671Yukihiro "Matz" Matsumoto
2014-12-16Fix crash if #inspect does not return a string valueYukihiro "Matz" Matsumoto
2014-12-16Merge pull request #31 from tmtm/fix-sysread-segvTomoyuki Sahara
FIX: IO#sysread occurs SEGV
2014-12-15FIX: IO#sysread occurs SEGVTOMITA Masahiro
2014-12-13Merge pull request #2669 from suzukaze/string.insertYukihiro "Matz" Matsumoto
Add String#insert
2014-12-13Add String#insertJun Hiroe
2014-12-12Merge pull request #2668 from sdottaka/fix-crash-for-inspectYukihiro "Matz" Matsumoto
Fix crash if #inspect does not return a string value
2014-12-12Fix crash if #inspect does not return a string valuesdottaka
case 1 ~~~ class A; def inspect; 1; end; end A.new.a ~~~ case 2 ~~~ class A def self.inspect 1 end alias_method :a, :b end ~~~
2014-12-12Merge pull request #2667 from ↵Yukihiro "Matz" Matsumoto
murasesyuka/usage_message_is_used_switches_instead_of_option fix usage message
2014-12-12mrb_p() should print mrb_obj_as_string() if #inspect does not return a ↵Yukihiro "Matz" Matsumoto
string value
2014-12-12mirb dies if #inspect returns a non-string value; fix #2666Yukihiro "Matz" Matsumoto
2014-12-12add Socket::Option#inspectTomoyuki Sahara
without this, mirb dies. https://github.com/mruby/mruby/pull/2666
2014-12-12add "I" and "i".Tomoyuki Sahara
2014-12-12styleTomoyuki Sahara
2014-12-12"i" and "I".Tomoyuki Sahara
2014-12-11fix usage messagemurase_syuka
2014-12-11block_given did not work with nested block invocation for some cases; fix #2665Yukihiro "Matz" Matsumoto
2014-12-11mrb_parser_dump() did not work with block argumentsYukihiro "Matz" Matsumoto
2014-12-05Merge pull request #2663 from iij/pr-fix-string-utf8-arefYukihiro "Matz" Matsumoto
adding mruby-string-utf8 breaks String#[float]
2014-12-05String#[] accepts float.Tomoyuki Sahara
2014-12-04IO.popen fd set close_on_exec flag by defaultksss
2014-12-04Opened fd should be set FD_CLOEXEC by defaultksss
2014-12-02Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-12-02Merge pull request #2660 from ↵Yukihiro "Matz" Matsumoto
cremno/fix-isblank-for-visual-studio-versions-older-than-2013 fix ISBLANK() for Visual Studio < 2013
2014-12-02fix ISBLANK() for Visual Studio < 2013 (ref #2658)cremno
Visual Studio versions older than 2013 lack C99's isblank(). Since only ASCII characters are passed to it, implement it directly without calling the locale-specific isblank().
2014-12-01should not pop register when value from multiple assignment requiredYukihiro "Matz" Matsumoto