From 28f747ebbbb8f5f997052c4aaeb34185b6af55ad Mon Sep 17 00:00:00 2001 From: Clinton Wolfe Date: Thu, 15 Aug 2019 17:50:38 -0400 Subject: [PATCH] Interpolation Signed-off-by: Clinton Wolfe --- lib/inspec/plugin/v2/loader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/inspec/plugin/v2/loader.rb b/lib/inspec/plugin/v2/loader.rb index b25d6679f..91c6bfcfe 100644 --- a/lib/inspec/plugin/v2/loader.rb +++ b/lib/inspec/plugin/v2/loader.rb @@ -274,7 +274,7 @@ module Inspec::Plugin::V2 def detect_system_plugins # Find the gemspec for inspec - inspec_gemspec = Gem::Specification.find_by_name("inspec", "=" + Inspec::VERSION) + inspec_gemspec = Gem::Specification.find_by_name("inspec", "=#{Inspec::VERSION}") # Make a RequestSet that represents the dependencies of inspec inspec_deps_request_set = Gem::RequestSet.new(*inspec_gemspec.dependencies)