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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e8402d4004732a5d5e8d657a785f8190d19b70d
4
- data.tar.gz: fb7541e8a44444cb0f35a9316d83b5a6507b9618
3
+ metadata.gz: 477903a2e4d6341012d921dfc51e7f196005c1c2
4
+ data.tar.gz: 8fd1688caef59dd31eec7d13981eee1ed883904c
5
5
  SHA512:
6
- metadata.gz: 6f6a86716be550e0ccc2db8914826d83b1f1958b610c4888780e87bc78a6e5090a1d9149a2ec56e9f57dd5beaa3985cc551d20f7adfd7d609e16be5f79175045
7
- data.tar.gz: e2ed4b8b6b4c573092a77cb4cc3181f9732dc9b3325a294a71c8f88754a418cd3d398ae16bfb937001088b98b751d7140a72ae9b6e7d300e4bafd792a69ca159
6
+ metadata.gz: 20939031c863efa01e78e2918bcad68aee71595d539dcfdac1ff3460ea8d250e585bf9e66359ca98f8ae63fe8bb25f4847871f1fe6293ea940fc4b2117cfba72
7
+ data.tar.gz: 32d78b4ed796c426e7b2aeae9aa47451bb071268571a52d4fc551c14c8608d2212b0459b5487eee69cbd8cd60feaa2e8a7ab31a6a4bcb6687a1df4ab8019bc1f
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module BrakemanVersion
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
@@ -7,12 +7,12 @@ module Pronto
7
7
  return [] unless patches
8
8
 
9
9
  ruby_patches = patches.select { |patch| patch.additions > 0 }
10
- .select { |patch| ruby_file?(patch.new_file_full_path) }
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.checks.all_warnings.map do |warning|
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.0
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-01-26 00:00:00.000000000 Z
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.2.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: