pronto-scss 0.5.2 → 0.5.3
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 +11 -1
- data/lib/pronto/scss/version.rb +1 -1
- data/pronto-scss.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4703d81993d87a02065117cec1691a3c8d08cd0c
|
4
|
+
data.tar.gz: 3e058984c87538da7499aa164acc7a92257f3956
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dee246568e02767bb6db079ea45866fca10b87e9b4c32c80c7ea8510777439c2c36d3f3fca79a865370983addec9c8d4684279856f79ed32bba2da36915fc09a
|
7
|
+
data.tar.gz: 82013ea710a93889700ebb5e9e4689a137c6a561dd778a96341bc1995c81169498e7e99578d1b4eb2d4fc7eef851e1dbcd7fe63108bf9cbf87d40f85d4498db4
|
data/lib/pronto/scss.rb
CHANGED
@@ -62,7 +62,17 @@ module Pronto
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def scss_file?(path)
|
65
|
-
%w(.css .scss).include?(File.extname(path))
|
65
|
+
%w(.css .scss).include?(File.extname(path)) &&
|
66
|
+
scss_files_option_matches?(path)
|
67
|
+
end
|
68
|
+
|
69
|
+
def scss_files_option_matches?(path)
|
70
|
+
path_string = path.to_s
|
71
|
+
files = config.scss_files
|
72
|
+
|
73
|
+
# We use `end_with?` because `path` is a absolute path and the file paths
|
74
|
+
# of `config.scss_files` are relative ones
|
75
|
+
files.any? { |f| path_string.end_with?(f) }
|
66
76
|
end
|
67
77
|
end
|
68
78
|
end
|
data/lib/pronto/scss/version.rb
CHANGED
data/pronto-scss.gemspec
CHANGED
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
s.extra_rdoc_files = ['LICENSE', 'README.md']
|
35
35
|
s.require_paths = ['lib']
|
36
36
|
|
37
|
-
s.add_runtime_dependency('scss_lint', '~> 0.
|
37
|
+
s.add_runtime_dependency('scss_lint', '~> 0.45.0')
|
38
38
|
s.add_runtime_dependency('pronto', '~> 0.5.0')
|
39
39
|
s.add_development_dependency('rake', '~> 10.4')
|
40
40
|
s.add_development_dependency('rspec', '~> 3.3')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-scss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindaugas Mozūras
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scss_lint
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.45.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.45.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pronto
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|