summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-09-25Fix leak in `mrb_str_count`Takeshi Watanabe
2018-09-25Merge pull request #4127 from clayton-shopify/fix-str-squeeze-comparisonsYukihiro "Matz" Matsumoto
Fix comparisons in str_squeeze.
2018-09-25Fix minor typos (#4126)Daniel Varga
2018-09-24Fix comparisons in str_squeeze.Clayton Smith
2018-09-21Add compiler flag to disable direct threading (#4075)sbsoftware
* Add option to disable direct threading * Prepend MRB_ to option name
2018-09-21Fixed a top-level local variable bug in `mirb`.Yukihiro "Matz" Matsumoto
`OP_STOP` returned a wrong value.
2018-09-21Implement `String#delete` and `#delete!`; ref #4086Yukihiro "Matz" Matsumoto
mruby restriction: In mruby, `String#delete` only takes single pattern argument.
2018-09-21Implement `String#count`; ref #4086Yukihiro "Matz" Matsumoto
mruby restriction: In mruby, `String#count` does not take multiple pattern arguments, but only one pattern.
2018-09-21Add `String#squeeze` and `#squeeze!`; ref #4086Yukihiro "Matz" Matsumoto
mruby restriction: `String#squeeze` can take more than 1 pattern arguments in CRuby, in that case, the intersection of patterns will be used to match. But in mruby, it doesn't take multiple patterns.
2018-09-21Add `String#tr_s` and `String#tr_s!`; ref #4086Yukihiro "Matz" Matsumoto
2018-09-21Add `String#tr` and `#tr!` to `mruby-string-ext` gem; fix #4086Yukihiro "Matz" Matsumoto
This patch is based on `mruby/c` implementation by Hirohito Higashi. We might need to add `#tr_s`, `#squeeze` and `#delete` as well. Adding them should not be too hard using functions we implemented here.
2018-09-21Implement `Array#union` which is introduced in Ruby2.6.Yukihiro "Matz" Matsumoto
2018-09-20Improve performance of `Array#uniq!`.Yukihiro "Matz" Matsumoto
2018-09-20Merge branch 'dearblue-assign-anon-class-name'Yukihiro "Matz" Matsumoto
2018-09-20Renamed `is_namespace()` to `namespace_p()`.Yukihiro "Matz" Matsumoto
2018-09-20Revert "Add MRB_IMPROVE_META_PROGRAMMING configuration"Yukihiro "Matz" Matsumoto
This reverts commit 1997fcf98f596f6af2bf1d20ccde1b1abfe7324d. It became the default behavior.
2018-09-20Merge branch 'assign-anon-class-name' of https://github.com/dearblue/mruby ↵Yukihiro "Matz" Matsumoto
into dearblue-assign-anon-class-name
2018-09-20Move `Symbol#to_proc` to the core from `mruby-symbol-ext` gem.Yukihiro "Matz" Matsumoto
Even though `Symbol#to_proc` is not included in ISO standard, the `some_method(&:method_name)` is used very widely and convenient. So we moved it to the core.
2018-09-20Make `#to_h` to take a block; [ruby-core:89088]Yukihiro "Matz" Matsumoto
2018-09-20Merge pull request #4112 from dearblue/fix-outer-module-nameYukihiro "Matz" Matsumoto
Fix outer module name
2018-09-20Allow nested gemboxes; fix #4124Yukihiro "Matz" Matsumoto
2018-09-20Small refactoring in `mruby-hash-ext`.Yukihiro "Matz" Matsumoto
2018-09-18Use `mrb_to_flo()` to check return value from `to_f`; fix #4115Yukihiro "Matz" Matsumoto
The ISO standard does not include implicit type conversion using `to_int`, `to_str` and sometimes `to_f`. For the compactness of the mruby implementation, maybe we should remove those implicit conversion from mruby.
2018-09-18Array size may be changed in `mrb_get_args()` reentry.Yukihiro "Matz" Matsumoto
fix #4116; fix #4117; fix #4118; fix #4119; fix #4120
2018-09-17Merge pull request #4122 from blacktm/iphone-exclude-pipe-execYukihiro "Matz" Matsumoto
Exclude pipe and exec on iOS/tvOS
2018-09-15Exclude pipe and exec on iOS/tvOSTom Black
Use of `execl()` is prohibited on these platforms
2018-09-16fixup! Add support for iOS platforms that does not support `fork`; fix #4113Yukihiro "Matz" Matsumoto
2018-09-16Merge pull request #4121 from clayton-shopify/fix-sprintf-overflowYukihiro "Matz" Matsumoto
Prevent signed integer overflow.
2018-09-16Add support for iOS platforms that does not support `fork`; fix #4113Yukihiro "Matz" Matsumoto
2018-09-14Prevent signed integer overflow.Clayton Smith
2018-09-08Merge pull request #4110 from dearblue/fix-typo1Yukihiro "Matz" Matsumoto
Fix typo
2018-09-08Fix outer module namedearblue
example: a = Module.new a::B = Module.new p [a, a::B] # => [#<Module:0x801825890>, #<Class:0x801825890>::B] # => [#<Module:0x801825890>, #<Module:0x801825890>::B] (Fixed)
2018-09-07Fix to not define outer when outer is itself.dearblue
example: a = Class.new a::A = a
2018-09-07Clear terminated spacedearblue
2018-09-07Add MRB_IMPROVE_META_PROGRAMMING configurationdearblue
2018-09-07Fix indentdearblue
2018-09-07A class/module name is now defined for meta programingdearblue
2018-09-07Undesirable line splitdearblue
2018-09-07Not set a class/module name into anonymous class/moduledearblue
2018-09-07Fix typo for concatenatedearblue
2018-09-07Fix integer overflow issue; fix #4108Yukihiro "Matz" Matsumoto
I misunderstood the return value from `snprintf()`, which is NOT number of characters written in buffer, but the number of character the buffer has to have to write the complete output.
2018-09-07Add a new method `unpack1` to `mruby-pack` gem.Yukihiro "Matz" Matsumoto
2018-09-07Fix heap buffer overflow in `unpack_a`; fix #4103Yukihiro "Matz" Matsumoto
2018-09-06Make `Kernel#sleep` to accept float as a duration time.Yukihiro "Matz" Matsumoto
But when `MRB_WITHOUT_FLOAT` is set, there's no way to sleep for sub seconds. So mruby specific `usleep` is provided.
2018-09-06Remove `Sleep` module that does not exist in CRuby.Yukihiro "Matz" Matsumoto
2018-09-06Need to check if merging hash is empty; fix #4107Yukihiro "Matz" Matsumoto
2018-09-06Need to support multiple `**` splats in argument list; fix #4106Yukihiro "Matz" Matsumoto
2018-09-05Refactored `mruby-sleep` gem.Yukihiro "Matz" Matsumoto
* Method implementation functions made `static`. * Function declaration style has been changed. * Unnecessary header file `mrb_sleep.h` removed. * Used `mrb_get_args()` instead of self parsing. * Indentation kept untouched.
2018-09-05Add `mruby-sleep` gem to the core.Yukihiro "Matz" Matsumoto
2018-09-05Free `mrbc_context` on exit from `mruby`.Yukihiro "Matz" Matsumoto