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
Asmod4n
e6d9b450ba
Merge remote-tracking branch 'mruby/master'
2015-09-17 13:24:17 +02:00
Yukihiro "Matz" Matsumoto
070e04ea22
Merge pull request #2953 from takahashim/string_aset
...
support String#[pos, len]= val
2015-09-17 09:34:11 +09:00
takahashim
f1c23a0f75
support String#[]= with 3 args
2015-09-16 18:50:03 +09:00
Yukihiro "Matz" Matsumoto
08f9a3ed04
Merge pull request #2952 from takahashim/hash-fetch-block-key
...
fix block variable in Hash#fetch
2015-09-16 03:19:44 +09:00
takahashim
b88ca625ab
fix block variable in Hash#fetch
2015-09-16 02:57:41 +09:00
Yukihiro "Matz" Matsumoto
e91b7d640c
Merge pull request #2951 from tatsuhiro-t/mrb_close_with_nullptr
...
Don't crash if NULL is passed to mrb_close
2015-09-15 08:45:34 +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
Tatsuhiro Tsujikawa
a085c04e37
Don't crash if NULL is passed to mrb_close
...
Sometimes it is very useful just return from mrb_close if NULL is
passed as mrb. This is the same spirit of free(3), which just does
nothing if NULL is passed.
2015-09-12 12:11:10 +09:00
Yukihiro "Matz" Matsumoto
eb9bec19dc
Merge pull request #1822 from mattn/locale
...
Add mrb_utf8_from_locale, mrb_utf8_free, mrb_locale_from_utf8, mrb_locale_free
2015-09-11 11:42:03 +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
Yukihiro "Matz" Matsumoto
3ed8e7fbb2
Merge pull request #2949 from tatsuhiro-t/custom-install-location
...
Customize installation directory using INSTALL_DIR environment variable
2015-09-11 10:48:09 +09:00
Tatsuhiro Tsujikawa
291265ec86
Customize installation directory using INSTALL_DIR environment variable
...
Previously, minirake installed several commands (e.g., mrbc) in
repository locally under bin directory. But there was no knob for
users to change this directory. It effectively made `make distcheck`
fail if mruby was embedded into project managed by autotools.
This change adds a way for the user to change installation directory
by setting INSTALL_DIR environment variable.
2015-09-11 00:15:01 +09:00
Yukihiro "Matz" Matsumoto
698b3c925d
add Hash#rehash to handle key modification; ref #2945
2015-09-10 23:03:53 +09:00
Yukihiro "Matz" Matsumoto
543ac88eae
Merge pull request #2947 from kazuho/kazuho/freeze-hash-key
...
freeze the hash keys (fixes #2945 )
2015-09-10 22:58:01 +09:00
Kazuho Oku
8256d77c7f
avoid unnecessary string duplications by checking the frozen flag
2015-09-10 22:50:01 +09:00
Kazuho Oku
44eb1492be
freeze the hash key ( fixes #2945 )
2015-09-10 22:24:10 +09:00
Yukihiro "Matz" Matsumoto
1cbbb7e11c
Merge branch 'polyfox-module-prepend'
2015-09-05 02:04:20 +09:00
Yukihiro "Matz" Matsumoto
2550edd570
remove origin member to implement prepend from struct RClass; ref #2885
...
instead origin is saved in ICLASS with MRB_FLAG_IS_ORIGIN set.
2015-09-05 02:01:02 +09:00
Yukihiro "Matz" Matsumoto
2f1a031fcd
Merge pull request #2943 from zzak/subdirs
...
Allow rbfiles in mrblib and test to have subdirs
2015-09-05 01:06:12 +09:00
Yukihiro "Matz" Matsumoto
47795d0636
Merge pull request #2942 from suzukaze/revert
...
Revert 7b5f8b0 except removing trailing spaces
2015-09-05 01:05:20 +09:00
Jun Hiroe
6ced9c3752
Revert 7b5f8b0 except removing trailing spaces
2015-09-05 00:08:12 +09:00
Zachary Scott
c6860bc0c4
Allow rbfiles in mrblib and test to have subdirs
2015-09-04 11:01:50 -04:00
Yukihiro "Matz" Matsumoto
fb3883e57e
Merge pull request #2941 from Mav7/master
...
Added range.h.md and edited re.h.md and version.h.md
2015-09-04 17:00:58 +09:00
Yukihiro "Matz" Matsumoto
8bb7962eb8
Merge branch 'module-prepend' of https://github.com/polyfox/mruby into polyfox-module-prepend
2015-09-04 04:01:49 +09:00
Ralph Desir
743432d4ec
Update range.h.md
2015-09-03 14:52:21 -04:00
Ralph Desir
8a09515c6c
Cleaned up the version.h markdown.
2015-09-03 14:20:16 -04:00
Ralph Desir
e1beb502ab
Cleaned up the re.h markdown.
2015-09-03 14:19:02 -04:00
Ralph Desir(Mav7)
93aaa06736
Added range markdown.
2015-09-03 14:16:57 -04:00
Yukihiro "Matz" Matsumoto
7967c76e14
Merge pull request #2940 from zzak/build_mrbtest
...
Add build_mrbtest after config block is evaluated
2015-09-03 14:34:48 +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
402890d571
Merge pull request #2938 from Mav7/master
...
Added version.h.md and re.h.md
2015-09-03 13:01:01 +09:00
Ralph Desir
79aa0866ce
Added reg.h markdown.
2015-09-02 18:57:00 -04:00
Ralph Desir(Mav7)
1bd5c48596
Added regular expression header markdown.
2015-09-02 18:52:16 -04:00
Ralph Desir
6beae5ec71
Created version.h markdown.
2015-09-02 18:45:03 -04:00
Ralph Desir(Mav7)
da0dc6937d
doc/api/mruby/version.h.md
2015-09-02 18:19:53 -04:00
Yukihiro "Matz" Matsumoto
cc0b28373a
clear DUMP_ENDIAN flags before setting
2015-09-03 01:46:35 +09:00
Yukihiro "Matz" Matsumoto
7b5f8b0728
remove trailing spaces from bc9c47d5
2015-09-03 01:39:17 +09:00
Yukihiro "Matz" Matsumoto
c6aa87c837
Merge pull request #2924 from zzak/mruby-test
...
Extract mrbtest to binary gem
2015-09-03 00:43:21 +09:00
Yukihiro "Matz" Matsumoto
e35c3aff83
unsigned long may be smaller than mrb_int; use uint64_t instead; fix #2935
2015-09-03 00:14:37 +09:00
Yukihiro "Matz" Matsumoto
3a462fe468
Integer << and >> to use Float instead of raising RangeError
2015-09-02 23:41:51 +09:00
Zachary Scott
87564dc98f
Make travis happy
...
We have do this because mruby's test files are found using MRUBY_ROOT, like this:
mrbs = Dir.glob("#{MRUBY_ROOT}/test/t/*.rb")
2015-09-02 09:56:27 -04:00
Yukihiro "Matz" Matsumoto
74696ffd96
Float << and >> should be more compatible to Fixnum
2015-09-02 22:29:01 +09:00
Yukihiro "Matz" Matsumoto
6ddd79fd0e
ensure must not be called before rescue; fix #2933
2015-09-02 21:46:51 +09:00
Yukihiro "Matz" Matsumoto
a8c5df2442
Merge pull request #2934 from zzak/master
...
Typo in mruby-bin-debugger/mrbgem.rake
2015-09-02 15:11:17 +09:00
Yukihiro "Matz" Matsumoto
6b32fa676f
Merge pull request #2932 from jbreeden/cpp11_compatibility_fix
...
C++11 Build Error: C++11 requires a space between literal and identifiers
2015-09-02 15:10:51 +09:00
Yukihiro "Matz" Matsumoto
14f0e4a4e4
update string.h.md; ref #2931
2015-09-02 15:09:50 +09:00
Yukihiro "Matz" Matsumoto
7ce5b21c1d
Merge pull request #2931 from Mav7/master
...
Updated string.h.md
2015-09-02 15:08:06 +09:00
Zachary Scott
c0ff5b475f
Typo in mruby-bin-debugger/mrbgem.rake
2015-09-01 23:43:36 -04:00
jbreeden
5ed13da7d6
C++ 11 requires a space between literal and identifiers
2015-09-01 18:12:53 -07:00