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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bba708c8ebc0fde29c1a72db94b64f4a76051ff
4
- data.tar.gz: 5699fae3cf17e8093fa0293272c05da8ae5515b2
3
+ metadata.gz: 4703d81993d87a02065117cec1691a3c8d08cd0c
4
+ data.tar.gz: 3e058984c87538da7499aa164acc7a92257f3956
5
5
  SHA512:
6
- metadata.gz: e6b0c90eb33632e05b3d4e2fba7b33cefeb21e5e892c121dd494cb04b81355e5e90656034241911e7c11cfe6f810e244d6f0e1f43effb2974e4a24d1edb08f93
7
- data.tar.gz: efc7a158f339320150939031ef43b8ead5536763017c197c35011fcd651e7352444b6b129a0eb709efd7e53c7bd3e494d8cbe9ea72741b5a47851a2840182398
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
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module ScssVersion
3
- VERSION = '0.5.2'
3
+ VERSION = '0.5.3'
4
4
  end
5
5
  end
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.44.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.2
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-01-26 00:00:00.000000000 Z
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.44.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.44.0
26
+ version: 0.45.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pronto
29
29
  requirement: !ruby/object:Gem::Requirement