Tomoyuki Sahara
9686890ab3
Fix Float#divmod.
2014-03-04 10:51:36 +09:00
Yukihiro "Matz" Matsumoto
4a2c37df93
made mrb_define_class to return existing class, with heavy refactoring
2014-02-08 13:44:31 +09:00
Yukihiro "Matz" Matsumoto
3ff9aad22f
move version info from gems to core; ref #576 #1684
2014-02-07 12:18:55 +09:00
Yukihiro "Matz" Matsumoto
5172f4797f
add RUBY_VERSION to notify syntax compatible version
2014-02-05 13:27:30 +09:00
Yukihiro "Matz" Matsumoto
c7cff199dc
hash value of enumerable should be obtained from its elements; close #1658
2014-01-16 21:33:48 +09:00
Yukihiro "Matz" Matsumoto
ff9b41cc37
Merge pull request #1654 from iij/pr-not-match-operator
...
add operator "!~".
2014-01-09 22:04:01 -08:00
Tomoyuki Sahara
83413218a5
add operator "!~".
2014-01-10 13:41:41 +09:00
Tomoyuki Sahara
3b76aae4f0
fix ISO reference number of String#=~.
2014-01-10 12:01:24 +09:00
cremno
aa655b9ee1
remove superfluous includes
...
- reduce compile time by a little bit (full-core: ~0.7s for me)
- thanks to 'include-what-you-use' for some help
- include Standard C header files before any other (coding style)
2014-01-07 17:56:30 +01:00
Yukihiro "Matz" Matsumoto
4d92d2e1aa
string type check based on #to_str to encourage duck typing; #1616
2013-12-24 07:02:37 +09:00
h2so5
e137d1423d
verify the argument of String#=~
2013-12-24 00:09:34 +09: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
954c28504e
remove Ruby defined Class#new
2013-08-15 01:37:29 +09:00
Yukihiro "Matz" Matsumoto
babc8d0086
implement Class.new in C again
2013-08-15 00:35:41 +09:00
Carson McDonald
dbd243487f
Fix inerited to inherited
2013-08-13 22:11:40 -04:00
Yukihiro "Matz" Matsumoto
6b015ec775
define Class#new in ruby to call #initialize
2013-08-13 16:55:06 +09:00
Yukihiro "Matz" Matsumoto
8d7e716158
String =~ and match to work with pluggable Regexp; close #1398
2013-07-23 20:22:15 +09:00
Ryan Scott
43c0f43f13
Changed the attr methods in mrblib, so that they take advantage of validating the name against a string parameter if need be
2013-07-21 18:13:19 +10:00
Ryan Scott
fe5324bd17
Wrote tests around attr, attr_reader, attr_writer, attr_accessor
2013-07-19 22:39:54 +10:00
Masaki Muranaka
82c891acee
Move comments from hash.c to hash.rb.
2013-05-08 13:22:35 +09:00
h2so5
5a8e76cc7b
Add NotImplementedError for Kernel. and Kernel#
2013-04-09 14:04:58 +09:00
Yukihiro "Matz" Matsumoto
5de9a8cc50
sort mrblib/*.rb files to compile (class.rb comes before error.rb); close #1132 ; close #1134
2013-04-05 13:19:58 +09:00
Masaki Muranaka
edd0a62106
Add NameError#name. Fix NameError.new and NameError.initialize. Enable 2nd argument for NameError.new in C API.
2013-04-04 16:24:43 +09:00
Masaki Muranaka
cbe7a87c68
Move Integer.{floor,ceil,round,truncate} to mrblib/. For maintainability.
2013-03-31 23:04:45 +09:00
Yukihiro Matz Matsumoto
a0f6e4d58e
resolve conflict from #964
2013-03-27 00:52:24 +09:00
mattn
e53fa35748
Remove __printstr__
2013-03-24 00:18:39 +09:00
Yuichiro MASUI
814094230c
Change unsigned char to uint8_t
2013-03-08 18:55:15 +09:00
Yuichiro MASUI
2842583678
New mrb format. The detail is in https://github.com/mruby/mruby/issues/944
2013-03-08 03:14:21 +09:00
Masaki Muranaka
6cd7017ec1
Remove trailing whitespaces. This is just a cosmetic change.
2013-03-03 10:54:00 +09:00
mattn
3f1814ce3a
Move mrblib for Struct
2013-03-01 15:33:52 +09:00
Yuichiro MASUI
0970ca9572
Support to build on pwd != mruby source root
2013-02-23 19:03:59 +09:00
Yukihiro Matz Matsumoto
b7da7cfee0
adopt String#gsub to fixed split behavior
2013-02-18 18:47:58 +09:00
Daniel Bovensiepen
e8c0b61c0d
String#gsub fix with last character
2013-02-17 12:13:46 +00:00
Yuichiro MASUI
0ee2c71b03
Added String#sub/sub! and String#gsub/gsub!
2013-02-12 16:10:35 +09:00
Yukihiro Matz Matsumoto
84a7c9ed1c
"for i in (1..12/5); p i ; end" should not print "3"
2013-02-09 17:53:12 +09:00
Jon
d5b263f7a9
Refine pretty printing
2013-01-22 10:37:54 -05:00
Daniel Bovensiepen
300f0d548b
Beautify the output of rake
2013-01-21 15:58:47 +08:00
Yuichiro MASUI
ced80d2b4b
Improved build scripts and config files
2013-01-20 22:48:42 +09:00
Yukihiro Matz Matsumoto
c9c758d6ed
fixed wrong loop termination introduced by 79d38c4
2013-01-18 15:43:35 +09:00
Yukihiro Matz Matsumoto
5166aa726d
check if array expands in each block
2013-01-16 18:35:25 +09:00
Yukihiro Matz Matsumoto
79d38c4962
check if array shrinks in each block
2013-01-16 18:32:04 +09:00
Yuichiro MASUI
7c469c0b9d
Rebuild CRuby based building script without Makefile
...
Tested CRuby 1.8.6 and 1.9.3
You can see building configuration in build_config.rb
2013-01-03 02:24:15 +09:00
Yukihiro Matz Matsumoto
55870e4b82
small refactoring for Array#each
2012-12-19 20:41:41 +09:00
Ryan Scott Lewis
6a450a6bda
Update Array#each to be slightly faster.
2012-12-19 06:02:15 -05:00
Yoji SHIDARA
aff4865f45
Fix a typo in comment
...
elment ->
element
2012-12-16 11:10:15 +09:00
Yuichiro MASUI
dcdd893bed
Added LDFLAGS to Makefiles
2012-12-09 19:18:40 +09:00
Yukihiro Matz Matsumoto
f1ed143624
mange arena_idx smarter for smaller ARENA_SIZE; now default to 100 from 1024
2012-12-07 16:58:50 +09:00