pronto-brakeman 0.11.1 → 0.11.2

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
  SHA256:
3
- metadata.gz: cab70317e2e7947ea734fd71d2068ce514b9c9cbe5abafd31c0afd47f1dfeb8c
4
- data.tar.gz: 69b0a138c4db8c02fd51bf5d55ac311e21b4dc153e8d200f6d150b53629aeb75
3
+ metadata.gz: 9675b2199073a2d7c5a699566908e328857df5b8436883a4ba0e3cd13cd2a21b
4
+ data.tar.gz: 968a3ca4b5c61613b7fc332bf2d6392dbd0c2d8d348508179305e3c0f49ce34a
5
5
  SHA512:
6
- metadata.gz: 979f1c9c6ee6dd53b12334e38fb83fd81b203f0930dd7645a07d255de7e25dab31d43468273511b08d913e59fb80b66e8d5842537e90efb09ea04d674369cd10
7
- data.tar.gz: 1de572cc71827b47ff58c376a52f0c585ef185540d7ec3c7e21becaacc7d73e61e725efc71894fb1ff2cd983c24fb294522c90955759534b004e7683c0e97776
6
+ metadata.gz: 272d5ccaabbfaa868d78d42fc95327206af72906c68f8f0ad0bee48e038a400647652ba027b9632c54c00943c7f5d093000ac9ce66170a15ae49960d95bf852b
7
+ data.tar.gz: 635580663ba6f66456e903e17a4f0acd1bb552e87edd382f15a3c687730d0e5a74a08a591de3bfbd61d0cbb939bf5efa74045ca90daafcd1feb1bd04973fd831
@@ -11,9 +11,10 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby: ['2.5', '2.6', '2.7', '3.0']
14
+ ruby: ['2.5', '2.6', '2.7', '3.0', '3.1', '3.2']
15
+ fail-fast: false
15
16
  steps:
16
- - uses: actions/checkout@v2
17
+ - uses: actions/checkout@v3
17
18
  with:
18
19
  fetch-depth: 0 # required for "not a rails app" spec
19
20
  - uses: ruby/setup-ruby@v1
data/README.md CHANGED
@@ -12,13 +12,23 @@ Brakeman [Confidence](https://github.com/presidentbeef/brakeman#confidence-level
12
12
  messages generated by Pronto. High confidence maps to fatal, medium confidence maps to warning, and low confidence maps
13
13
  to info.
14
14
 
15
- ## Run all checks
16
-
15
+ # Options
17
16
  Brakeman also includes some optional checks and by setting the following in your `.pronto.yml` you can run every check included in the gem:
18
17
 
18
+ ## Run all checks
19
+
19
20
  ```yaml
20
21
  brakeman:
21
22
  run_all_checks: true
22
23
  ```
23
24
 
24
25
  (This is the equivalent of running `brakeman -A` on the command line.)
26
+
27
+ ## Ignore file
28
+
29
+ ```yaml
30
+ brakeman:
31
+ ignore_file: '.brakeman'
32
+ ```
33
+
34
+ (This is the equivalent of running `brakeman -i IGNOREFILE` on the command line.)
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module BrakemanVersion
3
- VERSION = '0.11.1'.freeze
3
+ VERSION = '0.11.2'.freeze
4
4
  end
5
5
  end
@@ -14,7 +14,8 @@ module Pronto
14
14
  output = ::Brakeman.run(app_path: repo_path,
15
15
  output_formats: [:to_s],
16
16
  only_files: files,
17
- run_all_checks: run_all_checks?)
17
+ run_all_checks: run_all_checks?,
18
+ ignore_file: ignore_file)
18
19
  messages_for(patches, output).compact
19
20
  rescue ::Brakeman::NoApplication
20
21
  []
@@ -61,6 +62,10 @@ module Pronto
61
62
  pronto_brakeman_config['run_all_checks']
62
63
  end
63
64
 
65
+ def ignore_file
66
+ pronto_brakeman_config['ignore_file']
67
+ end
68
+
64
69
  def pronto_brakeman_config
65
70
  pronto_brakeman_config ||= Pronto::ConfigFile.new.to_h['brakeman'] || {}
66
71
  end
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.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindaugas Mozūras
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-09 00:00:00.000000000 Z
11
+ date: 2023-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.2'
83
- description:
83
+ description:
84
84
  email: mindaugas.mozuras@gmail.com
85
85
  executables: []
86
86
  extensions: []
@@ -99,7 +99,7 @@ homepage: http://github.com/mmozuras/pronto-brakeman
99
99
  licenses:
100
100
  - MIT
101
101
  metadata: {}
102
- post_install_message:
102
+ post_install_message:
103
103
  rdoc_options: []
104
104
  require_paths:
105
105
  - lib
@@ -114,8 +114,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
- rubygems_version: 3.2.5
118
- signing_key:
117
+ rubygems_version: 3.0.9
118
+ signing_key:
119
119
  specification_version: 4
120
120
  summary: Pronto runner for Brakeman, security vulnerability scanner for RoR
121
121
  test_files: []