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

Address Ruby 2.8 #untaint deprecation warnings #166

Merged
merged 1 commit into from Aug 7, 2020

Conversation

composerinteralia
Copy link
Contributor

@composerinteralia composerinteralia commented Aug 6, 2020

Prior to this commit we were seeing errors when calling the deprecated
Object#untaint method on Ruby 2.8. The method is a no-op on Ruby 2.8.

dnsruby/config.rb:325: warning: Object#untaint is deprecated and will be removed in Ruby 3.2

We probably could remove untainting for older Ruby versions as well, but
it felt safer to preserve the current behavior in case someone is still
relying on it.

To see this change in action, we added ruby-head to the travis matrix,
but do not require those tests to pass for the build as a whole to pass.

See https://bugs.ruby-lang.org/issues/16131 for details on the
deprecation.

@coveralls
Copy link

coveralls commented Aug 6, 2020

Coverage Status

Coverage decreased (-0.02%) to 77.506% when pulling 454e0a6 on thoughtbot:ruby-2.7-untaint-warning into b9bd2c6 on alexdalitz:master.

@composerinteralia composerinteralia force-pushed the ruby-2.7-untaint-warning branch 2 times, most recently from c386516 to 7e8fbe4 Compare August 6, 2020 20:26
Prior to this commit we were seeing errors when calling the deprecated
Object#untaint method on Ruby 2.8. The method is a no-op on Ruby 2.8.

```rb
dnsruby/config.rb:325: warning: Object#untaint is deprecated and will be removed in Ruby 3.2
```

We probably could remove untainting for older Ruby versions as well, but
it felt safer to preserve the current behavior in case someone is still
relying on it.

To see this change in action, we added ruby-head to the travis matrix,
but do not require those tests to pass for the build as a whole to pass.

See https://bugs.ruby-lang.org/issues/16131 for details on the
deprecation.

Co-authored-by: Adam Hess <hparker@github.com>
@composerinteralia composerinteralia changed the title Address Ruby 2.7 #untaint deprecation warnings Address Ruby 2.8 #untaint deprecation warnings Aug 6, 2020
@alexdalitz
Copy link
Owner

Great - thanks!

@alexdalitz alexdalitz merged commit ad45170 into alexdalitz:master Aug 7, 2020
@composerinteralia composerinteralia deleted the ruby-2.7-untaint-warning branch August 7, 2020 13:14
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.

None yet

3 participants