Tomoyuki Sahara
f77dc2e6cb
Merge branch 'mruby' into pr-typeerror-string-start-end-with
...
Conflicts:
mrbgems/mruby-string-ext/src/string.c
mrbgems/mruby-string-ext/test/string.rb
2013-08-26 23:20:22 +09:00
Yukihiro "Matz" Matsumoto
91b878e5df
Merge pull request #1485 from fjmilens3/string_end_with
...
Bug in String#end_with? resulting from incorrect length determination
2013-08-26 04:17:20 -07:00
Tomoyuki Sahara
0e8efd4a21
Check type of arguments for #start_with and #end_with.
2013-08-23 15:06:26 +09:00
Frederick John Milens III
2548569f60
Refactor of String#start_with? comparison logic.
2013-08-22 19:29:36 -05:00
Frederick John Milens III
d682be9d32
Refactor of String#end_with? comparison logic.
2013-08-22 19:23:53 -05:00
Frederick John Milens III
a0183b394a
Fix for string-length-related issue in String#end_with? logic.
2013-08-22 18:55:07 -05:00
Frederick John Milens III
d42427870b
Added test case for String#end_with? with string of length 2.
2013-08-22 18:41:23 -05:00
Frederick John Milens III
28211d6771
Fix for string-length-related issue in String#start_with? logic.
2013-08-22 16:44:00 -05:00
Frederick John Milens III
de5f5732fe
Added test case for String#start_with? with string of length 1.
2013-08-22 16:37:42 -05:00
wanabe
c9ac35f3ba
android doesn't have log2
2013-08-19 01:34:07 +09:00
Yukihiro "Matz" Matsumoto
b12d9a8700
remove alloc from Time class
2013-08-15 01:37:03 +09:00
Yukihiro "Matz" Matsumoto
b225e4cc82
redesign mruby/data.h API; use DATA_PTR() for raw data pointer, DATA_GET_PTR() to type safe retrieval (TypeError will be raised), DATA_CHECK_GET_PTR() to get nil if type mismatched
2013-08-15 01:33:36 +09:00
Yukihiro "Matz" Matsumoto
b7d6b4d0ce
define allocation method for Time class; close #1474
2013-08-14 16:50:52 +09:00
Jack Danger Canty
2bf4952284
Adding line numbers to the output of mirb.
...
Before:
> "hi"
hi
> d
(mirb):1: undefined method 'd' for main (NoMethodError)
> d
(mirb):1: undefined method 'd' for main (NoMethodError)
> "hi"
hi
> "#{'}"
line 1: unterminated string meets end of file
After
> "hi"
hi
> d
(mirb):2: undefined method 'd' for main (NoMethodError)
> d
(mirb):3: undefined method 'd' for main (NoMethodError)
> "hi"
hi
> "#{'}"
line 5: unterminated string meets end of file
2013-08-13 09:53:52 -07:00
Cremno
ba027d7806
don't use str{cpy,cat} in mruby and mrbc
...
The length of each string is known. It should be used.
2013-08-07 19:58:06 +02:00
Yukihiro "Matz" Matsumoto
40e6cdcb5c
rename mrb_value_p() to mrb_ptr() since _p means predicate in mruby source
2013-08-07 17:39:28 +09:00
Yuichi Nishiwaki
8dc2fa3bc8
add read barrier to value.p
...
API changes:
- value.p must be accessed via mrb_value_p macro
- value.p must be mutated via MRB_SET_VALUE_P macro
2013-08-03 14:03:44 -07:00
Blaž Hrastnik
ac4a6d35b9
muby-time: use mrb_free directly
2013-08-05 18:55:55 +02:00
Daniel Bovensiepen
aa3ff53f04
Improve test of mruby-objectspace-ext GEM
2013-08-04 22:42:57 +08:00
Daniel Bovensiepen
1d58f29e9b
Improve test of mruby-toplevel-ext GEM
2013-08-04 22:42:39 +08:00
Daniel Bovensiepen
a28c7c081a
Improve test of mruby-symbol-ext GEM
2013-08-04 22:42:27 +08:00
Daniel Bovensiepen
181733bcfe
Improve test of mruby-string-ext GEM
2013-08-04 22:42:15 +08:00
Daniel Bovensiepen
d10763190e
Improve test of mruby-range-ext GEM
2013-08-04 22:42:06 +08:00
Daniel Bovensiepen
8936965945
Improve test of mruby-proc-ext GEM
2013-08-04 22:41:56 +08:00
Daniel Bovensiepen
b99aa126a6
Improve test of mruby-object-ext GEM
2013-08-04 22:41:45 +08:00
Daniel Bovensiepen
9a7efd69ee
Improve test of mruby-numeric-ext GEM
2013-08-04 22:41:26 +08:00
Daniel Bovensiepen
b4e07a8051
Improve test of mruby-hash-ext GEM
2013-08-04 22:41:15 +08:00
Daniel Bovensiepen
f96c023279
Improve test of mruby-enum-ext GEM
2013-08-04 22:41:04 +08:00
Yukihiro "Matz" Matsumoto
e7be58efda
Merge branch 'master' of github.com:mruby/mruby
2013-08-04 22:53:36 +09:00
Yukihiro "Matz" Matsumoto
6dc8c2948b
should protect resume fiber by write barrier; close #1434
2013-08-04 22:53:17 +09:00
Carson McDonald
d2e38eab0a
Set filename like irb
2013-08-03 14:42:22 -04:00
Yukihiro "Matz" Matsumoto
0166403247
add new mrbgem mruby-exit
2013-07-31 11:53:48 +09:00
Jun Hiroe
0804800921
I replace 0 with NULL because struct pointer be should set NULL in.
2013-07-27 13:16:08 +09:00
Yukihiro "Matz" Matsumoto
0591413ebd
Merge pull request #1402 from mattn/check_home_is_null
...
Check home is null
2013-07-23 05:45:33 -07:00
Yukihiro "Matz" Matsumoto
9783e9d81c
resolve conflict
2013-07-23 21:44:32 +09:00
Yukihiro "Matz" Matsumoto
07b75ca922
Merge pull request #1399 from carsonmcdonald/readlinelinkfix
...
If readline is enabled add readline to libraries to link
2013-07-23 05:36:19 -07:00
mattn
c8f1f7fdf6
Check home is null
2013-07-23 12:13:50 +09:00
Tomoyuki Sahara
116f75a8ce
"spec.author" is better for single-author gems.
...
"spec.author=" expects a String represents a single author.
"spec.authors=" expects an Array which is a list of multiple authors.
http://guides.rubygems.org/specification-reference/
2013-07-23 10:09:24 +09:00
Carson McDonald
bd505cc8bb
If readline is enabled add readline to libraries to link
2013-07-22 18:33:45 -04:00
Carson McDonald
8db22d4dfe
Move home variable into readline ifdef
2013-07-22 18:24:17 -04:00
kyab
1fe65b2522
Use env[USERPROFILE] for Windows
2013-07-18 18:15:05 +09:00
kyab
4306fe798f
Save mirb history when readline enabled
2013-07-18 00:14:03 +09:00
Yukihiro "Matz" Matsumoto
958d5b763d
Merge pull request #1388 from carsonmcdonald/toplevelwarnfix
...
Fix warning by making call explicit
2013-07-16 09:49:26 -07:00
Carson McDonald
c2d94e2ed8
Fix warning by making call explicit
2013-07-16 12:43:45 -04:00
Jun Hiroe
8e42868600
Repalace int with mrb_bool because a return value is boolean.
2013-07-15 23:17:12 +09:00
Yukihiro "Matz" Matsumoto
5b0907b470
Merge pull request #1376 from suzukaze/replace-mrb_intern-in-random.c
...
Replace mrb_intern() with mrb_intern2() in random.c
2013-07-14 05:58:55 -07:00
Jun Hiroe
e8b31f286b
Replace mrb_intern() with mrb_intern2() in random.c
2013-07-14 01:09:38 +09:00
Jun Hiroe
3cf1a9beae
Replace mrb_intern() with mrb_intern2() or mrb_intern_cstr().
2013-07-14 00:39:21 +09:00
Yukihiro "Matz" Matsumoto
3d792b9762
Merge branch 'kyab-toplevel_ext'
2013-07-11 15:03:56 +09:00
Yukihiro "Matz" Matsumoto
2e1532b88d
add mruby-toplevel-ext as default
2013-07-11 15:03:19 +09:00