danger-prose 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +22 -8
- data/lib/danger_plugin.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc260b303651593c1b4762ac80c27135f0cf8e86
|
|
4
|
+
data.tar.gz: 6ad261ba04f42a195143eb57f6d29a538c1825aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ebe2d67a10208462cee51ee3335000dda6b6fef3cf86c594503c79fad3ed2bacaabd5910a9514aec988349063246556ae93d0a833a365f9ad4b141bc811067b2
|
|
7
|
+
data.tar.gz: 5da6bfa3c329aa73613fc576195f79309d7eed13c08dad4c9a1483d219a8942856a60a7dc6e60971d3605f95e0cb0760c7870601ececea1d35f05fc33649d079
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -7,31 +7,45 @@ A description of danger-proselint.
|
|
|
7
7
|
$ gem install danger-proselint
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
### prose
|
|
12
11
|
|
|
13
12
|
Lint markdown files inside your projects.
|
|
14
13
|
This is done using the [proselint](http://proselint.com) python egg.
|
|
15
14
|
Results are passed out as a table in markdown.
|
|
16
15
|
|
|
17
|
-
<blockquote>
|
|
16
|
+
<blockquote>Running linter with custom disabled linters
|
|
18
17
|
<pre>
|
|
19
|
-
# Runs a linter with comma style disabled
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
# Runs a linter with comma style and tense present disabled
|
|
19
|
+
prose.disable_linters = ["misc.scare_quotes", "misc.tense_present"]
|
|
20
|
+
prose.lint_files "_posts/*.md"</pre>
|
|
21
|
+
</blockquote>
|
|
22
22
|
|
|
23
|
+
<blockquote>Running linter with default linters
|
|
24
|
+
<pre>
|
|
23
25
|
# Runs a linter with all styles, on modified and added markdown files in this PR
|
|
24
|
-
|
|
26
|
+
prose.lint_files</pre>
|
|
27
|
+
</blockquote>
|
|
28
|
+
|
|
29
|
+
<blockquote>Running the spell checker
|
|
30
|
+
<pre>
|
|
31
|
+
# Runs a spell checker on all files in `_post`
|
|
32
|
+
prose.check_spelling "_posts/*.md"</pre>
|
|
33
|
+
</blockquote>
|
|
34
|
+
|
|
35
|
+
<blockquote>Running the spell checker, with some words whitelisted
|
|
36
|
+
<pre>
|
|
37
|
+
prose.ignored_words = ["orta", "artsy"]
|
|
38
|
+
prose.lint_files</pre>
|
|
25
39
|
</blockquote>
|
|
26
40
|
|
|
27
41
|
|
|
28
42
|
|
|
29
43
|
#### Attributes
|
|
30
|
-
<
|
|
44
|
+
<br>
|
|
31
45
|
`disable_linters` - Allows you to disable a collection of linters from running. Doesn't work yet.
|
|
32
46
|
You can get a list of [them here](https://github.com/amperser/proselint#checks)
|
|
33
47
|
defaults to `["misc.scare_quotes", "typography.symbols"]` when it's nil.
|
|
34
|
-
<
|
|
48
|
+
<br>
|
|
35
49
|
`ignored_words` - Allows you to add a collection of words to skip in spellchecking.
|
|
36
50
|
defaults to `[""]` when it's nil.
|
|
37
51
|
|
data/lib/danger_plugin.rb
CHANGED
|
@@ -24,7 +24,7 @@ module Danger
|
|
|
24
24
|
# @example Running the spell checker, with some words whitelisted
|
|
25
25
|
#
|
|
26
26
|
# prose.ignored_words = ["orta", "artsy"]
|
|
27
|
-
# prose.
|
|
27
|
+
# prose.check_spelling
|
|
28
28
|
#
|
|
29
29
|
# @see artsy/artsy.github.io
|
|
30
30
|
# @tags blogging, blog, writing, jekyll, middleman, hugo, metalsmith, gatsby, express
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: danger-prose
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Grandinetti
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-07-
|
|
12
|
+
date: 2016-07-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: danger
|