lib/roxml/extensions/deprecation.rb in roxml-2.4.3 vs lib/roxml/extensions/deprecation.rb in roxml-2.5.0
- old
+ new
@@ -4,9 +4,14 @@
require 'active_support/version'
module ActiveSupport # :nodoc:all
module Deprecation
class << self
+ def warn_with_internals_exclusion(message = nil, callstack = caller)
+ warn_without_internals_exclusion(message, callstack.reject {|line| line =~ /\/roxml(-[\d\.]+)?\/lib\// })
+ end
+ alias_method_chain :warn, :internals_exclusion
+
if VERSION::MAJOR <= 2 && VERSION::MINOR <= 1
def deprecation_message(callstack, message = nil)
message ||= "You are using deprecated behavior which will be removed from the next major or minor release"
"DEPRECATION WARNING: #{message}. #{deprecation_caller_message(callstack)}"
end
\ No newline at end of file