Sha256: d13e8d1faa0c95c718cc665d7500a30059e16526e9267c6197efe7defacb7884
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
module Octokit class Client module Objects def tree(repo, tree_sha, options={}) get("/api/v2/json/tree/show/#{Repository.new(repo)}/#{tree_sha}", options)['tree'] end def blob(repo, tree_sha, path, options={}) get("/api/v2/json/blob/show/#{Repository.new(repo)}/#{tree_sha}/#{path}", options)['blob'] end def blobs(repo, tree_sha, options={}) get("/api/v2/json/blob/all/#{Repository.new(repo)}/#{tree_sha}", options)['blobs'] end def blob_metadata(repo, tree_sha, options={}) get("/api/v2/json/blob/full/#{Repository.new(repo)}/#{tree_sha}", options)['blobs'] end alias :blob_meta :blob_metadata def tree_metadata(repo, tree_sha, options={}) get("/api/v2/json/tree/full/#{Repository.new(repo)}/#{tree_sha}", options)['tree'] end alias :tree_meta :tree_metadata def raw(repo, sha, options={}) get("/api/v2/json/blob/show/#{Repository.new(repo)}/#{sha}", options, 2, true, true).body end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octokit-0.6.5 | lib/octokit/client/objects.rb |
octokit-0.6.4 | lib/octokit/client/objects.rb |