takahashim
0f5b8b66b0
fix file separator
...
* File::SEPARATOR should be "/"
* File::ALT_SEPARATOR should be "\\" or nil.
2015-12-04 15:36:41 +09:00
Tomoyuki Sahara
b64c701c64
Merge pull request #11 from takahashim/fix-win-test
...
fix test for windows
2015-12-03 16:45:25 +09:00
takahashim
71f21845ca
fix test for windows
...
* _mkdir() has only one argument
* use mktemp && mkdir instead of mkdtemp
* use _getcwd instead of P_tmpdir (sandbox is on current dir)
* test for Dir#tell and Dir#seek: skip when NotImplementedError
2015-12-03 15:48:37 +09:00
Tomoyuki Sahara
66c6f8b9d1
Merge pull request #10 from takahashim/notimplemented
...
use NotImplementedError instead of RuntimeError for Win
2015-12-03 15:32:13 +09:00
takahashim
6140cb158d
use NotImplementedError instead of RuntimeError for Win
2015-12-03 15:25:12 +09:00
Tomoyuki Sahara
6c67120ed4
Merge pull request #54 from takahashim/win-crlf
...
fix tests for Win: use binary mode
2015-12-03 12:22:59 +09:00
Tomoyuki Sahara
d98ecabd90
Merge pull request #9 from takahashim/enable_test
...
add conf.enable_test into build_config.rb
2015-12-03 09:51:36 +09:00
takahashim
3501af9ba2
add conf.enable_test into build_config.rb
2015-12-03 00:10:19 +09:00
takahashim
b19c315148
fix tests for Win: use binary mode
2015-12-02 21:47:46 +09:00
Tomoyuki Sahara
7337bfa497
Merge pull request #53 from takahashim/build-win32
...
build on Win32
2015-12-02 10:13:15 +09:00
takahashim
07ceb138fa
build on Win32
2015-12-02 00:10:43 +09:00
Yukihiro "Matz" Matsumoto
9a21aa2d3c
preserve original string for error message
2015-12-01 21:42:07 +09:00
Yukihiro "Matz" Matsumoto
ca417dac26
mrb_str_len_to_inum(): inspect string in error message
2015-12-01 21:41:53 +09:00
Yukihiro "Matz" Matsumoto
36fabe104b
new API function mrb_string_value_len()
2015-12-01 16:18:01 +09:00
Yukihiro "Matz" Matsumoto
0701236dac
mrb_str_to_inum(): should treat null byte in strings properly; fix #3040
2015-12-01 16:11:47 +09:00
Yukihiro "Matz" Matsumoto
d3a56a6949
mrb_cstr_to_inum(): should ignore trailing white spaces even when badcheck set
2015-12-01 11:14:22 +09:00
Yukihiro "Matz" Matsumoto
dbb8cf637e
mrb_str_to_inum(): should raise error when string contains null byte
2015-12-01 11:13:32 +09:00
Yukihiro "Matz" Matsumoto
9f2fca6ebe
mrb_str_to_inum(): no need to call mrb_string_value_cstr() here; ref 05411ee
2015-12-01 10:54:00 +09:00
Yukihiro "Matz" Matsumoto
05411ee15e
mrb_string_value_cstr() should not raise error for frozen strings
...
cf. http://qiita.com/tsahara@github/items/b2a442af95ac893e10a1 (Japanese).
2015-12-01 10:45:43 +09:00
Yukihiro "Matz" Matsumoto
85bd99757c
avoid comparison between signed and unsigned
2015-12-01 10:18:01 +09:00
Yukihiro "Matz" Matsumoto
1636ad41a6
C++ compiler does not like cast from pointer to enum; ref #3039
2015-12-01 10:17:35 +09:00
Yukihiro "Matz" Matsumoto
c2996514d3
should ignore block to next, break, etc. fix #3039
2015-12-01 09:38:42 +09:00
Yukihiro "Matz" Matsumoto
81a7b4039b
Merge pull request #3038 from zzak/gc-arena-docs
...
GC Arena docs pass for fixups
2015-11-30 10:34:11 +09:00
Zachary Scott
dce300517f
GC Arena docs pass for fixups
2015-11-30 10:09:43 +09:00
Yukihiro "Matz" Matsumoto
065966dae4
common.h are supposed to be included from other header, so call it with quotes; ref #3032
2015-11-28 00:10:38 +09:00
Yukihiro "Matz" Matsumoto
6f831ef21c
Merge pull request #3037 from pbosetti/mruby-time
...
Implemented round(double) function when _MSC_VER < 1800
2015-11-27 23:31:56 +09:00
Paolo Bosetti
67e3cdfa76
Implemented round(double) function within mruby-time gem, for it is missing on
...
VisualStudio compilers where _MSC_ver < 1800
2015-11-27 10:54:03 +01:00
Yukihiro "Matz" Matsumoto
9a41db6f3a
Merge pull request #2950 from mattn/mirb-file-args
...
mirb should take filename and arguments.
2015-11-27 17:49:35 +09:00
Yukihiro "Matz" Matsumoto
5c405dea3d
include changed from by quotes ("") to by brackets (<>); close #3032
2015-11-27 17:48:23 +09:00
Yukihiro "Matz" Matsumoto
2e0519de89
Merge pull request #3036 from zzak/remove-mrbtest_irep
...
Remove mrbtest irep
2015-11-26 01:03:55 +09:00
Yukihiro "Matz" Matsumoto
6dbc314ad2
Merge pull request #3035 from iij/pr-yard-mrb_str_to_cstr
...
YARD doc for mrb_str_to_cstr.
2015-11-26 01:03:08 +09:00
Yukihiro "Matz" Matsumoto
2fb12bd90e
Merge pull request #3034 from takahashim/try_convert
...
add {Array|Hash|String}.try_convert
2015-11-26 01:02:38 +09:00
Tomoyuki Sahara
07f1ebd26d
symlink(2) returns -1 when it fails.
2015-11-24 17:09:00 +09:00
Tomoyuki Sahara
11ffb93852
assert_nothing_raised is not available on mruby 1.0.0.
2015-11-24 17:00:12 +09:00
Tomoyuki Sahara
ca495944b6
Merge pull request #51 from ksss/io-pipe
...
Implement IO.pipe
2015-11-24 16:49:34 +09:00
Zachary Scott
1ef2faf1a6
Remove unnecessary dependencies for assert_rb codegen and test_rbireps
2015-11-24 16:33:40 +09:00
Zachary Scott
e7a301828f
Remove mrbtest_irep from mrbtest
...
If we make the core tests a dependency on the mruby-test gem,
we don't need to worry about maintaining the core test irep alone.
2015-11-24 16:32:17 +09:00
Tomoyuki Sahara
90b7ec88dc
YARD doc for mrb_str_to_cstr.
2015-11-24 16:03:58 +09:00
ksss
a55accd736
Implement IO.pipe
2015-11-24 14:24:24 +09:00
Tomoyuki Sahara
c9a4091b83
arguments can be shared strings.
2015-11-24 09:54:03 +09:00
Tomoyuki Sahara
1f4bd9fd9f
Merge pull request #50 from takahashim/file-symlink
...
add File.symlink
2015-11-24 09:47:09 +09:00
takahashim
621487a0cd
add {Array|Hash|String}.try_convert
2015-11-24 08:39:39 +09:00
Yukihiro "Matz" Matsumoto
625a3fee77
Merge pull request #3033 from sgnr/compiler-fix-mrb-disable-stdio-typo
...
Fix MRB_DISABLE_STDIO typo.
2015-11-24 07:44:54 +09:00
Simon Génier
058ffcb29c
Fix MRB_DISABLE_STDIO typo.
2015-11-23 11:05:33 -05:00
takahashim
2cc674e58e
add File.symlink
2015-11-22 13:13:52 +09:00
Tomoyuki Sahara
14cdff075d
Merge pull request #48 from takahashim/file-path
...
add File.path
2015-11-22 07:12:23 +09:00
takahashim
44473fecdd
add File.path
2015-11-21 22:03:40 +09:00
Yukihiro "Matz" Matsumoto
18190fa77e
Merge pull request #3030 from takahashim/nonzero
...
Support Numeric#zero? and Numeric#nonzero?
2015-11-21 00:09:17 +09:00
takahashim
40a9700ef8
support Numeric#zero? and Numeric#nonzero?
2015-11-20 23:39:45 +09:00
Yukihiro "Matz" Matsumoto
0e721efe9c
Merge pull request #3028 from sgnr/fix-mrb-disable-stdio-typo
...
Fix typo on MRB_DISABLE_STDIO.
2015-11-20 10:58:33 +09:00