Commit Graph
7171 Commits
Author SHA1 Message Date
José Valim 2cbd5cee83 Ensure -> does not pass line lengths, closes #7279 2018-02-10 20:37:59 +01:00
José Valim b8bf33beff Bring add_doc/6 back, closes #7335 2018-02-10 11:07:19 +01:00
Michał Muskała a979992b97 Clarify behaviour of failing gaurds (#7334)
[ci skip]
2018-02-09 18:36:51 +01:00
José Valim 7e0acd983a Consistently raise for missing do option in definitions
Closes #7333.
2018-02-09 17:05:59 +01:00
José Valim 408bbbce4a Publicly document child_spec/1 2018-02-08 14:51:33 +01:00
José Valim ae8502d8cd Use tags on windows/unix and allow failures on appveyor (#7320) 2018-02-08 12:44:09 +01:00
José Valim 0bed0d01cb Add DynamicSupervisor.stop and streamline event manager code 2018-02-08 12:15:24 +01:00
Po Chen 197a9f2c10 Fix missing param in DynamicSupervisor doc (#7326) 2018-02-08 10:19:13 +01:00
Nils Jonsson 42b62067da Conform the spec for String.slice/3 to its guard clauses (#7325) 2018-02-07 19:50:00 +01:00
Krzysztof Wende b3331e823b Missing do in documentation for binary matching (#7324) 2018-02-07 18:18:32 +01:00
Aleksei Magusev 2516ecf047 Improve URI.to_string/2 doc 2018-02-06 22:00:06 +01:00
Bram Verburg f0ad7edf41 Fix DynamicSupervisor error report 2018-02-06 16:36:26 +01:00
Aleksei Magusev e9dfa50c74 Format all the examples in the docs (#7318) 2018-02-06 07:27:13 +01:00
Maximilien Mellen f15e1db577 Clarify documentation for URI.to_string/1 (#7314) 2018-02-05 23:22:34 +01:00
Pavel Platto fca649e909 Add is_integer/1 guard for argument "n" in Stream.drop/2 (#7315) 2018-02-05 15:46:02 +01:00
Myron Marston b33f43d287 Cleanup typos in access docs (#7311) 2018-02-05 09:22:37 -02:00
José Valim 73eced6faf Streamline the description of key-value data structures in the Access module 2018-02-04 15:18:02 -02:00
José Valim cf7f2e493c Restart contextual vars on function definitions 2018-02-03 23:21:30 -02:00
Michał Muskała 77c9d4872d Use contextual vars for __CALLER__ (#7309) 2018-02-03 23:10:40 -02:00
Michał Muskała a044559e82 Dog food __STACKTRACE__ (#7308) 2018-02-03 17:20:25 -02:00
Michał Muskała 097de7d308 Introduce __STACKTRACE__ (#7134) 2018-02-03 14:09:47 -02:00
José Valim 84dcbbb4d1 Revert "Do not change argument evaluation semantics in bind_quoted (#7298)"
This reverts commit 7c142fbc86.

This causes a build failure on Erlang 19.
2018-02-03 10:57:40 -02:00
Dave Lucia dc6ee0be2f callbak -> callback (#7305) 2018-02-03 01:45:16 -02:00
Andrea Leopardi 4a4542d369 Refactor a case + if into a cond in Inspect.Function 2018-02-02 12:14:26 +01:00
José Valim 8e4251d7c6 Do now show argument trace for operators 2018-02-01 23:25:36 -02:00
Ross Kaffenberger f835702d86 Update doc for DynamicSupervisor.start_child (#7299)
The previous example made it seem like the arguments to
`def start_child` where being dropped by `spec = MyWorker`.
2018-02-01 22:13:30 -02:00
José Valim 891f590479 Update CHANGELOG 2018-02-01 16:37:07 -02:00
José Valim 7c142fbc86 Do not change argument evaluation semantics in bind_quoted (#7298) 2018-02-01 14:08:47 -02:00
José Valim d8a57371d4 Properly format warning_test.exs 2018-02-01 14:08:10 -02:00
José Valim 83c2791263 Do not change code invocation semantics in guards 2018-02-01 11:38:09 -02:00
José Valim 1d0ac1caac Do not warn for underscored var access from quoted contexts 2018-02-01 11:02:04 -02:00
Gustavo Saiani fe1319e393 Fix two Macro.to_string tests (#7296) 2018-02-01 10:27:17 -02:00
Michał Muskała 72c3540a32 Unify *.to_iso8601 functions for calendar types (#7297)
* Fastlane structs already in the ISO calendar

* crash with FunctionClauseError on bad format.
  This should actually improve the error message in dev and test given
  exception blaming. Previously the "bad format" argument error would be
  also raised when the function was given not a calendar struct (but,
  for example an erlang style tuple) - very confusing!
2018-02-01 10:17:15 -02:00
José Valim b3e7587bf8 Consistently preserve the user choice in regards to parens, closes #7286 2018-01-31 13:50:17 -02:00
José Valim 66bd86501d Update dynamic_supervisor.ex
Closes #7291
2018-01-31 13:34:46 -02:00
Frank Hunleth c42df09f3c 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:25:17 -02:00
Xavier Noria dcbd276526 Defines the prep_stop/1 optional callback for applications (#7289) 2018-01-31 07:24:11 -02:00
Daniel Kempkens 986e08b9bf Re-add missing Supervisor behaviour (#7288)
Closes #7285.
2018-01-31 07:21:52 -02:00
José Valim eb5e809f10 Show arguments in ExUnit reports for non-operator matches
This mirrors the behaviour seen in operators, where both
the left and right side are shown, except it has been
generalized to arguments:

    foo = {1, 2, 3}
    assert is_list(foo)

will show in error reports as:

    1) test name (Module)
       Expected truthy, got false
       code: assert is_list(foo)
       arguments:

           # 1
           {1, 2, 3}

       stacktrace:
           test/example_test.exs

This behaviour is always enabled, except for macros and
special forms, where rewriting the arguments may change the
macro behaviour.

A function Macro.special_form?/2 has also been added to
support this functionality.
2018-01-30 23:14:47 -02:00
Wojtek Mach d58b315d94 Improve struct comparison warning (#7284) 2018-01-30 22:03:06 -02:00
Michał Muskała 4ef61b81c2 Warn about comparison with calendar structs (#7274) 2018-01-30 11:41:43 -02:00
José Valim e0c112370e Remove reporting behaviour in favor of upcoming improved assertions 2018-01-30 08:29:12 -02:00
José Valim 7ff0d4b137 Filter missing chunks instead of adding them 2018-01-28 21:57:51 -02:00
Benjamin Tan Wei Hao b915b8ec23 Fix a minor typo in the documentation (#7275) 2018-01-28 21:53:16 +01:00
José Valim 29a74f8ad4 Improve docs for dynamic and task supervisors 2018-01-28 11:55:58 -02:00
José Valim 4b134c8cf5 Raise on invalid map syntax, closes #7268 2018-01-28 11:04:25 -02:00
José Valim 2a1ca02622 Implement child_spec/1 for DynamicSupervisor 2018-01-27 20:05:49 -02:00
crabonature fcb2ac593c Remove unnecessary code duplication 2018-01-27 19:58:53 -02:00
Diego Stratta 6dcc82738c Fix typo (#7269) 2018-01-27 18:44:13 -02:00
Devon Estes 7e76ece1c8 Add missing typespecs and fix error in docs (#7259) 2018-01-26 13:14:32 -02:00