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

Ensures ActiveSupport is required #50

Merged
merged 1 commit into from
Mar 7, 2022
Merged

Conversation

Schwad
Copy link
Contributor

@Schwad Schwad commented Oct 15, 2020

When using the toolkit outside of Rails against MiniTest users will
receive the following error:

deprecation_toolkit/lib/deprecation_toolkit.rb:20:in
`add_notify_behavior': uninitialized constant
ActiveSupport::Deprecation (NameError)

This will raise even when not using ActiveSupport::Deprecation (i.e.
warn 'Deprecated: this is my deprecation') as all deprecations are
then passed through ActiveSupport::Deprecation in the gem.

This PR requires the ActiveSupport dependency if not already defined to
cover off these cases.

Signed-off-by: Nick Schwaderer [email protected]

@Schwad
Copy link
Contributor Author

Schwad commented Oct 20, 2020

To me it appears that the rubocop complaints might be from an upstream inheritance'd issue? 🤔

When using the toolkit outside of Rails against MiniTest users will
receive the following error:

```
deprecation_toolkit/lib/deprecation_toolkit.rb:20:in
`add_notify_behavior': uninitialized constant
ActiveSupport::Deprecation (NameError)
```

This will raise even when not using `ActiveSupport::Deprecation` (i.e.
`warn 'Deprecated: this is my deprecation'`) as all deprecations are
then passed through `ActiveSupport::Deprecation` in the gem.

This PR requires the ActiveSupport dependency if not already defined to
cover off these cases.

Signed-off-by: Nick Schwaderer <[email protected]>
@rafaelfranca rafaelfranca merged commit 0bfe378 into Shopify:master Mar 7, 2022
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems March 16, 2022 22:06 Inactive
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