vanstee
d9cb9c99f0
Separate atomization from tokenization
2013-08-10 16:53:03 -04:00
José Valim
978850ec9e
Do not stack rm_rf errors together
2013-08-10 20:06:46 +02:00
José Valim
12d6666b54
Get rid of unused variable warning
2013-08-10 19:28:15 +02:00
José Valim
e83dc3495e
Pass Line and File as arguments to we don't read the table twice
2013-08-10 19:09:38 +02:00
José Valim
de72fa2012
Merge pull request #1579 from pminten/add-location-of-overridden-def
...
Add location of overridden def in warning message
2013-08-10 06:42:38 -07:00
José Valim
55de57ced6
Ensure proper line on interpolations inside heredocs, closes #1581
2013-08-10 15:40:02 +02:00
José Valim
70421e79b1
Fix bug on sorting algorithm on certain branches, closes #1580
2013-08-10 13:28:29 +02:00
Peter Minten
a538e86c0c
Put overridden def test in warning_test.exs
...
This removes the need for a separate fixture.
2013-08-10 13:18:34 +02:00
Peter Minten
95bffca5f0
Use relative filename in redefined def warning
...
The absolute filename can be a bit long, which makes the warning
slightly harder to parse for humans.
2013-08-10 13:08:26 +02:00
Peter Minten
e18ae5e335
Add test for overridden def warning
2013-08-10 11:59:50 +02:00
Peter Minten
00d2ad0649
Add location of overridden def in error message
...
When a def is overridden, for example because there are multiple
clauses with the clauses of a different def are between them, it
is nice to know where the def that was overridden starts.
This should fix #1559 .
2013-08-10 11:59:24 +02:00
Guillermo Iguaran
ed7965e257
Add Enum.flat_map
...
Returns a new collection appending the result of invoking `fun`
on each corresponding item of `collection`.
2013-08-10 02:36:16 -05:00
José Valim
730c0992b5
Add Dict.Behaviour to CHANGELOG
2013-08-09 08:42:09 +02:00
José Valim
8d6d4c37a4
Merge pull request #1574 from jwarwick/dict_typos
...
Fixed doc typos in Dict
2013-08-08 23:37:11 -07:00
José Valim
bae0a46bab
Merge pull request #1571 from sasa1977/dict_behaviour
...
added Dict.Behaviour
2013-08-08 23:37:02 -07:00
John Warwick
80caf331ec
Fixed doc typos in Dict
2013-08-08 17:59:58 -04:00
sasa1977
47316bcae7
modifications according to comments from the pull request
2013-08-08 18:16:08 +02:00
José Valim
b83eb85a25
Slight clean up on dict_test.exs
2013-08-08 17:28:01 +02:00
sasa1977
596f62c57e
added Dict.Behaviour
2013-08-08 14:58:12 +02:00
José Valim
9d9bec0af2
Support --detached and --hidden options
2013-08-08 11:19:35 +02:00
John Warwick
0c7995d119
Fixed doc typos in Enum
2013-08-07 17:24:25 -04:00
John Warwick
7aa28e042e
Fixed doc typos in List
2013-08-07 17:09:37 -04:00
José Valim
c0ad8c5539
Clean up Dict interface
2013-08-07 19:42:55 +02:00
José Valim
03d2260776
Fix warnings and update CHANGELOG
2013-08-07 12:51:31 +02:00
alexrp
8acdb26842
Make System.get_env/0 behave sanely.
2013-08-07 12:44:05 +02:00
José Valim
156905d684
Deprecate Enum.min/2 and Enum.max/2 in favor of Enum.min_by/2 and Enum.max_by/2
2013-08-07 08:26:06 +02:00
José Valim
b212b036f9
Refactor Enum.min/1 and Enum.max/1
2013-08-07 08:14:23 +02:00
Guillermo Iguaran
4906f22479
Add Enum.reduce/2 that sets initial value of acc to the first element of collection
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
Conflicts:
lib/elixir/lib/enum.ex
2013-08-07 08:04:06 +02:00
José Valim
35282e1d35
Fix a bug in insert_at adding items to the wrong location with negative indexes
2013-08-07 07:56:03 +02:00
sasa1977
7c8b183513
List.replace_at
2013-08-06 23:34:39 +02:00
José Valim
d5cfe56c67
Improve Enum.shuffle and String.replace docs
2013-08-06 21:35:04 +02:00
meh
09f5a84a13
Add regex pattern support to String.replace
2013-08-06 20:27:02 +02:00
José Valim
93eea5dd6d
Reduce the ammount of module binaries being passing around
2013-08-06 17:21:40 +02:00
José Valim
d8393f97ca
Remove deprecated code
2013-08-06 17:21:40 +02:00
José Valim
a8cee02558
Fix regression on do/end blocks, closes #1551
2013-08-06 15:44:52 +02:00
José Valim
b948f3b3dd
Make it explicit Regex.run returns all captures in a match
2013-08-06 01:15:01 +08:00
José Valim
aad42261cc
Document dash to underscore in OptionParser
2013-08-04 23:17:35 +02:00
José Valim
bd21251659
Merge pull request #1546 from fishcakez/supervisor-shutdown
...
Fix default shutdown of child supervisors to infinity
2013-08-04 11:53:06 -07:00
James Fish
5bbaeee149
Fix default shutdown of child supervisors to infinity
...
A supervisor should wait for a child supervisor to shutdown its
children, and not kill it. By killing a supervisor you may prevent the
correct termination of processes further down the supervision tree.
2013-08-04 19:15:34 +01:00
José Valim
6470a36e68
Ensure watched extensions trigger full recompilation on change
2013-08-04 19:22:15 +02:00
José Valim
69754fa6b5
Raise on &0 inside capture
2013-08-04 19:04:22 +02:00
José Valim
6d62983581
Capture now works with macros, closes #1534
2013-08-03 16:15:29 +02:00
Eric Meadows-Jonsson
15236c34e3
Fix String.contains? not raising on non-string arg
2013-08-02 13:08:14 +02:00
José Valim
34b6e17a1b
Fix shadowing warning in case with function, closes #1524
2013-08-02 13:04:03 +02:00
José Valim
31818d677e
Stop checking for matches once we reach a fun
2013-08-02 10:35:52 +02:00
José Valim
c6f9287ce7
Only raise on local macro conflicts if it was previously defined
2013-08-02 09:53:30 +02:00
José Valim
09b1216c54
Merge pull request #1529 from jwarwick/macro_typos
...
Fixed doc typos in Macro
2013-08-01 22:56:04 -07:00
Eric Meadows-Jonsson
f7f486c7d1
Fix String.starts_with? and String.ends_with? non-raising edge case
2013-08-01 23:57:02 +02:00
John Warwick
934b47f2d3
Fixed doc typos in Macro
2013-08-01 14:52:53 -04:00
José Valim
ec02c65af5
Fix issue with nested binaries in Macro.to_string/1, closes #1522
2013-08-01 20:48:22 +02:00