lib/leadlight.rb in leadlight-0.0.5 vs lib/leadlight.rb in leadlight-0.0.6

- old
+ new

@@ -1,9 +1,10 @@ require 'faraday' require 'fattr' require 'logger' require 'hookr' +require 'leadlight/lib_ext' require 'leadlight/errors' require 'leadlight/link' require 'leadlight/hyperlinkable' require 'leadlight/service_middleware' require 'leadlight/representation' @@ -14,20 +15,20 @@ require 'leadlight/basic_converter' module Leadlight - VERSION = '0.0.5' + VERSION = '0.0.6' def self.build_service(target=Class.new, &block) target.tap do target.module_eval do extend ServiceClassMethods include Service include HookR::Hooks extend SingleForwardable - + request_events = request_class.hooks.map(&:name) def_delegators :request_class, *request_events define_hook :on_init, :service end target.module_eval(&block) @@ -37,12 +38,10 @@ def self.build_connection_common(&common_connection_stack) @common_connection_stack = common_connection_stack end def self.common_connection_stack - @common_connection_stack ||= ->(builder) { - builder.adapter :net_http - } + @common_connection_stack ||= ->(builder) {} end end