-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
... and bump to 0.12.4. Make match_fun/0 return 'match-record' every time, since we kept running out of atoms. Also, change the Travis script to call eunit:test/2 manually and pass +t 10 million to avoid the atom_tab max issue.
- Loading branch information
Showing
9 changed files
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ before_script: | |
- wget https://s3.amazonaws.com/rebar3/rebar3 | ||
- chmod 755 rebar3 | ||
script: | ||
- ./rebar3 eunit -v | ||
- erl +t 10000000 -pa _build/default/lib/*/ebin -noshell -eval 'eunit:test({application, lodox}, [verbose]).' -s init stop | ||
notifications: | ||
email: | ||
- [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule doc
updated
8 files
+1 −1 | index.html | |
+2 −2 | lodox-html-writer.html | |
+3 −3 | lodox-macros.html | |
+11 −11 | lodox-p.html | |
+10 −10 | lodox-parse.html | |
+3 −3 | lodox-util.html | |
+12 −12 | lodox.html | |
+7 −7 | pandoc.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,7 +134,7 @@ branch = gh-pages | |
:noweb: yes | ||
:padline: no | ||
:END: | ||
*Describe =rebar.config= here.* | ||
TODO: Describe =rebar.config= here. | ||
|
||
#+BEGIN_SRC erlang :tangle ../rebar.config | ||
<<generated("erlang")>> | ||
|
@@ -1549,9 +1549,9 @@ parse_test_() -> | |
, {"A simple function with a docstring is correctly parsed.", | ||
prop_defun_simple_doc(), 500} | ||
, {"A function with pattern clauses produces an empty docstring.", | ||
prop_defun_match(), 30} | ||
prop_defun_match(), 100} | ||
, {"A function with pattern clauses and a docstring is correctly parsed.", | ||
prop_defun_match_doc(), 30} | ||
prop_defun_match_doc(), 100} | ||
], | ||
[{timeout, ?TIMEOUT, | ||
{Title, ?_assert(proper:quickcheck(Property, ?OPTIONS(NumTests)))}} | ||
|
@@ -1644,7 +1644,9 @@ pattern_form() -> | |
match_fun()]) | ||
| non_empty(list())]. | ||
|
||
match_fun() -> ?LET(F, printable_string(), list_to_atom("match-" ++ F)). | ||
%% Don't waste atoms, since we're already running out. | ||
%% match_fun() -> ?LET(F, printable_string(), list_to_atom("match-" ++ F)). | ||
match_fun() -> 'match-record'. | ||
|
||
pattern_clause(Arity) -> | ||
[arglist_patterns(Arity) | | ||
|
@@ -1833,7 +1835,7 @@ before_script: | |
- wget https://s3.amazonaws.com/rebar3/rebar3 | ||
- chmod 755 rebar3 | ||
script: | ||
- ./rebar3 eunit -v | ||
- erl +t 10000000 -pa _build/default/lib/*/ebin -noshell -eval 'eunit:test({application, lodox}, [verbose]).' -s init stop | ||
notifications: | ||
email: | ||
- [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,7 +110,7 @@ branch = gh-pages | |
```erlang | ||
{application, 'lodox', | ||
[{description, "The LFE rebar3 Lodox plugin"}, | ||
{vsn, "0.12.3"}, | ||
{vsn, "0.12.4"}, | ||
{modules, [lodox, | ||
'lodox-html-writer', 'lodox-p', 'lodox-parse', 'lodox-util', | ||
'unit-lodox-tests']}, | ||
|
@@ -124,7 +124,7 @@ branch = gh-pages | |
|
||
# Rebar3 Configuration<a id="orgheadline6"></a> | ||
|
||
**Describe `rebar.config` here.** | ||
TODO: Describe `rebar.config` here. | ||
|
||
```erlang | ||
{erl_opts, [debug_info, {src_dirs, ["test"]}]}. | ||
|
@@ -341,8 +341,10 @@ If `name` is a binary, convert it to an atom first." | |
([name rebar-opts] (when (is_binary name)) | ||
(get-lodox-opts (binary_to_atom name 'latin1) rebar-opts)) | ||
([app rebar-opts] (when (is_atom app)) | ||
(let* ((lodox-config (dict:fetch 'lodox rebar-opts)) | ||
(lodox-apps (proplists:get_value 'apps lodox-config))) | ||
(let* ((lodox-config (if (dict:is_key 'lodox rebar-opts) | ||
(dict:fetch 'lodox rebar-opts) | ||
[])) | ||
(lodox-apps (proplists:get_value 'apps lodox-config []))) | ||
(maps:from_list (proplists:get_value app lodox-apps []))))) | ||
``` | ||
|
||
|
@@ -832,7 +834,7 @@ Use [pandoc] if available, otherwise [erlmarkdown]. | |
```commonlisp | ||
'#m(name #\"lodox\" | ||
version \"0.12.3\" | ||
version \"0.12.4\" | ||
description \"The LFE rebar3 Lodox plugin\" | ||
documents () | ||
modules {{list of maps of module metadata}} | ||
|
@@ -1423,9 +1425,9 @@ parse_test_() -> | |
, {"A simple function with a docstring is correctly parsed.", | ||
prop_defun_simple_doc(), 500} | ||
, {"A function with pattern clauses produces an empty docstring.", | ||
prop_defun_match(), 30} | ||
prop_defun_match(), 100} | ||
, {"A function with pattern clauses and a docstring is correctly parsed.", | ||
prop_defun_match_doc(), 30} | ||
prop_defun_match_doc(), 100} | ||
], | ||
[{timeout, ?TIMEOUT, | ||
{Title, ?_assert(proper:quickcheck(Property, ?OPTIONS(NumTests)))}} | ||
|
@@ -1518,7 +1520,9 @@ pattern_form() -> | |
match_fun()]) | ||
| non_empty(list())]. | ||
|
||
match_fun() -> ?LET(F, printable_string(), list_to_atom("match-" ++ F)). | ||
%% Don't waste atoms, since we're already running out. | ||
%% match_fun() -> ?LET(F, printable_string(), list_to_atom("match-" ++ F)). | ||
match_fun() -> 'match-record'. | ||
|
||
pattern_clause(Arity) -> | ||
[arglist_patterns(Arity) | | ||
|
@@ -1677,7 +1681,7 @@ before_script: | |
- wget https://s3.amazonaws.com/rebar3/rebar3 | ||
- chmod 755 rebar3 | ||
script: | ||
- ./rebar3 eunit -v | ||
- erl +t 10000000 -pa _build/default/lib/*/ebin -noshell -eval 'eunit:test({application, lodox}, [verbose]).' -s init stop | ||
notifications: | ||
email: | ||
- [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.12.3 | ||
0.12.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters