brakeman 4.0.0 → 4.0.1.pre1

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: e6ab5a70e52f407d8cf72fa20f488b2d29d69fa1
4
- data.tar.gz: c741b82cef61f90e2fa335e7abcab176305bb774
3
+ metadata.gz: bd07136c0bccd241798879badebfd1e124e084b9
4
+ data.tar.gz: 6fa9fab54237b812245c30f0e1a01fb1a8cb2d55
5
5
  SHA512:
6
- metadata.gz: a0040375401d198b0457223a0918a954cdbb14b729aa72492219ce5a2540b2b6de3a1c64712914416a6a68f19f4c0031463ef1c433ec2ee1dbae9cc96a4deb03
7
- data.tar.gz: 692c60359fc83b6eec8e2b5f7f5bdb845e7224b4f7762b4032d34f49fcc6589cedb89cb8a0b8b4cb6d67789cc3c6a290509793764fa63c205e7ba8470738f5cd
6
+ metadata.gz: 0a58433d0545dc300589761d6bf1289363cac0a030a269f3ce6d6bb0fac7c1304de8e167c73531fd1e14769159d8c4bbff0e1f2901341ac5bb64e086d66120a5
7
+ data.tar.gz: d2c65ceea75b3faaaf101eb33e6fdfa33c8f324432df3f4f711c734ca3c63651a3930fbec5bfffa25399d7ad7ec7416222b8bde1071c214e459a7f889e721a8d
@@ -408,7 +408,11 @@ module Brakeman
408
408
  private_class_method :write_report_to_formats
409
409
 
410
410
  def self.page_output text
411
- if system("which less")
411
+ ci = ENV["CI"]
412
+
413
+ if ci.is_a? String and ci.downcase == "true"
414
+ puts text
415
+ elsif system("which less")
412
416
  # Adapted from https://github.com/piotrmurach/tty-pager/
413
417
  write_io = open("|less -R", 'w')
414
418
  pid = write_io.pid
@@ -421,7 +425,7 @@ module Brakeman
421
425
  load_brakeman_dependency 'highline'
422
426
  h = ::HighLine.new
423
427
  h.page_at = :auto
424
- h.say tracker.report.format(output_formats.first)
428
+ h.say text
425
429
  end
426
430
  rescue Errno::ECHILD
427
431
  # on jruby 9x waiting on pid raises (per tty-pager)
@@ -429,7 +433,7 @@ module Brakeman
429
433
  rescue => e
430
434
  warn "[Error] #{e}"
431
435
  warn "[Error] Could not use pager. Set --no-pager to avoid this issue."
432
- puts tracker.report.format(output_formats.first)
436
+ puts text
433
437
  end
434
438
 
435
439
  #Rescan a subset of files in a Rails application.
@@ -1,3 +1,3 @@
1
1
  module Brakeman
2
- Version = "4.0.0"
2
+ Version = "4.0.1.pre1"
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: 4.0.0
4
+ version: 4.0.1.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Collins
@@ -1388,7 +1388,8 @@ homepage: http://brakemanscanner.org
1388
1388
  licenses:
1389
1389
  - MIT
1390
1390
  metadata: {}
1391
- post_install_message:
1391
+ post_install_message: 'Note Brakeman 4.0 has important changes that may affect you.
1392
+ Please see our blog post for details: https://brakemanscanner.org/blog/2017/09/25/brakeman-4-dot-0-released/'
1392
1393
  rdoc_options: []
1393
1394
  require_paths:
1394
1395
  - lib
@@ -1399,9 +1400,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1399
1400
  version: '0'
1400
1401
  required_rubygems_version: !ruby/object:Gem::Requirement
1401
1402
  requirements:
1402
- - - ">="
1403
+ - - ">"
1403
1404
  - !ruby/object:Gem::Version
1404
- version: '0'
1405
+ version: 1.3.1
1405
1406
  requirements: []
1406
1407
  rubyforge_project:
1407
1408
  rubygems_version: 2.4.8