Commit Graph

5090 Commits

Author SHA1 Message Date
Nobuyoshi Nakada ac6747a9c5 fix optional block arguments in rhs
define optional block arguments as argument variables in the rhs
default expressions, as same as mere assignment expressions.

Import ruby/ruby@01740f0c27
2014-04-21 14:55:06 +09:00
Nobuyoshi Nakada 28f6cfe424 adjust indent 2014-04-21 14:53:37 +09:00
Yukihiro "Matz" Matsumoto e7f5cd7d4e Merge pull request #2097 from nobu/optional_arguments_in_rhs
fix optional arguments in rhs
2014-04-21 10:53:10 +09:00
Nobuyoshi Nakada 367118b1b6 fix optional arguments in rhs
define optional arguments as argument variables in the rhs default
expressions, as same as mere assignment expressions.

Import ruby/ruby@01740f0c27
2014-04-21 10:48:00 +09:00
Yukihiro "Matz" Matsumoto 4654db4fdc Merge pull request #2096 from nobu/def_in_cmdarg
Def in cmdarg
2014-04-21 08:56:31 +09:00
Yukihiro "Matz" Matsumoto 5f84692367 Merge pull request #2095 from suzukaze/refactor-dump.c
Use boolean macro in is_valid_c_symbol_name()
2014-04-21 08:53:29 +09:00
Yukihiro "Matz" Matsumoto 73c86f59f6 Merge pull request #2094 from suzukaze/add-array.delete_if
Add Array#delete_if
2014-04-21 08:52:53 +09:00
Nobuyoshi Nakada 9eaddfab44 allow method definition in cmdarg
save cmdarg_stack and isolate command argument state from outer scope
to allow method definition in cmdarg

import from ruby/ruby@04bb9d6b75
2014-04-21 07:00:57 +09:00
Nobuyoshi Nakada a3d6290d7b use stack_type instead of raw unsigned int 2014-04-21 06:53:35 +09:00
Jun Hiroe 81308c0bf4 Use boolean macro in is_valid_c_symbol_name() 2014-04-21 01:49:27 +09:00
Jun Hiroe 931414305a Add Array#delete_if 2014-04-21 01:40:39 +09:00
Yukihiro "Matz" Matsumoto 791631ad4e Merge pull request #2093 from mirichi/bug_fix
do not reuse deleted entry.
2014-04-21 00:45:05 +09:00
Yukihiro "Matz" Matsumoto 8c177032da Merge pull request #2092 from take-cheeze/test_syntax
Suppress test script syntax warning.
2014-04-21 00:43:43 +09:00
Yukihiro "Matz" Matsumoto 3bce663568 Merge pull request #2091 from take-cheeze/struct_len
Implement Struct#size and Struct#length .
2014-04-21 00:43:17 +09:00
mirichi d3efe18143 do not reuse deleted entry. fixed 2014-04-20 23:10:24 +09:00
take_cheeze 0d2c307ef6 Suppress test script syntax warning. 2014-04-20 22:11:08 +09:00
take_cheeze 3675832b0e Implement Struct#size and Struct#length . 2014-04-20 22:02:48 +09:00
Yukihiro "Matz" Matsumoto a694110193 Merge pull request #2089 from ksss/sym-casecmp
Implement Symbol#casecmp
2014-04-20 21:30:46 +09:00
Yukihiro "Matz" Matsumoto a6d8df6761 Merge pull request #2088 from ksss/string-casecmp
String#casecmp should be call `to_str`
2014-04-20 21:30:16 +09:00
Yukihiro "Matz" Matsumoto bd75406a3e Merge pull request #2087 from ksss/sym-comparable
Symbol class include Comparable module.
2014-04-20 21:29:15 +09:00
Yukihiro "Matz" Matsumoto 1abac345cf Merge pull request #2086 from bovi/checksum_hash
Implement :checksum_hash mrbgem option
2014-04-20 21:26:36 +09:00
Yukihiro "Matz" Matsumoto 21ae09c0a0 Merge pull request #2085 from bovi/deep_clean
Add Rake command 'deep_clean' which cleans everything including the mrbg...
2014-04-20 21:25:20 +09:00
Yukihiro "Matz" Matsumoto 86bd3f080f Merge pull request #2090 from ksss/authors
Can I add me to AUTHORS?
2014-04-20 21:24:36 +09:00
Yukihiro "Matz" Matsumoto 45de5bc401 Merge pull request #2084 from suzukaze/fix-typo
Fix typos in tests for mruby-string-utf8
2014-04-20 21:24:06 +09:00
ksss 8cdd2bac6e Add AUTHORS "Yuki Kurihara" 2014-04-20 15:32:44 +09:00
ksss bb52324bd9 Implement Symbol#casecmp 2014-04-20 13:43:59 +09:00
ksss 617fa70211 String#casecmp should be call to_str
when non String object sent
And should be raise TypeError
when can not responsed to `to_str`
2014-04-20 13:25:07 +09:00
ksss 900999b290 Symbol class include Comparable module. 2014-04-20 09:48:33 +09:00
Daniel Bovensiepen 874bec2af5 Implement :checksum_hash mrbgem option.
This allows to use a mgem with a specific checksum hash.
The following modification were necessary to implement this
function:
  - add run_checkout build command to use 'git checkout'
  - skip shallow copy in case checksum_hash is used
  - make 'master' the default branch if branch isn't defined
2014-04-20 05:39:40 +08:00
Daniel Bovensiepen d3195277ff Add Rake command 'deep_clean' which cleans everything including the mrbgems clone directories. 2014-04-20 05:35:47 +08:00
Jun Hiroe cd948b0501 Fix typos in tests for mruby-string-utf8 2014-04-20 02:14:42 +09:00
Yukihiro "Matz" Matsumoto 44cc51fef7 Merge pull request #2083 from take-cheeze/use_bool_macro
Use boolean macro instead of integer literal in `is_debug_info_defined`.
2014-04-20 00:42:42 +09:00
take_cheeze 1ed9394078 Use boolean macro instead of integer literal in is_debug_info_defined. 2014-04-19 23:25:48 +09:00
Yukihiro "Matz" Matsumoto e5368c006a Merge pull request #2081 from nobu/parenthesed_do-block_in_cmdarg
Allow parenthesed do-block in cmdarg
2014-04-19 21:33:29 +09:00
Nobuyoshi Nakada b16697982e Allow parenthesed do-block in cmdarg
Flush cmdarg flags inside left-paren in a command argument, to allow
parenthesed `do-block` as an argument without arguments parentheses.
`CMDARG_PUSH(0)` for tLPAREN_ARG is before `CMDARG_PUSH(1)` in
`command_args` due to look-ahead.
2014-04-19 18:46:07 +09:00
Yukihiro "Matz" Matsumoto 426f80b191 Merge pull request #2080 from crimsonwoods/replace_disordered_callinfo_variables
Sort out the variables which belongs to 'mrb_callinfo'
2014-04-19 14:38:14 +09:00
crimsonwoods 29e90d0287 Sort out the variables which belongs to 'mrb_callinfo' to improve 'cipush' performance. 2014-04-18 22:04:21 -07:00
Yukihiro "Matz" Matsumoto e462475752 Merge pull request #2079 from suzukaze/add-test-of-utf8-string.rindex
Add tests for String#rindex of mruby-string-utf8.
2014-04-19 12:02:52 +09:00
Yukihiro "Matz" Matsumoto edb8cca478 Merge pull request #2077 from take-cheeze/rstruct_macro
Use RARRAY_* macro instead of accessing RArray field.
2014-04-19 12:01:18 +09:00
Jun Hiroe 29bbeb1512 Add tests for utf8-string#rindex 2014-04-19 01:12:58 +09:00
Yukihiro "Matz" Matsumoto 751e74a8fb Merge pull request #2078 from suzukaze/add-block-with-array.uniq_bang
Add block argument with Array#uniq! and Array#uniq
2014-04-19 00:01:08 +09:00
Yukihiro "Matz" Matsumoto 73c0ea5ffa mruby-string-utf8: update UTF-8 tests; ref #2076 2014-04-18 23:46:18 +09:00
Yukihiro "Matz" Matsumoto b2422cf021 mruby-string-utf8: str_subseq takes UTF-8 index, not byte index; ref #2076 2014-04-18 23:45:26 +09:00
take_cheeze bac70ad81d Use RARRAY_* macro instead of accessing RArray field. 2014-04-18 23:19:25 +09:00
Jun Hiroe cb5e6edb7f Add a block argument with Array#uniq 2014-04-18 23:13:10 +09:00
Jun Hiroe 80646a7890 Add a block argument with Array#uniq_bang 2014-04-18 23:13:02 +09:00
mattn 280f9dfc19 Add one more test 2014-04-18 21:05:03 +09:00
mattn 1d5e100e07 Add test for String#ord, String#split for mruby-string-utf8 2014-04-18 21:00:59 +09:00
Yukihiro "Matz" Matsumoto 4918e5ec65 Merge pull request #2075 from mattn/utf8-string-ord
Implement String#ord, String#split for mruby-string-utf8
2014-04-18 11:21:17 +09:00
mattn d72b8c201d Implement String#ord, String#split for mruby-string-utf8 2014-04-18 02:26:17 +09:00