Commit Graph
1429 Commits
Author SHA1 Message Date
José Valim 8797280b9e Define an Application module 2014-05-04 12:43:49 +02:00
Matheus Lima 07d7d538dc Adds "Elixir" to check module availability naming list 2014-05-04 11:27:25 +02:00
José Valim 939af3b459 Merge pull request #2233 from bitwalker/string-split-changes
Make String.split behave more like Regex.split
2014-05-04 11:09:14 +02:00
Paul Schoenfelder da784ebc1a Update use of deprecated :global option to use :parts 2014-05-03 23:47:37 -05:00
Paul Schoenfelder b670450b4c Use parts: :infinity instead of parts: 0 to split globally. 2014-05-03 23:38:08 -05:00
Paul Schoenfelder e04bab1d5e Deprecate :global in Regex.split/3 2014-05-03 23:36:12 -05:00
José Valim c86ecfdf7e Add Kernel.spawn_monitor and deprecate duplicated functions from Process 2014-05-03 21:57:55 +02:00
José Valim a90580b0d1 Fix how Elixir.Elixir is inspected 2014-05-03 21:52:58 +02:00
Paul Schoenfelder bf81156dbc Make String.split behave more like Regex.split 2014-05-02 20:52:19 -05:00
José Valim a67fe46ca5 Do not recompile the whole project when an .eex file changes
Right now, we simply trust the user that any external
dependency will be listed as a @file and use those
to track any external dependency.
2014-05-02 14:01:06 +02:00
José Valim c74a7781a8 Fix formatting and move Version.Schema to Version 2014-05-01 19:14:04 +02:00
Martin Schürrer 0966aea8a5 Convert Version.Schema and Version.Requirement into structs. 2014-05-01 18:47:14 +02:00
Martin Schürrer 39e5581105 Convert Stream.Lazy into a struct. 2014-05-01 18:40:16 +02:00
José Valim 3c6e63a962 Ensure filters can compare aliases and regexes 2014-05-01 11:43:13 +02:00
José Valim c435dbe38d Convert #elixir_env to a struct too 2014-04-30 16:32:13 +02:00
José Valim e5c13e6dd2 Convert Macro.Env to a struct 2014-04-30 15:07:50 +02:00
José Valim d53a6a3491 Ensure string switches are not treated as booleans, closes #2218 2014-04-30 12:48:39 +02:00
José Valim 37d05da0ac Add a test to ensure Code.eval_quoted keeps stacktrace 2014-04-30 11:52:57 +02:00
José Valim 9caab33613 Move URI and Inspect.Algebra out of Elixir records 2014-04-29 19:40:27 +02:00
José Valim dc768eb501 Convert File.Stat to a struct 2014-04-29 17:59:36 +02:00
José Valim 0814d0b442 Properly format binary tokens on errors, closes #2144 2014-04-29 15:05:24 +02:00
Eric Meadows-Jönsson c57978ba30 Improve default args with multiple clauses error message 2014-04-29 14:04:46 +02:00
José Valim caaef2fb8f Fix set related warnings 2014-04-28 22:46:00 +02:00
José Valim 5e7b57669e Ensure ranges are supported on right hand side of in 2014-04-28 18:12:47 +02:00
José Valim 39d1ab741a Convert Range to struct 2014-04-28 11:41:01 +02:00
José Valim c91723b444 Remove deprecated code, enable previous soft deprecations 2014-04-27 13:39:32 +02:00
Lucas Weiblen e8d7b267b5 Fix typo on MacroTest 2014-04-27 00:44:07 -03:00
José Valim 31c34dc04e Ensure we only allow horizontal space in heredocs 2014-04-24 20:57:06 +02:00
José Valim ad8587a853 Revert "Fix cli tests to avoid unix warnings"
Reverting in favor of the warning being fixed locally.

This reverts commit 0ddcba788d.
2014-04-24 18:49:11 +02:00
José Valim 0ddcba788d Fix cli tests to avoid unix warnings
When running on unix, we may emit warnings if the filesystem
is not configured to latin1, so we relax the tests assertion
to account for the warnings.
2014-04-24 18:15:41 +02:00
José Valim 45427c3b33 Fix Elixir tests on Windows, closes #2190 2014-04-24 10:45:25 +02:00
Eric Meadows-Jönsson 89a6ad3a46 Merge pull request #2185 from alco/string-split_at
Add String.split_at
2014-04-22 14:11:35 +02:00
Alexei Sholik f35dd567a1 Add String.split_at
While it is straightforward to split a string given
an offset in bytes from its beginning like this

    <<left::[binary, size(offset)], right::binary>> = string

splitting at grapheme boundary or using negative offset
is not so simple. Hence this function.
2014-04-22 15:02:40 +03:00
José Valim 56f15d9f4e Do not add spaces after { and before }
This makes the source code consistent with the result
returned by inspect/2.
2014-04-21 19:06:35 +02:00
José Valim 7ccdb2ab29 Deprecate ListDict and access for lists with non-atom keys 2014-04-21 18:53:35 +02:00
José Valim ec776c7d68 Regexes are no longer unicode by default
By making them unicode, it was impossible match on binary streams,
as unicode expects valid unicode strings.
2014-04-21 13:01:15 +02:00
José Valim 915b8d60d1 Macro.unpipe/1 now returns the pipe position 2014-04-21 11:38:08 +02:00
José Valim 76bee630a2 Clean up doc tests 2014-04-21 11:26:51 +02:00
José Valim 7178b80ad1 Tidy up some final changes regarding regexes and deprecations 2014-04-21 10:33:18 +02:00
Yuki Ito 7b719fdf61 Regex.named_captures/2,3 returns a map of binaries <-> values instead
of a keyword

Signed-off-by: José Valim <jose.valim@plataformatec.com.br>

Conflicts:
	lib/elixir/lib/regex.ex
2014-04-21 10:33:18 +02:00
José Valim e8f976a007 :named -> :all_names 2014-04-21 10:33:18 +02:00
Yuki Ito 0a2f184e0e Deprecate "groups" in Regex
* `Regex.groups` -> `Regex.names`
* :groups -> :named on `Regex.scan`
* :groups -> :named on `Regex.run`

Signed-off-by: José Valim <jose.valim@plataformatec.com.br>

Conflicts:
	lib/elixir/lib/regex.ex
2014-04-21 10:33:18 +02:00
José Valim 6624f31472 Merge branch 'jv-char-data'
Conflicts:
	lib/eex/lib/eex/tokenizer.ex
	lib/elixir/lib/file.ex
	lib/elixir/lib/kernel.ex
	lib/elixir/lib/record/extractor.ex
	lib/elixir/lib/string.ex
	lib/ex_unit/lib/ex_unit/doc_test.ex
	lib/mix/lib/mix/archive.ex
	lib/mix/lib/mix/dep/fetcher.ex
	lib/mix/lib/mix/dep/umbrella.ex
2014-04-21 08:38:48 +02:00
José Valim c012456573 Reject __struct__ field on struct/2 2014-04-19 08:48:31 +02:00
Igor Kapkov 97e70e6de1 change some doc examples to iex style 2014-04-12 08:41:22 +02:00
Dima Aleksandrov 5761460bd6 use map_size guard, add test 2014-04-11 18:50:45 +02:00
José Valim 166685caad Automatically define types for structs 2014-04-11 10:00:29 +02:00
José Valim f60bdb8d5f Support maps in typespecs 2014-04-11 10:00:29 +02:00
Eric Meadows-Jönsson 68828523a0 Fix test error and warnings 2014-04-10 23:26:21 +02:00
José Valim aa09359def Add Kernel.struct/2 2014-04-10 19:01:53 +02:00