Paolo Bosetti
c608c26ab4
Merge branch 'master' of https://github.com/iij/mruby-io
2013-10-02 13:05:12 +02:00
Paolo Bosetti
49494a7367
Truncate file on File.open(file, "w")
2013-10-02 13:01:56 +02:00
Yukihiro "Matz" Matsumoto
fe8fd13deb
Merge pull request #1522 from bovi/patch-1
...
Improve Grammar of Documentation
2013-10-02 02:38:38 -07:00
Yukihiro "Matz" Matsumoto
34cdc21c57
Merge pull request #1523 from wrl/relative-gembox-nokeyword
...
Implement gembox-relative gemdir paths
2013-10-01 16:52:07 -07:00
William Light
72d6db8bc4
Fix for caller_dir relative gems
2013-10-01 21:27:34 +02:00
William Light
7c3f06ddd8
Implement gembox-relative gemdir paths
...
In the case where a relative path is specified to a gembox from
build_config.rb, it was previously tricky to specify relative gem paths
from inside that gembox.
For example, consider a project in which mruby is checked out as a
submodule in the project root:
+- project_root
|
+- mruby/
| |
| +- build_config.rb
| |
| +- ...
|
+- my_gembox/
|
+- my_gembox.gembox
|
+- my_gem/
|
+- mrbgem.rake
|
+- ...
If build_config.rb refers to my_gembox with a relative path, it's
difficult for my_gembox to then refer to my_gem. With this proposed
change, my_gembox.gembox can look like this:
MRuby::GemBox.new do |conf|
conf.gem "my_gem"
end
2013-10-01 20:21:46 +02:00
Daniel Bovensiepen
302e20333b
Improve Grammar of Documentation
2013-10-02 00:50:55 +08:00
Yukihiro "Matz" Matsumoto
e06a0e39f8
Merge pull request #1520 from pbosetti/master
...
Added test for inline arrays longer than 126 elements.
2013-10-01 08:07:49 -07:00
Yukihiro "Matz" Matsumoto
1ba6995a7a
Merge pull request #1521 from Fleurer/issue-1519
...
fix #1519
2013-10-01 08:07:19 -07:00
fleuria
af5bec1fbc
fix #1519
...
the 128th element in an array literal would trigger a corner case on
splat mode checking, in which mruby will splat an that value into its
parent array. the issue was masked by the fact of ary_concat() also
accept non-array value:
1.9.3p286 :002> a = 1
1.9.3p286 :003> [*a]
=> [1]
the expected behaviour should be OP_ARYPUSH the 128th element, instead of
splat it by OP_ARYCAT.
2013-10-01 21:32:16 +08:00
Paolo Bosetti
6d5bd14481
Added test for inline arrays longer than 126 elements.
2013-10-01 14:47:58 +02:00
Tomoyuki Sahara
8b48e2b4a4
syswrite must write to fd2 if it is properly set.
...
closes #3 .
2013-09-30 11:56:15 +09:00
Tomoyuki Sahara
97899a6922
style
2013-09-30 11:18:22 +09:00
Tomoyuki Sahara
adb3bd6698
don't retry when we cannot fork(2).
...
EAGAIN indicates the system is under heavy load.
Retrying make things worse.
2013-09-30 10:55:09 +09:00
Tomoyuki Sahara
d75d23294d
fix descriptor leakage.
2013-09-30 10:36:29 +09:00
Tomoyuki Sahara
b4f0a68fba
add File#flock.
2013-09-30 10:17:21 +09:00
Yukihiro "Matz" Matsumoto
e870ed708b
Merge pull request #1518 from dmajkic/master
...
Remove function delaration not implemented in code
2013-09-29 10:02:54 -07:00
Dusan D. Majkic
1228415c97
Remove function delaration not implemented in code
2013-09-28 22:10:44 +02:00
Yukihiro "Matz" Matsumoto
ee953abe47
Merge pull request #1515 from mynz/master
...
fix build error when ENABLE_DEBUG is defined
2013-09-26 09:22:52 -07:00
Atsushi_Morimoto
86f0912bcc
fix build error when ENABLE_DEBUG is defined
2013-09-26 18:36:08 +09:00
Tomoyuki Sahara
140da1c6ca
remove duplicated white spaces.
2013-09-26 18:31:02 +09:00
Tomoyuki Sahara
e27fb544df
suppress a warning and fix a possible segv.
2013-09-26 10:59:40 +09:00
Tomoyuki Sahara
e2b0606752
Merge pull request #2 from pbosetti/master
...
Catch up with API changes on mrb_intern() -> mrb_intern_cstr()
2013-09-25 18:21:27 -07:00
Yukihiro "Matz" Matsumoto
11b0dda641
Merge pull request #1509 from FUKUZAWA-Tadashi/heredoc-bugfix
...
fix bugs on Heredocument
2013-09-25 18:02:00 -07:00
Paolo Bosetti
c4e3c46e86
Catch up with API changes on mrb_intern() -> mrb_intern_cstr()
2013-09-25 13:26:49 +02:00
Yukihiro "Matz" Matsumoto
9194047791
change type of mrb->c->status from uint8_t to enum mrb_fiber_state; #1511
2013-09-25 02:39:59 +09:00
Yukihiro "Matz" Matsumoto
fe1f121640
Merge pull request #1512 from wasabiz/eliminate-mrb-intern
...
eliminate use of traditional intern API (mrb_intern()) completely
2013-09-24 10:31:00 -07:00
Yuichi Nishiwaki
6e47c9dfc1
fix a bug introduced in prev commit
2013-09-23 19:59:24 -07:00
Yuichi Nishiwaki
0e4a7b2a03
eliminate use of traditional intern API (mrb_intern()) completely
2013-09-23 19:36:50 -07:00
Julien Ammous
19f5430967
support freebsd versions without log2 function
2013-09-23 15:14:19 +02:00
FUKUZAWA-Tadashi
8d34e00102
fix bugs on Heredocument
...
- heredoc in array literal
- heredoc in args
- heredoc in expression expand
2013-09-22 18:14:40 +09:00
Yukihiro "Matz" Matsumoto
eeac4be4ce
Merge pull request #1507 from ktaobo/yield-self
...
Use self for the given proc in mrb_yield
2013-09-21 04:16:28 -07:00
Yukihiro "Matz" Matsumoto
3995e7ff8f
rename voidp to cptr
2013-09-21 17:28:47 +09:00
Yukihiro "Matz" Matsumoto
fdb58b4734
voidp should be an Object; close #1508
2013-09-21 17:18:56 +09:00
Yukihiro "Matz" Matsumoto
97ce25fbd0
index to mrb_digitmap[] should always be positive
2013-09-21 17:15:58 +09:00
Keita Obo
862517d540
Use self for the given proc
2013-09-20 17:40:55 +09:00
Yukihiro "Matz" Matsumoto
d74887f582
incomplete renaming node->filename -> node->filename_index
2013-09-20 15:41:59 +09:00
Yukihiro "Matz" Matsumoto
4c1c7166bf
remove unreferenced local variables caused by mrb_assert()
2013-09-20 06:11:07 +09:00
Yukihiro "Matz" Matsumoto
12183fa250
rename node->filename to node->filename_index
2013-09-20 06:09:41 +09:00
Yukihiro "Matz" Matsumoto
58b1c0883b
refactor genop_peep(); ref #1505
2013-09-20 06:08:01 +09:00
Yukihiro "Matz" Matsumoto
e7082a5092
Merge pull request #1505 from ktaobo/return-breaks-self
...
Fixed self value in a block is changed with return value
2013-09-19 13:40:32 -07:00
Yukihiro "Matz" Matsumoto
f65a39f4d1
Merge pull request #1503 from digitaltom/master
...
remove executable bit from include/mruby/dump.h file
2013-09-18 20:00:35 -07:00
Keita Obo
c4e5a8b167
Fix self value in a block is changed with return value for Fixnum, nil, instance variable.
...
Fix #1504
2013-09-18 00:57:23 +09:00
Keita Obo
0bce3a36d2
Fixed self value in a block is changed with return value
...
fix #1504
2013-09-18 00:20:13 +09:00
Thomas Schmidt
713e0019ca
remove executable bit from include/mruby/dump.h file
2013-09-16 13:12:04 +02:00
Yukihiro "Matz" Matsumoto
ccadbbeb84
Merge pull request #1501 from iij/pr_fix_read_debug_section
...
Fix checking return value of fread()
2013-09-12 01:42:56 -07:00
Akito Mochizuki
b840a6a813
Fix checking return value of fread()
2013-09-10 14:50:18 +09:00
Yukihiro "Matz" Matsumoto
668a0466c5
Merge pull request #1500 from take-cheeze/debug_info_file_updating
...
Fix insufficient preparation to call mrb_debug_info_append_file.
2013-09-07 09:50:02 -07:00
take_cheeze
af73a740cd
check file debug info is appended correctly
2013-09-07 20:25:53 +09:00
take_cheeze
8c738e348f
remove unnecessary scope filename update
2013-09-07 20:23:18 +09:00