Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use original callstack in the DeprecationsDetector::Collect class #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ChristianRimondi
Copy link
Member

No description provided.

@@ -3,7 +3,7 @@
module DeprecationsDetector
class Collect
def self.call(message = "", callstack = [], deprecation_horizon = nil, gem_name = nil)
DeprecationsDetector::Main.add_deprecation(message, caller)
DeprecationsDetector::Main.add_deprecation(message, callstack.map(&:to_s))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it work?
As far as I remember the callstack is filtered out here, leaving just the files inside the root_path.

@@ -9,6 +9,10 @@ def initialize(label)
end

def reverse
deprecated_reverse
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind deprecating reverse?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants