José Valim
ad2cc865f4
Fix boundary in Enum.take/2, closes #3042
2015-02-01 09:16:53 -02:00
José Valim
68570e6dd0
Use which_applications instead of undocumented info
2015-01-31 09:47:19 -02:00
Andrea Leopardi
6a8305e719
Fix some grammar in the docs for Access, and add more docs
...
- Added some missing words (à-la-typo) to the Access docs
- Added more detailed docs for `Access.get_and_update/3`
- Changed an empty start to a 1/2 Unicode char in the example because, well, it
makes more sense :D
2015-01-31 12:26:38 +01:00
José Valim
b6915309bf
Tell user to run mix deps.get on lock mismatch, closes #3038
2015-01-31 11:57:51 +01:00
José Valim
27ad8b588b
Merge pull request #3029 from lexmag/suppress-warnings
...
Suppress warnings
2015-01-31 11:51:38 +01:00
José Valim
cb4a095aeb
Merge pull request #3036 from whatyouhide/__using__-example
...
Add an example of defining a `__using__/1` macro
2015-01-31 11:47:40 +01:00
José Valim
d90a7294ff
Merge pull request #3037 from fishcakez/logger_undef_test
...
Fix race condition in undef logger translator tests
2015-01-31 11:12:13 +01:00
James Fish
3bcdc034f7
Fix race condition in undef logger translator tests
2015-01-30 20:44:53 +00:00
Andrea Leopardi
da50690c6b
Add an example of defining a __using__/1 macro
...
The behaviour was explained pretty clearly in the docs, but for example it was
unclear that `__using__/1` has to be a macro. I added an example so that it's
easier to understand how to use `use/1-2` and `__using__/2`.
2015-01-30 21:16:34 +01:00
Andrea Leopardi
95392f65b5
Fix a minor typo in the docs for Module
2015-01-30 16:13:01 +01:00
José Valim
e116f32345
Merge pull request #3032 from lexmag/no-args
...
No need for `args` in `Mix.CLI.load_mixfile/1`
2015-01-30 11:34:35 +01:00
Aleksei Magusev
681086e31a
No need for args in Mix.CLI.load_mixfile/1
2015-01-30 11:28:43 +01:00
José Valim
5e2ff0f0e7
Ensure rebar is quoted when running escript on windows
2015-01-30 11:10:30 +01:00
José Valim
45b3220aa0
Always rebuild structures on Windows
2015-01-30 10:12:57 +01:00
Aleksei Magusev
f1f2a3e0dc
Make Dict.get_and_update/3 overridable
2015-01-29 23:21:49 +01:00
Aleksei Magusev
3930b73421
Suppress warning in Mix.Tasks.Test
2015-01-29 13:12:27 +01:00
Aleksei Magusev
b2df2aebe9
Fix Keyword.get_and_update/4 funtion name
2015-01-29 13:11:10 +01:00
José Valim
a3e1f0344d
Use :application.info[:loaded] to avoid races
2015-01-29 12:05:16 +01:00
José Valim
bedd89a5ff
Simplify Logger checks
2015-01-29 11:11:55 +01:00
José Valim
81c1be315a
Merge pull request #3026 from whatyouhide/dict-get-and-update
...
Dict.get_and_update/3 and Keyword.get_and_update/3
2015-01-29 11:00:45 +01:00
José Valim
fd374f633d
Merge pull request #3025 from MSch/flush-logger-after-tests
...
Call Logger.flush in System.at_exit when running mix test.
2015-01-29 10:59:41 +01:00
José Valim
bf94a3d62d
Improve docs for functions in File
2015-01-28 22:49:15 +01:00
José Valim
c67e3fbc9d
Ignore exported vars warning
...
Closes #2798
2015-01-28 21:49:55 +01:00
José Valim
d15d65ca06
Avoid export vars in destructure
2015-01-28 21:43:16 +01:00
Andrea Leopardi
bb9a9b16de
Optimize the performance of Map.get_and_update/3 and Keyword.get_and_update/3
...
I just shamelessly copied the implementation of `Access.get_and_update/3` for
`Map` and `Keyword` in order to optimize the performance of this function for
these two modules.
2015-01-28 10:59:44 +01:00
Andrea Leopardi
b4654b7846
Add Keyword.get_and_update/3
...
I added the `get_and_update/3` function to the `Keyword` module. I also added
tests for this function, docs (with doctests) and specs.
2015-01-27 23:11:37 +01:00
Andrea Leopardi
45d81bdc4c
Add Dict.get_and_update/3
...
I added the `Dict.get_and_update/3` function to the `Dict` behaviour (with a
default implementation like most of the functions in the `Dict` module); this
feature was discussed in #2973 .
I also added test for the new function, docs with doctests and specs.
2015-01-27 23:11:09 +01:00
José Valim
3d98684f12
Improve error message with invalid structures in maps
...
Closes #2958
2015-01-27 17:43:22 +01:00
José Valim
e1ddd933c7
Ensure priv/include are copied on Windows even if source did not change
...
Closes #2908
2015-01-27 15:29:15 +01:00
Martin Schürrer
afa8d1522e
Call Logger.flush in System.at_exit when running mix test.
...
Otherwise messages logged by tests might not show up in the console
which makes finding out why tests failed a lot harder.
2015-01-26 23:52:14 +01:00
José Valim
e62bc9e215
Do not choke when Exception.message/1 does not return a string
2015-01-26 19:17:31 +01:00
José Valim
011d0fda4f
Explicitly pass allowed attributes to __info__
2015-01-26 19:17:31 +01:00
Matt Enlow
b93ca36ee3
Change Record#extract to a function
...
- Also adds docs for defining records that were extracted with anonymous functions
2015-01-26 10:47:58 -07:00
jsc
2425d6d97b
Corrected incorrect docstring.
...
The docstring for Mix.Task.get/1 incorrectly referred to the return values of fetch/1.
2015-01-25 21:57:21 +01:00
José Valim
4c402c6362
Avoid escape characters in System.cmd/3 docs
2015-01-25 11:26:03 +01:00
Andrea Leopardi
c678c973f9
Add an example of Enum.find_value/3 to the docs
...
There were only examples of Enum.find_value/2 in the docs for
Enum.find_value/2-3, so I added an example of Enum.find_value/3.
2015-01-24 19:16:08 +01:00
José Valim
ae6f63b3b0
Get rid of ets from Mix.State
2015-01-24 14:26:05 +01:00
José Valim
8475ab813b
Merge pull request #2801 from fishcakez/app_env
...
Move application state out of application env
Conflicts:
lib/elixir/lib/uri.ex
lib/iex/lib/iex/server.ex
2015-01-24 14:07:46 +01:00
José Valim
316865a79e
Do not show aliases and import warnings when code cannot compile
2015-01-24 11:47:34 +01:00
José Valim
442dfd5ac6
Don't ignore escape characters in regex
2015-01-22 11:45:56 +01:00
José Valim
074f4c0bf1
Remove unused umbrella flag
2015-01-21 21:38:56 +01:00
Aleksei Magusev
d9730dba66
Use actual message in the metadata assertion
2015-01-21 02:44:48 +01:00
Aleksei Magusev
7d4fb6f82a
Add test for metadata defaults
2015-01-21 02:44:48 +01:00
Aleksei Magusev
f294d22296
Fix the logging with metadata[:function]
2015-01-21 02:44:48 +01:00
José Valim
6524f871f6
Add examples to System.cmd/3
2015-01-20 11:54:05 +01:00
James Norton
8125fa522f
Add --color option description to mix moduledoc.
2015-01-18 22:18:35 -05:00
José Valim
47c70b641b
Inline common map cases in into
2015-01-17 21:36:48 +01:00
José Valim
7e645cea3f
Do not repeat the module name
2015-01-15 15:19:20 +01:00
José Valim
9ffafb7e25
Merge pull request #2762 from fishcakez/undef_errors
...
Improve UndefinedFunctionError
2015-01-15 15:15:50 +01:00
José Valim
ff866c04e8
Optimize common flat_map_reduce paths
2015-01-15 10:59:24 +01:00