guard-scss_lint 0.1.3 → 0.1.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/lib/guard/scss_lint.rb +2 -1
- data/lib/guard/scss_lint/version.rb +1 -1
- data/spec/guard/scss_lint_spec.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: 0bde80a9953be14e5f1d989e93d233ba963db717
|
|
4
|
+
data.tar.gz: 6aaa200599b41f43f608343bc4e7a653aee3ca21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d3cb25da8fa73970fd38112b01c986bd1216ce0a72d86b514c6a1e254666f968195eb94d9522a968f76cc68761d0cc1a1500568095738cc09d3db6936bfcfbe
|
|
7
|
+
data.tar.gz: 75ac622d67d79737623d84020abead0fd391d7f99c9cb041e7e656e7ef1646753bccb0d9f07c2569a53b1d3b2b2d3fcec725eb5f2c1bd9ef39326642c4aeb90f
|
data/lib/guard/scss_lint.rb
CHANGED
|
@@ -54,7 +54,8 @@ module Guard
|
|
|
54
54
|
|
|
55
55
|
def run(paths = [])
|
|
56
56
|
@scss_lint_runner = SCSSLint::Runner.new @config
|
|
57
|
-
paths = paths.reject { |p| @config.excluded_file?(p) }
|
|
57
|
+
paths = paths.reject { |p| @config.excluded_file?(p) }.map { |path| { path: path } }
|
|
58
|
+
|
|
58
59
|
@scss_lint_runner.run paths
|
|
59
60
|
@scss_lint_runner.lints.each do |lint|
|
|
60
61
|
Guard::Compat::UI.send lint.severity, lint_message(lint)
|
|
@@ -116,7 +116,7 @@ describe Guard::ScssLint, exclude_stubs: [Guard::Plugin] do
|
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
it 'inspects all scss files with scss lint' do
|
|
119
|
-
expect_any_instance_of(SCSSLint::Runner).to receive(:run).with(['a.scss'])
|
|
119
|
+
expect_any_instance_of(SCSSLint::Runner).to receive(:run).with([{ path: 'a.scss' }])
|
|
120
120
|
guard.run_all
|
|
121
121
|
end
|
|
122
122
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: guard-scss_lint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Rohr
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-02-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: guard-compat
|