lib/chef-api/defaults.rb in chef-infra-api-0.10.7 vs lib/chef-api/defaults.rb in chef-infra-api-0.10.10
- old
+ new
@@ -1,7 +1,7 @@
require_relative "version"
-require "pathname"
-require "json"
+require "pathname" unless defined?(Pathname)
+require "json" unless defined?(JSON)
module ChefAPI
module Defaults
# Default API endpoint
ENDPOINT = "https://api.opscode.com/".freeze