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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4600e0a234c4dc318d6a1d1aeccd3cf1681d563a
4
- data.tar.gz: 3c221bcc8a1ddef4166159eec0ea1e5241f1476f
3
+ metadata.gz: fd6e121499953a4bb604e46b12005b91bd3f63f2
4
+ data.tar.gz: 5592de80c6f51b69575c09a5aa6544482c17f4a8
5
5
  SHA512:
6
- metadata.gz: 0fc214bc9c83c2c33884124f144249acdf134aabac70400820a287ca9785cbbb6ee43b53ebd035c8a476fd645977778868ddeb1d8aa7b5bbd14399abe882a4e5
7
- data.tar.gz: a554ea32d10a2d4647230bfb645347d4934786cadf3ed57f06e369a2aaaf00a587c28a543d423a18edb16b473d7ab4cc35ee3da7a49dda1e3fce26a957340fb9
6
+ metadata.gz: 711da0cb0a6ef8d10e9567c86e90d7d1c8776a3f4a0be189daaf75986831cb0f3bdbe0f04abf3c6f15b05c14fbdaa55861664d2eea0181522b96f819397d6c11
7
+ data.tar.gz: bc32bf57c57c5b1b129ca4ac5b2994de8bb11056df26ed68477a5f2fb58df2dddfe43d0bbf7e55b1d126a8cb887da665626f6ac949ebeefb2f64f05db2e45bab
@@ -3,10 +3,10 @@ require 'coffeelint'
3
3
 
4
4
  module Pronto
5
5
  class Coffeelint < Runner
6
- def run(patches, _)
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)
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module CoffeelintVersion
3
- VERSION = '0.5.0'
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
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.5.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-01-14 00:00:00.000000000 Z
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.5'
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.5'
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.4.5
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