pronto-rails_best_practices 0.5.1 → 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: ab69bba09245d870c9dfafb725934e04559af7de
4
- data.tar.gz: 0082b0cfb1d134db47d9a8a7529c0f11d33fbc33
3
+ metadata.gz: aeadb320da9197ff1b2a9e710de277dd5e333d50
4
+ data.tar.gz: 4f2dc3bcc9af630e1773945579751050e3703e37
5
5
  SHA512:
6
- metadata.gz: eccb3e4568922c8f7020090e1c93a6381914d02ec8a18fad125733dcf8330d26419e707403ae5ba7a64a3e5ea1b1961f80615b3095a87d86df3129debc9d320a
7
- data.tar.gz: f729be4610938441c386674537cbba6429d4c30dc345092e6627efae935e2a48e439bc417d255c523f3f0ee76417c5b5127ab99aee00d9886f84ce0510edb7af
6
+ metadata.gz: e785af7a591834cda72aa137348645527ba4dc218c60975b4c1791eb33fc0af713d9fef358f113d8a63c9585171f19f520c5fa6df8eee12b652252c554983b4d
7
+ data.tar.gz: cb99182ecc4adc12f2216c20f374c27332943771ffdbc503b02e3138d3e7ca31822eee6cfdb6c53cfd8feefccc3808cb13554f1160edc6ce2a7bed61bc15b4f8
@@ -3,10 +3,10 @@ require 'rails_best_practices'
3
3
 
4
4
  module Pronto
5
5
  class RailsBestPractices < Runner
6
- def run(patches, _)
7
- return [] unless patches
6
+ def run
7
+ return [] unless @patches
8
8
 
9
- patches_with_additions = patches.select { |patch| patch.additions > 0 }
9
+ patches_with_additions = @patches.select { |patch| patch.additions > 0 }
10
10
 
11
11
  files = patches_with_additions.map do |patch|
12
12
  Regexp.new(patch.new_file_full_path.to_s)
@@ -38,7 +38,7 @@ module Pronto
38
38
 
39
39
  def new_message(line, error)
40
40
  Message.new(line.patch.delta.new_file[:path], line, :warning,
41
- error.message.capitalize)
41
+ error.message.capitalize, nil, self.class)
42
42
  end
43
43
 
44
44
  def patch_for_error(patches, error)
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module RailsBestPracticesVersion
3
- VERSION = '0.5.1'.freeze
3
+ VERSION = '0.6.0'.freeze
4
4
  end
5
5
  end
@@ -34,9 +34,9 @@ Gem::Specification.new do |s|
34
34
  s.extra_rdoc_files = ['LICENSE', 'README.md']
35
35
  s.require_paths = ['lib']
36
36
 
37
- s.add_dependency('pronto', '~> 0.5.0')
38
- s.add_dependency('rails_best_practices', '~> 1.16.0')
39
- s.add_development_dependency('rake', '~> 10.4')
40
- s.add_development_dependency('rspec', '~> 3.3')
37
+ s.add_dependency('pronto', '~> 0.6.0')
38
+ s.add_dependency('rails_best_practices', '~> 1.16', '>= 1.15.0')
39
+ s.add_development_dependency('rake', '~> 11.0')
40
+ s.add_development_dependency('rspec', '~> 3.4')
41
41
  s.add_development_dependency('rspec-its', '~> 1.2')
42
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-rails_best_practices
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
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-03-01 00:00:00.000000000 Z
11
+ date: 2016-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto
@@ -16,56 +16,62 @@ 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: rails_best_practices
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.16.0
33
+ version: '1.16'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 1.15.0
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
41
  - - "~>"
39
42
  - !ruby/object:Gem::Version
40
- version: 1.16.0
43
+ version: '1.16'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 1.15.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: '10.4'
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: '10.4'
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.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.3'
74
+ version: '3.4'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: rspec-its
71
77
  requirement: !ruby/object:Gem::Requirement