diff options
author | Tim Smith <tsmith84@gmail.com> | 2019-12-20 16:34:35 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2019-12-20 16:34:35 -0800 |
commit | 94f1472cd73503c6cd7ddf8af87d902bdc00b0ee (patch) | |
tree | 8eeb8b043a17d021c30e7b9da2fb654fb4768a99 | |
parent | cacf2ec72ca4f07f60a6ea97abd287a754d635ac (diff) | |
download | wmi-lite-relative.tar.gz |
Substitute require for require_relativerelative
require_relative is significantly faster and should be used when available.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/wmi-lite.rb | 2 | ||||
-rw-r--r-- | lib/wmi-lite/wmi.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/wmi-lite.rb b/lib/wmi-lite.rb index 8c94317..e9dc829 100644 --- a/lib/wmi-lite.rb +++ b/lib/wmi-lite.rb @@ -16,5 +16,5 @@ # limitations under the License. # -require 'wmi-lite/wmi' +require_relative 'wmi-lite/wmi' diff --git a/lib/wmi-lite/wmi.rb b/lib/wmi-lite/wmi.rb index 9f7c07c..d257401 100644 --- a/lib/wmi-lite/wmi.rb +++ b/lib/wmi-lite/wmi.rb @@ -17,8 +17,8 @@ # require 'win32ole' if RUBY_PLATFORM =~ /mswin|mingw32|windows/ -require 'wmi-lite/wmi_instance' -require 'wmi-lite/wmi_exception' +require_relative 'wmi_instance' +require_relative 'wmi_exception' module WmiLite class Wmi |