danger-spec_postfix 0.0.3 → 0.0.4
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 +2 -8
- data/lib/spec_postfix/gem_version.rb +1 -1
- data/lib/spec_postfix/plugin.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb88efc2559876baef00d2c8339fc8c331ba086443dda16b240c04fa669f41b6
|
|
4
|
+
data.tar.gz: da7ccb91e79a960316d896c479e6ea93537f18311d52f257d71cab25a4655e33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8dcbd37fc22a213ee5ad3c43b7333f6bbf100c14c6e7da372a83828337e66c89a525bc088609fc195707cc864c4b6cac15714ffaf2a1273352b59a900d6e68f
|
|
7
|
+
data.tar.gz: 51f52ec49624703032a7be42cb99f59a86550bc1e5a7e27da2b9195724030685afbc155f6005de08b85ba1462782d10d9f9e772f48219ebcc60395471ba7c287
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -12,15 +12,9 @@ Danger plugin to validate sub README mention in main README file
|
|
|
12
12
|
|
|
13
13
|
spec_postfix.lint
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
You can also pass `exceptions` param in order to skip irrelevant files or directories:
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
#config/initializers/danger/danger_spec_postfix.rb
|
|
20
|
-
|
|
21
|
-
Danger::DangerSpecPostfix.configure do |config|
|
|
22
|
-
config.exceptions = ['rails_helper.rb', 'rails_helper.rb']
|
|
23
|
-
end
|
|
17
|
+
spec_postfix.lint(exceptions: ['rails_helper.rb', 'rails_helper.rb', 'spec/factories/', 'spec/support/'])
|
|
24
18
|
|
|
25
19
|
## Development
|
|
26
20
|
|
data/lib/spec_postfix/plugin.rb
CHANGED
|
@@ -4,7 +4,7 @@ module Danger
|
|
|
4
4
|
# Lints the test files. Will fail if any has no '_spec' postfix.
|
|
5
5
|
# Generates a `string` with warning.
|
|
6
6
|
#
|
|
7
|
-
# @param [String] files
|
|
7
|
+
# @param [Array<String>] files
|
|
8
8
|
# A globbed string which should return the files that you want to lint, defaults to nil.
|
|
9
9
|
# if nil, modified and added files from the diff will be used.
|
|
10
10
|
# @return [void]
|