Commit Graph

4796 Commits

Author SHA1 Message Date
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 5625104291 Merge pull request #1968 from suzukaze/add-to_enum-unless-block
Add to_enum unless block
2014-03-28 23:16:19 +09:00
Yukihiro "Matz" Matsumoto 2b77fbe1e0 Merge pull request #1967 from ksss/define_singleton_method
Implement Kernel#define_singleton_method
2014-03-28 22:59:41 +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 f0dd4cb673 Implement Kernel#define_singleton_method 2014-03-28 18:16:28 +09:00
Yukihiro "Matz" Matsumoto 03fa45760e Merge pull request #1966 from take-cheeze/backquote
Add test for backquote.
2014-03-28 13:14:17 +09:00
take_cheeze 2239350348 Add test for backquote.
* Implement code generation of NODE_DXSTR.
* Fix NOVAL NODE_XSTR.
2014-03-28 13:02:52 +09:00
Yukihiro "Matz" Matsumoto be58f1c9ab add Numeric#/ tests; ref #1965 2014-03-28 11:05:53 +09:00
Yukihiro "Matz" Matsumoto 514cafe6c3 do not use "to_f" to retrieve floats in mrb_get_args(); close #1965 2014-03-28 11:04:15 +09:00
Yukihiro "Matz" Matsumoto b8e434a5e6 initialize ci->target_class in mrb_toplevel_run; ref #1942 close mattn/mruby-require#20 2014-03-27 23:51:08 +09:00
Yukihiro "Matz" Matsumoto f2c086d7d5 Merge pull request #1963 from ksss/implement-__method__
Implement Kernel#__method__
2014-03-27 22:47:31 +09:00
Yukihiro "Matz" Matsumoto 211710d782 Merge pull request #1964 from ksss/object-tap
Implement Object#tap
2014-03-27 22:46:01 +09:00
ksss d3ea800cba Implement Object#tap 2014-03-27 19:36:07 +09:00
ksss 65ace4e027 Implement Kernel#__method__ 2014-03-27 18:25:47 +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
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