pronto-brakeman 0.1.0 → 0.1.1

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: 8a55284d7443c1cbaf3735b465376e4d23bdab60
4
- data.tar.gz: 6b2fffb044c8760f08939e84150d4cfea6de145c
3
+ metadata.gz: ad7ba2ec7f929b66d58726e1eb993295e9ee9589
4
+ data.tar.gz: de0d54bddb0c4f3304b312859b3998b2fce6c595
5
5
  SHA512:
6
- metadata.gz: e9daf5cb3325ce8ed826e16da621c5849fa3db98fb397abefae1d968eb71458373823aafb3a66865632d163df6cd5fb0de29e7c77b3893f39548cf3d5bf22c5b
7
- data.tar.gz: 2aec90714923c89dc643fe1e87637fba03145eaed1d873eb184279bcb3bfe9c312973ddf05831193cf406302d28b21affcb3d33a84e06752aaec958d73544550
6
+ metadata.gz: 7e579753a9e594aa5f3619a01d9758e492bfc438d9bc0dd37c3de3ff9ad9e4d0cf9223f74f96006a9fa4d84564c5fd493a3a7b03985af01632ab8152d258054a
7
+ data.tar.gz: eda5fd130ce90457f1c0207e66265ce1eea1aca8add0579169c32f934ff7e4a0c63b278930e76980b0a5c132031307b3fe0f08948353b1bcf71d20f5dd783ac0
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module BrakemanVersion
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
@@ -27,11 +27,15 @@ module Pronto
27
27
  output.checks.all_warnings.each do |warning|
28
28
  patch = patch_for_warning(ruby_patches, warning)
29
29
 
30
- line = patch.added_lines.select do |added_line|
31
- added_line.new_lineno == warning.line
32
- end.first
33
-
34
- result << new_warning_message(line, warning) if line
30
+ if patch
31
+ line = patch.added_lines.select do |added_line|
32
+ added_line.new_lineno == warning.line
33
+ end.first
34
+
35
+ result << new_warning_message(line, warning) if line
36
+ else
37
+ puts "Could not detect patch for #{warning.file}:#{warning.message}"
38
+ end
35
39
  end
36
40
 
37
41
  result
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-brakeman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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: 2013-10-07 00:00:00.000000000 Z
11
+ date: 2013-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto
@@ -96,9 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: 1.3.6
97
97
  requirements: []
98
98
  rubyforge_project:
99
- rubygems_version: 2.0.7
99
+ rubygems_version: 2.0.6
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Pronto runner for Brakeman, security vulnerability scanner for RoR
103
103
  test_files: []
104
- has_rdoc: