Commit Graph

4781 Commits

Author SHA1 Message Date
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
Jun Hiroe 68695d174c Add Enumerable#zip 2014-03-27 14:09:29 +09:00
Yukihiro "Matz" Matsumoto 70718d5935 an int literal may have multiple underscores inside 2014-03-27 13:33:14 +09:00
Yukihiro "Matz" Matsumoto 9434506035 allow underscores in integer literals; close #1960 2014-03-27 12:33:32 +09:00
Yukihiro "Matz" Matsumoto 5067e7b064 Merge pull request #1959 from mattn/string_hex
Implement String#hex
2014-03-27 12:15:19 +09:00
Yukihiro "Matz" Matsumoto 292abdb609 Merge pull request #1956 from cubicdaiya/issues/suitable_type5
Use size_t instead of int
2014-03-27 11:29:59 +09:00
mattn 0df65751c6 Implement String#hex 2014-03-27 11:28:29 +09:00
Yukihiro "Matz" Matsumoto a4f4db975a Merge pull request #1954 from take-cheeze/objectspace_count_key
Use CRuby compatible key in ObjectSpace.count_objects .
2014-03-27 08:01:42 +09:00
Yukihiro "Matz" Matsumoto ea88ee91a3 Merge pull request #1953 from bovi/conversion-str-int
Adapt TypeError Message for String to (Integer|Float) Conversion
2014-03-27 08:00:00 +09:00
take_cheeze 889a2e0932 Use CRuby compatible key in ObjectSpace.count_objects . 2014-03-27 07:06:44 +09:00
cubicdaiya e157c63c18 use suitable type 2014-03-27 03:18:20 +09:00
Daniel Bovensiepen 7ae495cc9c Adapt for Float and Integer 2014-03-27 01:48:07 +08:00
Daniel Bovensiepen c96339769d Adapt TypeError Message for String to Integer Conversion.
MRI:
"str" * "3"
=> TypeError: no implicit conversion of String into Integer

mruby:
"str" * "3"
=> TypeError: String can't be coerced into int
2014-03-27 01:41:31 +08:00
Yukihiro "Matz" Matsumoto 6e1e728c51 Merge pull request #1952 from kyab/catchup_arduinodue
Catch up to latest Arduino IDE
2014-03-26 22:02:22 +09:00
kyab e87b2d3626 Catch up to latest Arduino IDE 2014-03-26 18:21:25 +09:00
Yukihiro "Matz" Matsumoto 1b422befb1 revert 813ba5 since #1949 fixed 2014-03-26 17:53:22 +09:00
Yukihiro "Matz" Matsumoto 67f1cfaffc Merge branch 'eval_test' of https://github.com/take-cheeze/mruby into take-cheeze-eval_test 2014-03-26 17:50:33 +09:00
Yukihiro "Matz" Matsumoto 28871b9d1f should not over process ensure clauses; close #1949 2014-03-26 17:49:27 +09:00
Yukihiro "Matz" Matsumoto 306b1d3c51 Merge pull request #1948 from monaka/pr-remove-unused-null-check
Remove redundant NULL checks.
2014-03-26 13:32:18 +09:00
take_cheeze 813ba50bfb Don't use ensure to fix crash of mruby-eval test. 2014-03-26 12:59:56 +09:00
take_cheeze f700346b44 Add tests for mruby-eval. 2014-03-26 12:59:17 +09:00
Masaki Muranaka dcff9012e3 Remove redundant NULL checks.
mrb_malloc causes an exception when memory was empty.
2014-03-26 11:21:20 +09:00
Yukihiro "Matz" Matsumoto 79ba1ed137 Merge branch 'master' of github.com:mruby/mruby 2014-03-26 01:09:17 +09:00
Yukihiro "Matz" Matsumoto bfd2a539ed add new function mrb_toplevel_run to prevent running through C function boudaries on exceptions; close #1942 2014-03-26 01:09:09 +09:00
Yukihiro "Matz" Matsumoto 2220fb2a91 Merge pull request #1946 from ksss/str-macro
Fix unnecessary string macro
2014-03-25 23:55:05 +09:00
Yukihiro "Matz" Matsumoto 76098d5e43 Merge pull request #1945 from cubicdaiya/issues/suitable_type3
Use mrb_int instead of int
2014-03-25 23:54:16 +09:00
ksss c82517862a Fix unnecessary string macro 2014-03-25 23:03:47 +09:00
cubicdaiya bf3f45fc70 Use mrb_int instead of int 2014-03-25 22:33:53 +09:00
Yukihiro "Matz" Matsumoto b042b951ce Enumerable#find_index to support multiple values 2014-03-25 19:07:32 +09:00
Yukihiro "Matz" Matsumoto 648059575d Merge pull request #1939 from suzukaze/add-enum.find_index
Enumerable#find_index
2014-03-25 16:27:10 +09:00
Yukihiro "Matz" Matsumoto 86e69334ba Merge pull request #1938 from cubicdaiya/issues/suitable_type2
Use mrb_int instead of int
2014-03-25 16:22:29 +09:00
Jun Hiroe 767ca3f76e Enumerable#find_index 2014-03-25 16:14:19 +09:00
cubicdaiya b7c3a7d181 Use mrb_int instead of int 2014-03-25 15:02:32 +09:00
Yukihiro "Matz" Matsumoto 896dc002ca use to_int to integer duck-type check 2014-03-25 12:29:29 +09:00
Yukihiro "Matz" Matsumoto 1e73181da9 Merge pull request #1937 from cubicdaiya/issues/mrb_int
Use mrb_int instead of int
2014-03-25 11:51:23 +09:00
Yukihiro "Matz" Matsumoto a043eb63ca Merge branch 'master' of github.com:mruby/mruby 2014-03-25 11:50:42 +09:00
Yukihiro "Matz" Matsumoto b4dd3564ef REnv uses obj->c as env link; no super 2014-03-25 11:50:11 +09:00
cubicdaiya 6e648d6382 Use mrb_int instead of int 2014-03-25 11:36:47 +09:00
Yukihiro "Matz" Matsumoto 650651e909 Merge pull request #1936 from ksss/pool-capa
mrb_str_pool add string capa
2014-03-25 11:27:07 +09:00
take_cheeze 8ae3c80fc3 Use mrb_int. 2014-03-25 11:08:54 +09:00
ksss ebf6da7e30 mrb_str_pool add string capa 2014-03-25 08:44:59 +09:00
take_cheeze e5922aa896 Implement ObjectSpace.each_object . 2014-03-25 08:32:50 +09:00
Yukihiro "Matz" Matsumoto 13f0f597c8 Merge pull request #1934 from ksss/safe-name
src/string.c RESIZE_CAPA use safe name variables
2014-03-25 00:01:57 +09:00
Yukihiro "Matz" Matsumoto d7d54b6e69 Fix Enumerable#cycle; ref #1933
* add multi value support
* `each` method may not rewind the sequence so that `cycle` should save elements
2014-03-24 23:58:21 +09:00