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

Add configuration option skip_rake_integration #1453

Merged
merged 1 commit into from May 27, 2021
Merged

Add configuration option skip_rake_integration #1453

merged 1 commit into from May 27, 2021

Conversation

westonganger
Copy link
Contributor

Add configuration option skip_rake_integration. As mentioned in #1378 (comment)

Copy link
Collaborator

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

sorry for the delay and thanks for the PR 🙏
just 2 minor changes then I think it'll be good to merge.
also, can you add a changelog entry for this?

@@ -429,4 +429,12 @@ class SentryConfigurationSample < Sentry::Configuration
expect(instance.var2). to eq 2
end
end

describe "#skip_rake_integration" do
it "returns true" do
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you add another one to confirm that its default is false

@@ -9,3 +9,10 @@
task :raise_exception do
1/0
end

task :raise_exception_without_rake_integration do
Sentry.init do |config|
Copy link
Collaborator

Choose a reason for hiding this comment

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

since the SDK is already initialized, this can be Sentry.configuration.skip_rake_integration = true

@st0012 st0012 added this to In progress in 4.x via automation May 27, 2021
@st0012 st0012 added this to the 4.5.0 milestone May 27, 2021
@st0012
Copy link
Collaborator

st0012 commented May 27, 2021

@westonganger actually, I'll cut a release today so I'll change them manually and make it in 4.5.0 as well 🙂

@st0012 st0012 merged commit b99d728 into getsentry:master May 27, 2021
4.x automation moved this from In progress to Done May 27, 2021
@st0012 st0012 mentioned this pull request May 27, 2021
st0012 added a commit that referenced this pull request May 27, 2021
* Address feedback

* Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
4.x
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants