githu3 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +3 -0
- data/.document +5 -0
- data/.gitignore +22 -0
- data/.rspec +4 -0
- data/.travis.yml +8 -0
- data/Gemfile +11 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +20 -0
- data/Rakefile +16 -0
- data/githu3.gemspec +34 -0
- data/lib/githu3/branch.rb +4 -0
- data/lib/githu3/client.rb +68 -0
- data/lib/githu3/comment.rb +5 -0
- data/lib/githu3/event.rb +5 -0
- data/lib/githu3/issue.rb +9 -0
- data/lib/githu3/key.rb +4 -0
- data/lib/githu3/label.rb +5 -0
- data/lib/githu3/milestone.rb +5 -0
- data/lib/githu3/org.rb +20 -0
- data/lib/githu3/repo.rb +16 -0
- data/lib/githu3/resource.rb +64 -0
- data/lib/githu3/tag.rb +4 -0
- data/lib/githu3/team.rb +14 -0
- data/lib/githu3/user.rb +13 -0
- data/lib/githu3/version.rb +3 -0
- data/lib/githu3.rb +30 -0
- data/spec/fixtures/all_repos.json +54 -0
- data/spec/fixtures/issues/comments.json +41 -0
- data/spec/fixtures/issues/event.json +12 -0
- data/spec/fixtures/issues/events.json +14 -0
- data/spec/fixtures/me.json +31 -0
- data/spec/fixtures/orgs/github.json +18 -0
- data/spec/fixtures/orgs/rails.json +18 -0
- data/spec/fixtures/orgs.json +14 -0
- data/spec/fixtures/public_repos.json +132 -0
- data/spec/fixtures/repos/branches.json +23 -0
- data/spec/fixtures/repos/contributors.json +58 -0
- data/spec/fixtures/repos/faraday.json +31 -0
- data/spec/fixtures/repos/issue.json +53 -0
- data/spec/fixtures/repos/issues.json +55 -0
- data/spec/fixtures/repos/label.json +5 -0
- data/spec/fixtures/repos/labels.json +7 -0
- data/spec/fixtures/repos/milestone.json +17 -0
- data/spec/fixtures/repos/milestones.json +19 -0
- data/spec/fixtures/repos/tags.json +164 -0
- data/spec/fixtures/repos/teams.json +17 -0
- data/spec/fixtures/teams/1.json +8 -0
- data/spec/fixtures/teams/members.json +8 -0
- data/spec/fixtures/teams/repos.json +28 -0
- data/spec/fixtures/users/followers.json +80 -0
- data/spec/fixtures/users/following.json +182 -0
- data/spec/fixtures/users/orgs.json +8 -0
- data/spec/fixtures/users/repos.json +132 -0
- data/spec/fixtures/users/sbellity.json +20 -0
- data/spec/githu3/client_spec.rb +66 -0
- data/spec/githu3/issue_spec.rb +54 -0
- data/spec/githu3/org_spec.rb +79 -0
- data/spec/githu3/repo_spec.rb +100 -0
- data/spec/githu3/team_spec.rb +47 -0
- data/spec/githu3/user_spec.rb +47 -0
- data/spec/githu3_spec.rb +7 -0
- data/spec/helper.rb +21 -0
- metadata +334 -0
data/.autotest
ADDED
data/.document
ADDED
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 Stephane Bellity
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
= githu3
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to githu3
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
9
|
+
* Fork the project
|
10
|
+
* Start a feature/bugfix branch
|
11
|
+
* Commit and push until you are happy with your contribution
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
|
16
|
+
== Copyright
|
17
|
+
|
18
|
+
Copyright (c) 2011 Stephane Bellity. See LICENSE.txt for
|
19
|
+
further details.
|
20
|
+
|
data/Rakefile
ADDED
data/githu3.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/githu3/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = 'githu3'
|
6
|
+
s.version = Githu3::VERSION.dup
|
7
|
+
s.summary = %q{Ruby wrapper for the GitHub's v3' API}
|
8
|
+
s.description = %q{Ruby wrapper for the GitHub's v3' API}
|
9
|
+
s.homepage = 'https://github.com/sbellity/githu3'
|
10
|
+
s.authors = ["Stephane Bellity"]
|
11
|
+
s.email = ['sbellity@gmail.com']
|
12
|
+
|
13
|
+
s.files = `git ls-files`.split("\n")
|
14
|
+
s.test_files = `git ls-files -- spec/*`.split("\n")
|
15
|
+
|
16
|
+
s.platform = Gem::Platform::RUBY
|
17
|
+
s.require_paths = ['lib']
|
18
|
+
|
19
|
+
s.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
|
20
|
+
|
21
|
+
s.add_runtime_dependency 'activesupport', '~> 3.0.0'
|
22
|
+
s.add_runtime_dependency 'i18n', '~> 0.5.0'
|
23
|
+
s.add_runtime_dependency 'faraday', '~> 0.6.0'
|
24
|
+
s.add_runtime_dependency 'faraday_middleware', '~> 0.6.0'
|
25
|
+
s.add_runtime_dependency 'multi_json', '~> 1.0.2'
|
26
|
+
|
27
|
+
|
28
|
+
s.add_development_dependency 'ZenTest', '~> 4.5'
|
29
|
+
s.add_development_dependency 'rake', '~> 0.9'
|
30
|
+
s.add_development_dependency 'rspec', '~> 2.6'
|
31
|
+
s.add_development_dependency 'simplecov', '~> 0.4'
|
32
|
+
s.add_development_dependency 'webmock', '~> 1.6'
|
33
|
+
s.add_development_dependency 'yajl-ruby', '~> 0.8'
|
34
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
|
2
|
+
module Githu3
|
3
|
+
|
4
|
+
class Client
|
5
|
+
|
6
|
+
attr_reader :conn, :rate_limit
|
7
|
+
|
8
|
+
def initialize(oauth_token=nil)
|
9
|
+
headers = {}
|
10
|
+
headers["Authorization"] = "token #{oauth_token}" if oauth_token
|
11
|
+
@conn = Faraday.new({
|
12
|
+
:url => "https://api.github.com/",
|
13
|
+
:headers => headers
|
14
|
+
})
|
15
|
+
@conn.use Faraday::Response::ParseJson
|
16
|
+
@rate_limit = {}
|
17
|
+
@conn
|
18
|
+
end
|
19
|
+
|
20
|
+
def get *args
|
21
|
+
opts = args.extract_options!
|
22
|
+
res = @conn.get(*args) do |req|
|
23
|
+
if opts[:params].is_a?(Hash)
|
24
|
+
req.params ||= {}
|
25
|
+
opts[:params].each { |k,v| req.params[k.to_s] = v.to_s }
|
26
|
+
end
|
27
|
+
end
|
28
|
+
@rate_limit[:limit] = res.headers["x-ratelimit-limit"]
|
29
|
+
@rate_limit[:remaining] = res.headers["x-ratelimit-remaining"]
|
30
|
+
res.body
|
31
|
+
end
|
32
|
+
|
33
|
+
# Top level resources...
|
34
|
+
%w{ org repo team user }.each do |r|
|
35
|
+
define_method r do |ident|
|
36
|
+
Githu3.const_get(r.camelize).new(get("/#{r.pluralize}/#{ident}"), self)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# My stuf...
|
41
|
+
|
42
|
+
def me
|
43
|
+
Githu3::User.new "/user", self
|
44
|
+
end
|
45
|
+
|
46
|
+
def orgs
|
47
|
+
get("/user/orgs").map { |o| Githu3::Org.new(o, self) }
|
48
|
+
end
|
49
|
+
|
50
|
+
def repos(params={})
|
51
|
+
get("/user/repos", :params => params).map { |r| Githu3::Repo.new(r,self) }
|
52
|
+
end
|
53
|
+
|
54
|
+
def followers
|
55
|
+
get("/user/followers").map { |u| Githu3::User.new(u, self) }
|
56
|
+
end
|
57
|
+
|
58
|
+
def following
|
59
|
+
get("/user/following").map { |u| Githu3::User.new(u, self) }
|
60
|
+
end
|
61
|
+
|
62
|
+
def following?(other_user)
|
63
|
+
@conn.get("/user/following/#{other_user}").status == 204
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
data/lib/githu3/event.rb
ADDED
data/lib/githu3/issue.rb
ADDED
data/lib/githu3/key.rb
ADDED
data/lib/githu3/label.rb
ADDED
data/lib/githu3/org.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'githu3/repo'
|
2
|
+
|
3
|
+
module Githu3
|
4
|
+
class Org < Githu3::Resource
|
5
|
+
|
6
|
+
has_many :repos
|
7
|
+
has_many :teams
|
8
|
+
has_many :members, :class_name => :user
|
9
|
+
has_many :public_members, :class_name => :user
|
10
|
+
|
11
|
+
def member?(user_login)
|
12
|
+
_client.conn.get("/orgs/#{login}/members/#{user_login}").status == 204
|
13
|
+
end
|
14
|
+
|
15
|
+
def public_member?(user_login)
|
16
|
+
_client.conn.get("/orgs/#{login}/public_members/#{user_login}").status == 204
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
data/lib/githu3/repo.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
module Githu3
|
2
|
+
class Repo < Githu3::Resource
|
3
|
+
|
4
|
+
has_many :contributors, :class_name => :user
|
5
|
+
has_many :watchers, :class_name => :user
|
6
|
+
has_many :forks, :class_name => :repo
|
7
|
+
has_many :teams
|
8
|
+
has_many :tags
|
9
|
+
has_many :branches
|
10
|
+
has_many :issues
|
11
|
+
has_many :events, :nested_in => :issues
|
12
|
+
has_many :labels
|
13
|
+
has_many :milestones
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module Githu3
|
2
|
+
|
3
|
+
module Relations
|
4
|
+
|
5
|
+
def has_many m, opts={}
|
6
|
+
opts[:class_name] ||= m.to_s.singularize
|
7
|
+
define_method(m) do |*args|
|
8
|
+
params = args.extract_options!
|
9
|
+
klass = Githu3.const_get(opts[:class_name].to_s.camelize)
|
10
|
+
_resource_path = [opts[:nested_in], m].compact.join("/")
|
11
|
+
if args.length == 1
|
12
|
+
klass.new([path, _resource_path, args.first].join("/"), @client)
|
13
|
+
else
|
14
|
+
get([path, _resource_path].join("/"), :params => params).map { |o| klass.new(o, @client) }
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class Store
|
21
|
+
|
22
|
+
attr_reader :id
|
23
|
+
|
24
|
+
def initialize data
|
25
|
+
@id = data[:id] || data["id"]
|
26
|
+
@attributes = OpenStruct.new(data)
|
27
|
+
end
|
28
|
+
|
29
|
+
def method_missing m, *args
|
30
|
+
@attributes.send m, *args
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
class Resource < Store
|
36
|
+
|
37
|
+
extend Githu3::Relations
|
38
|
+
|
39
|
+
def initialize(d, client)
|
40
|
+
@client = client
|
41
|
+
if d.is_a?(String)
|
42
|
+
super(client.get(d))
|
43
|
+
else
|
44
|
+
super(d)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def get *args
|
49
|
+
@client.get(*args)
|
50
|
+
end
|
51
|
+
|
52
|
+
def path
|
53
|
+
return if url.nil?
|
54
|
+
URI.parse(url).path
|
55
|
+
end
|
56
|
+
|
57
|
+
protected
|
58
|
+
|
59
|
+
def _client
|
60
|
+
@client
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
end
|
data/lib/githu3/tag.rb
ADDED
data/lib/githu3/team.rb
ADDED
data/lib/githu3/user.rb
ADDED
data/lib/githu3.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'ostruct'
|
2
|
+
require 'faraday'
|
3
|
+
require 'faraday_middleware'
|
4
|
+
require "uri"
|
5
|
+
require 'active_support'
|
6
|
+
require 'githu3/version'
|
7
|
+
|
8
|
+
require 'active_support/core_ext/array/extract_options'
|
9
|
+
require 'active_support/core_ext/string/inflections'
|
10
|
+
require 'active_support/inflections'
|
11
|
+
|
12
|
+
module Githu3
|
13
|
+
|
14
|
+
Resources = %w{ issue org team user tag branch repo key event comment label milestone }
|
15
|
+
|
16
|
+
autoload :Resource, 'githu3/resource'
|
17
|
+
autoload :Client, 'githu3/client'
|
18
|
+
|
19
|
+
Resources.each do |r|
|
20
|
+
autoload r.camelize.to_sym, "githu3/#{r}"
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
@@ -0,0 +1,54 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"url": "https://api.github.com/repos/mathieuravaux/brm-ruby-logger",
|
4
|
+
"clone_url": "https://github.com/mathieuravaux/brm-ruby-logger.git",
|
5
|
+
"open_issues": 0,
|
6
|
+
"homepage": "http://github.com/mathieuravaux/brm-ruby-logger",
|
7
|
+
"html_url": "https://github.com/mathieuravaux/brm-ruby-logger",
|
8
|
+
"git_url": "git://github.com/mathieuravaux/brm-ruby-logger.git",
|
9
|
+
"language": null,
|
10
|
+
"forks": 1,
|
11
|
+
"svn_url": "https://svn.github.com/mathieuravaux/brm-ruby-logger",
|
12
|
+
"fork": false,
|
13
|
+
"watchers": 3,
|
14
|
+
"pushed_at": "2010-03-09T17:10:00Z",
|
15
|
+
"created_at": "2010-03-08T13:40:45Z",
|
16
|
+
"private": true,
|
17
|
+
"size": 404,
|
18
|
+
"owner": {
|
19
|
+
"url": "https://api.github.com/users/mathieuravaux",
|
20
|
+
"avatar_url": "https://secure.gravatar.com/avatar/0ef5aaa4d393b0fbc1a8300d18b30c51?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
21
|
+
"login": "mathieuravaux",
|
22
|
+
"id": 38495
|
23
|
+
},
|
24
|
+
"name": "brm-ruby-logger",
|
25
|
+
"description": "Ruby event logger for the BRM real-time analytics and BI solution",
|
26
|
+
"ssh_url": "git@github.com:mathieuravaux/brm-ruby-logger.git"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"url": "https://api.github.com/repos/mimesis/brm-gateway",
|
30
|
+
"clone_url": "https://github.com/mimesis/brm-gateway.git",
|
31
|
+
"open_issues": 0,
|
32
|
+
"homepage": "",
|
33
|
+
"html_url": "https://github.com/mimesis/brm-gateway",
|
34
|
+
"git_url": "git://github.com/mimesis/brm-gateway.git",
|
35
|
+
"language": "Ruby",
|
36
|
+
"forks": 0,
|
37
|
+
"svn_url": "https://svn.github.com/mimesis/brm-gateway",
|
38
|
+
"fork": false,
|
39
|
+
"watchers": 5,
|
40
|
+
"pushed_at": "2011-06-17T13:03:18Z",
|
41
|
+
"created_at": "2010-10-25T17:21:08Z",
|
42
|
+
"private": true,
|
43
|
+
"size": 644,
|
44
|
+
"owner": {
|
45
|
+
"url": "https://api.github.com/users/mimesis",
|
46
|
+
"avatar_url": "https://secure.gravatar.com/avatar/990ba1d39ec58f60bc46847924da1668?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
47
|
+
"login": "mimesis",
|
48
|
+
"id": 220610
|
49
|
+
},
|
50
|
+
"name": "brm-gateway",
|
51
|
+
"description": "Brm Gateway distributed as a gem",
|
52
|
+
"ssh_url": "git@github.com:mimesis/brm-gateway.git"
|
53
|
+
}
|
54
|
+
]
|
@@ -0,0 +1,41 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"url": "https://api.github.com/repos/technoweenie/faraday/issues/comments/226158",
|
4
|
+
"user": {
|
5
|
+
"url": "https://api.github.com/users/technoweenie",
|
6
|
+
"login": "technoweenie",
|
7
|
+
"id": 21,
|
8
|
+
"avatar_url": "https://secure.gravatar.com/avatar/821395fe70906c8290df7f18ac4ac6cf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"
|
9
|
+
},
|
10
|
+
"updated_at": "2010-04-30T16:57:29Z",
|
11
|
+
"created_at": "2010-04-30T16:57:29Z",
|
12
|
+
"body": "I've set a dependency on the latest Faraday on 2.1.1 until someone can fix this issue.",
|
13
|
+
"id": 226158
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"url": "https://api.github.com/repos/technoweenie/faraday/issues/comments/467139",
|
17
|
+
"user": {
|
18
|
+
"url": "https://api.github.com/users/sferik",
|
19
|
+
"login": "sferik",
|
20
|
+
"id": 10308,
|
21
|
+
"avatar_url": "https://secure.gravatar.com/avatar/1f74b13f1e5c6c69cb5d7fbaabb1e2cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"
|
22
|
+
},
|
23
|
+
"updated_at": "2010-10-13T22:18:39Z",
|
24
|
+
"created_at": "2010-10-13T22:18:39Z",
|
25
|
+
"body": "This should be fixed by updating addressable to ~> 2.2.2 in #21 (includes pull request).",
|
26
|
+
"id": 467139
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"url": "https://api.github.com/repos/technoweenie/faraday/issues/comments/821861",
|
30
|
+
"user": {
|
31
|
+
"url": "https://api.github.com/users/mislav",
|
32
|
+
"login": "mislav",
|
33
|
+
"id": 887,
|
34
|
+
"avatar_url": "https://secure.gravatar.com/avatar/8f93a872e399bc1353cc8d4e791d5401?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"
|
35
|
+
},
|
36
|
+
"updated_at": "2011-03-01T12:17:11Z",
|
37
|
+
"created_at": "2011-03-01T12:17:11Z",
|
38
|
+
"body": "Since this seems to be fixed in #21 I'll go ahead and close this issue",
|
39
|
+
"id": 821861
|
40
|
+
}
|
41
|
+
]
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"url": "https://api.github.com/repos/technoweenie/faraday/issues/events/1",
|
3
|
+
"actor": {
|
4
|
+
"login": "octocat",
|
5
|
+
"id": 1,
|
6
|
+
"gravatar_url": "https://github.com/images/error/octocat_happy.gif",
|
7
|
+
"url": "https://api.github.com/users/octocat"
|
8
|
+
},
|
9
|
+
"event": "closed",
|
10
|
+
"commit_id": "SHA",
|
11
|
+
"created_at": "2011-04-14T16:00:49Z"
|
12
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"url": "https://api.github.com/repos/technoweenie/faraday/issues/events/1",
|
4
|
+
"actor": {
|
5
|
+
"login": "technoweenie",
|
6
|
+
"id": 1,
|
7
|
+
"gravatar_url": "https://github.com/images/error/octocat_happy.gif",
|
8
|
+
"url": "https://api.github.com/users/technoweenie"
|
9
|
+
},
|
10
|
+
"event": "closed",
|
11
|
+
"commit_id": "SHA",
|
12
|
+
"created_at": "2011-04-14T16:00:49Z"
|
13
|
+
}
|
14
|
+
]
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"type": "User",
|
3
|
+
"url": "https://api.github.com/users/sbellity",
|
4
|
+
"public_gists": 3,
|
5
|
+
"collaborators": 2,
|
6
|
+
"blog": null,
|
7
|
+
"private_gists": 1,
|
8
|
+
"hireable": false,
|
9
|
+
"html_url": "https://github.com/sbellity",
|
10
|
+
"disk_usage": 11079,
|
11
|
+
"plan": {
|
12
|
+
"private_repos": 5,
|
13
|
+
"collaborators": 1,
|
14
|
+
"space": 614400,
|
15
|
+
"name": "micro"
|
16
|
+
},
|
17
|
+
"bio": null,
|
18
|
+
"login": "sbellity",
|
19
|
+
"total_private_repos": 4,
|
20
|
+
"following": 53,
|
21
|
+
"created_at": "2008-04-02T18:24:06Z",
|
22
|
+
"email": "sbellity@gmail.com",
|
23
|
+
"public_repos": 19,
|
24
|
+
"followers": 13,
|
25
|
+
"name": "Stephane Bellity",
|
26
|
+
"company": null,
|
27
|
+
"avatar_url": "https://secure.gravatar.com/avatar/9abf3d284748357bb044d3386796ecd6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
28
|
+
"owned_private_repos": 3,
|
29
|
+
"location": "Paris, France",
|
30
|
+
"id": 4250
|
31
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"type": "Organization",
|
3
|
+
"blog": "https://github.com/about",
|
4
|
+
"url": "https://api.github.com/orgs/github",
|
5
|
+
"avatar_url": "https://secure.gravatar.com/avatar/61024896f291303615bcd4f7a0dcfb74?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
|
6
|
+
"login": "github",
|
7
|
+
"public_repos": 27,
|
8
|
+
"html_url": "https://github.com/github",
|
9
|
+
"following": 0,
|
10
|
+
"created_at": "2008-05-11T04:37:31Z",
|
11
|
+
"email": "support@github.com",
|
12
|
+
"followers": 575,
|
13
|
+
"name": "GitHub",
|
14
|
+
"company": null,
|
15
|
+
"public_gists": 0,
|
16
|
+
"location": "San Francisco, CA",
|
17
|
+
"id": 9919
|
18
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"type": "Organization",
|
3
|
+
"url": "https://api.github.com/orgs/rails",
|
4
|
+
"public_gists": 3,
|
5
|
+
"blog": "http://weblog.rubyonrails.org/",
|
6
|
+
"html_url": "https://github.com/rails",
|
7
|
+
"login": "rails",
|
8
|
+
"following": 0,
|
9
|
+
"created_at": "2008-04-02T01:59:25Z",
|
10
|
+
"email": null,
|
11
|
+
"name": null,
|
12
|
+
"company": null,
|
13
|
+
"location": null,
|
14
|
+
"id": 4223,
|
15
|
+
"public_repos": 44,
|
16
|
+
"followers": 1936,
|
17
|
+
"avatar_url": "https://secure.gravatar.com/avatar/30f39a09e233e8369dddf6feb4be0308?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png"
|
18
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"url": "https://api.github.com/orgs/nuvoli",
|
4
|
+
"login": "nuvoli",
|
5
|
+
"avatar_url": "https://secure.gravatar.com/avatar/e7490ca7d2111a4f2283495aef71f409?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
|
6
|
+
"id": 578134
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"url": "https://api.github.com/orgs/sixdegrees",
|
10
|
+
"login": "sixdegrees",
|
11
|
+
"avatar_url": "https://secure.gravatar.com/avatar/1605f681326408ae4ce7136509af5205?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
|
12
|
+
"id": 334012
|
13
|
+
}
|
14
|
+
]
|