brakeman 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES +4 -0
- data/bin/brakeman +5 -4
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.4/TEAST +0 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.4/lib/ruby_lexer.rb +0 -1
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.4/test/test_ruby_parser.rb +0 -8
- data/lib/brakeman/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 095e924e090dec80338d1e6cde7709b171ac1654
|
4
|
+
data.tar.gz: c80219fe9e4cc2c52616b22804ca093773632a9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cc5edffa524758d8008508fdbed403c7ee66ca4adbaa1968683e2cea52a8ecefeb7d8f80848c348f0306ffa398367cac9732ae0ee758a40c45ce2475203ef3a
|
7
|
+
data.tar.gz: fd085bb1375006a950deed30efffc27cf321aef88c66b7dfa497c80310c92ada5f3e3eedb94958286a4e7a2f22dcd310a1b71085cdde3bdf8eb20c6a886c9129
|
data/CHANGES
CHANGED
data/bin/brakeman
CHANGED
@@ -89,12 +89,13 @@ begin
|
|
89
89
|
if tracker.options[:exit_on_warn] and not tracker.filtered_warnings.empty?
|
90
90
|
exit Brakeman::Warnings_Found_Exit_Code
|
91
91
|
end
|
92
|
-
end
|
93
92
|
|
94
|
-
|
95
|
-
|
96
|
-
|
93
|
+
#Return error code if --exit-on-error is used and errors were found
|
94
|
+
if tracker.options[:exit_on_error] and tracker.errors.any?
|
95
|
+
exit Brakeman::Errors_Found_Exit_Code
|
96
|
+
end
|
97
97
|
end
|
98
|
+
|
98
99
|
rescue Brakeman::NoApplication => e
|
99
100
|
warn e.message
|
100
101
|
exit Brakeman::No_App_Found_Exit_Code
|
File without changes
|
@@ -571,14 +571,6 @@ module TestRubyParserShared
|
|
571
571
|
assert_parse rb, pt
|
572
572
|
end
|
573
573
|
|
574
|
-
def test_str_newline_hash_line_number
|
575
|
-
rb = "\"\\n\\n\\n\\n#\"\n1"
|
576
|
-
pt = s(:block, s(:str, "\n\n\n\n#").line(1),
|
577
|
-
s(:lit, 1).line(2))
|
578
|
-
|
579
|
-
assert_parse rb, pt
|
580
|
-
end
|
581
|
-
|
582
574
|
def after_process_hook klass, node, data, input_name, output_name
|
583
575
|
assert_equal 1, @result.line, "should have proper line number"
|
584
576
|
end
|
data/lib/brakeman/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brakeman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Collins
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- brakeman-public_cert.pem
|
12
|
-
date: 2017-03-
|
12
|
+
date: 2017-03-24 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Brakeman detects security vulnerabilities in Ruby on Rails applications
|
15
15
|
via static analysis.
|
@@ -502,6 +502,7 @@ files:
|
|
502
502
|
- bundle/ruby/2.3.0/gems/ruby_parser-3.8.4/Manifest.txt
|
503
503
|
- bundle/ruby/2.3.0/gems/ruby_parser-3.8.4/README.rdoc
|
504
504
|
- bundle/ruby/2.3.0/gems/ruby_parser-3.8.4/Rakefile
|
505
|
+
- bundle/ruby/2.3.0/gems/ruby_parser-3.8.4/TEAST
|
505
506
|
- bundle/ruby/2.3.0/gems/ruby_parser-3.8.4/bin/ruby_parse
|
506
507
|
- bundle/ruby/2.3.0/gems/ruby_parser-3.8.4/bin/ruby_parse_extract_error
|
507
508
|
- bundle/ruby/2.3.0/gems/ruby_parser-3.8.4/compare/normalize.rb
|