Sha256: cb80e8f545d657ba3640540ef28232dfa96bb2b4a8eba770ed6737ef973cdf32
Contents?: true
Size: 512 Bytes
Versions: 4
Compression:
Stored size: 512 Bytes
Contents
require 'rest-core' RestCore::Github = RestCore::Builder.client do s = self.class # this is only for ruby 1.8! use s::Timeout , 10 use s::DefaultSite , 'https://api.github.com/' use s::DefaultHeaders, {'Accept' => 'application/json'} use s::Oauth2Query , 'access_token', nil use s::CommonLogger , nil use s::Cache , nil, 600 do use s::ErrorHandler, lambda{|env| raise env[s::RESPONSE_BODY]['message']} use s::ErrorDetectorHttp use s::JsonDecode , true end end
Version data entries
4 entries across 4 versions & 2 rubygems