Tomoyuki Sahara
fe99819bc9
Merge pull request #85 from ksss/read
...
Support outbuf argument for IO#read
2017-06-12 16:17:53 +09:00
Tomoyuki Sahara
c279f00109
Merge pull request #86 from ksss/write
...
Reseek when write
2017-06-12 16:15:31 +09:00
Tomoyuki Sahara
0b41066e83
Merge pull request #84 from ksss/pos
...
To accurate `pos`
2017-06-12 15:43:44 +09:00
ksss
051d7bc8db
Reseek when write
2017-06-12 09:57:18 +09:00
ksss
1ebe1c8b1f
Support outbuf argument for IO#read
2017-06-12 09:43:02 +09:00
ksss
27f422880f
To accurate pos
...
pos shouldn't cache because it's not controllable
2017-06-11 23:22:04 +09:00
Tomoyuki Sahara
3a73a58493
mruby 1.2.0 assumes test blocks return their results. master does not.
2017-06-07 11:36:37 +09:00
Tomoyuki Sahara
dab87cf960
Merge pull request #80 from ksss/sysread
...
IO#sysread Check for readable
2017-06-05 16:21:30 +09:00
ksss
a3a4f4d061
IO#sysread Check for readable
2017-05-27 13:34:11 +09:00
Tomoyuki Sahara
0c0b34136e
Merge pull request #78 from ksss/syswrite
...
Should raise SyscallError on IO#syswrite
2017-05-23 15:09:04 +09:00
Tomoyuki Sahara
87771ecf92
Merge pull request #79 from ksss/ioerror
...
Fix some spec for IO#sysread
2017-05-23 15:06:15 +09:00
ksss
0bbd60b523
IO#sysread should raise error when invalid pos
2017-05-22 11:47:45 +09:00
ksss
86edc9ab85
IO#sysread should raise IOError when closed
2017-05-21 22:54:46 +09:00
ksss
844b2c368f
IO#sysread with 0 always return empty string
2017-05-21 22:54:12 +09:00
ksss
c43795c664
Should raise SyscallError on IO#syswrite
...
instead of IOError
2017-05-21 17:10:15 +09:00
Tomoyuki Sahara
6836f424c5
"open" error message should include pathname. fixes #77 .
2017-05-19 17:14:43 +09:00
Tomoyuki Sahara
728d313b2c
Merge pull request #76 from yyamano/issue-75
...
Make backquote work with the latest mruby. Fixed #75
2017-04-25 11:19:07 +09:00
Yuji Yamano
311f4a230f
Make backquote work with the latest mruby. Fixed #75
2017-04-24 02:40:01 -04:00
Tomoyuki Sahara
f8a3af8086
Merge pull request #74 from iij/run-test-outside-source-tree
...
run mrbtest outside of source tree.
2017-02-28 12:34:15 +09:00
Tomoyuki Sahara
3ae5fea2b8
run mrbtest outside of source tree.
2017-02-28 12:10:51 +09:00
Tomoyuki Sahara
74fe87c289
Add a travis-ci badge.
2017-02-17 10:33:11 +09:00
Tomoyuki Sahara
86d58a2d37
File class does not have to include Enumerable.
...
Because IO class, which is the superclass of File class, includes it.
2017-02-10 11:22:52 +09:00
Tomoyuki Sahara
caab1c203c
define IO#hash to override Enumerable#hash. fixes #73 .
...
Current implementation of Enumerable#hash calls #each to collect
hash values of enumerated objects (then calculates the hash value
of the Enumerable object). But IO#each is a method to read lines.
It is not expected that IO#hash reads all lines from the IO object.
Or even worse, program waits for the IO object to be readable if
it is a socket or something cannot be read immediately.
2017-02-08 18:31:50 +09:00
Tomoyuki Sahara
69623078a8
Merge pull request #72 from masahino/add_pointer_casting
...
Add pointer casting
2016-12-26 09:12:19 +09:00
masahino
1fac605e3f
Add pointer casting
2016-12-24 23:32:44 +09:00
Tomoyuki Sahara
458b517c6f
Merge pull request #71 from eagletmt/readlink
...
Add File.readlink
2016-12-19 09:03:13 +09:00
Kohei Suzuki
b31b8022db
Fix memory leak in error case
2016-12-17 16:48:02 +09:00
Kohei Suzuki
d1c48192cb
Add File.readlink
2016-12-17 15:03:52 +09:00
Tomoyuki Sahara
7e89736291
Merge pull request #70 from eagletmt/chmod
...
Add File.chmod
2016-12-16 22:54:20 +09:00
Kohei Suzuki
698378f076
Add File.chmod
2016-12-16 01:20:08 +09:00
Tomoyuki Sahara
0eafb089c9
Merge pull request #69 from eagletmt/explicit-cast
...
Add explicit cast from void* to struct mrb_io*
2016-11-27 13:53:50 +09:00
Kohei Suzuki
905203ef5e
Add explicit cast from void* to struct mrb_io*
...
For compatibility with C++.
2016-11-26 14:18:28 +09:00
Tomoyuki Sahara
b5e2dc9097
raise an exception when we cannot close "fd" but can close "fd2".
2016-10-13 16:57:38 +09:00
Tomoyuki Sahara
f6a82772e6
eof? should raise an IOError if it is not opened for reading.
2016-09-30 17:10:55 +09:00
Tomoyuki Sahara
2229a2aa0f
reimplement #eof. fixes #66 .
2016-09-30 16:27:11 +09:00
Tomoyuki Sahara
51cf6b6048
Merge pull request #65 from ksss/join
...
Support Array argument
2016-09-13 09:57:05 +09:00
ksss
ff845be72c
Support Array argument
2016-09-11 22:01:45 +09:00
ksss
7c9d941003
Show value of expect and actual each assertion
2016-09-11 17:00:19 +09:00
Tomoyuki Sahara
d8189c2b19
Merge pull request #64 from asfluido/master
...
Apparently, in mruby-process gem, Process is now a Module, not a Class
2016-08-10 09:12:44 +09:00
Carlo - PERI
024b09de0c
Apparently, in mruby-process gem, Process is now a Module, not a Class
2016-08-09 11:23:49 +02:00
Tomoyuki Sahara
b341ee7c12
Merge pull request #63 from ksss/opt
...
Enable option :in, :out, :err to IO.popen
2016-08-08 10:12:20 +09:00
Tomoyuki Sahara
9ccf03e5ae
Merge pull request #62 from ksss/global
...
Should use global variable
2016-08-08 09:38:22 +09:00
ksss
d2c1f4d10b
Enable Fixnum option
2016-08-07 22:19:21 +09:00
ksss
b462ef4506
Enable option :in, :out, :err
2016-08-07 21:21:01 +09:00
ksss
4cac5e9c70
Should use global variable
2016-08-06 23:11:31 +09:00
Tomoyuki Sahara
93d481d4b4
update $? when IO object is closed. closes #58 .
2016-06-22 10:29:49 +09:00
Tomoyuki Sahara
e90ecff671
Merge pull request #60 from drbrain/test_io_setup_failure
...
Test io setup failure
2016-06-21 09:52:30 +09:00
Tomoyuki Sahara
2af2a4fff8
add IO#isatty and IO#tty?
2016-06-21 09:49:34 +09:00
Eric Hodel
11961b42ac
Create socket in /tmp for security
...
Some systems do not allow UNIX sockets from arbitrary directories.
Instead of trying to `#define SOCKET_PATH` correctly I assume the /tmp/
directory is accessible and use it.
2016-05-12 17:55:14 -07:00
Eric Hodel
777cf70cc5
Include reason in test failure message
...
I am seeing this test fail in some environments but can't determine why.
The extra information will help me determine the reason bind(2) is
failing.
2016-05-12 16:02:09 -07:00