José Valim
69ba432b9c
Clean up expand dot implementation
2015-12-07 10:17:42 +01:00
Daniel Perez
f23e0856b1
Fix edge case in Path.expand. Fix #4050 .
2015-12-06 15:29:40 +09:00
Eric Meadows-Jönsson
df15733fc0
Fix invalid UTF-8 in Base.decode error message
2015-12-04 13:07:18 +01:00
Aleksei Magusev
ddf0262a3d
Correct "unrequired macro" assertion
2015-12-04 02:46:33 +01:00
Aleksei Magusev
aa297109bf
Properly handle import with invalid options
2015-12-04 02:45:59 +01:00
José Valim
609e042d61
Merge pull request #4040 from GeorgeTaveras1231/feature/Enum.with_index/2
...
Implement Enum.with_index/2
2015-12-03 16:06:41 +01:00
George Taveras
3491434bea
Implement Stream.with_index/2
...
This removes the previous implementation `Stream.with_index/1` but
maintains backwards compatibility by providing a default
offset of 0
2015-12-03 09:59:12 -05:00
George Taveras
2d582087c6
Implement Enum.with_index/2
...
This removes the previous implementation `Enum.with_index/1` but
maintains backwards compatibility by providing a default offset of 0
Proposal at #4039
2015-12-03 09:40:30 -05:00
Joe Yates
9b9b324241
Raise error for incompatible OptionParser options
...
* supplying :switch together with :strict raises an error.
* closes #4035 .
2015-12-03 00:32:45 +01:00
Andrea Leopardi
f62c76497d
Add System.time_offset/0-1
2015-12-01 18:52:15 +01:00
Andrea Leopardi
2093e823cd
Add monotonic|system_time and unique_integer to System
2015-12-01 14:54:15 +01:00
Aleksei Magusev
40096e0ff1
Eliminate spaces in bitstring definitions
2015-11-28 23:48:48 +01:00
Aleksei Magusev
644c29aca8
Improve Macro.to_string/1 formatting for nested bitstrings
2015-11-28 23:47:35 +01:00
Aleksei Magusev
d9a0a7f319
Make Macro.to_string/1 consistent with Kernel.inspect/1 for bitstrings
2015-11-28 23:45:38 +01:00
José Valim
5e9a8a90cd
Warn on non-variables for defdelegate, closes #3994
2015-11-26 14:40:41 +01:00
José Valim
a48686c303
Check for link label without using regular expressions
2015-11-26 12:00:24 +01:00
Milton Mazzarri
c1b2a9048d
One reference link label per line
2015-11-25 22:12:47 -06:00
José Valim
b6ac08ace0
Use a module name other than Foo to avoid conflicts
2015-11-25 14:25:44 +01:00
José Valim
73351fecfd
Rename get_key to spec
2015-11-25 14:19:55 +01:00
Roman Smirnov
87396c6189
Implementation of get_key and get_all_key from :application in Elixir
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2015-11-25 14:06:43 +01:00
Aleksei Magusev
f8a82f604a
Move doctests from central place to the modules they describe
2015-11-25 00:26:07 +01:00
José Valim
8703e9655e
Unify undefined function messages
2015-11-24 22:07:16 +01:00
José Valim
940d8a5ec8
Expand sigil s to binaries when possible
2015-11-24 12:55:31 +01:00
Andrea Leopardi
a394a85aff
Tests for raising with default args in defdelegate
2015-11-23 23:43:53 +01:00
José Valim
6bf20163b4
Remove outdated set_test.exs
2015-11-23 13:58:06 +01:00
Aleksei Magusev
517b0f1138
Merge pull request #3973 from martinsvalin/dont-escape-underlines-outside-url-in-docs
...
Don't escape underlines outside url in docs.
2015-11-23 00:29:24 +01:00
José Valim
936b243517
Soft deprecate Dict, HashDict, Set and HashSet
2015-11-22 20:15:42 +08:00
José Valim
e61921eebe
Document and remove Map dependency from Dict
2015-11-22 20:08:25 +08:00
José Valim
0c2f3a4e5c
Document and remove Keyword dependency from Dict
2015-11-22 19:18:25 +08:00
José Valim
4fa892208e
Properly change __ENV__.file when @file is set
...
Note that @file may be set from the :file meta as well.
2015-11-21 05:02:38 +08:00
José Valim
7b5f4a5842
Improve error message for invalid do/do:
2015-11-20 17:30:40 +08:00
Martin Svalin
424998828b
Don't escape underlines outside url in docs.
2015-11-18 23:18:29 +01:00
José Valim
ba79d29aa5
Warn on conditional vars
...
Note a field named safe_by_default has been added so we don't
warn on variables defined inside EXPR in "case EXPR, do: ...".
The proper solution would be to convert && and || into special
forms and they would be free of the warning. However,
safe_by_default is a welcome temporary solution until we see
how the warning will fare on actual applications.
2015-11-16 23:56:33 +01:00
Aleksei Magusev
56274111b7
Simplify some assertions
2015-11-16 22:43:21 +01:00
José Valim
3d960c5b65
Tell how to solve access field names in uppercase
2015-11-16 22:25:03 +01:00
Troush
600899d48a
Changed ./bin/elixir -v/--version to be more verbose with Erlang system_version and short revision hash.
...
Also removed tag from System.build_info/0 and added shot revision hash as revision key
2015-11-16 22:22:32 +02:00
Gary Rennie
76178a6293
tests(Kernel.WarningTest): test for pipeline without parentheses
2015-11-16 12:43:44 +00:00
José Valim
d8699068a8
Introduce Task.yield_many/2
2015-11-15 21:33:21 +01:00
José Valim
52253aa234
Add cancel and read timer functions to Process
2015-11-15 20:45:11 +01:00
José Valim
8180dfe904
Return {:exit, reason} in yield/shutdown
2015-11-15 20:45:11 +01:00
Aleksei Magusev
482f33e6ea
Unit test ANSI color/1 and color_background/1
2015-11-15 19:03:43 +01:00
José Valim
1891a3244f
Merge pull request #3957 from rodrigues/master
...
Add ANSI escape sequences for extended colors
2015-11-15 13:50:26 +01:00
José Valim
c803afe90c
Add tests for endianness
2015-11-14 16:30:17 +01:00
Aleksei Magusev
8428ae1a99
Merge pull request #3958 from whatyouhide/empty-stab-take-2
...
Throw an error for -> with an empty right-hand side
2015-11-13 11:42:45 +01:00
José Valim
f68db17d58
Merge pull request #3943 from lexmag/introduce-with
...
Introduce with
2015-11-13 11:20:58 +01:00
Andrea Leopardi
e4db37c1b0
Throw an error for -> with an empty right-hand side
2015-11-13 01:40:53 +01:00
Victor Rodrigues
dc17f37292
Add ANSI escape sequences for extended colors
2015-11-12 11:55:36 +01:00
eksperimental
511a175495
Test Integer: rename tests + test in guards
2015-11-12 10:10:04 +07:00
Aleksei Magusev
fd81b308fe
Add with expansion and translation
2015-11-09 15:28:43 +01:00
vadim suvorov
aebd7e5143
Add new/1 and new/2 to Map and MapSet (mirroring the Keyword variant)
...
See discussion at https://github.com/elixir-lang/elixir/issues/3855
2015-10-27 10:27:15 -07:00