lib/chef-cli/policyfile/source_uri.rb in chef-cli-3.0.31 vs lib/chef-cli/policyfile/source_uri.rb in chef-cli-3.0.32
- old
+ new
@@ -13,10 +13,13 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
-require "addressable/uri" unless defined?(Addressable::URI)
+module Addressable
+ autoload :URI, "addressable/uri"
+end
+
require_relative "../exceptions"
module ChefCLI
module Policyfile
class SourceURI < Addressable::URI