pronto-scss 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pronto/scss.rb +6 -6
- data/lib/pronto/scss/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a5449d1d5521be7a5d3847d9f3a338e7d857523
|
4
|
+
data.tar.gz: b7fc5f48623734f0f24d364c2b9e4f8d37c9721b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3bc41562d6d5ed044e39950abf79718c0f22545fec3109963e6f0137e545ab8abdf5147ca228e6ace14401fdf0243c7a888ac7dcf5fff68050ac9c81084a5c2
|
7
|
+
data.tar.gz: a4c6fabb1967e96242f083945b1e3f885a25a20894c776a121720ea771b5db0b91b43f6f4e8e0df82466f2be4f3c758e0651116a3a0a1f686bb0c5a993d6f3e1
|
data/lib/pronto/scss.rb
CHANGED
@@ -8,7 +8,7 @@ module Pronto
|
|
8
8
|
|
9
9
|
if files.any?
|
10
10
|
files_hash =
|
11
|
-
SCSSLint::FileFinder.new(
|
11
|
+
SCSSLint::FileFinder.new(scss_config).find(files).map do |path|
|
12
12
|
{ path: path }
|
13
13
|
end
|
14
14
|
runner.run(files_hash)
|
@@ -19,11 +19,11 @@ module Pronto
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def runner
|
22
|
-
@runner ||= SCSSLint::Runner.new(
|
22
|
+
@runner ||= SCSSLint::Runner.new(scss_config)
|
23
23
|
end
|
24
24
|
|
25
|
-
def
|
26
|
-
@
|
25
|
+
def scss_config
|
26
|
+
@scss_config ||= begin
|
27
27
|
file_name = SCSSLint::Config::FILE_NAME
|
28
28
|
if File.exist?(file_name) || File.symlink?(file_name)
|
29
29
|
SCSSLint::Config.load(file_name)
|
@@ -70,10 +70,10 @@ module Pronto
|
|
70
70
|
|
71
71
|
def scss_files_option_matches?(path)
|
72
72
|
path_string = path.to_s
|
73
|
-
files =
|
73
|
+
files = scss_config.scss_files
|
74
74
|
|
75
75
|
# We use `end_with?` because `path` is a absolute path and the file paths
|
76
|
-
# of `
|
76
|
+
# of `scss_config.scss_files` are relative ones
|
77
77
|
files.any? { |f| path_string.end_with?(f) }
|
78
78
|
end
|
79
79
|
end
|
data/lib/pronto/scss/version.rb
CHANGED