Commit Graph
1583 Commits
Author SHA1 Message Date
Eric Meadows-Jönsson cbb7c545e0 Fix size/1 warnings 2014-06-20 14:24:36 +02:00
José Valim 8e824d3da1 Merge pull request #2427 from fishcakez/task_init_call
Set :proc_lib initial call on task
2014-06-19 11:09:39 +02:00
James Fish 7123fb9d09 Set :proc_lib initial call on task
Sets the :proc_lib initial call to the {mod, fun, arity} of the task.

This allows :proc_lib.translate_initial_call(task.pid) to show the mfa
of a task process when debugging. Tools such as :observer and the erlang
shell make use of this function when getting information on a process.

This gives a useful initial call in the crash report sent to the error
logger when a task raises.
2014-06-18 22:58:20 +01:00
Eric Meadows-Jönsson 587c83cbff Delay typespec compilation to after expansion 2014-06-18 19:49:57 +02:00
José Valim 8f272c4cc8 Start epmd, clean up warnings 2014-06-18 10:50:48 +02:00
José Valim 78adb5b200 Ensure handler does not get stuck and properly clean up mailbox 2014-06-17 23:12:02 +02:00
José Valim 311efb66a9 Add GenEvent.stream modes and make it sync by default 2014-06-17 20:20:50 +02:00
José Valim 38aa5c57e5 Add Node.start/3 and Node.stop/0, closes #2406 2014-06-17 16:56:50 +02:00
José Valim f90eeaa024 Fix map printing to indent 2 levels, closes #2165 2014-06-17 13:57:21 +02:00
José Valim 90951be944 Remove deprecated on_exit callbacks 2014-06-17 12:37:08 +02:00
José Valim 65cf31d32d Do not match files starting with . in Path.wildcard/2 by default 2014-06-17 11:33:25 +02:00
Chris Keele d35d03a8ee Ensures Enum.slice always returns a list.
Both Enum.slice/3 and Enum.slice/2 now will return empty lists for
impossible or out of bound ranges, rather than `nil`.

Fixes #2410.
2014-06-16 17:22:01 -05:00
Chris Keele 000a174353 Ensures String.slice returns a string.
Both String.slice/3 and String.slice/2 now will return empty strings for
impossible or out of bound ranges.
2014-06-16 15:45:28 -05:00
José Valim b126e3b089 Merge pull request #2408 from ericmj/base-case
Add options for which case to use in Base functions
2014-06-16 22:04:15 +02:00
Eric Meadows-Jönsson 91faec5f65 Add options for which case to use in Base functions 2014-06-16 21:36:26 +02:00
José Valim ec0e7d8056 Remove get_in/1 2014-06-16 15:49:19 +02:00
Eric Meadows-Jönsson dacb30ad05 Fix path normalization of "/.."
Closes #2404.
2014-06-14 00:51:59 +02:00
José Valim d54d0f6a6b Log when tasks go down 2014-06-13 17:11:47 +02:00
Aleksei Magusev b3cc527126 Introduce URI.decode_www_form/1 function 2014-06-13 16:31:26 +04:00
Aleksei Magusev 6b45855f0e Fix edge cases for URI.decode/1 2014-06-13 16:30:16 +04:00
Aleksei Magusev 40835556da Introduce URI.encode_www_form/1 function 2014-06-13 16:30:16 +04:00
Alexei Sholik e942c07f34 Do not allow underscores in option names. Closes #2391 2014-06-12 19:26:47 +03:00
Aleksei Magusev ffa2abd8c6 Introduce URI.encode/2 function
`URI.encode/1` escapes character if it
is not satisfied `URI.char_unescaped?/1`
2014-06-10 19:56:23 +04:00
Aleksei Magusev 14722ba102 Make URI.encode/1 to conform to RFC 3986 2014-06-10 16:20:44 +04:00
José Valim 65a3434bd4 Do not support Macro.var/1 2014-06-08 12:17:23 +02:00
José Valim 3d982fd1a9 Deprecate var!(:atom), add Macro.var/1 2014-06-08 11:05:39 +02:00
José Valim 04194a189d Support --config on mix run 2014-06-06 17:25:36 +02:00
José Valim 1038018e84 Migrate from size to byte_size and tuple_size 2014-06-06 13:33:02 +02:00
José Valim 2b3e53670e Provide Protocol.derive/3 2014-06-05 22:54:10 +02:00
José Valim f76c8fec7b Support E in scientific notation for floats 2014-06-05 13:18:25 +02:00
José Valim cb5806bbf3 Deprecate teardown and teardown_all 2014-06-03 18:56:47 +02:00
José Valim 0030b282c1 Clean up Path and Task code 2014-06-01 18:52:39 +02:00
Keisuke Takahashi 61e626bdb8 Add tests for Path.expand("/") to be "/" (the issue is already fixed). 2014-06-01 21:37:12 +09:00
Keisuke Takahashi 3c40de4c0c Fix Path.absname("/") to return the absolute path "/", not "". 2014-06-01 21:23:25 +09:00
chyndman fe8f3464b6 Added rm test for read-only files 2014-05-31 08:44:13 -07:00
José Valim fd936bb326 Merge pull request #2350 from ericmj/keyword-error
Raise if giving non-keywords to Keyword
2014-05-30 16:03:43 +02:00
José Valim 3e54d33481 Do not catch failures on tasks
Closes #2345
2014-05-30 16:01:08 +02:00
José Valim 0fe1e686b3 Revert "Set up the monitor only on await for tasks"
This reverts commit 85a04fe919.
2014-05-30 15:59:17 +02:00
José Valim 85a04fe919 Set up the monitor only on await for tasks
Closes #2345
2014-05-28 20:10:43 +02:00
Eric Meadows-Jönsson 3471898364 Raise if giving non-keywords to Keyword 2014-05-28 18:28:57 +02:00
José Valim f3f0ec09b7 Add get_and_update_in/* ops and update CHANGELOG 2014-05-28 13:38:51 +02:00
José Valim e040688bd9 Require get_and_update/3 instead of update/3 in Access 2014-05-28 11:05:58 +02:00
José Valim 6e7baa42ac Test and assert valid paths 2014-05-27 23:12:57 +02:00
José Valim 2d38f20b43 Add get_in/1, put_in/2 and update_in/2 2014-05-27 13:56:18 +02:00
José Valim 4d53d8c710 Add get_in/2, put_in/3 and update_in/3 2014-05-27 10:14:19 +02:00
José Valim a09a0c2a1a Add Access.update/3 2014-05-27 10:14:19 +02:00
José Valim e24cef0126 Add protocol consolidation with mix compile.protocols 2014-05-26 11:45:22 +02:00
José Valim 436f563ad3 Ensure variables do not leak on callbacks 2014-05-25 14:22:23 +02:00
José Valim 34c2da2c65 Initial work on @derive for structs 2014-05-25 01:43:58 +02:00
José Valim 3ab1db6740 Move Protocol consolidation up to the Protocol module 2014-05-24 18:28:48 +02:00