lib/ruby_audit/database.rb in ruby_audit-1.0.0 vs lib/ruby_audit/database.rb in ruby_audit-1.0.1

- old
+ new

@@ -22,20 +22,9 @@ advisories_for(object.name, type) do |advisory| yield advisory if advisory.vulnerable?(object.version) end end - def stale - if File.directory?(USER_PATH) && - File.exist?(File.join(USER_PATH, '.git')) - ts = Time.parse( - `cd #{USER_PATH} && git log --date=iso8601 --pretty="%cd" -1`).utc - ts < (Date.today - 7).to_time - else - true - end - end - protected def each_advisory_path(&block) Dir.glob(File.join(@path, '{gems,libraries,rubies}', '*', '*.yml'), &block)