diff --git a/lib/roxml/extensions/deprecation.rb b/lib/roxml/extensions/deprecation.rb
index <HASH>..<HASH> 100644
--- a/lib/roxml/extensions/deprecation.rb
+++ b/lib/roxml/extensions/deprecation.rb
@@ -7,7 +7,7 @@ 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.include?('/roxml/lib/')})
+        warn_without_internals_exclusion(message, callstack.reject {|line| line =~  /\/roxml(-[\d\.]+)?\/lib\// })
       end
       alias_method_chain :warn, :internals_exclusion
Keep roxml paths out of deprecation warnings for installed gems as well