Class: Brakeman::CheckEOLRuby

Inherits:
EOLCheck
  • Object
show all
Defined in:
lib/brakeman/checks/check_eol_ruby.rb

Constant Summary collapse

RUBY_EOL_DATES =
{
  ['0.0.0', '1.9.3'] => Date.new(2015, 2, 23),
  ['2.0.0', '2.0.99'] => Date.new(2016, 2, 24),
  ['2.1.0', '2.1.99'] => Date.new(2017, 3, 31),
  ['2.2.0', '2.2.99'] => Date.new(2018, 3, 31),
  ['2.3.0', '2.3.99'] => Date.new(2019, 3, 31),
  ['2.4.0', '2.4.99'] => Date.new(2020, 3, 31),
  ['2.5.0', '2.5.99'] => Date.new(2021, 3, 31),
  ['2.6.0', '2.6.99'] => Date.new(2022, 3, 31),
  ['2.7.0', '2.7.99'] => Date.new(2023, 3, 31),
  ['3.0.0', '3.0.99'] => Date.new(2024, 3, 31),
  ['3.1.0', '3.1.99'] => Date.new(2025, 3, 31),
  ['3.2.0', '3.2.99'] => Date.new(2026, 3, 31),
  ['3.3.0', '3.3.99'] => Date.new(2027, 3, 31),
  ['3.4.0', '3.4.99'] => Date.new(2028, 3, 31),
}

Instance Method Summary collapse

Instance Method Details

#run_checkObject



8
9
10
11
12
# File 'lib/brakeman/checks/check_eol_ruby.rb', line 8

def run_check
  return unless tracker.config.ruby_version

  check_eol_version :ruby, RUBY_EOL_DATES
end