1. 28 Jul, 2019 1 commit
  2. 27 Jul, 2019 8 commits
  3. 26 Jul, 2019 1 commit
  4. 25 Jul, 2019 2 commits
  5. 24 Jul, 2019 4 commits
  6. 23 Jul, 2019 2 commits
    • Yukihiro "Matz" Matsumoto's avatar
      Merge pull request #4593 from shuujii/add-encoding-argument-to-Integral-chr · e968bdf6
      Yukihiro "Matz" Matsumoto authored
      Add encoding argument to `Integral#chr`
      e968bdf6
    • KOBAYASHI Shuji's avatar
      Add encoding argument to `Integral#chr` · e86aa61f
      KOBAYASHI Shuji authored
      Currently, `Integral#chr` in mruby changes behavior by `MRB_UTF8_STRING`
      setting.
      
      before this patch:
      
        $ bin/mruby -e 'p 171.chr'  #=> "\xab"  (`MRB_UTF8_STRING` is disabled)
        $ bin/mruby -e 'p 171.chr'  #=> "«"     (`MRB_UTF8_STRING` is enabled)
      
      This behavior is incompatible with Ruby, and a little inconvenient because
      it can't be interpreted as ASCII-8BIT with `MRB_UTF8_STRING`, I think.
      
      So add encoding argument according to Ruby.
      
      after this patch:
      
        $ bin/mruby -e 'p 171.chr'                #=> "\xab"
        $ bin/mruby -e 'p 171.chr("ASCII-8BIT")'  #=> "\xab"
        $ bin/mruby -e 'p 171.chr("UTF-8")'       #=> "«"
      
      Allow only `String` for encoding because mruby doesn't have `Encoding`
      class, and `"ASCII-8BIT"` (`"BINARY"`) and `"UTF-8"` (only with
      `MRB_UTF8_STRING`) are valid value (default is `"ASCII-8BIT"`).
      e86aa61f
  7. 22 Jul, 2019 10 commits
  8. 21 Jul, 2019 1 commit
  9. 20 Jul, 2019 1 commit
    • KOBAYASHI Shuji's avatar
      Fix `Module#dup` to frozen module · 7675fcb5
      KOBAYASHI Shuji authored
      Before this patch:
      
        $ bin/mruby -e 'p Module.new.freeze.dup.frozen?'  #=> true
      
      After this patch (same as Ruby):
      
        $ bin/mruby -e 'p Module.new.freeze.dup.frozen?'  #=> false
      7675fcb5
  10. 19 Jul, 2019 2 commits
  11. 18 Jul, 2019 3 commits
  12. 17 Jul, 2019 5 commits