lib/raven/linecache.rb in sentry-raven-1.2.3 vs lib/raven/linecache.rb in sentry-raven-2.0.0

- old
+ new

@@ -1,15 +1,10 @@ -# A much simpler source line cacher because linecache sucks at platform compat - module Raven class LineCache class << self - # TODO: a constant isn't appropriate here, refactor - # also would there be threading bugs essentially using this as a class - # variable? CACHE = {} # rubocop:disable Style/MutableConstant - def is_valid_file(path) + def valid_file?(path) lines = getlines(path) !lines.nil? end def getlines(path)