In order to restore compatibility with Ruby 1.9, this change ensures the URI::HTTP object uri is converted to a string when passing as an argument to Net::HTTP.
Motivation and Context
Although we concede that Ruby 1.9 is way past EOL, sensu-plugin is expected to retain compatibility with Ruby 1.9 until sensu-plugin version 2.0 is released.
Closes #154
How Has This Been Tested?
Tested the change manually in REPL on Ruby 1.9.3-p551 and 2.3.1.
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have updated the Changelog following the conventions laid out on Keep A Changelog
Description
In order to restore compatibility with Ruby 1.9, this change ensures the URI::HTTP object
uri
is converted to a string when passing as an argument to Net::HTTP.Motivation and Context
Although we concede that Ruby 1.9 is way past EOL, sensu-plugin is expected to retain compatibility with Ruby 1.9 until sensu-plugin version 2.0 is released.
Closes #154
How Has This Been Tested?
Tested the change manually in REPL on Ruby 1.9.3-p551 and 2.3.1.
Types of changes
Checklist:
Known Caveats
None.