lib/httpx.rb in httpx-0.3.1 vs lib/httpx.rb in httpx-0.4.0

- old
+ new

@@ -10,16 +10,16 @@ require "httpx/loggable" require "httpx/registry" require "httpx/transcoder" require "httpx/options" require "httpx/timeout" -require "httpx/connection" +require "httpx/pool" require "httpx/headers" require "httpx/request" require "httpx/response" require "httpx/chainable" -require "httpx/client" +require "httpx/session" # Top-Level Namespace # module HTTPX # All plugins should be stored under this module/namespace. Can register and load @@ -43,9 +43,15 @@ # Registers a plugin (+mod+) in the central store indexed by +name+. # def self.register_plugin(name, mod) @plugins[name] = mod end + end + + def self.const_missing(const_name) + super unless const_name == :Client + warn "DEPRECATION WARNING: the class #{self}::Client is deprecated. Use #{self}::Session instead." + Session end extend Chainable end