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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c832b4e3f033e2c7c2c73069ac1a84e3099b4d7f
4
- data.tar.gz: 9e476ed98544b16559d8d141ac271a43eff9d217
3
+ metadata.gz: 095e924e090dec80338d1e6cde7709b171ac1654
4
+ data.tar.gz: c80219fe9e4cc2c52616b22804ca093773632a9d
5
5
  SHA512:
6
- metadata.gz: 204fc41adbb75f0f0f67f2a0d888c72e188cd907a2a3a4f11ecafefd690c150163d7271313e2eb6c08d9f68db15655d5412a7633e61270ad6e16b5c3b509008d
7
- data.tar.gz: b81536ff00f0b5665069aa8528f6f77ef3b20bc1027fb213b6fb386c2376958b21745bbca49102af865cb6b72d95d754798f0ed330c66cc5def6898e54ed8132
6
+ metadata.gz: 9cc5edffa524758d8008508fdbed403c7ee66ca4adbaa1968683e2cea52a8ecefeb7d8f80848c348f0306ffa398367cac9732ae0ee758a40c45ce2475203ef3a
7
+ data.tar.gz: fd085bb1375006a950deed30efffc27cf321aef88c66b7dfa497c80310c92ada5f3e3eedb94958286a4e7a2f22dcd310a1b71085cdde3bdf8eb20c6a886c9129
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ # 3.6.1
2
+
3
+ * Fix error when using `--compare` (Sean Gransee)
4
+
1
5
  # 3.6.0
2
6
 
3
7
  * Avoid recursive Concerns
@@ -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
- #Return error code if --exit-on-error is used and errors were found
95
- if tracker.options[:exit_on_error] and tracker.errors.any?
96
- exit Brakeman::Errors_Found_Exit_Code
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
@@ -817,7 +817,6 @@ class RubyLexer
817
817
  when scan(/\\/) then # Backslash
818
818
  '\\'
819
819
  when scan(/n/) then # newline
820
- self.extra_lineno -= 1
821
820
  "\n"
822
821
  when scan(/t/) then # horizontal tab
823
822
  "\t"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Brakeman
2
- Version = "3.6.0"
2
+ Version = "3.6.1"
3
3
  end
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.0
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-22 00:00:00.000000000 Z
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