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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5096702c4eed454f36ef167621fab27622305dba
4
- data.tar.gz: f6d1752eb099285bca59a35b55f8f94ce57043d7
3
+ metadata.gz: 3a5449d1d5521be7a5d3847d9f3a338e7d857523
4
+ data.tar.gz: b7fc5f48623734f0f24d364c2b9e4f8d37c9721b
5
5
  SHA512:
6
- metadata.gz: d1f6dd0cf455cbd459c049f2f0fd2ae78d761a9f1d035a701462e6368a540e78c25b912f954b04039a009f79e0d1fec72515636475f41455a5a186d35b2ec5b7
7
- data.tar.gz: d18080c9bc27905fc9068680b4ea277546534b9ddb07d90ce3f22fcc5344e619969e1d4b761ea55d94238b6845f2e47be8ae2972f7c3fb83c9aee614299ff40b
6
+ metadata.gz: c3bc41562d6d5ed044e39950abf79718c0f22545fec3109963e6f0137e545ab8abdf5147ca228e6ace14401fdf0243c7a888ac7dcf5fff68050ac9c81084a5c2
7
+ data.tar.gz: a4c6fabb1967e96242f083945b1e3f885a25a20894c776a121720ea771b5db0b91b43f6f4e8e0df82466f2be4f3c758e0651116a3a0a1f686bb0c5a993d6f3e1
@@ -8,7 +8,7 @@ module Pronto
8
8
 
9
9
  if files.any?
10
10
  files_hash =
11
- SCSSLint::FileFinder.new(config).find(files).map do |path|
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(config)
22
+ @runner ||= SCSSLint::Runner.new(scss_config)
23
23
  end
24
24
 
25
- def config
26
- @config ||= begin
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 = config.scss_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 `config.scss_files` are relative ones
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
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module ScssVersion
3
- VERSION = '0.9.0'.freeze
3
+ VERSION = '0.9.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-scss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindaugas Mozūras