Yukihiro "Matz" Matsumoto
c2996514d3
should ignore block to next, break, etc. fix #3039
2015-12-01 09:38:42 +09:00
Paolo Bosetti
67e3cdfa76
Implemented round(double) function within mruby-time gem, for it is missing on
...
VisualStudio compilers where _MSC_ver < 1800
2015-11-27 10:54:03 +01:00
Yukihiro "Matz" Matsumoto
9a41db6f3a
Merge pull request #2950 from mattn/mirb-file-args
...
mirb should take filename and arguments.
2015-11-27 17:49:35 +09:00
Yukihiro "Matz" Matsumoto
5c405dea3d
include changed from by quotes ("") to by brackets (<>); close #3032
2015-11-27 17:48:23 +09:00
Yukihiro "Matz" Matsumoto
2e0519de89
Merge pull request #3036 from zzak/remove-mrbtest_irep
...
Remove mrbtest irep
2015-11-26 01:03:55 +09:00
Zachary Scott
1ef2faf1a6
Remove unnecessary dependencies for assert_rb codegen and test_rbireps
2015-11-24 16:33:40 +09:00
Zachary Scott
e7a301828f
Remove mrbtest_irep from mrbtest
...
If we make the core tests a dependency on the mruby-test gem,
we don't need to worry about maintaining the core test irep alone.
2015-11-24 16:32:17 +09:00
takahashim
621487a0cd
add {Array|Hash|String}.try_convert
2015-11-24 08:39:39 +09:00
Simon Génier
058ffcb29c
Fix MRB_DISABLE_STDIO typo.
2015-11-23 11:05:33 -05:00
takahashim
40a9700ef8
support Numeric#zero? and Numeric#nonzero?
2015-11-20 23:39:45 +09:00
Simon Génier
40f237e938
Fix typo on MRB_DISABLE_STDIO.
2015-11-19 17:03:34 -05:00
Yukihiro "Matz" Matsumoto
2aca5ab479
Merge pull request #3027 from pbosetti/master
...
Fix check for VisualStudio Version in mruby-math gem
2015-11-19 22:51:03 +09:00
Yukihiro "Matz" Matsumoto
abc724840e
formatting buffer should be bigger for negative dots; ref #3025
2015-11-19 22:49:50 +09:00
Yukihiro "Matz" Matsumoto
f974880563
binary format no longer need to preserve org_v
2015-11-19 22:49:50 +09:00
Yukihiro "Matz" Matsumoto
996417cabf
integer range check was moved to mrb_flo_to_fixnum(); ref #3025
2015-11-19 22:49:50 +09:00
Yukihiro "Matz" Matsumoto
09abdcb5e8
negative binary format should not be masked by 10bits; ref #3025
2015-11-19 22:49:50 +09:00
Yukihiro "Matz" Matsumoto
1a9b607a4d
binary sprintf should not be restricted by mrb_int size; fix #3025
2015-11-19 22:49:50 +09:00
Paolo Bosetti
470fce5c90
Fix check for VisualStudio Version in mruby-math gem
2015-11-19 12:01:23 +01:00
Yukihiro "Matz" Matsumoto
4440566b95
DISABLE_STDIO/ENABLE_DEBUG macros to rename; close #3014
...
changes:
* rename DISABLE_STDIO -> MRB_DISABLE_STDIO
* rename ENABLE_DEBUG -> MRB_ENABLE_DEBUG_HOOK
* no more opposite macro definitions (e.g. ENABLE_STDIO, DISABLE_DEBUG).
* rewrite above macro references throughout the code.
* update documents
2015-11-17 07:30:34 +09:00
Yukihiro "Matz" Matsumoto
fa86026a99
move Hash comparison methods to mruby-hash-ext gem
2015-11-15 05:15:20 +09:00
Zachary Scott
1e3da80923
Ensure mrbs dependency is maintained for mruby-test
2015-10-24 21:14:54 +09:00
Yukihiro "Matz" Matsumoto
727f2485c9
Merge pull request #2999 from sagmor/better-docs
...
More Docs
2015-10-22 07:10:16 +09:00
Seba Gamboa
25c8e95365
Revert "Mark core gems with mrbgem tag"
...
This reverts commit 5cdcce8dbd .
2015-10-21 14:31:13 -03:00
Yukihiro "Matz" Matsumoto
7278fd1f1b
loop may return StopIteration#result; [ruby-bugs#11498]
2015-10-21 21:47:25 +09:00
Yukihiro "Matz" Matsumoto
f6c58616a2
Merge pull request #2997 from furunkel/gc_cleanup
...
GC cleanup
2015-10-21 21:38:24 +09:00
Yukihiro "Matz" Matsumoto
b41f1180c8
fixed SEGV in mrb_parser_dump(NODE_COLON3)
2015-10-21 21:15:35 +09:00
Seba Gamboa
13b552538a
Remove obvious warnings from docs
2015-10-20 12:48:31 -03:00
Seba Gamboa
45e70e4dd6
Fix enumerator doc errors
2015-10-20 12:16:47 -03:00
Seba Gamboa
5cdcce8dbd
Mark core gems with mrbgem tag
2015-10-20 12:16:47 -03:00
furunkel
3ab2f9371e
Clean up GC code
2015-10-19 22:29:43 +02:00
Yasuhiro Matsumoto
6c0dc1a720
print unicode on windows console
2015-10-08 23:52:58 +09:00
INOUE Yasuyuki
49bfaca6c7
Add regression test for #2933
2015-10-04 18:22:34 +09:00
Yukihiro "Matz" Matsumoto
fafe86d364
Array#index to take block; fix #2968 close #2970
2015-10-01 22:35:06 +09:00
Yukihiro "Matz" Matsumoto
a41b61ea58
Merge pull request #2960 from suzukaze/refactor-hash-ext-test
...
Refator Hash#fetch test
2015-10-01 19:53:32 +09:00
Yukihiro "Matz" Matsumoto
0a94c69cc3
optimize if statement with constant condition
2015-10-01 19:29:05 +09:00
Yukihiro "Matz" Matsumoto
744578687d
Merge pull request #2961 from takahashim/regex_enc
...
support Regexp literal option: //n and //u
2015-10-01 19:26:37 +09:00
Yasuhiro Matsumoto
545d649eff
fix tests on windows.
...
'bin/mruby' not work on windows. so correct command name and quoted arguments.
2015-09-30 16:13:02 +09:00
Yukihiro "Matz" Matsumoto
0aa83c503d
Enumerable#each_{cons,slice} to return enumerators
2015-09-27 00:04:34 +09:00
Jun Hiroe
570c261555
Refator Hash.fetch test
2015-09-26 09:58:36 +09:00
takahashim
f187fdd996
support Regexp literal option: //n and //u
2015-09-26 09:41:38 +09:00
Yukihiro "Matz" Matsumoto
798ec3aff4
UTF-8 string support in core
...
define MRB_UTF8_STRING (in mrbconf.h) to enable UTF-8 support.
2015-09-24 02:37:33 +09:00
Yukihiro "Matz" Matsumoto
101ec5eb0a
don't print anonymous struct class name
2015-09-23 12:51:12 +09:00
Yukihiro "Matz" Matsumoto
20a4e9ade6
mruby-struct gem refactoring
2015-09-23 12:13:01 +09:00
Asmod4n
4bd98671bc
Problem: Hash#fetch doesn't raise KeyError when a key cannot be found
...
Solution: change the Exception class raised to KeyError when a key
cannot be found.
2015-09-17 13:28:09 +02:00
takahashim
b88ca625ab
fix block variable in Hash#fetch
2015-09-16 02:57:41 +09:00
Yukihiro "Matz" Matsumoto
e8f88daa9c
instance_eval should set target_class; close #2936
...
target_class should be singleton class of the receiver
2015-09-14 15:56:54 +09:00
Yasuhiro Matsumoto
e20c2d78d1
mirb should take filename and arguments.
2015-09-12 13:23:22 +09:00
Yasuhiro Matsumoto
8277e950ee
Support windows locale
...
Add mrb_utf8_from_locale, mrb_utf8_free, mrb_locale_from_utf8, mrb_locale_free. Just works for windows.
2015-09-11 11:12:03 +09:00
Zachary Scott
bacb826868
Add build_mrbtest after config block is evaluated
...
This allows us to add `enable_test` anywhere in a build target,
without having to worry about the order in which they are included.
Previously, there was a bug that occured when adding 'mruby-test' gem
to dependencies before additional gems.
Instead of adding the 'mruby-test' gem dependency manually to a test build,
we now only need to call `enable_test` in the target. This also allows us to
call `test_enabled?` downstream when running mruby tests ourselves.
/cc #2924
2015-09-03 01:02:53 -04:00
Yukihiro "Matz" Matsumoto
cc0b28373a
clear DUMP_ENDIAN flags before setting
2015-09-03 01:46:35 +09:00