h2so5
88758e3630
Uniquify the results of Object#methods
2013-10-27 04:04:06 +09:00
Yukihiro "Matz" Matsumoto
3a668241be
nil/false should not be implicitly converted to integers in mrb_get_args(); close #1529
2013-10-26 17:11:09 +09:00
Yukihiro "Matz" Matsumoto
51213bfc7d
mrb_Integer() should not convert strings to integers
2013-10-26 17:06:50 +09:00
Yukihiro "Matz" Matsumoto
fcebd1243b
Merge pull request #1530 from h2so5/args-explicit-conversion
...
Disable implicit integer conversion in mrb_get_args
2013-10-26 00:47:03 -07:00
Yukihiro "Matz" Matsumoto
3a6391c485
update test code to ensure return value from class statement
2013-10-25 13:24:50 +09:00
fleuria
ba4a19dbe9
add a regression for #1544
2013-10-25 02:53:27 +08:00
fleuria
c647dff1b2
fix #1544
...
We have already reserved that register in codegen()'s case NODE_DEF, but
what we care about is actually the previous register. So what we need is
get that register by cursp() after pop(), then recover the reservation
by push().
2013-10-25 02:48:25 +08:00
Yukihiro "Matz" Matsumoto
a230a88e89
Merge pull request #1543 from Fleurer/issue1542
...
fix #1542
2013-10-24 02:55:37 -07:00
fleuria
e648abf1c1
fix #1542
2013-10-23 15:39:52 +08:00
Yukihiro "Matz" Matsumoto
9eadd05f32
modify upto/downto for compatibility
2013-10-23 10:34:00 +09:00
Yukihiro "Matz" Matsumoto
2607970ed9
move some methods to make floats and integers compatible [mruby special]
2013-10-22 16:18:11 +09:00
Yukihiro "Matz" Matsumoto
620f8b2721
implement some Numeric methods in Ruby
2013-10-22 15:59:41 +09:00
Yukihiro "Matz" Matsumoto
3ae0616710
implement Integer#succ in Ruby
2013-10-21 07:42:50 +09:00
Yukihiro "Matz" Matsumoto
9cb58a2252
Fixnum#succ may overflow
2013-10-20 00:43:39 +09:00
Yukihiro "Matz" Matsumoto
9b2f4c4423
move declarations to the beginning of blocks
2013-10-16 08:21:06 +09:00
Yukihiro "Matz" Matsumoto
def683ae72
Merge pull request #1538 from carsonmcdonald/conststackfix
...
Set regs to stack on return of const_get calls before use
2013-10-15 15:34:33 -07:00
Carson McDonald
11c4d81539
Set regs to stack on return of const_get calls before use
2013-10-15 07:33:41 -04:00
Yukihiro "Matz" Matsumoto
a7c9a71684
better error position display
2013-10-15 12:49:41 +09:00
Yukihiro "Matz" Matsumoto
8ecbff3f7b
define Module#const_missing
2013-10-15 11:12:22 +09:00
Tomoyuki Sahara
823df14ff4
remove unused code and irrelevant comment.
2013-10-15 10:43:48 +09:00
Yukihiro "Matz" Matsumoto
480e329721
Merge pull request #1534 from skandhas/pr-add-some-symbol-methods
...
Add some methods to Symbol
2013-10-09 23:33:05 -07:00
Yukihiro "Matz" Matsumoto
7b0baded5a
Merge pull request #1535 from matsumoto-r/del_unused_varaiable
...
remove unused value for mrb_gv_remove
2013-10-09 23:31:35 -07:00
Yukihiro "Matz" Matsumoto
400ccecf0a
add mrb_gv_remove(); untested
2013-10-10 12:12:29 +09:00
Tomoyuki Sahara
ec443d45db
more IPPROTO_* related to IPv6.
2013-10-10 10:24:02 +09:00
MATSUMOTO Ryosuke
d41425edd4
remove unused value for mrb_gv_remove
2013-10-10 00:29:20 +09:00
Tomoyuki Sahara
93edd26b3e
fix typo...
2013-10-09 00:35:22 +09:00
skandhas
81c0fda8ec
add some methods to Symbol
2013-10-08 21:47:11 +08:00
Yukihiro "Matz" Matsumoto
9295f6ae49
simplify stack_clear()
2013-10-05 18:50:55 +09:00
h2so5
41de3d83e5
Disable implicit integer conversion in mrb_get_args
2013-10-05 10:56:27 +09:00
Yukihiro "Matz" Matsumoto
250b62d925
Merge pull request #1528 from Ahti/master
...
fix no multiline strings in mirb
2013-10-03 23:27:09 -07:00
Lukas Stabe
5692b5ade1
fix no multiline strings in mirb
2013-10-04 06:03:53 +02:00
Tomoyuki Sahara
005f01f2fc
fix RSTRING_PTR usage.
2013-10-03 12:18:39 +09:00
Tomoyuki Sahara
bf4c226232
Merge pull request #4 from pbosetti/master
...
Truncate the file to zero length on opening when "w" mode is set
2013-10-02 17:08:24 -07:00
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