Alexei Sholik
707b965d21
Use singular names for time units, as in Erlang/OTP 19.1. Fix #5236 ( #5244 )
2016-09-22 23:28:13 +03:00
Ivan Kozik
b1e1fababb
Fix precision note in the "Operators" reference page ( #5243 )
2016-09-22 15:42:03 +02:00
Eksperimental
1f604a9171
Fix a typo in the "Operators" page of the docs ( #5242 )
2016-09-22 10:25:20 +02:00
Aleksei Magusev
a815bf7925
Use Unix time wording
2016-09-21 23:57:03 +02:00
Aleksei Magusev
327eef2998
Simplify Calendar.ISO.last_day_of_month/2 definition
2016-09-21 23:41:00 +02:00
Aleksei Magusev
80ad6279cf
Remove unnecessary whitespaces in "colors" test for IO.ANSI
2016-09-21 23:41:00 +02:00
José Valim
131146fe8b
Remove Kernel.rand/0 and Kernel.rand/1
...
Since Enum.random/1 already provides the Kernel.rand/1
functionality.
2016-09-21 23:39:33 +02:00
Frédéric Boyer
43f1721485
Clarify some of the subtleties linked to term ordering in the docs ( #5238 )
2016-09-21 23:07:01 +02:00
Dorian Karter
ddbe7aa8c3
Add documentation: Enum.random accepting ranges ( #5237 )
...
Also mentions that ranges are not traversed and therefore run in
constant time and constant memory.
Based on
https://hashrocket.com/blog/posts/the-adventures-of-generating-random-numbers-in-erlang-and-elixir
2016-09-21 21:46:57 +02:00
James Fish
cac2958bbc
Update dialyzer tests for OTP-19.1/dialyzer-3.0.2
2016-09-21 15:31:46 +01:00
José Valim
3a2e9b124a
Update README.md
2016-09-21 14:33:08 +02:00
Andrea Leopardi
00831ea4e5
Fix a few typos introduced in 2a73cba378
2016-09-21 11:11:16 +02:00
Steven Blowers
2a73cba378
Fixing spelling mistakes of specially -> especially. ( #5235 )
2016-09-21 10:27:34 +02:00
Andrea Leopardi
33ea1b0f54
Polish the example in the docs for Mix.Config.config/3 ( #5233 )
2016-09-20 21:33:33 +02:00
Andrea Leopardi
84caccabe1
Add a section about comparison operators in the "Operators" page ( #5230 )
2016-09-20 13:02:35 +02:00
ToadJamb
fce82df3d7
Add light foreground and background colors to IO.ANSI ( #5231 )
2016-09-20 11:09:24 +02:00
Aleksei Magusev
6a17102b0b
Tidy up Enum.concat/1,2 tests
2016-09-20 00:57:54 +02:00
Andrea Leopardi
8a9c39c3fc
Make the docs for Task.Supervisor slightly more clear
...
This could improve situations like the one happened in #5225 .
2016-09-19 22:42:50 +02:00
Vitalii Elenhaupt
5fcc79aee9
Extended test suite for Enum.concat/2 ( #5229 )
2016-09-19 11:32:28 +02:00
Jose Añasco
cfb6efdee0
Fix typo in Calendar moduledoc ( #5227 )
2016-09-19 08:47:13 +02:00
Eugene Pirogov
ce9efd0bf6
Fix a typo in the CHANGELOG ( #5226 )
2016-09-18 12:18:24 +02:00
José Valim
9a505c8f7b
Update CHANGELOG
2016-09-17 22:40:54 +02:00
shotat
5d5f9f4aee
fix typo ( #5223 )
2016-09-15 19:02:19 +01:00
Justin Schneck
ecda06a238
change mix cmd to use --app instead of --only ( #5220 )
2016-09-15 14:27:14 +02:00
Aleksei Magusev
4bd47dbd96
Return given value value in Module.put_attribute/3 ( #5218 )
2016-09-15 11:12:02 +02:00
José Valim
5e28b7b689
Fix last_day_of_month callback
2016-09-15 10:28:56 +02:00
Aaron Jensen
b473cfeeca
Fix struct built-in type documentation ( #5219 )
2016-09-15 10:19:01 +02:00
José Valim
b3468c7389
Improve Calendar docs
2016-09-15 10:13:26 +02:00
José Valim
1ac0b75755
Add DateTime.from_naive/2
2016-09-15 10:09:31 +02:00
José Valim
a5d5eb9a87
Augment the Calendar APIs with utc date/time and last_day_of_the_month
...
Closes #5216
2016-09-14 23:29:18 +02:00
Josh Branchaud
46322c9f16
Document additional options for String.split/3 ( #5217 )
...
Issue #5213
2016-09-14 21:04:53 +02:00
Aleksei Magusev
a8e2ad324c
Rename varialbe s -> status in Mix.Tasks.Cmd
...
Hard to say for sure, without knowing cmd/1 return, what this `s` represents there.
2016-09-14 16:27:00 +02:00
Aleksei Magusev
5c1eedb700
Properly format :"foo-bar" atoms in diff for keywords and maps
2016-09-14 16:27:00 +02:00
Andrea Leopardi
db2d6d31df
Polish the docs for dependency options in Mix.Tasks.Deps ( #5215 )
2016-09-14 16:26:15 +02:00
Pedro Medeiros
3016cdb69b
Fix some exported from case from erlang source ( #5214 )
...
Some erlang code were emiting a warning message when some
variables were defined inside the case statement.
2016-09-14 13:45:32 +02:00
Justin Schneck
48c5effdad
Allow a list of apps to be passed to mix cmd ( #5211 )
2016-09-14 10:31:24 +02:00
José Valim
00f30e23e9
Keep markdown formatting on IO.ANSI.Docs
...
The previous format would use | before code blocks
and would remove # from headings, we have reverted
those changes to make the printed documentation and
help be closer to what it would look on source while
providing more information (in the case of headings).
2016-09-13 22:05:49 +02:00
Tai An Su
9ed66c9d7c
Fix operators table ( #5207 )
2016-09-11 18:09:22 +02:00
Andrea Leopardi
418668339b
Polish the documentation for a bunch of Mix.* modules ( #5206 )
...
The most important change is listing a few options supported by
project/0 in the documentation for the Mix.Project module.
2016-09-11 14:30:49 +02:00
José Valim
0d17dd5212
Avoid warnings and tidy up assert_receive timedout message
2016-09-11 11:13:25 +02:00
Luke Imhoff
5a001d66a4
Explain race condition in assert_receive to user when it happens ( #5204 )
...
When using assert_receive, it is possible for the following sequence of
events:
1. `after` timeout triggers, indicating messages was not received
2. Process receive messages
3. `Process.info(self(), :messages) is called and gets message
`assert_receive` was waiting for.
Previously, `assert_receive` would not check the output
`Process.info(self, :messages)` for the expected pattern, so it would
print a confusing error message that said "No message matching <pattern>
after <timeout>ms", but then show a matching message in the "Process
mailbox" section. Now, for this special race-condition, a long-form
explanation that the message is being delivered at or near the timeout
is being printed, along with how this could impact production and how to
fix it if it only impacts tests.
2016-09-11 10:58:58 +02:00
José Valim
da18eb3f43
Remove references to elixir-lang-talk
2016-09-11 00:17:23 +02:00
José Valim
46ad7a5f9e
Ensure take/2 does not consume next element on suspend
2016-09-11 00:05:53 +02:00
Andrea Leopardi
196c364c3e
Refactor some error messages in OptionParser ( #5203 )
2016-09-10 18:08:31 +02:00
Andrea Leopardi
93181760f4
Fix the name of the last argument to defmodule/2 and defprotocol/2 ( #5201 )
2016-09-10 12:45:11 +02:00
Andrea Leopardi
b43f76c468
Improve the i/1 IEx helper for module-like atoms ( #5200 )
...
For atoms such as LooksLikeAModule, we don't show the raw
representation (:"Elixir.LooksLikeAModule"). With this commit, we do.
2016-09-10 12:08:12 +02:00
Milton Mazzarri
478022062b
Copy files from source when they're newer than dest ( #5194 )
2016-09-10 01:25:14 +02:00
Jagtesh Chadha
b06bc16f65
Change argument 'val' to 'value' in Map.put/3 ( #5198 )
2016-09-09 23:38:15 +02:00
Jason S
d525022313
Update Logger.metadata/1 documentation ( #5158 )
...
Logger.metadata/1 recently got the ability to remove a key
2016-09-09 16:38:18 +02:00
Zander Mackie
0d9ee358a5
Remove deprecated module compile time information ( #5196 )
2016-09-09 16:37:41 +02:00