ksss
|
e683c95e90
|
Refactoring for Enumerable#each_with_object
`each_with_object` arity should be 1
|
2018-03-27 23:09:10 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a072015c4e
|
Merge pull request #3987 from ksss/enum-lazy-zip
Reimplement `Enumerable#zip` with Enumerator
|
2018-03-27 13:53:37 +09:00 |
|
ksss
|
3a22d113ee
|
Reimplement Enumerable#zip with Enumerator
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-27 10:53:33 +09:00 |
|
ksss
|
b1c8fad94a
|
Should raise TypeError instead of NoMethodError
|
2018-03-27 10:52:32 +09:00 |
|
ksss
|
5a7ce01f12
|
Support block yielding for Enumerable#zip
|
2018-03-27 10:51:59 +09:00 |
|
Takeshi Watanabe
|
baff7c63ee
|
Revert #3984 .
|
2018-03-26 11:02:05 +09:00 |
|
Takeshi Watanabe
|
306cb99b10
|
Merge commit '36d016afd663d34607c843d03371bedb71efa34e'
|
2018-03-25 21:10:11 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1a8483f17e
|
__sort_sub__ is a method defined in Array; fix #3970
Reorganize `__sort_sub__` arguments.
|
2018-03-16 14:49:51 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1abff3f2ab
|
Merge pull request #3957 from take-cheeze/fix_io_read
Pass same mode parameter to `IO.sysopen` and `IO.open` in `IO.read`.
|
2018-03-16 14:34:44 +09:00 |
|
Okumura Takahiro
|
0664c452ee
|
Fix tinytypo
|
2018-03-16 00:19:09 +09:00 |
|
Takeshi Watanabe
|
0f5cf385b8
|
Close mrb_state before exit.
|
2018-03-05 10:13:55 +09:00 |
|
Takeshi Watanabe
|
94aebe3137
|
Close on exception too.
|
2018-03-05 10:12:33 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
10f28fc82d
|
Add mrb_fiber_alive_p to C API.
|
2018-03-02 10:14:36 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a95b6d34aa
|
Round up the dstlen value; fix #3949
The fix was proposed by https://hackerone.com/aerodudrizzt
|
2018-03-02 10:14:36 +09:00 |
|
Takeshi Watanabe
|
92641248fa
|
Pass same mode parameter to IO.sysopen and IO.open in IO.read.
|
2018-02-23 20:42:13 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
ef1a0e6358
|
Check sizeof(base64_dec_tab) in base64 encoding; fix #3947
The issue (and the fix) reported by https://hackerone.com/aerodudrizzt
|
2018-02-13 08:55:24 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
7483753094
|
Check negative offset in pack method; fix #3944
|
2018-02-13 08:48:23 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
c5ec37a8ab
|
Fixed wrong offset in pack_x function; ref #3944
|
2018-02-13 08:47:33 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
00845ea908
|
Use 'mrb_raise instead of mrb_raisef` when no argument given.
|
2018-02-13 08:35:01 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
4790f28d62
|
Resolve conflicts between labels and conditional ternary; fix #3931
|
2018-02-12 09:28:09 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
7a116f27e4
|
Need to determine IS_LABEL_POSSIBLE() properly.
Otherwise, `{"a": 1}` will cause `SyntaxError`.
|
2018-02-10 17:17:36 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
79cfa377e1
|
Check negative count in pack_x and unpack_x; fix #3944
|
2018-02-10 16:59:14 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
4f31bcbc84
|
Add mruby-io and mruby-pack to default.gembox
|
2018-02-10 16:58:59 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
4c1494d58f
|
Check if mruby-pack template count overflow; fix #3942
|
2018-02-09 12:55:13 +09:00 |
|
MATSUMOTO, Ryosuke
|
6ae4fb707a
|
Depend mruby-io and mruby-pack in mruby core
|
2018-02-03 14:57:12 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
e02cbb4426
|
Need fcntl.h and sys/stat.h as well for _open; ref #3938
|
2018-02-02 14:58:09 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
c9fa7b1919
|
Need to include io.h anyway for _WIN32/64; ref #3938
|
2018-02-02 14:18:25 +09:00 |
|
Yasuhiro Matsumoto
|
0e0dad7697
|
include io.h on mingw
|
2018-01-31 12:18:35 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f7ff2d0ee3
|
Define compatibility only for _MSC_VER; ref #3923
Suggested by @mattn.
|
2018-01-31 12:10:51 +09:00 |
|
ksss
|
e422ba0bff
|
Use mkstemp instead of tempnam
|
2018-01-31 11:34:29 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
43594843d7
|
Merge pull request #3937 from mattn/file-mtime
add File#mtime
|
2018-01-30 21:39:08 +09:00 |
|
Yasuhiro Matsumoto
|
f4f006ba40
|
add File#mtime
|
2018-01-30 16:02:00 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
3498a787ba
|
Merge pull request #3936 from ken-mu/uint
mruby-time: support time_t is uint
|
2018-01-30 12:42:49 +09:00 |
|
ken-mu
|
a1b71b64b3
|
mruby-time: remove ifdef for mktime error handling
|
2018-01-29 09:43:43 +00:00 |
|
ken-mu
|
6a2c0c6e2a
|
mruby-time: support time_t is uint
|
2018-01-28 03:03:20 +00:00 |
|
Yukihiro "Matz" Matsumoto
|
0e93f1ff12
|
Merge pull request #3921 from ksss/cloexec
Should be true for close_on_exec flag
|
2018-01-24 22:04:05 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
3ff56a8e55
|
Time.new(1969,12,31,23,59,59) may or may not faile; ref #3932
On some platform and timezone it is a valid time spec.
|
2018-01-24 21:42:25 +09:00 |
|
ken-mu
|
d398cd47d7
|
mruby-time: remove test case less than Dec 31 23:59:58 1969
|
2018-01-21 02:47:17 +00:00 |
|
ken-mu
|
a1f36316d2
|
mruby-time: Fix mruby specific timegm() cannot return minus
|
2018-01-20 13:09:58 +00:00 |
|
Yukihiro "Matz" Matsumoto
|
ec63b1a0e0
|
Limit size of iseq buffer; fix #3927
|
2018-01-16 15:17:56 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
ca837b1a24
|
Allow -> do rescue; end as well as proc do rescue; end [Ruby2.6]
|
2018-01-16 15:08:51 +09:00 |
|
ksss
|
dc9c40f72d
|
Remove trailing space
|
2018-01-14 22:40:46 +09:00 |
|
ksss
|
540efd3730
|
IO#close_on_exec? is not supported on MinGW
|
2018-01-14 22:40:46 +09:00 |
|
ksss
|
e5e9d03482
|
Should be true for close_on_exec flag
|
2018-01-14 22:40:45 +09:00 |
|
Hiroshi Mimaki
|
f55df0da7b
|
addrinfo.ai_protocol was not set on Cygwin.
|
2017-12-26 11:12:49 +09:00 |
|
Hiroshi Mimaki
|
bce811a53a
|
Disabled UNIXSocket test on Cygwin
|
2017-12-26 11:05:28 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
6b09692684
|
Add `Integer#{allbits?,anybits?,nobits?}. [Ruby2.5]
In mruby, those methods are defined in `Integral` module.
|
2017-12-26 09:44:39 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
3d7141b7fe
|
Move Intefer#chr to Integral#chr.
Since mruby mixes `Integer` and `Float`, integer operations have
been moved to `Integral` module.
|
2017-12-26 09:42:34 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
ad17ba0e11
|
KeyError from Hash#fetch should inspect key.
To distinguish string keys and symbol keys.
|
2017-12-25 23:52:40 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
e4a9b4a3ad
|
`Enumerable#{one?,none?,all?,any?} to take pattern argument [Ruby2.5]
|
2017-12-25 23:43:43 +09:00 |
|