lib/koala.rb in koala-3.0.0.beta2 vs lib/koala.rb in koala-3.0.0.beta3

- old
+ new

@@ -12,10 +12,11 @@ # HTTP module so we can communicate with Facebook require 'koala/http_service' # miscellaneous +require 'koala/configuration' require 'koala/utils' require 'koala/version' require 'ostruct' module Koala @@ -35,17 +36,13 @@ def configure yield config end # Allows you to control various Koala configuration options. - # Notable options: - # * server endpoints: you can override any or all the server endpoints - # (see HTTPService::DEFAULT_SERVERS) if you want to run requests through - # other servers. - # * api_version: controls which Facebook API version to use (v1.0, v2.0, - # etc) + # NOTE: this is not currently threadsafe. + # See Koala::Configuration. def config - @config ||= OpenStruct.new(HTTPService::DEFAULT_SERVERS) + @config ||= Configuration.new end # Used for testing. def reset_config @config = nil