pronto-rubocop 0.5.3 → 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/rubocop.rb +6 -4
- data/lib/pronto/rubocop/version.rb +1 -1
- data/pronto-rubocop.gemspec +4 -4
- metadata +16 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0f544cac5e204fb00c4feee4fae06cce29f89f4
|
4
|
+
data.tar.gz: ca678906d5c1f4b08f96c55601b01b6f0d0077a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e3be8855f96dd2075b4176a677559432113e79ca95d3b773b5b6780e916d1982039dcf5cdec377412de4d33bf3f33a90eb350ba727a14a17fb058066964d590
|
7
|
+
data.tar.gz: c773ea49f4d81da7c772b8e18ee4cd5bcc34c25b2fed30b1cc82410e5600e3d75c1fa0900dccca4a667bbd9157f28ed9ca1e2cc1f9a19f7a66318a74b6c81043
|
data/lib/pronto/rubocop.rb
CHANGED
@@ -3,15 +3,17 @@ require 'rubocop'
|
|
3
3
|
|
4
4
|
module Pronto
|
5
5
|
class Rubocop < Runner
|
6
|
-
def initialize
|
6
|
+
def initialize(_, _)
|
7
|
+
super
|
8
|
+
|
7
9
|
@config_store = ::RuboCop::ConfigStore.new
|
8
10
|
@inspector = ::RuboCop::Runner.new({}, @config_store)
|
9
11
|
end
|
10
12
|
|
11
|
-
def run
|
12
|
-
return [] unless patches
|
13
|
+
def run
|
14
|
+
return [] unless @patches
|
13
15
|
|
14
|
-
patches.select { |patch| valid_patch?(patch) }
|
16
|
+
@patches.select { |patch| valid_patch?(patch) }
|
15
17
|
.map { |patch| inspect(patch) }
|
16
18
|
.flatten.compact
|
17
19
|
end
|
data/pronto-rubocop.gemspec
CHANGED
@@ -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_runtime_dependency('rubocop', '~> 0.
|
36
|
-
s.add_runtime_dependency('pronto', '~> 0.
|
37
|
-
s.add_development_dependency('rake', '~>
|
38
|
-
s.add_development_dependency('rspec', '~> 3.
|
35
|
+
s.add_runtime_dependency('rubocop', '~> 0.38', '>= 0.35.0')
|
36
|
+
s.add_runtime_dependency('pronto', '~> 0.6.0')
|
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-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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: 2016-
|
11
|
+
date: 2016-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,56 +16,62 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.38'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.35.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
29
|
+
version: '0.38'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.35.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: pronto
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
39
|
+
version: 0.6.0
|
34
40
|
type: :runtime
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
44
|
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
46
|
+
version: 0.6.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: rake
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
53
|
+
version: '11.0'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
60
|
+
version: '11.0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rspec
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
67
|
+
version: '3.4'
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
74
|
+
version: '3.4'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: rspec-its
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|