Commit Graph
12482 Commits
Author SHA1 Message Date
José Valim c6b0db6a4a Wait until all log is flushed, closes #8738 2019-01-29 23:02:25 +01:00
José Valim 9de51f88ca Revert "Include optional dependencies in extra_applications (#8263)"
Unfortunately adding optional dependencies doesn't work for umbrella
apps where each app has a different optional dependency. For example,
Ecto 3.0 has both jason and poison as optional deps. Imagine the two
umbrella children below:

    foo
      * ecto
      * jason

    bar
      * ecto
      * poison
      * jason

Because ecto is shared with both, Ecto will include both poison and
jason, which makes`foo` fail to boot when running in isolation.

Closes #7930.
2019-01-29 19:54:11 +01:00
José Valim 04c431c699 Organize iex test for l helper 2019-01-29 18:08:41 +01:00
José Valim e08a2b2642 More fixes on Windows with werl 2019-01-29 15:40:17 +01:00
José Valim 50cab0b962 Add RELEASE_NODE, RELEASE_COOKIE and fixes 2019-01-29 15:30:51 +01:00
Nico 42e686ee03 add missing "`" to Mix.Release docs 2019-01-29 08:24:51 -05:00
Gustavo Saiani 653bf090a1 Fix typos in Kernel.SpecialForms doc (#8731) 2019-01-29 14:03:31 +01:00
José Valim ca7d95f005 Clarify include_erts option 2019-01-29 09:04:16 +01:00
José Valim 3078f1a87b Wait until connected 2019-01-29 08:26:28 +01:00
Tobiasz Małecki a266f78de4 Fix IEx.pry crash when IEx (IEx.Broker) isn't running (#8730) 2019-01-29 08:12:12 +01:00
José Valim 5af83fa1b9 Add docs to Kernel.CLI entry 2019-01-28 22:30:26 +01:00
José Valim dc030376d6 Basic mix release support (#8677)
See #8612.
2019-01-28 21:42:07 +01:00
Eksperimental c9991ecb5c IEx h: sort results by arity (#8727)
The results were not sorted, when calling:
h Module.function_name

Example:

```
iex)> h :erlang.float_to_binary
                           :erlang.float_to_binary/2

  @spec float_to_binary(float, options) :: binary()
        when float: float(),
             options: [option],
             option:
               {:decimals, decimals :: 0..253}
               | {:scientific, decimals :: 0..249}
               | :compact

Module was compiled without docs. Showing only specs.

                           :erlang.float_to_binary/1

  @spec float_to_binary(float) :: binary() when float: float()

Module was compiled without docs. Showing only specs.
```

Now the results are sorted by arity.
2019-01-28 15:22:50 +01:00
Tobiasz Małecki 774ead32fb IEx docs examples improvement (#8725) 2019-01-27 19:34:13 +01:00
Tobiasz Małecki 89ae8631d4 IEx.Helpers docs examples improvement (#8724) 2019-01-27 18:07:43 +01:00
Tobiasz Małecki e883e32f41 Mix.Tasks.Compile.App moduledoc examples improvement (#8722) 2019-01-27 18:02:05 +01:00
Tobiasz Małecki ea9b343219 Add typespec for Registry.unregister_match/4 (#8721) 2019-01-26 17:23:26 +01:00
Tobiasz Małecki bcbdc87e2d Added typespec for Port.info/1 (#8720) 2019-01-26 17:23:01 +01:00
Tobiasz Małecki 17918dd5c5 Added missing specs to new functions in System module (#8718) 2019-01-26 17:22:36 +01:00
Tobiasz Małecki dd1e96ea68 Added missing specs for Node get_cookie/0 and set_cookie/2 (#8719) 2019-01-26 17:22:04 +01:00
Fernando Tapia Rico 25c61e39b4 Use default args in Calendar.ISO.*_to_string/* (#8707) 2019-01-26 09:21:34 +01:00
Tobiasz Małecki 4247f8e2f1 Mix.Compilers.Erlang.compile/6 example improvement (#8712) 2019-01-26 09:14:29 +01:00
Tobiasz Małecki c6a821791d Mix.Shell.Process docs examples formatting (#8715) 2019-01-26 00:17:08 +01:00
Tobiasz Małecki 69ed1d4213 Mix.Task moduledoc eample formatting (#8713) 2019-01-26 00:09:56 +01:00
Tobiasz Małecki 533a2bd091 Mix.Tasks.Test moduledoc example formatting (#8714) 2019-01-26 00:09:34 +01:00
Tobiasz Małecki 678cceb963 Add spec for Mix.Project.consolidation_path/1 (#8710) 2019-01-26 00:05:39 +01:00
Tobiasz Małecki 38e369766d Improve the docs for ExUnit.Case (#8709) 2019-01-25 18:27:47 +01:00
Tobiasz Małecki 3bd3f88d57 ExUnit.Callbacks moduledoc example improvement (#8708) 2019-01-25 14:55:02 +01:00
Fernando Tapia Rico 0c89a94c65 Add missing @doc :since to Calendar.ISO functions (#8703) 2019-01-25 10:20:26 +01:00
José Valim dee400cc0f Do not rely on timezone database for DateTime.now
The FakeTimeZoneDatabase doesn't have all timezone entries,
which means it would be just a matter of time for this test
to start failing.

Closes #8702.
2019-01-25 10:11:30 +01:00
Tobiasz Małecki eca0389878 Add missing doc and spec to Calendar.ISO.time_to_string/5 (#8676) 2019-01-25 08:40:51 +01:00
Devon Estes 2859ec9027 Raise error when attempting to run single line tests on multiple files (#8682)
Right now the behavior when trying to use the shorthand for running a
single test for multiple files is confusing. We're now explicitly
disallowing this by raising an error when this happens.
2019-01-25 08:40:24 +01:00
José Valim 0ccf798fc2 Fix rounding for subnormal floats (#8687)
Closes #8685
2019-01-25 08:39:41 +01:00
José Valim 5b3f27c929 Support SOURCE_DATE_EPOCH for reproducible builds (#8694) 2019-01-25 08:31:37 +01:00
Tobiasz Małecki 54d2b58f3e ExUnit.Assertions docs examples improvement (#8698) 2019-01-25 08:23:16 +01:00
Tobiasz Małecki a4e41d059c ExUnit.DocTest moduledoc examples improvement (#8697) 2019-01-25 08:22:25 +01:00
Tobiasz Małecki 22b8238c50 ExUnit.CaseTemplate moduledoc example improvement (#8696) 2019-01-24 22:40:06 +01:00
Tobiasz Małecki d9f0488fc1 ExUnit.CaptureIO documentation examples improvement (#8695) 2019-01-24 22:39:38 +01:00
Tobiasz Małecki a128b0ac07 ExUnit.CaptureLog moduledoc improvement (#8693) 2019-01-24 22:19:54 +01:00
Joe Yates 346f7240fe Explicity test EEx options in error messages (#8692) 2019-01-24 22:19:34 +01:00
José Valim 3fd6cf5e91 Do not rely on map ordering when sorting specs, see #8689 2019-01-24 21:54:05 +01:00
Joe Yates 051d3b40eb Ensure we're testing the actual assignment metadata (#8691)
The existing test was not actually testing anything, as
the default argument to Keyword.get/3, 0, matched one of the
expected values.
2019-01-24 21:05:02 +01:00
José Valim fee525f65e Do not execute :rand.uniform/1 at the time the docs are defined
Closes #8689
2019-01-24 17:33:04 +01:00
Bernhard M. Wiedemann ae67b56bff Make tests pass in 2020 (#8688)
Using only 2038 to keep 32-bit UNIX systems happy.
2019-01-24 14:50:15 +01:00
José Valim 7a1ae92b42 Improve docs for Access
A lot of confusion in the previous docs was caused by
trying to explain both bracket-based and dot-based
syntaxes in the same place. This made sense at the time
because those syntaxes were not described elsewhere.
But now we can link to other resources and focus the
docs specifically in the Access module.
2019-01-24 12:53:55 +01:00
Wojtek Mach 5820888bc0 Standardize on iodata variable name, as this is what docs use 2019-01-23 23:25:41 +01:00
Wojtek Mach 3c0794b62e Convert private is_iodata macro to a private guard 2019-01-23 23:25:41 +01:00
Tobiasz Małecki 1fc6652ed6 Fix specs for Mix.Project umbrella?/1 and apps_paths/1 (#8683) 2019-01-23 23:15:05 +01:00
José Valim f0e58a2e87 Remove confusing comment about dynamically generated cases 2019-01-23 13:35:57 +01:00
Devon Estes 4da4ccdb8c Add ability to filter by more than one line number (#8673) 2019-01-23 13:34:42 +01:00