Commit Graph

6593 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 1001be2e99 Merge pull request #2852 from jbreeden/mrb_string_value_cstr_patch
Mrb string value cstr patch
2015-06-23 14:54:13 +09:00
Yukihiro "Matz" Matsumoto 0b720ffa61 Merge pull request #2851 from hone/mruby_compiler
Need mruby-compiler to build mruby-bin-mruby and mruby-bin-mirb for
2015-06-23 14:53:12 +09:00
Yukihiro "Matz" Matsumoto 29a7226d8e Merge pull request #2849 from cremno/proc-curry-should-preserve-lambdas
Proc#curry should preserve lambdas
2015-06-23 14:51:36 +09:00
Yukihiro "Matz" Matsumoto 66a352c836 Merge branch 'cremno-fix-strict-proc-arity' 2015-06-23 14:43:12 +09:00
Yukihiro "Matz" Matsumoto 937b5b5462 fix Proc#curry test failure; ref #2848 2015-06-23 14:42:58 +09:00
Jared Breeden 9ad632559e *Correctly* removing extra mrb_str_to_str call 2015-06-22 20:49:09 -07:00
Jared Breeden cfcca2a727 Reverting overzealous changes 2015-06-22 19:49:12 -07:00
Jared Breeden 264a059aef Removing unneeded bad_checks for verified strings 2015-06-22 19:15:52 -07:00
Jared Breeden 9553e20d34 Removing redundant mrb_str_to_str call 2015-06-22 19:07:25 -07:00
Jared Breeden 338ca305ae Calling mrb_str_to_str in mrb_string_value_cstr. Fixes #2847 2015-06-22 18:37:14 -07:00
Terence Lee 7e087d7191 Need mruby-compiler to build mruby-bin-mruby and mruby-bin-mirb for
cross compiles
2015-06-22 13:01:15 -04:00
cremno 69b4c1648a Proc#curry should preserve lambdas 2015-06-22 16:35:54 +02:00
cremno f0eaf9eaf5 fix arity of lambdas with optional arguments
From the CRuby 2.2.2 Proc#arity documentation:

If the block has optional arguments, returns -n-1, where n is the number
of mandatory arguments, with the exception for blocks that are not
lambdas and have only a finite number of optional arguments; in this
latter case, returns n.
2015-06-22 13:34:24 +02:00
Yukihiro "Matz" Matsumoto e344c6ab6d [ci skip] replace "ignored" by "omitted"; ref #2846 2015-06-22 10:09:04 +09:00
Yukihiro "Matz" Matsumoto c8229dbd19 Merge pull request #2846 from take-cheeze/mgem_mrbgem
Add :mgem gem loading.
2015-06-22 10:04:00 +09:00
take_cheeze 078d24d4d3 Add documentation to new mgem features. 2015-06-22 02:24:15 +09:00
take_cheeze 0c8fa845e4 Load missing dependencies from core or mgem-list. 2015-06-22 02:23:52 +09:00
take_cheeze 8d54977d25 Add :mgem gem loader to load mrbgem from mgem-list ( https://github.com/mruby/mgem-list ). 2015-06-22 02:23:11 +09:00
Yukihiro "Matz" Matsumoto 7cf94bac10 Merge pull request #2842 from davydovanton/doc-fix-old-link
Fix repository link to mruby/mruby
2015-06-20 22:49:21 +09:00
Anton Davydov 111602319b Fix repository link to mruby/mruby [skip ci] 2015-06-20 13:27:36 +03:00
Yukihiro "Matz" Matsumoto 8a5b0433ab Merge pull request #2840 from davydovanton/doc-fix-typos
Fix typos in documentation and error messages
2015-06-19 23:54:20 +09:00
Yukihiro "Matz" Matsumoto a219e8b717 Merge pull request #2839 from yui-knk/fix/string_split_sample
[ci skip] Remove some Srting#split samples
2015-06-19 23:53:49 +09:00
Anton Davydov dcc316d3b8 Fix typos in documentation and error messages [skip ci] 2015-06-19 15:52:23 +03:00
yui-knk d1e6d647bd [ci skip] Remove some Srting#split samples
mruby not support regexp, so remove these samples.
2015-06-19 20:34:32 +09:00
Yukihiro "Matz" Matsumoto 6a796cb4cc Added a check for 64 bit time_t overflow; based on a patch from @kext; close #2836 2015-06-17 09:19:09 +09:00
Yukihiro "Matz" Matsumoto 6dcc3e7383 Merge pull request #2835 from kext/time-rounding-precision
Time rounding precision
2015-06-16 16:36:34 +09:00
Lukas Joeressen 47c61cf502 Changed llrint to llround 2015-06-16 09:24:27 +02:00
Lukas Joeressen 95fa22a65c Rounding errors could make time_alloc imprecise 2015-06-15 15:03:44 +02:00
Yukihiro "Matz" Matsumoto 97a18ff4d9 Merge pull request #2833 from cremno/call-mrb_inspect
refactor code to call mrb_inspect() instead
2015-06-14 21:10:49 +09:00
cremno 5e8d2a4b84 refactor code to call mrb_inspect() instead
mrb_inspect() also calls mrb_obj_as_string() after #inspect to ensure
the mrb_value is a string.
2015-06-13 14:59:57 +02:00
Yukihiro "Matz" Matsumoto d2433a7723 Merge pull request #2830 from hiroshiyui/mirb-termcap-compat
Remove the unused libterminfo detection code.
2015-06-10 16:08:19 +09:00
Huei-Horng Yo 2f4f36b334 Remove unused libterminfo detection code.
The detection code is unused even on OpenBSD 5.7,
because of the standard installation is libtermcap be installed, not libterminfo.

This fixes #2829

Tested on Arch Linux (x86_64) & OpenBSD 5.7 (amd64).

Signed-off-by: Huei-Horng Yo <hiroshi@ghostsinthelab.org>
2015-06-10 12:40:18 +08:00
Yukihiro "Matz" Matsumoto 95cb416852 Merge pull request #2829 from hiroshiyui/mirb-termcap-compat
Detect if ncurses' backend is terminfo or termcap.
2015-06-10 02:51:32 +09:00
Huei-Horng Yo be2c156876 Detect if ncurses' backend is terminfo or termcap. fixes #2662
Borrowed from @mattn's code at:
https://github.com/mruby/mruby/issues/2662#issuecomment-65535705

Signed-off-by: Huei-Horng Yo <hiroshi@ghostsinthelab.org>
2015-06-09 21:07:12 +08:00
Yukihiro "Matz" Matsumoto 5c6de6858e Merge pull request #2828 from iij/pr-string-sub-backslash
gsub/sub supports back references in substitutes.  fixes #2816.
2015-06-08 21:52:52 +09:00
Tomoyuki Sahara 5dd2b8e16f gsub/sub supports back references in substitutes. fixes #2816.
This implementation is compatible with CRuby's String#gsub/sub
except \1 ... \9 and \+.  They are useless without Regexp library.
2015-06-08 17:32:14 +09:00
Yukihiro "Matz" Matsumoto a041162678 Merge pull request #2827 from mruby-debian/fix-upstream
Fix build on MIPS of linux
2015-06-06 19:57:30 +09:00
Yukihiro "Matz" Matsumoto e1b638376f Merge pull request #2826 from Mav7/master
Added some documentation for some of the functions found in array.h.
2015-06-06 19:56:29 +09:00
Nobuhiro Iwamatsu 3bcf570a17 Fix build on MIPS of linux
MIPS of Linux platform is supported frexpl(3).
This fixes to use the frexpl that are provided with gcc if user wants to build
on MIPS of Linux platform.

Signe-doff-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2015-06-06 09:05:53 +09:00
Ralph Desir 0f93d9b7db Update array.h.md 2015-06-05 02:54:11 -04:00
Ralph Desir e1795cb72d Update value.h.md 2015-06-05 02:51:37 -04:00
Ralph Desir a3a18cd7a6 Update array.h.md 2015-06-05 02:43:54 -04:00
Ralph Desir 12b307396a Added more function documentation for arrays. 2015-06-05 02:42:48 -04:00
Ralph Desir 88342b2709 Update array.h.md 2015-06-05 00:17:42 -04:00
Ralph Desir b9716c59c7 Update array.h.md 2015-06-05 00:05:41 -04:00
Ralph Desir 8a14073207 Update array.h.md 2015-06-04 23:54:27 -04:00
Ralph Desir e63962c0a4 Update array.h.md 2015-06-04 23:53:15 -04:00
Mav7 d768dcc42c Adding an array readme markdown. 2015-06-04 23:49:43 -04:00
Mav7 5d63350a3b testing something. 2015-06-04 23:46:32 -04:00
Ralph Desir b735c0d9df Update README.md 2015-06-04 23:37:41 -04:00