rapid7 / nexpose-client

DEPRECATED: Rapid7 Nexpose API client library written in Ruby
https://www.rapid7.com/
BSD 3-Clause "New" or "Revised" License
150 stars 103 forks source link

Updated for Ruby 2.4 Support #301

Closed twosevenzero closed 7 years ago

twosevenzero commented 7 years ago

Description

::Fixnum is deprecated in Ruby 2.4. Updated with kind_of?(Integer).

Motivation and Context

Just a minor update to stop warnings for deprecated features.

How Has This Been Tested?

Ported the changes from the rapid7/rex-mime project.

Types of changes

sgreen-r7 commented 7 years ago

@twosevenzero i'm fine with this, and routes to a handful of fixes/updates we need to include for Ruby2.4

I'm going to create a new branch to target and merge your PR into there.

Thanks again for this PR, and look forward to that branch removing any/most deprecation warnings.