José Valim
beb69232c4
Properly format warning_test.exs
2018-02-01 14:08:19 -02:00
José Valim
4b43c7ae20
Do not change code invocation semantics in guards
2018-02-01 11:38:29 -02:00
José Valim
ca49a53ab2
Consistently preserve the user choice in regards to parens, closes #7286
2018-01-31 13:50:30 -02:00
José Valim
ae66125f2e
Update dynamic_supervisor.ex
...
Closes #7291
2018-01-31 13:36:17 -02:00
José Valim
3025cc759b
Improve docs for dynamic and task supervisors
2018-01-31 13:35:49 -02:00
José Valim
8f18a5f4ff
Use Supervisor.init/2 instead of supervise/2 with the new child specs
2018-01-31 13:35:41 -02:00
Benjamin Tan Wei Hao
1626f9659b
Use the new child specification format in DynamicSupervisor docs
...
Since `Supervisor.Spec.worker/3` is deprecated (#7244 )
2018-01-31 13:35:36 -02:00
Frank Hunleth
9083937177
Add missing & in port zombie script ( #7287 )
...
This is needed to background the processing being run so that control
could move on to the read loop.
2018-01-31 07:26:02 -02:00
Xavier Noria
da90bb741e
Defines the prep_stop/1 optional callback for applications ( #7289 )
2018-01-31 07:25:58 -02:00
Daniel Kempkens
51d56274de
Re-add missing Supervisor behaviour ( #7288 )
...
Closes #7285 .
2018-01-31 07:25:55 -02:00
José Valim
2b588dfb3e
Release v1.6.1
2018-01-29 17:47:48 -02:00
José Valim
bc9b5ea700
Filter missing chunks instead of adding them
2018-01-28 21:58:06 -02:00
José Valim
79ae08f962
Raise on invalid map syntax, closes #7268
2018-01-28 11:24:15 -02:00
José Valim
5d7ee90cba
Implement child_spec/1 for DynamicSupervisor
2018-01-27 20:05:55 -02:00
José Valim
66cf08ea89
Support bitstrings in Collectable
...
Closes #7234
2018-01-21 13:25:25 +01:00
Guilherme Pasqualino
ad62bb970d
Fix example of "Catching values of any kind" ( #7241 )
...
The code snippet in the session "Catching values of any kind" of the documentation of `try` had wrong indentation, because of that the snippet was wrongly formatted.
2018-01-21 13:25:21 +01:00
José Valim
18eef65839
Format stream_test
2018-01-21 01:18:35 +01:00
José Valim
f2b31a6626
Ensure do blocks do not exceed line length on single arguments
...
Closes #7232
2018-01-21 00:53:24 +01:00
José Valim
0eb95c9c75
Improve undefined behaviour warning
2018-01-19 12:01:30 +01:00
José Valim
b898f09870
Support zipping of any collection, closes #7219
2018-01-19 11:22:18 +01:00
José Valim
e89139bcf0
Only rearrange not in if explicitly opted-in
2018-01-19 10:54:19 +01:00
José Valim
ecad849319
Do not inject @opts on OTP behaviours, closes #7230
2018-01-19 09:59:23 +01:00
Kelvin Stinghen
3907a3062f
More docs to Float ( #7214 )
2018-01-18 23:20:20 +01:00
Wojtek Mach
bd9751d669
Mention defguard on Guards page ( #7226 )
2018-01-18 23:20:15 +01:00
Fernando Tapia Rico
e4ebe291f2
Update Tuple doc to express it's a composite type ( #7222 )
2018-01-18 23:02:45 +01:00
James Fish
6b6bcea76c
Reorder kw blocks in Macro.to_string ( #7225 )
2018-01-18 23:01:51 +01:00
José Valim
96260316ca
Add @spec to second clause of start_link/2
...
Closes #7218 .
2018-01-18 10:26:53 +01:00
José Valim
47f2696820
Include examples to migrate to DynamicSupervisor
2018-01-17 21:10:43 +01:00
José Valim
63b8d0ba34
Release v1.6.0
2018-01-17 19:20:24 +01:00
Jean-Philippe Cugnet
12102d8015
Don’t add parens for defrecord/3 and defrecordp/3 ( #7204 )
2018-01-13 19:56:28 +01:00
José Valim
67e575eca7
Release v1.6.0-rc.1
2018-01-11 10:21:31 +01:00
José Valim
f3960a2f34
Use flex_glue for bitstrings and tuples in the formatter ( #7183 )
...
Closes #7152
2018-01-11 10:09:16 +01:00
José Valim
824fcea04a
Introduce a group for collections ( #7185 )
2018-01-11 10:09:14 +01:00
José Valim
301e0f6b63
Remove leftover inspect
2018-01-10 09:41:40 +01:00
José Valim
7c56a02b0a
Allow :macros and :includes to be given to Record.extract, closes #7195
2018-01-10 09:33:56 +01:00
José Valim
3dbefd7704
Fix precedence of & in regards to =, closes #7188
2018-01-09 14:14:04 +01:00
José Valim
fd1d15a8c5
Consider case ignorable characters on Greek downcasing, closes #7149
...
Note this does not impact the runtime cost of other downcasing
operations. The final beam file grew only in 8kb.
2018-01-09 13:59:55 +01:00
Andrea Leopardi
900043c7f2
Fix a typo in a heredoc-related warning
...
[ci skip]
2018-01-09 13:13:13 +01:00
José Valim
d76c35818e
Warn if heredoc is outdented, closes #7174
2018-01-07 17:47:52 +01:00
José Valim
6a581275aa
Do not autogenerate docs for defdelegate
...
This would cause code with multiple clauses where the last
one is a delegate to contain the wrong documentation.
2018-01-06 23:27:00 +01:00
Frank Hunleth
adb1fa1374
Fix inspect for non-decimal negative integers ( #7181 )
...
Before:
iex> inspect(-1, base: :hex)
"0x-1"
After:
iex> inspect(-1, base: :hex)
"-0x1"
This change also applies to the octal and binary base options.
2018-01-05 18:44:50 +01:00
José Valim
d02755530a
Revert "Attempt to soft_purge modules, closes #7047 "
...
Soft purging modules was badfun/badarg errors when
invoking left over anonymous functions.
2018-01-05 17:23:07 +01:00
José Valim
2ab2bffc00
Properly handle :erlang.element in Exception blame
2018-01-05 17:23:04 +01:00
Aaron Tinio
701c0b433d
Fix typo ( #7178 )
2018-01-05 17:23:00 +01:00
José Valim
895adcb001
Rearrange equals and inserts for shorter diff scripts
...
Closes #7169 .
2018-01-05 17:22:57 +01:00
Wojtek Mach
09b0ee3f12
Add @impl true to StringIO & IEx.Pry ( #7167 )
2018-01-01 20:26:19 +01:00
Wojtek Mach
5c6f7b9ce5
Don't mention deprecated {Map,Keyword}.replace/3 in docs ( #7166 )
2018-01-01 20:25:59 +01:00
José Valim
adbbba118d
Do not leak variables during optimizations, closes #7161
2018-01-01 12:04:52 +01:00
Xavier Noria
fab66ad834
s/when/after/ in Application.stop/1 docs [ci skip] ( #7164 )
2018-01-01 12:04:45 +01:00
Donald Little
021a84aafe
Return right side expression value on struct matching ( #7160 )
2017-12-30 18:37:17 +01:00