Commit Graph
1533 Commits
Author SHA1 Message Date
José Valim cc969f8d01 Remove wrong record wording 2014-05-24 13:53:11 +02:00
José Valim 3de70b909a Merge pull request #2331 from alco/string-chunk
Add String.chunk/2
2014-05-24 20:52:37 +09:00
Alexei Sholik 58cd9e5c11 Add String.chunk/2 2014-05-24 14:45:28 +03:00
José Valim eb32937858 Get rid of Kernel.access/2 in favor of Access.get/2 2014-05-24 12:45:33 +02:00
José Valim 6720cb6830 Simplify beam writing mechanism 2014-05-24 12:32:39 +02:00
José Valim c3f0929a77 Merge pull request #2326 from alco/docs-beam-chunks
Docs beam chunks
2014-05-24 18:26:11 +09:00
Devin Torres 39c84f4324 Change Stream's struct to just %Stream{} 2014-05-24 00:09:32 -05:00
Alexei Sholik 8448513c8b Update tests that need to read module docs to write BEAM code to disk 2014-05-24 04:33:41 +03:00
Alexei Sholik 211d9428b4 Add Code.get_docs/2 function 2014-05-24 03:45:29 +03:00
José Valim 8652ee5838 Do not allow keyword on containers without pos args 2014-05-23 20:59:38 +02:00
Alexei Sholik 4d66ac72e1 Dedicated inspect implementation for regexes. Fix #2250
We no longer share the implementation with BitString because regex
literals have slightly different escaping rules
2014-05-23 14:36:56 +03:00
José Valim 18aeb78547 Exit with proper test code on test_erlang, closes #2313 2014-05-22 12:21:08 +02:00
José Valim 83ccde4db6 Update CHANGELOG, fix tests and typespecs 2014-05-22 11:29:42 +02:00
José Valim 59900260a1 Merge pull request #2312 from alco/option-parser-fixes
Return invalid options as strings
2014-05-22 18:19:52 +09:00
José Valim 6bfcf2f33c \d is a printable character 2014-05-22 10:37:09 +02:00
Alexei Sholik 4cc28c2e8c Return invalid options as strings 2014-05-22 00:05:41 +03:00
José Valim 927594bb14 Always return nil for undefined options (#2308) 2014-05-21 21:09:01 +02:00
Alexei Sholik a9375903ae Do not assume invalid options are of boolean type 2014-05-21 17:36:19 +03:00
José Valim ed582c3977 Merge pull request #2309 from alco/option-parser-tests
Fix parsing of "-" in OptionParser
2014-05-21 15:19:04 +02:00
Alexei Sholik fb2686fe37 Parse "-" as a plain argument 2014-05-21 13:55:28 +03:00
José Valim 55e885f5c5 Ensure we don't leak erlang terms on failure, closes #2303 2014-05-21 12:44:12 +02:00
José Valim f92d8393da (Soft) deprecate set_elem/3 in favor of put_elem/3, closes #2259 2014-05-21 12:04:22 +02:00
José Valim cb0c3d8a2a Support :strict option on parse and improve return types 2014-05-21 11:50:11 +02:00
José Valim d9ece7edb0 Merge pull request #2290 from alco/option-parser-next
Tentative implementation of the `next` function
2014-05-21 11:09:50 +02:00
José Valim 9b431a8831 Speed up CLI tests by avoiding booting Elixir 2014-05-20 22:42:01 +02:00
José Valim b342739dba Tag wrong heredoc start as SyntaxError instead of TokenMissingError 2014-05-20 20:25:31 +02:00
José Valim b570850faf Fix Stream.cycle/1 with inner halting stream, closes #2285 2014-05-20 16:51:00 +02:00
Alexei Sholik 142ebc3ecd Fix handling of boolean options with bad values 2014-05-20 17:32:12 +03:00
Alexei Sholik 339c57f1c6 Fix value normalization in strict mode 2014-05-20 17:32:12 +03:00
José Valim e7fcaff839 Merge pull request #2289 from lexmag/master
Change `OptionParser` to remove `--`. Fix command-line arguments handling.
2014-05-20 16:14:04 +02:00
José Valim a4b01b2f97 Fix race condition on supervisor test 2014-05-20 15:57:18 +02:00
Aleksei Magusev ee561bd473 Fix raising Code.LoadError 2014-05-20 17:10:46 +04:00
Aleksei Magusev 6696133abb Fix command-line arguments handling in Kernel.CLI 2014-05-20 17:10:46 +04:00
Aleksei Magusev c0bc64fb19 Change OptionParser to remove the end of command options (--) 2014-05-20 12:49:10 +04:00
Eric Meadows-Jönsson 2e24e228d1 reraise should work like raise 2014-05-20 10:29:07 +02:00
José Valim b76d39e9d4 Ensure map_join also works for empty binaries 2014-05-19 18:54:13 +02:00
José Valim be34a75124 Disabling :hygiene in quote is deprecated 2014-05-19 18:25:56 +02:00
José Valim 860ca5b5cb Add Macro.prewalk/2/3 and Macro.postwalk/2/3 2014-05-19 15:31:58 +02:00
Dima Aleksandrov 24109337fe fix Enum.join for empty elements in the begining of the collection 2014-05-19 12:35:52 +02:00
José Valim 540c763c85 Move binary and list conversions to String and List 2014-05-17 17:02:46 +02:00
José Valim 3d4877ffda Get rid of BitString module and bitstring conversions 2014-05-17 16:34:26 +02:00
José Valim 84262257ef Move Integer/Float conversions to their respective modules 2014-05-17 16:29:49 +02:00
José Valim bf8f5c4bb8 Add String.to_char_list and List.to_string 2014-05-17 13:59:17 +02:00
José Valim 3bb8e17e9e Add iodata_to_binary and chardata_to_string to IO 2014-05-17 13:06:40 +02:00
José Valim 095e4a7d2e Improve docs for string, process and supervisor 2014-05-16 22:28:20 +02:00
Paul Schoenfelder a6392a8220 Add typespecs for builtins, __record__, and __struct__
Added typespecs for:

- __FILE__/1
- __MODULE__/1
- __info__/1
- __record__/1, __record__/2, __record__/3
- __struct__/0
2014-05-16 11:45:47 -05:00
José Valim deb0191a21 Add Atom.to_string, Atom.to_char_list and BitString.to_list 2014-05-16 14:38:43 +02:00
José Valim 489b1e04c7 Deprecate defrecord/3 2014-05-16 13:35:34 +02:00
José Valim a80f9d9ae1 Remove dependency on Record.Backend 2014-05-16 12:21:36 +02:00
José Valim c22e8e85dc Convert exceptions to structs 2014-05-16 00:01:49 +02:00