summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
2018-06-07Merge pull request #4035 from katzer/patch-1Yukihiro "Matz" Matsumoto
[mruby-socket] Declare inet_ntop and inet_pton as static
2018-06-07Merge pull request #4039 from i110/i110/fix-broken-lexical-variablesYukihiro "Matz" Matsumoto
fix broken lexical variables
2018-06-07Extend stack when pushing arguments that does not fit in; fix #4038Yukihiro "Matz" Matsumoto
2018-06-06add test for evalIchito Nagata
2018-06-05Declare inet_ntop and inet_pton as static Sebastián Katzer
To avoid conflicts with multiple definitions of inet_ntop and inet_pton if compiled with # define _WIN32_WINNT _WIN32_WINNT_VISTA C:/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libWs2_32.a(dghfs00169.o):(.text+0x0): multiple definition of `inet_pton' 722C:/projects/iss/mruby/build/host/lib/libmruby.a(socket.o):C:/projects/iss/mruby/mrbgems/mruby-socket/src/socket.c:80: first defined here define _WIN32_WINNT _WIN32_WINNT_VISTA
2018-05-23Add `then` alias to `yield_self`.Yukihiro "Matz" Matsumoto
`then' was added in CRuby 2.6.
2018-05-10Fix test of mruby-pack with big-endian CPUsNobuhiro Iwamatsu
When running the mruby-pack test with big endian, test data is incorrect, so it will fail with "i" and "I". ------ Fail: pack/unpack "i" (mrbgems: mruby-pack) - Assertion[1] Failed: Expected to be equal Expected: "\xff\xff\xc7\xcf" Actual: "\xff\xff\xcf\xc7" - Assertion[2] Failed: Expected to be equal Expected: [-12345] Actual: [-14385] Fail: pack/unpack "I" (mrbgems: mruby-pack) - Assertion[1] Failed: Expected to be equal Expected: "\x00\x0090" Actual: "\x00\x0009" - Assertion[2] Failed: Expected to be equal Expected: [12345] Actual: [14640] ------ This will fix the test data at big-endian. Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
2018-05-08Fix CI build errors and warnings.Hiroshi Mimaki
2018-05-07Add `-r` option for `mruby` and `mirb`.Hiroshi Mimaki
2018-05-07Fix CI build errors and warnings.Hiroshi Mimaki
2018-05-02Add `-d` option for `mruby` and `mirb`.Hiroshi Mimaki
2018-05-01Update `MRB_FLO_TO_STR_FMT` to "%.16g"; fix #4016Yukihiro "Matz" Matsumoto
2018-05-01Check the return value from `mrb_get_datatype()`; fix #4009Yukihiro "Matz" Matsumoto
The return value (void*) may be NULL. Avoid using `mrb_get_datatype()` directly and use `io_get_open_fptr()` instead.
2018-05-01Fix stack position in multiple assignment; fix #4008Yukihiro "Matz" Matsumoto
This was caused by a patch from #2684.
2018-04-21Implement `String#upto` in Ruby.Yukihiro "Matz" Matsumoto
Avoid using `mrb_yield` in C code. The function is not recommended. Because it doesn't work well with fibers.
2018-04-19CRuby2.6 stops deprecating `String#lines` with a block.Yukihiro "Matz" Matsumoto
`String#lines` (with a block) is now implemented in Ruby.
2018-04-19`String#lines` with a block is deprecated style.Yukihiro "Matz" Matsumoto
2018-04-18`mrb_io_initialize_copy` should not free existing `fptr`; fix #4005Yukihiro "Matz" Matsumoto
When arguments `copy` and `orig` are the same object.
2018-04-18`mrb_dup()` should fail if `fd` is a negative integer; ref #4005Yukihiro "Matz" Matsumoto
2018-04-18Avoid unnecessary object allocation (addrinfo) in `_accept`; ref #3999Yukihiro "Matz" Matsumoto
2018-04-17`Socket.accept` should have returned `[fd, addr]`; fix #3999Yukihiro "Matz" Matsumoto
2018-04-17Define `SOL_IP` and `SOL_TCP`; ref #3999Yukihiro "Matz" Matsumoto
2018-04-17Fix `use after free in File#initilialize_copy`; fix #4001Yukihiro "Matz" Matsumoto
The bug and the fix were reported by https://hackerone.com/pnoltof
2018-04-13No longer need to insert write barriers for fibers.Yukihiro "Matz" Matsumoto
Those barriers are inserted to fix #3699 but all living fibers are marked from `mark_context()` anyway now.
2018-04-04Fixed test case for mruby ddebugger.mimaki
2018-04-04Fixed illegal memory operation on mruby debugger.mimaki
2018-03-27Refactoring for `Enumerable#each_with_object`ksss
`each_with_object` arity should be 1
2018-03-27Merge pull request #3987 from ksss/enum-lazy-zipYukihiro "Matz" Matsumoto
Reimplement `Enumerable#zip` with Enumerator
2018-03-27Reimplement `Enumerable#zip` with Enumeratorksss
for fix some specs - [passes each element of the result array to a block and return nil if a block is given](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L11-L17) - [converts arguments to arrays using #to_ary](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L23-L27) - [converts arguments to enums using #to_enum](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L29-L34) - [gathers whole arrays as elements when each yields multiple](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L36-L39)
2018-03-27Should raise TypeError instead of NoMethodErrorksss
2018-03-27Support block yielding for `Enumerable#zip`ksss
2018-03-26Revert #3984 .Takeshi Watanabe
2018-03-25Merge commit '36d016afd663d34607c843d03371bedb71efa34e'Takeshi Watanabe
2018-03-16`__sort_sub__` is a method defined in `Array`; fix #3970Yukihiro "Matz" Matsumoto
Reorganize `__sort_sub__` arguments.
2018-03-16Merge pull request #3957 from take-cheeze/fix_io_readYukihiro "Matz" Matsumoto
Pass same mode parameter to `IO.sysopen` and `IO.open` in `IO.read`.
2018-03-16Fix tinytypoOkumura Takahiro
2018-03-05Close `mrb_state` before exit.Takeshi Watanabe
2018-03-05Close on exception too.Takeshi Watanabe
2018-03-02Add `mrb_fiber_alive_p` to C API.Yukihiro "Matz" Matsumoto
2018-03-02Round up the `dstlen` value; fix #3949Yukihiro "Matz" Matsumoto
The fix was proposed by https://hackerone.com/aerodudrizzt
2018-02-23Pass same mode parameter to `IO.sysopen` and `IO.open` in `IO.read`.Takeshi Watanabe
2018-02-13Check `sizeof(base64_dec_tab)` in base64 encoding; fix #3947Yukihiro "Matz" Matsumoto
The issue (and the fix) reported by https://hackerone.com/aerodudrizzt
2018-02-13Check negative offset in `pack` method; fix #3944Yukihiro "Matz" Matsumoto
2018-02-13Fixed wrong offset in `pack_x` function; ref #3944Yukihiro "Matz" Matsumoto
2018-02-13Use 'mrb_raise` instead of `mrb_raisef` when no argument given.Yukihiro "Matz" Matsumoto
2018-02-12Resolve conflicts between labels and conditional ternary; fix #3931Yukihiro "Matz" Matsumoto
2018-02-10Need to determine `IS_LABEL_POSSIBLE()` properly.Yukihiro "Matz" Matsumoto
Otherwise, `{"a": 1}` will cause `SyntaxError`.
2018-02-10Check negative `count` in `pack_x` and `unpack_x`; fix #3944Yukihiro "Matz" Matsumoto
2018-02-10Add `mruby-io` and `mruby-pack` to `default.gembox`Yukihiro "Matz" Matsumoto
2018-02-09Check if `mruby-pack` template count overflow; fix #3942Yukihiro "Matz" Matsumoto