danger-prose 2.0.5 → 2.0.6
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/CHANGELOG.md +3 -0
- data/Gemfile.lock +12 -10
- data/README.md +8 -1
- data/lib/danger_plugin.rb +18 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63171dba89c5bf66945150654a8992d3e506d63c
|
|
4
|
+
data.tar.gz: 89df55bd25edb247314c2dd98066212dbe4e755b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5460788fed918c031e5f67e1b812aab6596451fb8184cd88598074c02581d612c35d88ec37bd5f07d5a7eb434f3cd6a6599ad2225dc042f2b8aed46f8bd3e93d
|
|
7
|
+
data.tar.gz: ecf50fab245beae2c10145fdcc07e28e2a18942bd7c531c8e854607e467911fe130b9c4b1f5c4fa7896d737c5404efd563f0827eae7186073eabeeab803ccd32
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
danger-prose (2.0.
|
|
4
|
+
danger-prose (2.0.6)
|
|
5
5
|
danger
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
addressable (2.5.
|
|
11
|
-
public_suffix (
|
|
10
|
+
addressable (2.5.2)
|
|
11
|
+
public_suffix (>= 2.0.2, < 4.0)
|
|
12
12
|
bacon (1.2.0)
|
|
13
13
|
claide (1.0.2)
|
|
14
14
|
claide-plugins (0.9.2)
|
|
@@ -19,7 +19,7 @@ GEM
|
|
|
19
19
|
colored2 (3.1.2)
|
|
20
20
|
cork (0.3.0)
|
|
21
21
|
colored2 (~> 3.1)
|
|
22
|
-
danger (5.
|
|
22
|
+
danger (5.5.10)
|
|
23
23
|
claide (~> 1.0)
|
|
24
24
|
claide-plugins (>= 0.9.2)
|
|
25
25
|
colored2 (~> 3.1)
|
|
@@ -28,10 +28,11 @@ GEM
|
|
|
28
28
|
faraday-http-cache (~> 1.0)
|
|
29
29
|
git (~> 1)
|
|
30
30
|
kramdown (~> 1.5)
|
|
31
|
-
|
|
31
|
+
no_proxy_fix
|
|
32
|
+
octokit (~> 4.7)
|
|
32
33
|
terminal-table (~> 1)
|
|
33
34
|
diff-lcs (1.3)
|
|
34
|
-
faraday (0.
|
|
35
|
+
faraday (0.14.0)
|
|
35
36
|
multipart-post (>= 1.2, < 3)
|
|
36
37
|
faraday-http-cache (1.3.1)
|
|
37
38
|
faraday (~> 0.8)
|
|
@@ -52,7 +53,7 @@ GEM
|
|
|
52
53
|
guard (~> 2.1)
|
|
53
54
|
guard-compat (~> 1.1)
|
|
54
55
|
rspec (>= 2.99.0, < 4.0)
|
|
55
|
-
kramdown (1.
|
|
56
|
+
kramdown (1.16.2)
|
|
56
57
|
listen (3.0.7)
|
|
57
58
|
rb-fsevent (>= 0.9.3)
|
|
58
59
|
rb-inotify (>= 0.9.7)
|
|
@@ -66,10 +67,11 @@ GEM
|
|
|
66
67
|
multipart-post (2.0.0)
|
|
67
68
|
nap (1.1.0)
|
|
68
69
|
nenv (0.3.0)
|
|
70
|
+
no_proxy_fix (0.1.2)
|
|
69
71
|
notiffany (0.1.1)
|
|
70
72
|
nenv (~> 0.1)
|
|
71
73
|
shellany (~> 0.0)
|
|
72
|
-
octokit (4.
|
|
74
|
+
octokit (4.8.0)
|
|
73
75
|
sawyer (~> 0.8.0, >= 0.5.3)
|
|
74
76
|
open4 (1.3.4)
|
|
75
77
|
prettybacon (0.0.2)
|
|
@@ -78,7 +80,7 @@ GEM
|
|
|
78
80
|
coderay (~> 1.1.0)
|
|
79
81
|
method_source (~> 0.8.1)
|
|
80
82
|
slop (~> 3.4)
|
|
81
|
-
public_suffix (
|
|
83
|
+
public_suffix (3.0.2)
|
|
82
84
|
rake (10.5.0)
|
|
83
85
|
rb-fsevent (0.10.2)
|
|
84
86
|
rb-inotify (0.9.10)
|
|
@@ -126,4 +128,4 @@ DEPENDENCIES
|
|
|
126
128
|
yard (~> 0.8)
|
|
127
129
|
|
|
128
130
|
BUNDLED WITH
|
|
129
|
-
1.
|
|
131
|
+
1.15.4
|
data/README.md
CHANGED
|
@@ -36,7 +36,7 @@ prose.check_spelling "_posts/*.md"</pre>
|
|
|
36
36
|
<blockquote>Running the spell checker, with some words whitelisted
|
|
37
37
|
<pre>
|
|
38
38
|
prose.ignored_words = ["orta", "artsy"]
|
|
39
|
-
prose.
|
|
39
|
+
prose.check_spelling</pre>
|
|
40
40
|
</blockquote>
|
|
41
41
|
|
|
42
42
|
|
|
@@ -50,6 +50,13 @@ defaults to `["misc.scare_quotes", "typography.symbols"]` when it's nil.
|
|
|
50
50
|
`ignored_words` - Allows you to add a collection of words to skip in spellchecking.
|
|
51
51
|
defaults to `[""]` when it's nil.
|
|
52
52
|
|
|
53
|
+
`ignore_numbers` - Allows you to specify that you want to ignore reporting numbers
|
|
54
|
+
as spelling errors. Defaults to `false`, switch it to `true`
|
|
55
|
+
if you wish to ignore numbers.
|
|
56
|
+
|
|
57
|
+
`ignore_acronyms` - Allows you to specify that you want to ignore acronyms as spelling
|
|
58
|
+
errors. Defaults to `false`, switch it to `true` if you wish
|
|
59
|
+
to ignore acronyms.
|
|
53
60
|
|
|
54
61
|
|
|
55
62
|
#### Methods
|
data/lib/danger_plugin.rb
CHANGED
|
@@ -103,6 +103,18 @@ module Danger
|
|
|
103
103
|
# defaults to `[""]` when it's nil.
|
|
104
104
|
# @return [Array<String>]
|
|
105
105
|
attr_accessor :ignored_words
|
|
106
|
+
|
|
107
|
+
# Allows you to specify that you want to ignore reporting numbers
|
|
108
|
+
# as spelling errors. Defaults to `false`, switch it to `true`
|
|
109
|
+
# if you wish to ignore numbers.
|
|
110
|
+
# @return false
|
|
111
|
+
attr_accessor :ignore_numbers
|
|
112
|
+
|
|
113
|
+
# Allows you to specify that you want to ignore acronyms as spelling
|
|
114
|
+
# errors. Defaults to `false`, switch it to `true` if you wish
|
|
115
|
+
# to ignore acronyms.
|
|
116
|
+
# @return false
|
|
117
|
+
attr_accessor :ignore_acronyms
|
|
106
118
|
|
|
107
119
|
# Runs a markdown-specific spell checker, against a corpus of `.markdown` and `.md` files.
|
|
108
120
|
#
|
|
@@ -121,9 +133,14 @@ module Danger
|
|
|
121
133
|
|
|
122
134
|
markdown_files = get_files files
|
|
123
135
|
|
|
136
|
+
arguments = ["-r"]
|
|
124
137
|
skip_words = ignored_words || []
|
|
138
|
+
|
|
139
|
+
arguments.push("-n") if ignore_numbers
|
|
140
|
+
arguments.push("-a") if ignore_acronyms
|
|
141
|
+
|
|
125
142
|
File.write(".spelling", skip_words.join("\n"))
|
|
126
|
-
result_texts = Hash[markdown_files.to_a.uniq.collect { |md| [md, `mdspell #{md}
|
|
143
|
+
result_texts = Hash[markdown_files.to_a.uniq.collect { |md| [md, `mdspell #{md} #{arguments.join(" ")}`.strip] }]
|
|
127
144
|
spell_issues = result_texts.select { |path, output| output.include? "spelling errors found" }
|
|
128
145
|
File.unlink(".spelling")
|
|
129
146
|
|
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.6
|
|
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:
|
|
12
|
+
date: 2018-02-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: danger
|
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
181
181
|
version: '0'
|
|
182
182
|
requirements: []
|
|
183
183
|
rubyforge_project:
|
|
184
|
-
rubygems_version: 2.
|
|
184
|
+
rubygems_version: 2.2.2
|
|
185
185
|
signing_key:
|
|
186
186
|
specification_version: 4
|
|
187
187
|
summary: A danger plugin for working with bodies of markdown prose.
|