pronto-brakeman 0.4.0 → 0.4.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 +3 -3
- 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: 477903a2e4d6341012d921dfc51e7f196005c1c2
|
4
|
+
data.tar.gz: 8fd1688caef59dd31eec7d13981eee1ed883904c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20939031c863efa01e78e2918bcad68aee71595d539dcfdac1ff3460ea8d250e585bf9e66359ca98f8ae63fe8bb25f4847871f1fe6293ea940fc4b2117cfba72
|
7
|
+
data.tar.gz: 32d78b4ed796c426e7b2aeae9aa47451bb071268571a52d4fc551c14c8608d2212b0459b5487eee69cbd8cd60feaa2e8a7ab31a6a4bcb6687a1df4ab8019bc1f
|
data/lib/pronto/brakeman.rb
CHANGED
@@ -7,12 +7,12 @@ module Pronto
|
|
7
7
|
return [] unless patches
|
8
8
|
|
9
9
|
ruby_patches = patches.select { |patch| patch.additions > 0 }
|
10
|
-
|
10
|
+
.select { |patch| ruby_file?(patch.new_file_full_path) }
|
11
11
|
|
12
12
|
files = ruby_patches.map { |patch| patch.new_file_full_path.to_s }
|
13
13
|
|
14
14
|
if files.any?
|
15
|
-
output = ::Brakeman.run(app_path:
|
15
|
+
output = ::Brakeman.run(app_path: ruby_patches.first.repo.path,
|
16
16
|
output_formats: [:to_s],
|
17
17
|
only_files: files)
|
18
18
|
messages_for(ruby_patches, output).compact
|
@@ -22,7 +22,7 @@ module Pronto
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def messages_for(ruby_patches, output)
|
25
|
-
output.
|
25
|
+
output.filtered_warnings.map do |warning|
|
26
26
|
patch = patch_for_warning(ruby_patches, warning)
|
27
27
|
|
28
28
|
if patch
|
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.4.
|
4
|
+
version: 0.4.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: 2015-
|
11
|
+
date: 2015-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pronto
|
@@ -110,9 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: 1.3.6
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.4.5
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Pronto runner for Brakeman, security vulnerability scanner for RoR
|
117
117
|
test_files: []
|
118
|
-
has_rdoc:
|