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 +4 -4
- data/lib/pronto/brakeman/version.rb +1 -1
- data/lib/pronto/brakeman.rb +9 -5
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad7ba2ec7f929b66d58726e1eb993295e9ee9589
|
4
|
+
data.tar.gz: de0d54bddb0c4f3304b312859b3998b2fce6c595
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e579753a9e594aa5f3619a01d9758e492bfc438d9bc0dd37c3de3ff9ad9e4d0cf9223f74f96006a9fa4d84564c5fd493a3a7b03985af01632ab8152d258054a
|
7
|
+
data.tar.gz: eda5fd130ce90457f1c0207e66265ce1eea1aca8add0579169c32f934ff7e4a0c63b278930e76980b0a5c132031307b3fe0f08948353b1bcf71d20f5dd783ac0
|
data/lib/pronto/brakeman.rb
CHANGED
@@ -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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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.
|
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-
|
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.
|
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:
|