pronto-jshint 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23ac2ba3f2c64bed9f26b74e11234848dc701a18
4
- data.tar.gz: 0b87b8e0ea475048ff43e0d8655cdaefd2cebea6
3
+ metadata.gz: e2abc83e71e1ef882c6197485f62c8f84ec6fe79
4
+ data.tar.gz: 30a6aa265490fb2913ae0398f6073380afa4a55a
5
5
  SHA512:
6
- metadata.gz: 2eacf1e7f25b0105e6291cc0b7d54fb73a51f361ce0a24756273af372aa93ea93a5a891c3a0f53808d7eeab10759e55da423d848381d20306c717350fb071f74
7
- data.tar.gz: 90a1d090701de5b35e221b9eda5298fa138a18b0edaca5fbebf2ac39487fae7b08714b752f096e4165ee2cd41e6834447c5dc58c34ceb8b8fd906fbe2b63ef45
6
+ metadata.gz: 9bdc359192d8efbbda2dda335de1e72803b2592f125af852573aeb9e8b0929fbfaf4bc7776abd98a512633dfc1728ea56635b08366758d1f3678fe6756284ca2
7
+ data.tar.gz: 6bc2a616e23c0858016f83085cfe1e336de86c802ef5e3e525af7a5205e16306f62c472b7e5ca2368d98f1e59d9b9e843317ccb446fce3e6a71153949677c4d9
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2015 Mindaugas Mozūras
3
+ Copyright (c) 2016 Mindaugas Mozūras
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -10,3 +10,7 @@ Pronto runner for [JSHint](http://www.jshint.com/), JavaScript code quality tool
10
10
  ## Prerequisites
11
11
 
12
12
  You'll need to install one of the runtimes supported by [ExecJS](https://github.com/sstephenson/execjs#execjs).
13
+
14
+ ## Configuration
15
+
16
+ Configuring JSHint via .jshintrc will work just fine with pronto-jshint.
data/lib/pronto/jshint.rb CHANGED
@@ -3,10 +3,10 @@ require 'jshintrb'
3
3
 
4
4
  module Pronto
5
5
  class JSHint < 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| js_file?(patch.new_file_full_path) }
11
11
  .map { |patch| inspect(patch) }
12
12
  .flatten.compact
@@ -29,7 +29,7 @@ module Pronto
29
29
  path = line.patch.delta.new_file[:path]
30
30
  level = :warning
31
31
 
32
- Message.new(path, line, level, offence['reason'])
32
+ Message.new(path, line, level, offence['reason'], nil, self.class)
33
33
  end
34
34
 
35
35
  def js_file?(path)
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module JSHintVersion
3
- VERSION = '0.5.0'
3
+ VERSION = '0.6.0'.freeze
4
4
  end
5
5
  end
@@ -32,9 +32,9 @@ Gem::Specification.new do |s|
32
32
  s.extra_rdoc_files = ['LICENSE', 'README.md']
33
33
  s.require_paths = ['lib']
34
34
 
35
- s.add_dependency('pronto', '~> 0.5.0')
35
+ s.add_dependency('pronto', '~> 0.6.0')
36
36
  s.add_dependency('jshintrb', '~> 0.3.0')
37
- s.add_development_dependency('rake', '~> 10.4')
38
- s.add_development_dependency('rspec', '~> 3.3')
37
+ s.add_development_dependency('rake', '~> 11.0')
38
+ s.add_development_dependency('rspec', '~> 3.4')
39
39
  s.add_development_dependency('rspec-its', '~> 1.2')
40
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-jshint
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
  - Mindaugas Mozūras
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2016-03-14 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.0
19
+ version: 0.6.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.5.0
26
+ version: 0.6.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jshintrb
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.4'
47
+ version: '11.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.4'
54
+ version: '11.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.3'
61
+ version: '3.4'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.3'
68
+ version: '3.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-its
71
71
  requirement: !ruby/object:Gem::Requirement