Commit Graph
908 Commits
Author SHA1 Message Date
vanstee ad67e4935a Return error when tokenizing oversized atom
When "atomizing" an unsafe string, we need to make sure the atom length
is going to be less than the system limit (255). Any function calling
`unsafe_to_atom` checks for an error and returns it if present.
2013-08-10 17:10:47 -04:00
José Valim de72fa2012 Merge pull request #1579 from pminten/add-location-of-overridden-def
Add location of overridden def in warning message
2013-08-10 06:42:38 -07:00
José Valim 55de57ced6 Ensure proper line on interpolations inside heredocs, closes #1581 2013-08-10 15:40:02 +02:00
José Valim 70421e79b1 Fix bug on sorting algorithm on certain branches, closes #1580 2013-08-10 13:28:29 +02:00
Peter Minten a538e86c0c Put overridden def test in warning_test.exs
This removes the need for a separate fixture.
2013-08-10 13:18:34 +02:00
Peter Minten e18ae5e335 Add test for overridden def warning 2013-08-10 11:59:50 +02:00
Guillermo Iguaran ed7965e257 Add Enum.flat_map
Returns a new collection appending the result of invoking `fun`
on each corresponding item of `collection`.
2013-08-10 02:36:16 -05:00
José Valim 730c0992b5 Add Dict.Behaviour to CHANGELOG 2013-08-09 08:42:09 +02:00
José Valim bae0a46bab Merge pull request #1571 from sasa1977/dict_behaviour
added Dict.Behaviour
2013-08-08 23:37:02 -07:00
sasa1977 47316bcae7 modifications according to comments from the pull request 2013-08-08 18:16:08 +02:00
José Valim b83eb85a25 Slight clean up on dict_test.exs 2013-08-08 17:28:01 +02:00
sasa1977 596f62c57e added Dict.Behaviour 2013-08-08 14:58:12 +02:00
José Valim 156905d684 Deprecate Enum.min/2 and Enum.max/2 in favor of Enum.min_by/2 and Enum.max_by/2 2013-08-07 08:26:06 +02:00
Guillermo Iguaran 4906f22479 Add Enum.reduce/2 that sets initial value of acc to the first element of collection
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>

Conflicts:
	lib/elixir/lib/enum.ex
2013-08-07 08:04:06 +02:00
José Valim 35282e1d35 Fix a bug in insert_at adding items to the wrong location with negative indexes 2013-08-07 07:56:03 +02:00
sasa1977 7c8b183513 List.replace_at 2013-08-06 23:34:39 +02:00
meh 09f5a84a13 Add regex pattern support to String.replace 2013-08-06 20:27:02 +02:00
José Valim 93eea5dd6d Reduce the ammount of module binaries being passing around 2013-08-06 17:21:40 +02:00
José Valim a8cee02558 Fix regression on do/end blocks, closes #1551 2013-08-06 15:44:52 +02:00
José Valim bd21251659 Merge pull request #1546 from fishcakez/supervisor-shutdown
Fix default shutdown of child supervisors to infinity
2013-08-04 11:53:06 -07:00
James Fish 5bbaeee149 Fix default shutdown of child supervisors to infinity
A supervisor should wait for a child supervisor to shutdown its
children, and not kill it. By killing a supervisor you may prevent the
correct termination of processes further down the supervision tree.
2013-08-04 19:15:34 +01:00
José Valim 6470a36e68 Ensure watched extensions trigger full recompilation on change 2013-08-04 19:22:15 +02:00
José Valim 69754fa6b5 Raise on &0 inside capture 2013-08-04 19:04:22 +02:00
José Valim 6d62983581 Capture now works with macros, closes #1534 2013-08-03 16:15:29 +02:00
José Valim 34b6e17a1b Fix shadowing warning in case with function, closes #1524 2013-08-02 13:04:03 +02:00
José Valim c6f9287ce7 Only raise on local macro conflicts if it was previously defined 2013-08-02 09:53:30 +02:00
José Valim ec02c65af5 Fix issue with nested binaries in Macro.to_string/1, closes #1522 2013-08-01 20:48:22 +02:00
José Valim 4068160a76 Normalize and allow captures in Regex.scan/3, closes #1526 2013-08-01 19:52:32 +02:00
Eric Meadows-Jonsson d454aaf155 Fix Stream bugs and add more composing tests
Fix Stream.take_while looping infinitely when given lazy stream.
Fix Stream.take and Stream.take_while calling fun one extra time.
Add more tests where Stream functions are given streams.
2013-08-01 01:20:59 +02:00
José Valim a154a9e99a Allow &1.foo syntax inside capture 2013-07-31 16:03:52 +02:00
José Valim 2ed1c373e2 Fix Macro.to_string with & 2013-07-31 15:52:53 +02:00
José Valim 46fae17b7e Allow &() as a general capture mechanism 2013-07-31 14:53:22 +02:00
José Valim 6a68ca5eef Deprecate function/1 and function/3 2013-07-31 12:58:07 +02:00
José Valim b5428adda6 Add &local/arity and &Remote.fun/arity 2013-07-31 12:58:07 +02:00
José Valim e6b075f52f Remove another invalid syntax sample 2013-07-28 23:25:05 +02:00
José Valim a453ea1afa Fix usage of char_list and fix the build 2013-07-28 22:57:46 +02:00
AtKaaZ eee3d3f757 revive a non-functioning test
tested on Windows
2013-07-28 18:13:41 +03:00
José Valim b5e57970fe Remove undocumented Record.new(tuple) feature 2013-07-28 17:19:24 +02:00
José Valim 456b84616c mix run now properly sets System.argv 2013-07-27 10:17:02 +02:00
José Valim 318716afcd Return :ok from FileCase callbacks 2013-07-26 18:37:24 +02:00
José Valim 91d5ee1d8f Clean up Elixir path related tests 2013-07-25 21:49:54 +02:00
José Valim a013b39b8f Do not double escape strings inside interpolation, closes #1494 2013-07-25 14:34:13 +02:00
José Valim 4e4c9f13a0 Properly treat :<<>>, :[] and :{} as atoms 2013-07-25 14:13:12 +02:00
José Valim 3ebd7bbdb7 Allow defmacrocallback to be specified in Behaviour 2013-07-25 13:05:26 +02:00
José Valim d77d013b32 Support --color option in ExUnit
The option can also be passed via mix, closes #1364
2013-07-25 12:31:18 +02:00
José Valim 1db491eb49 Add mix cmd 2013-07-25 11:32:21 +02:00
José Valim 867a3ab4d2 A test case changing compiler options should not be async 2013-07-24 17:32:09 +02:00
José Valim 888155ee08 Do not re-use stacktraces on IEx, closes #1486
This commit also cleans up error normalization throughout Elixir.
2013-07-24 16:43:54 +02:00
José Valim f944694b2e Rename Protocol.UndefinedError keys 2013-07-23 23:37:37 +02:00
José Valim 155398c445 Warn for unmatched docs 2013-07-23 23:37:36 +02:00