lib/rollbar/rake.rb in rollbar-2.9.1 vs lib/rollbar/rake.rb in rollbar-2.10.0

- old
+ new

@@ -18,10 +18,12 @@ def self.skip_patch warn('[Rollbar] Rollbar is disabled for Rake tasks since your Rake version is under 0.9.x. Please upgrade to 0.9.x or higher.') end def self.patch? - major, minor, *_ = rake_version.split('.').map(&:to_i) + return false unless rake_version + + major, minor, = rake_version.split('.').map(&:to_i) major > 0 || major == 0 && minor > 8 end def self.rake_version