lib/datadog_backup/deprecations.rb in datadog_backup-3.0.0 vs lib/datadog_backup/deprecations.rb in datadog_backup-3.1.0
- old
+ new
@@ -1,11 +1,10 @@
+# frozen_string_literal: true
-
module DatadogBackup
+ # Notify the user if they are using deprecated features.
module Deprecations
def self.check
- if RUBY_VERSION < '2.7'
- LOGGER.warn "ruby-#{RUBY_VERSION} is deprecated. Ruby 2.7 or higher will be required to use this gem after datadog_backup@v3"
- end
+ LOGGER.warn "ruby-#{RUBY_VERSION} is deprecated. Ruby 2.7 or higher will be required to use this gem after datadog_backup@v3" if RUBY_VERSION < '2.7'
end
end
-end
\ No newline at end of file
+end