lib/web_client.rb in web_client-0.0.3 vs lib/web_client.rb in web_client-0.0.4

- old
+ new

@@ -1,22 +1,22 @@ -require 'net/http' -require 'active_support/all' -require 'logger' -require 'json' - -require 'web_client/version' -require 'web_client/error' - -module WebClient - HTTP_METHODS = [Net::HTTP::Get, Net::HTTP::Post, Net::HTTP::Put, Net::HTTP::Delete].freeze - - def self.logger - @@logger ||= defined?(Rails) ? Rails.logger : Logger.new($stdout) - end - - def self.logger=(logger) - @@logger = logger - end - -end - -require 'web_client/base' \ No newline at end of file +require 'net/http' +require 'logger' +require 'json' + +require 'web_client/version' +require 'web_client/extensions/string' +require 'web_client/request' +require 'web_client/response' +require 'web_client/connection' +require 'web_client/error' + +module WebClient + + def self.logger + @@logger ||= defined?(Rails) ? Rails.logger : Logger.new($stdout) + end + + def self.logger=(logger) + @@logger = logger + end + +end