José Valim
fbfb41dfee
Release v1.4.0-rc.0
2016-11-28 11:10:31 +01:00
Eksperimental
27fefd8716
Raise when given non-keyword-lists in Keyword.merge/3 ( #5479 )
...
This commit makes sure a valid keyword is given as both arguments.
Additionally, it adds tests to make sure Keyword.merge/2,3 work
exactly the same way if the function passed to merge/3 returns
the value from the second keyword list.
Similar to Similar to https://github.com/elixir-lang/elixir/pull/5466 .
2016-11-25 10:33:40 +01:00
Aleksei Magusev
389d6325e4
Remove unnecessary spaces in KernelTest
2016-11-22 22:10:44 +01:00
Eksperimental
9277413a93
Add underscore in file names, and atoms ( #5478 )
2016-11-22 22:09:52 +01:00
José Valim
1b664dd4f2
Replace :timer.sleep/1 by Process.sleep/1
2016-11-22 20:31:05 +01:00
José Valim
c69fa111c6
Improve error messages for bodyless and skip warning on quoted headers
...
Closes #5435
2016-11-21 11:54:10 +01:00
José Valim
70e00b1530
Also rewrite local calls made in local call arguments, closes #5149
2016-11-20 23:24:40 +01:00
José Valim
621210af5e
Remove unecessary module in quote tests
2016-11-20 23:24:00 +01:00
Andrea Leopardi
b33439fc47
Validate options in Code.compiler_options/1 ( #5472 )
2016-11-20 22:00:12 +01:00
Aleksei Magusev
44d26b493a
Tidy up code around syntax highlighting in IEx
2016-11-20 17:20:38 +01:00
Aleksei Magusev
76545e4c6c
Remove spaces around * in bitstring definitions
2016-11-20 17:20:37 +01:00
Aleksei Magusev
2809c2ca6e
Use literal velues for size modifier in bitstring definitions
2016-11-20 17:20:37 +01:00
Eksperimental
b31a7d3027
Raise when given non-keyword lists in Keyword.merge/2 ( #5466 )
...
Closes #5395 .
2016-11-20 15:33:10 +01:00
José Valim
c907598cb1
Improve error message on default handle_call/handle_cast clauses, closes #5356
2016-11-20 14:46:34 +01:00
José Valim
6b8db410b3
Raise BadBooleanError on and/or, closes #5297
2016-11-20 13:30:50 +01:00
José Valim
ac8bedb921
Refactor KernelTest to use describe/2
2016-11-20 13:29:27 +01:00
José Valim
c1e4274162
Improve compiler message on unexpected end of line, closes #5137
2016-11-20 11:01:30 +01:00
José Valim
1ded100fb5
Warn for unused module attributes
...
Module attributes that are imported from other
contexts are not warned. This keeps the same
semantics regarding variables and function definition
ordering which are not warned when they come from
other contexts.
2016-11-20 00:08:20 +01:00
Gustavo Saiani
f3c4179bf3
Remove duplicated assertion and improve formatting in KernelTest ( #5454 )
2016-11-16 16:57:14 +01:00
Gustavo Saiani
1eee641024
Remove double space from KernelTest ( #5451 )
2016-11-16 00:32:18 +01:00
Andrea Leopardi
a0e695b180
Fix the spec and guards for Inspect.Algebra.surround_many/6 ( #5450 )
...
The old spec said that the "left", "right", and "separator" arguments
had to be binaries but they can instead be documents.
2016-11-15 17:48:34 +01:00
Louis Pilfold
16a7758955
Syntax highlighting of IEx results ( #5355 )
2016-11-15 12:11:13 +01:00
Gustavo Saiani
abbeae134c
Inline do in def sequence for KernelTest
2016-11-14 17:41:02 -02:00
José Valim
72e5eb63d5
Support match lookups in the registry
2016-11-11 18:22:34 +01:00
José Valim
d84e4a788d
Remove liveness guarantees as races exist anyway
2016-11-11 17:10:19 +01:00
Aleksei Magusev
9b5810c8ec
Minor improvements around OptionParser.to_argv/2
2016-11-09 20:43:02 +01:00
Aleksei Magusev
8b75b781d6
Tidy up Kernel.TypespecTest
2016-11-09 20:27:05 +01:00
Waldemar Rachwał
e3d2dacff0
Two fixes in record/1 ( #5412 )
...
* Document use of `record/1` with atom argument.
* In `record/1` used with record argument, raise ArgumentError on record size mismatch.
2016-11-08 15:27:46 +01:00
José Valim
35f492b746
Allow "super" types in Calendar functions
2016-11-08 11:52:03 +01:00
Michał Muskała
aebced19ec
Simplify Kernel.match?/2 ( #5429 )
...
There's no need for a special handling of the underscore as the pattern,
the case expression is able of optimizing such cases too.
Additionally the right was never evaluated with underscore as the
pattern, which could lead to subtle bugs.
Currently match?(_, foo) will emit a pattern warning since both branches
of the case are exactly the same. This means such expressions had to be
removed from the test suite. They were replaced with the equivalent:
fn _ -> true end
2016-11-08 01:07:09 +01:00
Michał Muskała
0aa8f16077
Make tokenizer recognize VC merge conflict marker ( #5416 )
...
The "<<<<<<<" is used by all major VC systems including git,
subversion and mercurial.
2016-11-06 17:55:59 +01:00
Joao Bernardo
ecd3df624c
Implements Date.day_of_week/1 ( #5404 )
2016-11-03 15:32:59 +01:00
Michał Muskała
e24b7c6659
Use Macro.to_string/1 when printing bad struct keys ( #5403 )
2016-11-03 12:25:18 +01:00
Muaaz Saleem
40ff544ba7
Fixing :count support in OptionParser.to_argv ( #5394 )
2016-11-02 11:46:29 +01:00
José Valim
35a793dfe6
Add Registry
2016-11-02 10:11:51 +01:00
José Valim
1a2f278400
Introduce Task.async_stream/3 and Task.async_stream/5 ( #5367 )
2016-10-31 22:23:41 +01:00
Eksperimental
17fa3454b0
Spell "builtin" as "built-in" ( #5376 )
2016-10-29 16:19:24 +02:00
José Valim
5036439e95
Ensure we check for microseconds in Time.compare
2016-10-28 21:15:31 +02:00
Eksperimental
8a7989f894
Improve Typespecs page and test every document type ( #5362 )
2016-10-28 21:11:09 +02:00
Eksperimental
33bb6f3d14
Properly spell UTF-8 ( #5373 )
2016-10-28 21:09:23 +02:00
Eksperimental
4e0cb3e903
Remove spaces around * in bit syntax in Macro.to_string/2 ( #5370 )
...
Per discussion in https://github.com/elixir-lang/elixir/pull/5362#discussion_r85313529 .
2016-10-28 16:10:17 +02:00
Aleksei Magusev
b6251516d0
Improve names of String tests
2016-10-27 18:46:46 +02:00
José Valim
8505463431
Ensure both inner and outer transform streams are closed
2016-10-27 18:30:59 +02:00
José Valim
de3873ff34
Refactor Task tests to use describe/2
2016-10-27 17:01:00 +02:00
Aleksei Magusev
6099c40e7c
Generalize and move myers_difference/2 to List
2016-10-26 16:03:04 +02:00
Aleksei Magusev
619a32a2bd
Favor struct update over Map.put/3 in Calendar tests
2016-10-25 20:50:53 +02:00
Aleksei Magusev
382d11fe12
Improve varible names in NaiveDateTime tests
2016-10-25 20:50:53 +02:00
Aleksei Magusev
6f627300a5
Use sigils in {Date, DateTime, NaiveDateTime}.compare/2 tests
2016-10-25 20:50:53 +02:00
Aleksei Magusev
4cfd562259
Put expected result on right side of assertion in Calendar tests
2016-10-25 20:50:53 +02:00
Otto Lin
989553d7bf
Add Date/Time/NaiveDateTime.compare/2 ( #5349 )
2016-10-24 08:55:44 +02:00