-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from stephenmoloney/update/scrivener-2
Upgrade to allow for scrivener version 2.x
- Loading branch information
Showing
11 changed files
with
296 additions
and
126 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[ | ||
inputs: [ | ||
"{lib,config,test}/**/*.{ex,exs}", | ||
"*.{ex,exs}" | ||
] | ||
] |
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"plugins": [ | ||
["remark-lint-checkbox-character-style", "consistent"], | ||
["remark-lint-final-newline"], | ||
["remark-lint-list-item-bullet-indent", "tab-size"], | ||
["remark-lint-list-item-indent", "tab-size"], | ||
["remark-lint-no-auto-link-without-protocol"], | ||
["remark-lint-no-blockquote-without-marker"], | ||
["remark-lint-no-literal-urls"], | ||
["remark-lint-ordered-list-marker-style", "."], | ||
["remark-lint-hard-break-spaces"], | ||
["remark-lint-no-duplicate-definitions"], | ||
["remark-lint-no-heading-content-indent"], | ||
["remark-lint-no-inline-padding"], | ||
["remark-lint-no-shortcut-reference-image"], | ||
["remark-lint-no-shortcut-reference-link"], | ||
["remark-lint-no-undefined-references"], | ||
["remark-lint-no-unused-definitions"], | ||
["remark-lint-file-extension", "md"], | ||
["remark-lint-no-file-name-mixed-case"], | ||
["remark-lint-no-file-name-articles"], | ||
["remark-lint-no-file-name-irregular-characters"], | ||
["remark-lint-no-file-name-consecutive-dashes"], | ||
["remark-lint-no-file-name-outer-dashes"], | ||
["remark-lint-no-consecutive-blank-lines"], | ||
["remark-lint-maximum-line-length", 100], | ||
["remark-lint-no-shell-dollars"], | ||
["remark-lint-heading-style", "atx"], | ||
["remark-lint-heading-increment"], | ||
["remark-lint-no-duplicate-headings"], | ||
["remark-lint-no-multiple-toplevel-headings"], | ||
["remark-lint-maximum-heading-length"], | ||
["remark-lint-no-heading-punctuation", ":."], | ||
["remark-lint-blockquote-indentation", 2], | ||
["remark-lint-unordered-list-marker-style", "-"], | ||
["remark-lint-ordered-list-marker-value", "one"], | ||
["remark-lint-list-item-content-indent"], | ||
["remark-lint-list-item-spacing"], | ||
["remark-lint-code-block-style", "fenced"], | ||
["remark-lint-fenced-code-flag", {"allowEmpty": false}], | ||
["remark-lint-fenced-code-marker", "`"], | ||
["remark-lint-rule-style", "---"], | ||
["remark-lint-no-table-indentation"], | ||
["remark-lint-table-pipes"], | ||
["remark-lint-table-pipe-alignment"], | ||
["remark-lint-table-cell-padding", "padded"], | ||
["remark-lint-final-definition"], | ||
["remark-lint-definition-case"], | ||
["remark-lint-definition-spacing"], | ||
["remark-lint-link-title-style", "\""], | ||
["remark-lint-strong-marker", "*"], | ||
["remark-lint-emphasis-marker", "*"], | ||
["remark-lint-no-emphasis-as-heading", "*"], | ||
["remark-lint-no-dead-urls"], | ||
["remark-validate-links"], | ||
["remark-lint-no-url-trailing-slash"], | ||
[ | ||
"remark-lint-write-good", | ||
[ | ||
"warn", | ||
{ | ||
"passive": false, | ||
"so": true | ||
} | ||
] | ||
] | ||
] | ||
} |
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,7 +1,62 @@ | ||
language: elixir | ||
matrix: | ||
--- | ||
env: | ||
global: | ||
- WORKSPACE="/ci-actions/workspace" | ||
- REMARKLINT_VERSION="6.0.4" | ||
|
||
stages: | ||
- markdown-lint | ||
- elixir-lint | ||
- test-1.3 | ||
- test-1.4 | ||
- test-1.5 | ||
- test-1.6 | ||
- test-1.7 | ||
- test-1.8 | ||
|
||
jobs: | ||
include: | ||
- otp_release: 19.2 | ||
elixir: 1.3 | ||
- otp_release: 19.3 | ||
elixir: 1.4 | ||
- stage: markdown-lint | ||
language: bash | ||
image: docker:18-git | ||
before_script: | ||
- docker pull smoloney/ci-actions-remark:${REMARKLINT_VERSION} > /dev/null | ||
script: | ||
- | | ||
docker run --rm -v ${PWD}:${WORKSPACE} smoloney/ci-actions-remark:${REMARKLINT_VERSION} \ | ||
--exclude='./deps' \ | ||
--exclude='./_build' \ | ||
--exec-args='--frail --rc-path ./.remarkrc' | ||
- stage: elixir-lint | ||
language: elixir | ||
elixir: 1.8 | ||
otp_release: 21.2 | ||
script: | ||
- mix format --check-formatted --dry-run | ||
|
||
- &test | ||
stage: test-1.4 | ||
language: elixir | ||
elixir: 1.4 | ||
otp_release: 19.2 | ||
|
||
- <<: *test | ||
stage: test-1.5 | ||
elixir: 1.5 | ||
otp_release: 20.3 | ||
|
||
- <<: *test | ||
stage: test-1.6 | ||
elixir: 1.6 | ||
otp_release: 20.3 | ||
|
||
- <<: *test | ||
stage: test-1.7 | ||
elixir: 1.7 | ||
otp_release: 20.3 | ||
|
||
- <<: *test | ||
stage: test-1.8 | ||
elixir: 1.8 | ||
otp_release: 21.2 |
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,13 +1,30 @@ | ||
# Changelog | ||
|
||
## v1.0.1 | ||
## v2.0.0 | ||
|
||
- Relax the requirements for `scrivener_ecto` to allow 1.x and 2.x | ||
versions - thereby also allowing ecto 3.x, | ||
resolves [issue 4](https://github.com/stephenmoloney/scrivener_list/issues/4) | ||
|
||
- README example without a Repo module no longer references | ||
a Repo module confusingly - [PR](https://github.com/stephenmoloney/scrivener_list/pull/2) | ||
|
||
- Formatting introduced with `mix format` | ||
|
||
[fixes] | ||
- Cannot pass %Scrivener.Config.t into `Scrivener.Repo.paginate`. Change docs to reflect this. | ||
- Add `:scrivener_ecto` to `applications` and hence quieten warnings for releases. | ||
- bump dependencies & fix warnings for elixir 1.4. | ||
- Linting the `README.md` file | ||
|
||
- Add example in `README.md` of adding `adapter: Ecto.Adapters.Postgres` in the | ||
`use` statement when creating a `Repo` module as is required | ||
for Ecto 3+. | ||
|
||
- Elixir 1.4+ is required for scrivener_ecto 2.x | ||
|
||
## v1.0.1 | ||
|
||
- Cannot pass %Scrivener.Config.t into `Scrivener.Repo.paginate`. Change docs to reflect this. | ||
- Add `:scrivener_ecto` to `applications` and hence quieten warnings for releases. | ||
- bump dependencies & fix warnings for elixir 1.4. | ||
|
||
## v1.0 | ||
|
||
- Initial release. | ||
- Initial release. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
use Mix.Config | ||
|
||
if Mix.env == :test do | ||
config :scrivener_list, Scrivener.Repo, | ||
adapter: Ecto.Adapters.Postgres | ||
end | ||
if Mix.env() == :test do | ||
config :scrivener_list, Scrivener.Repo, adapter: Ecto.Adapters.Postgres | ||
end |
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
Oops, something went wrong.