pronto-scss 0.4.4 → 0.4.5

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: c48d6aaf18b278200e6805781e07c472ca9d17d0
4
- data.tar.gz: e369725d6ca2dd0b2c78f5a0c5b2f6c3c99b6337
3
+ metadata.gz: 519ba862568be95cc76cb7122cd7ce315c63ddc3
4
+ data.tar.gz: 7ab89268f3f435af6b9455ca2c9f49e44aa3d839
5
5
  SHA512:
6
- metadata.gz: 8aed8ae4b7e68416a8bcdf0dc00be2e30c914a33f4c05f563cac9f838a28d79d01d901164d15f0c93ced96c1f957dc976abaf5bd43c5697be2d288b6da61640c
7
- data.tar.gz: af4a0436300a8542a06fcc53e9979b4395e2d6c8c79e7acd8c2df972cd33e1041284e12409f527a7fd96c01de1fee156288bb900784eef61b0fb3b34ecae38da
6
+ metadata.gz: 290b0965972321ff04fd0c14c0327bdc5e7a80dbdc365c2aa683ededeaaee23d074892e55ee0a79e55fa7ecca1ae4b08e6f742431f69c11a1f26ac7b89decf52
7
+ data.tar.gz: 51fe744a35d08c7bd11338bcd68872fd660024f8197cc7dd605687ee4af20938f3633e0b562cd6c54ebc0cf632105d1c4d024fd1e297d3094345fa438e5a501b
data/lib/pronto/scss.rb CHANGED
@@ -5,8 +5,11 @@ module Pronto
5
5
  class Scss < Runner
6
6
  def initialize
7
7
  file_name = SCSSLint::Config::FILE_NAME
8
- config = File.exists?(file_name) ? SCSSLint::Config.load(file_name)
9
- : SCSSLint::Config.default
8
+ config = if File.exist?(file_name)
9
+ SCSSLint::Config.load(file_name)
10
+ else
11
+ SCSSLint::Config.default
12
+ end
10
13
  @runner = SCSSLint::Runner.new(config)
11
14
  end
12
15
 
@@ -14,9 +17,9 @@ module Pronto
14
17
  return [] unless patches
15
18
 
16
19
  scss_patches = patches.select { |patch| patch.additions > 0 }
17
- .select { |patch| scss_file?(patch.new_file_full_path) }
20
+ .select { |patch| scss_file?(patch.new_file_full_path) }
18
21
 
19
- files = scss_patches.map { |patch| patch.new_file_full_path }
22
+ files = scss_patches.map(&:new_file_full_path)
20
23
 
21
24
  if files.any?
22
25
  @runner.run(files)
@@ -45,7 +48,8 @@ module Pronto
45
48
  end
46
49
 
47
50
  def new_message(line, lint)
48
- Message.new(line.patch.delta.new_file[:path], line, lint.severity, lint.description)
51
+ Message.new(line.patch.delta.new_file[:path], line,
52
+ lint.severity, lint.description)
49
53
  end
50
54
 
51
55
  def scss_file?(path)
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module ScssVersion
3
- VERSION = '0.4.4'
3
+ VERSION = '0.4.5'
4
4
  end
5
5
  end
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.4.4
4
+ version: 0.4.5
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: 2015-05-09 00:00:00.000000000 Z
11
+ date: 2015-05-30 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.38.0
19
+ version: 0.39.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.38.0
26
+ version: 0.39.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pronto
29
29
  requirement: !ruby/object:Gem::Requirement