pronto-coffeelint 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pronto/coffeelint.rb +4 -4
- data/lib/pronto/coffeelint/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd6e121499953a4bb604e46b12005b91bd3f63f2
|
4
|
+
data.tar.gz: 5592de80c6f51b69575c09a5aa6544482c17f4a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 711da0cb0a6ef8d10e9567c86e90d7d1c8776a3f4a0be189daaf75986831cb0f3bdbe0f04abf3c6f15b05c14fbdaa55861664d2eea0181522b96f819397d6c11
|
7
|
+
data.tar.gz: bc32bf57c57c5b1b129ca4ac5b2994de8bb11056df26ed68477a5f2fb58df2dddfe43d0bbf7e55b1d126a8cb887da665626f6ac949ebeefb2f64f05db2e45bab
|
data/lib/pronto/coffeelint.rb
CHANGED
@@ -3,10 +3,10 @@ require 'coffeelint'
|
|
3
3
|
|
4
4
|
module Pronto
|
5
5
|
class Coffeelint < Runner
|
6
|
-
def run
|
7
|
-
return [] unless patches
|
6
|
+
def run
|
7
|
+
return [] unless @patches
|
8
8
|
|
9
|
-
patches.select { |patch| patch.additions > 0 }
|
9
|
+
@patches.select { |patch| patch.additions > 0 }
|
10
10
|
.select { |patch| coffee_file?(patch.new_file_full_path) }
|
11
11
|
.map { |patch| inspect(patch) }
|
12
12
|
.flatten.compact
|
@@ -31,7 +31,7 @@ module Pronto
|
|
31
31
|
'fatal' => :fatal
|
32
32
|
}[offence['level']]
|
33
33
|
|
34
|
-
Message.new(path, line, level, offence['message'])
|
34
|
+
Message.new(path, line, level, offence['message'], nil, self.class)
|
35
35
|
end
|
36
36
|
|
37
37
|
def coffee_file?(path)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-coffeelint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Siebert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pronto
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.6'
|
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.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: coffeelint
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: 1.3.6
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.5.1
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Pronto runner for Coffeelint, CoffeeScript code quality tool
|