Sha256: cee69215e481cbdeaa344ee8392314f3042e7f5bc1ada76e66fbb4d132f59ed6
Contents?: true
Size: 513 Bytes
Versions: 2
Compression:
Stored size: 513 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, 3600 do use s::ErrorHandler, lambda{|env| raise env[s::RESPONSE_BODY]['message']} use s::ErrorDetectorHttp use s::JsonDecode , true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rest-core-0.4.0.pre.1 | lib/rest-core/client/github.rb |
rest-core-0.4.0.pre.0 | lib/rest-core/client/github.rb |