danger-prose 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63171dba89c5bf66945150654a8992d3e506d63c
4
- data.tar.gz: 89df55bd25edb247314c2dd98066212dbe4e755b
3
+ metadata.gz: b9bf3ecaee3ac9a1331b2b130dafd9e1866d1f41
4
+ data.tar.gz: 70ffb9da51a0354eda7a41f5cec3fd2a6a8fee70
5
5
  SHA512:
6
- metadata.gz: 5460788fed918c031e5f67e1b812aab6596451fb8184cd88598074c02581d612c35d88ec37bd5f07d5a7eb434f3cd6a6599ad2225dc042f2b8aed46f8bd3e93d
7
- data.tar.gz: ecf50fab245beae2c10145fdcc07e28e2a18942bd7c531c8e854607e467911fe130b9c4b1f5c4fa7896d737c5404efd563f0827eae7186073eabeeab803ccd32
6
+ metadata.gz: 212797a43dcd730163691c36ba4be8b30dc4ed0be233a2f478742f962a4d96ea169173b2d6b09b735b2b9ae790f5a7e4c9976d1710e0ef4c5da6fda7adc3feeb
7
+ data.tar.gz: 3c8032e19d748d9a696fd3ae1173d72617b824c0b8ae40ce827ae773ef27c3dbe89cb7c1d4cafcb6179d7db87e319acc6cbbde5cdbdcb4194a297ade8668d62c
@@ -1,5 +1,8 @@
1
1
  2.0.6
2
- - Addds the ability to ignore_numbers and ignore_acronyms (Cellane)
2
+ - Adds the ability to set the dictionary language (Cellane)
3
+
4
+ 2.0.6
5
+ - Adds the ability to ignore_numbers and ignore_acronyms (Cellane)
3
6
 
4
7
  2.0.5
5
8
  - Fix based on danger changing how `FileList` is implemented (dbgrandi)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-prose (2.0.6)
4
+ danger-prose (2.0.7)
5
5
  danger
6
6
 
7
7
  GEM
@@ -15,11 +15,11 @@ GEM
15
15
  cork
16
16
  nap
17
17
  open4 (~> 1.3)
18
- coderay (1.1.1)
18
+ coderay (1.1.2)
19
19
  colored2 (3.1.2)
20
20
  cork (0.3.0)
21
21
  colored2 (~> 3.1)
22
- danger (5.5.10)
22
+ danger (5.3.3)
23
23
  claide (~> 1.0)
24
24
  claide-plugins (>= 0.9.2)
25
25
  colored2 (~> 3.1)
@@ -28,7 +28,6 @@ GEM
28
28
  faraday-http-cache (~> 1.0)
29
29
  git (~> 1)
30
30
  kramdown (~> 1.5)
31
- no_proxy_fix
32
31
  octokit (~> 4.7)
33
32
  terminal-table (~> 1)
34
33
  diff-lcs (1.3)
@@ -36,13 +35,13 @@ GEM
36
35
  multipart-post (>= 1.2, < 3)
37
36
  faraday-http-cache (1.3.1)
38
37
  faraday (~> 0.8)
39
- ffi (1.9.18)
38
+ ffi (1.9.23)
40
39
  formatador (0.2.5)
41
40
  git (1.3.0)
42
- guard (2.14.1)
41
+ guard (2.14.2)
43
42
  formatador (>= 0.2.4)
44
43
  listen (>= 2.7, < 4.0)
45
- lumberjack (~> 1.0)
44
+ lumberjack (>= 1.0.12, < 2.0)
46
45
  nenv (~> 0.1)
47
46
  notiffany (~> 0.0)
48
47
  pry (>= 0.9.12)
@@ -59,15 +58,14 @@ GEM
59
58
  rb-inotify (>= 0.9.7)
60
59
  lumberjack (1.0.12)
61
60
  metaclass (0.0.4)
62
- method_source (0.8.2)
63
- mocha (1.2.1)
61
+ method_source (0.9.0)
62
+ mocha (1.3.0)
64
63
  metaclass (~> 0.0.1)
65
64
  mocha-on-bacon (0.2.3)
66
65
  mocha (>= 0.13.0)
67
66
  multipart-post (2.0.0)
68
67
  nap (1.1.0)
69
68
  nenv (0.3.0)
70
- no_proxy_fix (0.1.2)
71
69
  notiffany (0.1.1)
72
70
  nenv (~> 0.1)
73
71
  shellany (~> 0.0)
@@ -76,38 +74,36 @@ GEM
76
74
  open4 (1.3.4)
77
75
  prettybacon (0.0.2)
78
76
  bacon (~> 1.2)
79
- pry (0.10.4)
77
+ pry (0.11.3)
80
78
  coderay (~> 1.1.0)
81
- method_source (~> 0.8.1)
82
- slop (~> 3.4)
83
- public_suffix (3.0.2)
79
+ method_source (~> 0.9.0)
80
+ public_suffix (3.0.1)
84
81
  rake (10.5.0)
85
82
  rb-fsevent (0.10.2)
86
83
  rb-inotify (0.9.10)
87
84
  ffi (>= 0.5.0, < 2)
88
- rspec (3.6.0)
89
- rspec-core (~> 3.6.0)
90
- rspec-expectations (~> 3.6.0)
91
- rspec-mocks (~> 3.6.0)
92
- rspec-core (3.6.0)
93
- rspec-support (~> 3.6.0)
94
- rspec-expectations (3.6.0)
85
+ rspec (3.7.0)
86
+ rspec-core (~> 3.7.0)
87
+ rspec-expectations (~> 3.7.0)
88
+ rspec-mocks (~> 3.7.0)
89
+ rspec-core (3.7.1)
90
+ rspec-support (~> 3.7.0)
91
+ rspec-expectations (3.7.0)
95
92
  diff-lcs (>= 1.2.0, < 2.0)
96
- rspec-support (~> 3.6.0)
97
- rspec-mocks (3.6.0)
93
+ rspec-support (~> 3.7.0)
94
+ rspec-mocks (3.7.0)
98
95
  diff-lcs (>= 1.2.0, < 2.0)
99
- rspec-support (~> 3.6.0)
100
- rspec-support (3.6.0)
96
+ rspec-support (~> 3.7.0)
97
+ rspec-support (3.7.1)
101
98
  sawyer (0.8.1)
102
99
  addressable (>= 2.3.5, < 2.6)
103
100
  faraday (~> 0.8, < 1.0)
104
101
  shellany (0.0.1)
105
- slop (3.6.0)
106
102
  terminal-table (1.8.0)
107
103
  unicode-display_width (~> 1.1, >= 1.1.1)
108
- thor (0.19.4)
104
+ thor (0.20.0)
109
105
  unicode-display_width (1.3.0)
110
- yard (0.9.9)
106
+ yard (0.9.12)
111
107
 
112
108
  PLATFORMS
113
109
  ruby
@@ -128,4 +124,4 @@ DEPENDENCIES
128
124
  yard (~> 0.8)
129
125
 
130
126
  BUNDLED WITH
131
- 1.15.4
127
+ 1.16.1
data/README.md CHANGED
@@ -58,6 +58,9 @@ if you wish to ignore numbers.
58
58
  errors. Defaults to `false`, switch it to `true` if you wish
59
59
  to ignore acronyms.
60
60
 
61
+ `language` - Allows you to specify dictionary language to use for spell-checking.
62
+ Defaults to `en-gb`, switch to `en-us`, `en-au` or `es-es`, to
63
+ override.
61
64
 
62
65
  #### Methods
63
66
 
@@ -69,4 +72,3 @@ Generates a `markdown` list of warnings for the prose in a corpus of .markdown a
69
72
  `mdspell_installed?` - Determine if mdspell is currently installed in the system paths.
70
73
 
71
74
  `check_spelling` - Runs a markdown-specific spell checker, against a corpus of `.markdown` and `.md` files.
72
-
@@ -115,6 +115,15 @@ module Danger
115
115
  # to ignore acronyms.
116
116
  # @return false
117
117
  attr_accessor :ignore_acronyms
118
+
119
+ # Allows you to specify dictionary language to use for spell-checking.
120
+ # Defaults to `en-gb`, switch to `en-us`, `en-au` or `es-es`, to
121
+ # override.
122
+ attr_accessor :language
123
+
124
+ def language
125
+ @language || 'en-gb'
126
+ end
118
127
 
119
128
  # Runs a markdown-specific spell checker, against a corpus of `.markdown` and `.md` files.
120
129
  #
@@ -138,6 +147,7 @@ module Danger
138
147
 
139
148
  arguments.push("-n") if ignore_numbers
140
149
  arguments.push("-a") if ignore_acronyms
150
+ arguments.push("--#{language}")
141
151
 
142
152
  File.write(".spelling", skip_words.join("\n"))
143
153
  result_texts = Hash[markdown_files.to_a.uniq.collect { |md| [md, `mdspell #{md} #{arguments.join(" ")}`.strip] }]
@@ -1,3 +1,3 @@
1
1
  module DangerProse
2
- VERSION = '2.0.6'.freeze
2
+ VERSION = '2.0.7'.freeze
3
3
  end
@@ -76,7 +76,7 @@ module Danger
76
76
  proselint_response = " spec/fixtures/blog_post.md\n 1:27 | This post intentional left blank-ish.\n 4:84 | Here's a tpyo - it should registor.\n 4:101 | Here's a tpyo - it should registor.\n\n >> 3 spelling errors found in 1 file"
77
77
 
78
78
  # This is where we generate our JSON
79
- allow(@prose).to receive(:`).with('mdspell spec/fixtures/blog_post.md -r').and_return(proselint_response)
79
+ allow(@prose).to receive(:`).with('mdspell spec/fixtures/blog_post.md -r --en-gb').and_return(proselint_response)
80
80
 
81
81
  # it's worth noting - you can call anything on your plugin that a Dangerfile responds to
82
82
  # The request source's PR JSON typically looks like
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.6
4
+ version: 2.0.7
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: 2018-02-27 00:00:00.000000000 Z
12
+ date: 2018-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: danger