lib/gh.rb in gh-0.3.0 vs lib/gh.rb in gh-0.4.0
- old
+ new
@@ -3,14 +3,17 @@
require 'forwardable'
module GH
autoload :Cache, 'gh/cache'
autoload :Case, 'gh/case'
+ autoload :Error, 'gh/error'
+ autoload :Instrumentation, 'gh/instrumentation'
autoload :LazyLoader, 'gh/lazy_loader'
autoload :LinkFollower, 'gh/link_follower'
autoload :MergeCommit, 'gh/merge_commit'
autoload :Normalizer, 'gh/normalizer'
+ autoload :Pagination, 'gh/pagination'
autoload :Remote, 'gh/remote'
autoload :Response, 'gh/response'
autoload :ResponseWrapper, 'gh/response_wrapper'
autoload :Stack, 'gh/stack'
autoload :Wrapper, 'gh/wrapper'
@@ -30,16 +33,18 @@
def self.current=(backend)
Thread.current[:GH] = backend
end
extend SingleForwardable
- def_delegators :current, :api_host, :[], :reset, :load, :post
+ def_delegators :current, :api_host, :[], :reset, :load, :post, :delete, :patch, :put
DefaultStack = Stack.new do
+ use Instrumentation
+ use Pagination
use LinkFollower
use MergeCommit
use LazyLoader
- #use Cache
+ use Cache
use Normalizer
use Remote
end
end