lib/chef-api.rb in chef-api-0.10.7 vs lib/chef-api.rb in chef-api-0.10.10
- old
+ new
@@ -1,6 +1,6 @@
-require "json"
-require "pathname"
+require "json" unless defined?(JSON)
+require "pathname" unless defined?(Pathname)
require_relative "chef-api/log"
require_relative "chef-api/version"
module ChefAPI
autoload :Authentication, "chef-api/authentication"