Commit Graph

581 Commits

Author SHA1 Message Date
take_cheeze 96f40c9ec4 Add test for UTF-8 string String#size . 2014-04-15 22:39:52 +09:00
Takeshi Watanabe 6e0c48d758 Fix and add test to Proc#inspect . 2014-04-14 22:01:52 +09:00
cremno 649081661a reduce RSTRING_PTR usage 2014-04-14 00:58:34 +02:00
cremno 06a946abb2 mruby-time: fix check of mktime's return value
>If the calendar time cannot be represented, the function returns the
value (time_t)(-1).
http://www.iso-9899.info/n1256.html#7.23.2.3p3
2014-04-13 16:43:13 +02:00
cremno 8b5cbe2f33 mruby-time: remove unnecessary tzset call
The gem doesn't use the global variables and:
>Local timezone information is used as though localtime() calls tzset().
http://pubs.opengroup.org/onlinepubs/9699919799/functions/localtime.html
2014-04-13 16:39:16 +02:00
Yukihiro "Matz" Matsumoto b046ded67d remove mirb regression test that fails on travis-ci only 2014-04-12 23:10:58 +09:00
Yukihiro "Matz" Matsumoto 17f4835141 Restore arena index since large struct may create many Proc objects; a patch from @take-cheeze; ref #2052 2014-04-12 21:45:01 +09:00
Yukihiro "Matz" Matsumoto 9e3fe6c53d Add test cases to 'large struct' test; a patch from @take-cheeze; ref #2052 2014-04-12 21:42:26 +09:00
Jun Hiroe c471cea4d7 Add Array#uniq_bang test 2014-04-12 15:57:14 +09:00
Jun Hiroe 957a0d0439 Refactor array test to use assert_xxx method 2014-04-12 15:18:07 +09:00
Jun Hiroe 0898f40ccc Add Array#rotate_bang 2014-04-12 01:19:44 +09:00
Yukihiro "Matz" Matsumoto fe55b9dd1c Merge pull request #2045 from suzukaze/add-array.rotate
Array#rotate
2014-04-11 23:45:52 +09:00
Jun Hiroe 7ed47c1223 Array#rotate 2014-04-11 23:42:40 +09:00
Takeshi Watanabe 824d3450c5 Qualify argv argument of API const. 2014-04-11 20:38:23 +09:00
Yukihiro "Matz" Matsumoto 950fe963ac should have passed args to to_enum 2014-04-06 20:31:37 +09:00
Yukihiro "Matz" Matsumoto 8808c9a31a wrap args by parens 2014-04-06 20:29:54 +09:00
Yukihiro "Matz" Matsumoto d016059b07 Merge pull request #2017 from suzukaze/fix_enumerator.inspect
Add args in Enumerator#inspect
2014-04-06 20:27:07 +09:00
take_cheeze c4f14755a7 Always increment total field of os_count_struct in callback.
Check sum of `ObjectSpace.count_objects` values is twice of total objects count.
(Which is CRuby's behavior.)
2014-04-06 18:13:29 +09:00
Jun Hiroe 1368ae647b Add args in Enumerator#inspect 2014-04-06 02:45:04 +09:00
take_cheeze 0d27f18fe7 Fix ObjectSpace.count_objects document. 2014-04-05 14:48:44 +09:00
Yukihiro "Matz" Matsumoto 7a9630a5bb add mruby-enum-lazy mrbgem for Enumerable::Lazy 2014-04-04 10:33:17 +09:00
kyab 97ecf30fb8 add --help option to mruby-config 2014-04-04 01:01:15 +09:00
take_cheeze 6d75f89ee5 Support :T_FIBER in ObjectSpace.count_objects . 2014-04-03 17:18:46 +09:00
Tomoyuki Sahara 23f522c877 test fails when we don't have Enumerator. 2014-04-03 11:47:26 +09:00
ksss 8d15ef2e89 Use bool macro KHASH_DEFINE and KHASH_DECLARE 2014-04-02 13:38:43 +00:00
take_cheeze b38eb72d82 Add macro MRB_ENV_UNSHARE_STACK instead of assigning -1 directly. 2014-04-01 01:35:40 +09:00
take_cheeze 80534b6d14 Use MRB_ENV_STACK_LEN instead of accessing flags directly to get REnv's stack length. 2014-04-01 01:13:39 +09:00
Yukihiro "Matz" Matsumoto 2c3530ff10 Merge pull request #1985 from take-cheeze/cfunc_with_env
Add API to define cfunc Proc with userdata.
2014-03-31 11:45:45 +09:00
take_cheeze bf6b1dfe21 Add API to define cfunc Proc with userdata.
The APIs are defined in mruby-proc-ext so include it before using this API.
See mruby-proc-ext's test code for usage.
This should resolve #1794.
2014-03-31 10:01:17 +09:00
mattn ea68fe2f15 More tests for String#hex, String#oct as against 9434506035 2014-03-31 09:47:21 +09:00
Kazuki Tsujimoto 01a798362f Fix method name 2014-03-30 18:32:19 +09:00
Yukihiro "Matz" Matsumoto ebb29f0450 Merge branch 'master' of github.com:mruby/mruby 2014-03-30 08:29:20 +09:00
Yukihiro "Matz" Matsumoto 2277c374db revert #1974; ref #1979 2014-03-30 08:29:09 +09:00
Yukihiro "Matz" Matsumoto 8cdac8221d Merge pull request #1978 from suzukaze/add-array.fill
Add Array#fill
2014-03-29 20:59:08 +09:00
Jun Hiroe aa4a18e81e Add Array#fill 2014-03-29 20:22:07 +09:00
ksss 5a2014b8f8 Enumerator#initialize support duck-type 2014-03-29 09:24:00 +09:00
Jun Hiroe 110486debe Fix a typo 2014-03-29 00:16:12 +09:00
Yukihiro "Matz" Matsumoto 7d413b7043 Merge branch 'master' of github.com:mruby/mruby 2014-03-28 23:21:42 +09:00
Yukihiro "Matz" Matsumoto e8cb971bbb Merge pull request #1969 from suzukaze/add-array.fetch
Add Array#fetch
2014-03-28 23:21:22 +09:00
Yukihiro "Matz" Matsumoto 97f22c9516 Array#reverse_each should return Enumerator; ref #1968 2014-03-28 23:18:55 +09:00
Jun Hiroe de573e57a0 Add Array#fetch 2014-03-28 20:28:14 +09:00
Jun Hiroe ca1bc5290e Add to_enum unless block 2014-03-28 18:54:25 +09:00
ksss d3ea800cba Implement Object#tap 2014-03-27 19:36:07 +09:00
Yukihiro "Matz" Matsumoto 458c18cd4e Merge pull request #1962 from cubicdaiya/feature/string_oct
add String#oct
2014-03-27 14:36:42 +09:00
Yukihiro "Matz" Matsumoto b5cb8284ba Enumerable#zip to use enumerator if mruby-enumerator gem is available 2014-03-27 14:35:07 +09:00
Yukihiro "Matz" Matsumoto fc51781402 Enumerable#cycle to return enumerator 2014-03-27 14:34:21 +09:00
Yukihiro "Matz" Matsumoto 8250016136 use __svalue instead of ary2sv 2014-03-27 14:28:49 +09:00
Yukihiro "Matz" Matsumoto 69b4842a03 call to_a at the top of Enumerabl#zip; ref #1961 2014-03-27 14:25:33 +09:00
cubicdaiya 9c06f297ee add String#oct 2014-03-27 14:10:08 +09:00
Jun Hiroe c2ad8098a5 Support multiple values in Enumerable#zip 2014-03-27 14:09:29 +09:00