Commit Graph

6720 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto fd2f2f28de Merge pull request #2922 from gkta/refactor-mrubygem-code
Refactor mrubygem code (range.rb, numeric.rb, string.rb, array.rb, enum.rb)
2015-08-22 21:19:34 +09:00
go.kikuta 85f0dd7da0 enum.rb: refactor code (remove redundant code) 2015-08-21 14:56:49 +09:00
go.kikuta 931a7223e6 array.rb: refactor (use onliner code if possible) 2015-08-21 14:56:49 +09:00
go.kikuta 11524f6f67 string.rb: refactor code (remove redundant code) 2015-08-21 14:54:01 +09:00
go.kikuta cb870de2b5 numeric.rb: refactor code (Avoid using {...} for multi-line blocks, Surrounding space missing in default value assignment) 2015-08-21 14:54:00 +09:00
go.kikuta cf588bd5cb range.rb: refactor code (use ! instead of not, use favor modifier if and unless usage when having a single-line body) 2015-08-21 14:54:00 +09:00
Yukihiro "Matz" Matsumoto 71f2975a5b Merge pull request #2921 from gkta/refactor-array
array.rb: refactor some code
2015-08-20 13:18:05 +09:00
go.kikuta c326f065e1 array.rb: refactor some code 2015-08-19 16:17:06 +09:00
Yukihiro "Matz" Matsumoto 05625cd658 Merge pull request #2920 from cremno/fix-irep-float-dump-format-string-for-mrb_use_float
irep dump: fix format string for MRB_USE_FLOAT
2015-08-18 04:09:07 +09:00
Yukihiro "Matz" Matsumoto 15f2787033 Merge pull request #2919 from cremno/delete-duplicate-definition-of-exception-exception
delete duplicate definition of Exception.exception
2015-08-18 04:08:42 +09:00
cremno eec00ccf60 delete duplicate definition of Exception.exception
It overwrote the original definition in src/error.c, line 446.
2015-08-17 20:51:25 +02:00
cremno ad50a6c410 fix irep float dump format string for MRB_USE_FLOAT
IEC 60559 single format has 6 to 9 significant decimal digits precision.

However the printf conversion specifier e (and E, of course) already
writes 1 digit - the one before the decimal point - and precision
specifies the number of digits to write after the decimal point.
2015-08-17 20:39:24 +02:00
Yukihiro "Matz" Matsumoto a1731254be Merge pull request #2913 from gkta/remove-duplicate-len-check
Remove duplicated RARRAY_LEN check in ary_elt
2015-08-12 12:11:43 +09:00
go.kikuta c7fad5aa33 Remove duplicated RARRAY_LEN check 2015-08-12 10:20:55 +09:00
Yukihiro "Matz" Matsumoto 1fd9dca510 Merge pull request #2912 from gkta/remove-nonneed-tmp-value
Remove non-need tmp value in mrb_obj_to_sym
2015-08-11 19:24:36 +09:00
go.kikuta 96c948d812 Remove non-need tmp value 2015-08-11 18:02:12 +09:00
Yukihiro "Matz" Matsumoto 2574adab48 compiler: allow "class A end" by tweaking the superclass rule like CRuby2.3 2015-08-11 16:27:48 +09:00
Yukihiro "Matz" Matsumoto e4f32ad9ad codegen: don't need to genop(); just update s->iseq directly 2015-08-10 15:19:32 +09:00
Yukihiro "Matz" Matsumoto dfaff83eba codegen: add peep hole optimization to skip overridden OP_MOVE 2015-08-10 15:11:00 +09:00
Yukihiro "Matz" Matsumoto b34ee9a4b4 codegen: reserve stack region for OP_APOST; fix #2824 2015-08-10 14:55:48 +09:00
Yukihiro "Matz" Matsumoto 5af770cd59 prevent out-of-bounds ensure clause access; fix #2910 2015-08-10 11:41:01 +09:00
Yukihiro "Matz" Matsumoto 0c7d29dff6 FIXABLE() may work wrong on MRB_INT64; fix #2909 2015-08-07 15:30:52 +09:00
Yukihiro "Matz" Matsumoto 4fdf492219 add String#setbyte and String#byteslice to mruby-string-ext 2015-08-05 11:28:41 +09:00
Yukihiro "Matz" Matsumoto 6f745e211f Merge pull request #2908 from BanzaiMan/ha-feature-containers
Add build on Trusty and OS X
2015-08-04 11:03:27 +09:00
Hiro Asari bfcc55fbf9 Try building on Xcode 6.4
The default 6.1 was slow
2015-08-03 20:34:45 -04:00
Hiro Asari e3361fbc2a Add OS X build to the matrix 2015-08-03 20:25:35 -04:00
Hiro Asari fca9522af3 Build matrix of size 2 2015-08-03 19:55:44 -04:00
Hiro Asari dd612950b4 Update package list 2015-08-03 19:47:49 -04:00
Hiro Asari 996d0c0345 Set language, and use the new Trusty env 2015-08-03 19:22:46 -04:00
Yukihiro "Matz" Matsumoto 65066f1799 Merge pull request #2907 from hone/path
be able to source with :path for mrbgems
2015-08-03 21:20:57 +09:00
Yukihiro "Matz" Matsumoto 95412aeb50 better hash value from enumerables; fix #2906 2015-08-03 13:24:04 +09:00
Terence Lee 5c055d670a be able to source with :path for mrbgems 2015-08-02 15:03:12 +02:00
Yukihiro "Matz" Matsumoto 52a9712c26 link libncurses when there's /usr/include/curses.h; fix #2905 2015-08-01 16:16:22 +09:00
Yukihiro "Matz" Matsumoto f0040b5371 vm: execute ensure without exception at the top of the fiber; fix #2904 2015-07-30 16:46:31 +09:00
Yukihiro "Matz" Matsumoto 89ebb0c4f1 vm: execute ensure at the top of the fiber; fix #2903 2015-07-30 16:45:31 +09:00
Yukihiro "Matz" Matsumoto 5b11d519d8 Merge pull request #2901 from cremno/fix-ruby-bug-11380
pop cmdarg in lambda body; fix [ruby-bug#11380]
2015-07-30 10:45:36 +09:00
cremno ca49936468 pop cmdarg in lambda body; fix [ruby-bug#11380]
regression introduced by 2fe556d9c0
2015-07-29 20:52:32 +02:00
Yukihiro "Matz" Matsumoto 0da057d99c Merge pull request #2900 from joans321/enhance-mrbgem-build
mrbgem compile should be depend on mrbgem.rake
2015-07-29 11:44:23 +09:00
Yukihiro "Matz" Matsumoto 8f3f731589 Merge pull request #2899 from zzak/shallow-clone-mgem
Shallow clone mgem source
2015-07-29 11:41:32 +09:00
Zachary Scott 923e04cf50 Shallow clone mgem source 2015-07-27 17:16:37 -04:00
Yukihiro "Matz" Matsumoto 1a8843d3de Merge pull request #2898 from joans321/update-mrbgems-doc
update mrbgems doc
2015-07-27 18:17:00 +09:00
xuejianqing 578db292fd mrbgem compile should be depend on mrbgem.rake 2015-07-27 12:22:23 +08:00
xuejianqing 54c853ff4a update mrbgems doc 2015-07-26 21:52:56 +08:00
Yukihiro "Matz" Matsumoto c9168341bf Merge pull request #2897 from joans321/fix-android-gcc-version
fix android compile bug : uninitialized constant GCC_VERSION
2015-07-26 21:08:24 +09:00
xuejianqing 007d26f168 fix android compile bug : uninitialized constant GCC_VERSION 2015-07-25 18:43:27 +08:00
Yukihiro "Matz" Matsumoto 156dd27f88 Merge pull request #2896 from sagmor/custom-gcc-version
Add ability to change compiler versions for androideabi
2015-07-23 14:41:53 +09:00
Seba Gamboa f01704477f Add ability to change compiler versions for androideabi 2015-07-22 21:57:20 -03:00
Yukihiro "Matz" Matsumoto 0f5386db2e Merge pull request #2894 from suzukaze/fix-docs
Fix indents; Indent is two spaces; Delete tabs [skip ci]
2015-07-20 11:15:48 +09:00
Jun Hiroe 18a0900a82 Fix indents; Indent is two spaces; Delete tabs [skip ci] 2015-07-19 23:04:13 +09:00
Yukihiro "Matz" Matsumoto 4ebe94725c Merge pull request #2892 from Mav7/master
Added documentation for hash.
2015-07-18 16:19:27 +09:00