contribution-checker 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/contribution-checker.gemspec +2 -0
- data/lib/contribution-checker/checker.rb +1 -1
- data/lib/contribution-checker/version.rb +1 -1
- data/spec/contribution-checker/checker_spec.rb +339 -2
- data/spec/fixtures/default_compare_ahead.json +157 -0
- data/spec/fixtures/gh-pages_compare.json +157 -0
- data/spec/fixtures/org_owned_repo.json +93 -0
- data/spec/fixtures/potential_fork.json +96 -0
- data/spec/fixtures/repo_forks.json +88 -0
- data/spec/fixtures/repo_with_forks.json +93 -0
- data/spec/fixtures/repo_with_too_many_forks.json +93 -0
- data/spec/fixtures/user_fork.json +96 -0
- data/spec/fixtures/user_fork_not_matching.json +96 -0
- data/spec/fixtures/user_repos.json +88 -0
- data/spec/helper.rb +10 -1
- metadata +50 -2
@@ -0,0 +1,93 @@
|
|
1
|
+
{
|
2
|
+
"id": 20517235,
|
3
|
+
"name": "contribution-checker",
|
4
|
+
"full_name": "someone/contribution-checker",
|
5
|
+
"owner": {
|
6
|
+
"login": "jdennes",
|
7
|
+
"id": 65057,
|
8
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/65057?",
|
9
|
+
"gravatar_id": "55fd031da91ef9af6e6ed88b101416a1",
|
10
|
+
"url": "https://api.github.com/users/jdennes",
|
11
|
+
"html_url": "https://github.com/jdennes",
|
12
|
+
"followers_url": "https://api.github.com/users/jdennes/followers",
|
13
|
+
"following_url": "https://api.github.com/users/jdennes/following{/other_user}",
|
14
|
+
"gists_url": "https://api.github.com/users/jdennes/gists{/gist_id}",
|
15
|
+
"starred_url": "https://api.github.com/users/jdennes/starred{/owner}{/repo}",
|
16
|
+
"subscriptions_url": "https://api.github.com/users/jdennes/subscriptions",
|
17
|
+
"organizations_url": "https://api.github.com/users/jdennes/orgs",
|
18
|
+
"repos_url": "https://api.github.com/users/jdennes/repos",
|
19
|
+
"events_url": "https://api.github.com/users/jdennes/events{/privacy}",
|
20
|
+
"received_events_url": "https://api.github.com/users/jdennes/received_events",
|
21
|
+
"type": "User",
|
22
|
+
"site_admin": false
|
23
|
+
},
|
24
|
+
"private": false,
|
25
|
+
"html_url": "https://github.com/jdennes/contribution-checker",
|
26
|
+
"description": "Check whether one of your GitHub commits qualifies as a contribution.",
|
27
|
+
"fork": false,
|
28
|
+
"url": "https://api.github.com/repos/jdennes/contribution-checker",
|
29
|
+
"forks_url": "https://api.github.com/repos/jdennes/contribution-checker/forks",
|
30
|
+
"keys_url": "https://api.github.com/repos/jdennes/contribution-checker/keys{/key_id}",
|
31
|
+
"collaborators_url": "https://api.github.com/repos/jdennes/contribution-checker/collaborators{/collaborator}",
|
32
|
+
"teams_url": "https://api.github.com/repos/jdennes/contribution-checker/teams",
|
33
|
+
"hooks_url": "https://api.github.com/repos/jdennes/contribution-checker/hooks",
|
34
|
+
"issue_events_url": "https://api.github.com/repos/jdennes/contribution-checker/issues/events{/number}",
|
35
|
+
"events_url": "https://api.github.com/repos/jdennes/contribution-checker/events",
|
36
|
+
"assignees_url": "https://api.github.com/repos/jdennes/contribution-checker/assignees{/user}",
|
37
|
+
"branches_url": "https://api.github.com/repos/jdennes/contribution-checker/branches{/branch}",
|
38
|
+
"tags_url": "https://api.github.com/repos/jdennes/contribution-checker/tags",
|
39
|
+
"blobs_url": "https://api.github.com/repos/jdennes/contribution-checker/git/blobs{/sha}",
|
40
|
+
"git_tags_url": "https://api.github.com/repos/jdennes/contribution-checker/git/tags{/sha}",
|
41
|
+
"git_refs_url": "https://api.github.com/repos/jdennes/contribution-checker/git/refs{/sha}",
|
42
|
+
"trees_url": "https://api.github.com/repos/jdennes/contribution-checker/git/trees{/sha}",
|
43
|
+
"statuses_url": "https://api.github.com/repos/jdennes/contribution-checker/statuses/{sha}",
|
44
|
+
"languages_url": "https://api.github.com/repos/jdennes/contribution-checker/languages",
|
45
|
+
"stargazers_url": "https://api.github.com/repos/jdennes/contribution-checker/stargazers",
|
46
|
+
"contributors_url": "https://api.github.com/repos/jdennes/contribution-checker/contributors",
|
47
|
+
"subscribers_url": "https://api.github.com/repos/jdennes/contribution-checker/subscribers",
|
48
|
+
"subscription_url": "https://api.github.com/repos/jdennes/contribution-checker/subscription",
|
49
|
+
"commits_url": "https://api.github.com/repos/jdennes/contribution-checker/commits{/sha}",
|
50
|
+
"git_commits_url": "https://api.github.com/repos/jdennes/contribution-checker/git/commits{/sha}",
|
51
|
+
"comments_url": "https://api.github.com/repos/jdennes/contribution-checker/comments{/number}",
|
52
|
+
"issue_comment_url": "https://api.github.com/repos/jdennes/contribution-checker/issues/comments/{number}",
|
53
|
+
"contents_url": "https://api.github.com/repos/jdennes/contribution-checker/contents/{+path}",
|
54
|
+
"compare_url": "https://api.github.com/repos/jdennes/contribution-checker/compare/{base}...{head}",
|
55
|
+
"merges_url": "https://api.github.com/repos/jdennes/contribution-checker/merges",
|
56
|
+
"archive_url": "https://api.github.com/repos/jdennes/contribution-checker/{archive_format}{/ref}",
|
57
|
+
"downloads_url": "https://api.github.com/repos/jdennes/contribution-checker/downloads",
|
58
|
+
"issues_url": "https://api.github.com/repos/jdennes/contribution-checker/issues{/number}",
|
59
|
+
"pulls_url": "https://api.github.com/repos/jdennes/contribution-checker/pulls{/number}",
|
60
|
+
"milestones_url": "https://api.github.com/repos/jdennes/contribution-checker/milestones{/number}",
|
61
|
+
"notifications_url": "https://api.github.com/repos/jdennes/contribution-checker/notifications{?since,all,participating}",
|
62
|
+
"labels_url": "https://api.github.com/repos/jdennes/contribution-checker/labels{/name}",
|
63
|
+
"releases_url": "https://api.github.com/repos/jdennes/contribution-checker/releases{/id}",
|
64
|
+
"created_at": "2014-06-05T08:16:43Z",
|
65
|
+
"updated_at": "2014-06-08T22:47:25Z",
|
66
|
+
"pushed_at": "2014-06-08T22:47:22Z",
|
67
|
+
"git_url": "git://github.com/jdennes/contribution-checker.git",
|
68
|
+
"ssh_url": "git@github.com:jdennes/contribution-checker.git",
|
69
|
+
"clone_url": "https://github.com/jdennes/contribution-checker.git",
|
70
|
+
"svn_url": "https://github.com/jdennes/contribution-checker",
|
71
|
+
"homepage": "",
|
72
|
+
"size": 0,
|
73
|
+
"stargazers_count": 0,
|
74
|
+
"watchers_count": 0,
|
75
|
+
"language": "Ruby",
|
76
|
+
"has_issues": true,
|
77
|
+
"has_downloads": true,
|
78
|
+
"has_wiki": false,
|
79
|
+
"forks_count": 10000,
|
80
|
+
"mirror_url": null,
|
81
|
+
"open_issues_count": 0,
|
82
|
+
"forks": 0,
|
83
|
+
"open_issues": 0,
|
84
|
+
"watchers": 0,
|
85
|
+
"default_branch": "master",
|
86
|
+
"permissions": {
|
87
|
+
"admin": true,
|
88
|
+
"push": true,
|
89
|
+
"pull": true
|
90
|
+
},
|
91
|
+
"network_count": 0,
|
92
|
+
"subscribers_count": 2
|
93
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
{
|
2
|
+
"id": 20517235,
|
3
|
+
"name": "contribution-checker",
|
4
|
+
"full_name": "jdennes/myfork",
|
5
|
+
"owner": {
|
6
|
+
"login": "jdennes",
|
7
|
+
"id": 65057,
|
8
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/65057?",
|
9
|
+
"gravatar_id": "55fd031da91ef9af6e6ed88b101416a1",
|
10
|
+
"url": "https://api.github.com/users/jdennes",
|
11
|
+
"html_url": "https://github.com/jdennes",
|
12
|
+
"followers_url": "https://api.github.com/users/jdennes/followers",
|
13
|
+
"following_url": "https://api.github.com/users/jdennes/following{/other_user}",
|
14
|
+
"gists_url": "https://api.github.com/users/jdennes/gists{/gist_id}",
|
15
|
+
"starred_url": "https://api.github.com/users/jdennes/starred{/owner}{/repo}",
|
16
|
+
"subscriptions_url": "https://api.github.com/users/jdennes/subscriptions",
|
17
|
+
"organizations_url": "https://api.github.com/users/jdennes/orgs",
|
18
|
+
"repos_url": "https://api.github.com/users/jdennes/repos",
|
19
|
+
"events_url": "https://api.github.com/users/jdennes/events{/privacy}",
|
20
|
+
"received_events_url": "https://api.github.com/users/jdennes/received_events",
|
21
|
+
"type": "User",
|
22
|
+
"site_admin": false
|
23
|
+
},
|
24
|
+
"private": false,
|
25
|
+
"html_url": "https://github.com/jdennes/contribution-checker",
|
26
|
+
"description": "Check whether one of your GitHub commits qualifies as a contribution.",
|
27
|
+
"fork": true,
|
28
|
+
"parent": {
|
29
|
+
"full_name": "someone/contribution-checker"
|
30
|
+
},
|
31
|
+
"url": "https://api.github.com/repos/jdennes/contribution-checker",
|
32
|
+
"forks_url": "https://api.github.com/repos/jdennes/contribution-checker/forks",
|
33
|
+
"keys_url": "https://api.github.com/repos/jdennes/contribution-checker/keys{/key_id}",
|
34
|
+
"collaborators_url": "https://api.github.com/repos/jdennes/contribution-checker/collaborators{/collaborator}",
|
35
|
+
"teams_url": "https://api.github.com/repos/jdennes/contribution-checker/teams",
|
36
|
+
"hooks_url": "https://api.github.com/repos/jdennes/contribution-checker/hooks",
|
37
|
+
"issue_events_url": "https://api.github.com/repos/jdennes/contribution-checker/issues/events{/number}",
|
38
|
+
"events_url": "https://api.github.com/repos/jdennes/contribution-checker/events",
|
39
|
+
"assignees_url": "https://api.github.com/repos/jdennes/contribution-checker/assignees{/user}",
|
40
|
+
"branches_url": "https://api.github.com/repos/jdennes/contribution-checker/branches{/branch}",
|
41
|
+
"tags_url": "https://api.github.com/repos/jdennes/contribution-checker/tags",
|
42
|
+
"blobs_url": "https://api.github.com/repos/jdennes/contribution-checker/git/blobs{/sha}",
|
43
|
+
"git_tags_url": "https://api.github.com/repos/jdennes/contribution-checker/git/tags{/sha}",
|
44
|
+
"git_refs_url": "https://api.github.com/repos/jdennes/contribution-checker/git/refs{/sha}",
|
45
|
+
"trees_url": "https://api.github.com/repos/jdennes/contribution-checker/git/trees{/sha}",
|
46
|
+
"statuses_url": "https://api.github.com/repos/jdennes/contribution-checker/statuses/{sha}",
|
47
|
+
"languages_url": "https://api.github.com/repos/jdennes/contribution-checker/languages",
|
48
|
+
"stargazers_url": "https://api.github.com/repos/jdennes/contribution-checker/stargazers",
|
49
|
+
"contributors_url": "https://api.github.com/repos/jdennes/contribution-checker/contributors",
|
50
|
+
"subscribers_url": "https://api.github.com/repos/jdennes/contribution-checker/subscribers",
|
51
|
+
"subscription_url": "https://api.github.com/repos/jdennes/contribution-checker/subscription",
|
52
|
+
"commits_url": "https://api.github.com/repos/jdennes/contribution-checker/commits{/sha}",
|
53
|
+
"git_commits_url": "https://api.github.com/repos/jdennes/contribution-checker/git/commits{/sha}",
|
54
|
+
"comments_url": "https://api.github.com/repos/jdennes/contribution-checker/comments{/number}",
|
55
|
+
"issue_comment_url": "https://api.github.com/repos/jdennes/contribution-checker/issues/comments/{number}",
|
56
|
+
"contents_url": "https://api.github.com/repos/jdennes/contribution-checker/contents/{+path}",
|
57
|
+
"compare_url": "https://api.github.com/repos/jdennes/contribution-checker/compare/{base}...{head}",
|
58
|
+
"merges_url": "https://api.github.com/repos/jdennes/contribution-checker/merges",
|
59
|
+
"archive_url": "https://api.github.com/repos/jdennes/contribution-checker/{archive_format}{/ref}",
|
60
|
+
"downloads_url": "https://api.github.com/repos/jdennes/contribution-checker/downloads",
|
61
|
+
"issues_url": "https://api.github.com/repos/jdennes/contribution-checker/issues{/number}",
|
62
|
+
"pulls_url": "https://api.github.com/repos/jdennes/contribution-checker/pulls{/number}",
|
63
|
+
"milestones_url": "https://api.github.com/repos/jdennes/contribution-checker/milestones{/number}",
|
64
|
+
"notifications_url": "https://api.github.com/repos/jdennes/contribution-checker/notifications{?since,all,participating}",
|
65
|
+
"labels_url": "https://api.github.com/repos/jdennes/contribution-checker/labels{/name}",
|
66
|
+
"releases_url": "https://api.github.com/repos/jdennes/contribution-checker/releases{/id}",
|
67
|
+
"created_at": "2014-06-05T08:16:43Z",
|
68
|
+
"updated_at": "2014-06-08T22:47:25Z",
|
69
|
+
"pushed_at": "2014-06-08T22:47:22Z",
|
70
|
+
"git_url": "git://github.com/jdennes/contribution-checker.git",
|
71
|
+
"ssh_url": "git@github.com:jdennes/contribution-checker.git",
|
72
|
+
"clone_url": "https://github.com/jdennes/contribution-checker.git",
|
73
|
+
"svn_url": "https://github.com/jdennes/contribution-checker",
|
74
|
+
"homepage": "",
|
75
|
+
"size": 0,
|
76
|
+
"stargazers_count": 0,
|
77
|
+
"watchers_count": 0,
|
78
|
+
"language": "Ruby",
|
79
|
+
"has_issues": true,
|
80
|
+
"has_downloads": true,
|
81
|
+
"has_wiki": false,
|
82
|
+
"forks_count": 0,
|
83
|
+
"mirror_url": null,
|
84
|
+
"open_issues_count": 0,
|
85
|
+
"forks": 0,
|
86
|
+
"open_issues": 0,
|
87
|
+
"watchers": 0,
|
88
|
+
"default_branch": "master",
|
89
|
+
"permissions": {
|
90
|
+
"admin": true,
|
91
|
+
"push": true,
|
92
|
+
"pull": true
|
93
|
+
},
|
94
|
+
"network_count": 0,
|
95
|
+
"subscribers_count": 2
|
96
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
{
|
2
|
+
"id": 20517235,
|
3
|
+
"name": "contribution-checker",
|
4
|
+
"full_name": "jdennes/myfork",
|
5
|
+
"owner": {
|
6
|
+
"login": "jdennes",
|
7
|
+
"id": 65057,
|
8
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/65057?",
|
9
|
+
"gravatar_id": "55fd031da91ef9af6e6ed88b101416a1",
|
10
|
+
"url": "https://api.github.com/users/jdennes",
|
11
|
+
"html_url": "https://github.com/jdennes",
|
12
|
+
"followers_url": "https://api.github.com/users/jdennes/followers",
|
13
|
+
"following_url": "https://api.github.com/users/jdennes/following{/other_user}",
|
14
|
+
"gists_url": "https://api.github.com/users/jdennes/gists{/gist_id}",
|
15
|
+
"starred_url": "https://api.github.com/users/jdennes/starred{/owner}{/repo}",
|
16
|
+
"subscriptions_url": "https://api.github.com/users/jdennes/subscriptions",
|
17
|
+
"organizations_url": "https://api.github.com/users/jdennes/orgs",
|
18
|
+
"repos_url": "https://api.github.com/users/jdennes/repos",
|
19
|
+
"events_url": "https://api.github.com/users/jdennes/events{/privacy}",
|
20
|
+
"received_events_url": "https://api.github.com/users/jdennes/received_events",
|
21
|
+
"type": "User",
|
22
|
+
"site_admin": false
|
23
|
+
},
|
24
|
+
"private": false,
|
25
|
+
"html_url": "https://github.com/jdennes/contribution-checker",
|
26
|
+
"description": "Check whether one of your GitHub commits qualifies as a contribution.",
|
27
|
+
"fork": true,
|
28
|
+
"parent": {
|
29
|
+
"full_name": "nothing/contribution-checker"
|
30
|
+
},
|
31
|
+
"url": "https://api.github.com/repos/jdennes/contribution-checker",
|
32
|
+
"forks_url": "https://api.github.com/repos/jdennes/contribution-checker/forks",
|
33
|
+
"keys_url": "https://api.github.com/repos/jdennes/contribution-checker/keys{/key_id}",
|
34
|
+
"collaborators_url": "https://api.github.com/repos/jdennes/contribution-checker/collaborators{/collaborator}",
|
35
|
+
"teams_url": "https://api.github.com/repos/jdennes/contribution-checker/teams",
|
36
|
+
"hooks_url": "https://api.github.com/repos/jdennes/contribution-checker/hooks",
|
37
|
+
"issue_events_url": "https://api.github.com/repos/jdennes/contribution-checker/issues/events{/number}",
|
38
|
+
"events_url": "https://api.github.com/repos/jdennes/contribution-checker/events",
|
39
|
+
"assignees_url": "https://api.github.com/repos/jdennes/contribution-checker/assignees{/user}",
|
40
|
+
"branches_url": "https://api.github.com/repos/jdennes/contribution-checker/branches{/branch}",
|
41
|
+
"tags_url": "https://api.github.com/repos/jdennes/contribution-checker/tags",
|
42
|
+
"blobs_url": "https://api.github.com/repos/jdennes/contribution-checker/git/blobs{/sha}",
|
43
|
+
"git_tags_url": "https://api.github.com/repos/jdennes/contribution-checker/git/tags{/sha}",
|
44
|
+
"git_refs_url": "https://api.github.com/repos/jdennes/contribution-checker/git/refs{/sha}",
|
45
|
+
"trees_url": "https://api.github.com/repos/jdennes/contribution-checker/git/trees{/sha}",
|
46
|
+
"statuses_url": "https://api.github.com/repos/jdennes/contribution-checker/statuses/{sha}",
|
47
|
+
"languages_url": "https://api.github.com/repos/jdennes/contribution-checker/languages",
|
48
|
+
"stargazers_url": "https://api.github.com/repos/jdennes/contribution-checker/stargazers",
|
49
|
+
"contributors_url": "https://api.github.com/repos/jdennes/contribution-checker/contributors",
|
50
|
+
"subscribers_url": "https://api.github.com/repos/jdennes/contribution-checker/subscribers",
|
51
|
+
"subscription_url": "https://api.github.com/repos/jdennes/contribution-checker/subscription",
|
52
|
+
"commits_url": "https://api.github.com/repos/jdennes/contribution-checker/commits{/sha}",
|
53
|
+
"git_commits_url": "https://api.github.com/repos/jdennes/contribution-checker/git/commits{/sha}",
|
54
|
+
"comments_url": "https://api.github.com/repos/jdennes/contribution-checker/comments{/number}",
|
55
|
+
"issue_comment_url": "https://api.github.com/repos/jdennes/contribution-checker/issues/comments/{number}",
|
56
|
+
"contents_url": "https://api.github.com/repos/jdennes/contribution-checker/contents/{+path}",
|
57
|
+
"compare_url": "https://api.github.com/repos/jdennes/contribution-checker/compare/{base}...{head}",
|
58
|
+
"merges_url": "https://api.github.com/repos/jdennes/contribution-checker/merges",
|
59
|
+
"archive_url": "https://api.github.com/repos/jdennes/contribution-checker/{archive_format}{/ref}",
|
60
|
+
"downloads_url": "https://api.github.com/repos/jdennes/contribution-checker/downloads",
|
61
|
+
"issues_url": "https://api.github.com/repos/jdennes/contribution-checker/issues{/number}",
|
62
|
+
"pulls_url": "https://api.github.com/repos/jdennes/contribution-checker/pulls{/number}",
|
63
|
+
"milestones_url": "https://api.github.com/repos/jdennes/contribution-checker/milestones{/number}",
|
64
|
+
"notifications_url": "https://api.github.com/repos/jdennes/contribution-checker/notifications{?since,all,participating}",
|
65
|
+
"labels_url": "https://api.github.com/repos/jdennes/contribution-checker/labels{/name}",
|
66
|
+
"releases_url": "https://api.github.com/repos/jdennes/contribution-checker/releases{/id}",
|
67
|
+
"created_at": "2014-06-05T08:16:43Z",
|
68
|
+
"updated_at": "2014-06-08T22:47:25Z",
|
69
|
+
"pushed_at": "2014-06-08T22:47:22Z",
|
70
|
+
"git_url": "git://github.com/jdennes/contribution-checker.git",
|
71
|
+
"ssh_url": "git@github.com:jdennes/contribution-checker.git",
|
72
|
+
"clone_url": "https://github.com/jdennes/contribution-checker.git",
|
73
|
+
"svn_url": "https://github.com/jdennes/contribution-checker",
|
74
|
+
"homepage": "",
|
75
|
+
"size": 0,
|
76
|
+
"stargazers_count": 0,
|
77
|
+
"watchers_count": 0,
|
78
|
+
"language": "Ruby",
|
79
|
+
"has_issues": true,
|
80
|
+
"has_downloads": true,
|
81
|
+
"has_wiki": false,
|
82
|
+
"forks_count": 0,
|
83
|
+
"mirror_url": null,
|
84
|
+
"open_issues_count": 0,
|
85
|
+
"forks": 0,
|
86
|
+
"open_issues": 0,
|
87
|
+
"watchers": 0,
|
88
|
+
"default_branch": "master",
|
89
|
+
"permissions": {
|
90
|
+
"admin": true,
|
91
|
+
"push": true,
|
92
|
+
"pull": true
|
93
|
+
},
|
94
|
+
"network_count": 0,
|
95
|
+
"subscribers_count": 2
|
96
|
+
}
|
@@ -0,0 +1,88 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": 20830408,
|
4
|
+
"name": "linguist",
|
5
|
+
"full_name": "jdennes/myfork",
|
6
|
+
"owner": {
|
7
|
+
"login": "jdennes",
|
8
|
+
"id": 616961,
|
9
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/616961?",
|
10
|
+
"gravatar_id": "78d0715c2362c919c62262a1404bddf0",
|
11
|
+
"url": "https://api.github.com/users/romansky",
|
12
|
+
"html_url": "https://github.com/romansky",
|
13
|
+
"followers_url": "https://api.github.com/users/romansky/followers",
|
14
|
+
"following_url": "https://api.github.com/users/romansky/following{/other_user}",
|
15
|
+
"gists_url": "https://api.github.com/users/romansky/gists{/gist_id}",
|
16
|
+
"starred_url": "https://api.github.com/users/romansky/starred{/owner}{/repo}",
|
17
|
+
"subscriptions_url": "https://api.github.com/users/romansky/subscriptions",
|
18
|
+
"organizations_url": "https://api.github.com/users/romansky/orgs",
|
19
|
+
"repos_url": "https://api.github.com/users/romansky/repos",
|
20
|
+
"events_url": "https://api.github.com/users/romansky/events{/privacy}",
|
21
|
+
"received_events_url": "https://api.github.com/users/romansky/received_events",
|
22
|
+
"type": "User",
|
23
|
+
"site_admin": false
|
24
|
+
},
|
25
|
+
"private": false,
|
26
|
+
"html_url": "https://github.com/romansky/linguist",
|
27
|
+
"description": "Language Savant. If your repository's language is being reported incorrectly, send us a pull request!",
|
28
|
+
"fork": true,
|
29
|
+
"url": "https://api.github.com/repos/romansky/linguist",
|
30
|
+
"forks_url": "https://api.github.com/repos/romansky/linguist/forks",
|
31
|
+
"keys_url": "https://api.github.com/repos/romansky/linguist/keys{/key_id}",
|
32
|
+
"collaborators_url": "https://api.github.com/repos/romansky/linguist/collaborators{/collaborator}",
|
33
|
+
"teams_url": "https://api.github.com/repos/romansky/linguist/teams",
|
34
|
+
"hooks_url": "https://api.github.com/repos/romansky/linguist/hooks",
|
35
|
+
"issue_events_url": "https://api.github.com/repos/romansky/linguist/issues/events{/number}",
|
36
|
+
"events_url": "https://api.github.com/repos/romansky/linguist/events",
|
37
|
+
"assignees_url": "https://api.github.com/repos/romansky/linguist/assignees{/user}",
|
38
|
+
"branches_url": "https://api.github.com/repos/romansky/linguist/branches{/branch}",
|
39
|
+
"tags_url": "https://api.github.com/repos/romansky/linguist/tags",
|
40
|
+
"blobs_url": "https://api.github.com/repos/romansky/linguist/git/blobs{/sha}",
|
41
|
+
"git_tags_url": "https://api.github.com/repos/romansky/linguist/git/tags{/sha}",
|
42
|
+
"git_refs_url": "https://api.github.com/repos/romansky/linguist/git/refs{/sha}",
|
43
|
+
"trees_url": "https://api.github.com/repos/romansky/linguist/git/trees{/sha}",
|
44
|
+
"statuses_url": "https://api.github.com/repos/romansky/linguist/statuses/{sha}",
|
45
|
+
"languages_url": "https://api.github.com/repos/romansky/linguist/languages",
|
46
|
+
"stargazers_url": "https://api.github.com/repos/romansky/linguist/stargazers",
|
47
|
+
"contributors_url": "https://api.github.com/repos/romansky/linguist/contributors",
|
48
|
+
"subscribers_url": "https://api.github.com/repos/romansky/linguist/subscribers",
|
49
|
+
"subscription_url": "https://api.github.com/repos/romansky/linguist/subscription",
|
50
|
+
"commits_url": "https://api.github.com/repos/romansky/linguist/commits{/sha}",
|
51
|
+
"git_commits_url": "https://api.github.com/repos/romansky/linguist/git/commits{/sha}",
|
52
|
+
"comments_url": "https://api.github.com/repos/romansky/linguist/comments{/number}",
|
53
|
+
"issue_comment_url": "https://api.github.com/repos/romansky/linguist/issues/comments/{number}",
|
54
|
+
"contents_url": "https://api.github.com/repos/romansky/linguist/contents/{+path}",
|
55
|
+
"compare_url": "https://api.github.com/repos/romansky/linguist/compare/{base}...{head}",
|
56
|
+
"merges_url": "https://api.github.com/repos/romansky/linguist/merges",
|
57
|
+
"archive_url": "https://api.github.com/repos/romansky/linguist/{archive_format}{/ref}",
|
58
|
+
"downloads_url": "https://api.github.com/repos/romansky/linguist/downloads",
|
59
|
+
"issues_url": "https://api.github.com/repos/romansky/linguist/issues{/number}",
|
60
|
+
"pulls_url": "https://api.github.com/repos/romansky/linguist/pulls{/number}",
|
61
|
+
"milestones_url": "https://api.github.com/repos/romansky/linguist/milestones{/number}",
|
62
|
+
"notifications_url": "https://api.github.com/repos/romansky/linguist/notifications{?since,all,participating}",
|
63
|
+
"labels_url": "https://api.github.com/repos/romansky/linguist/labels{/name}",
|
64
|
+
"releases_url": "https://api.github.com/repos/romansky/linguist/releases{/id}",
|
65
|
+
"created_at": "2014-06-14T11:06:13Z",
|
66
|
+
"updated_at": "2014-06-14T11:06:14Z",
|
67
|
+
"pushed_at": "2014-06-11T21:03:01Z",
|
68
|
+
"git_url": "git://github.com/romansky/linguist.git",
|
69
|
+
"ssh_url": "git@github.com:romansky/linguist.git",
|
70
|
+
"clone_url": "https://github.com/romansky/linguist.git",
|
71
|
+
"svn_url": "https://github.com/romansky/linguist",
|
72
|
+
"homepage": "",
|
73
|
+
"size": 27313,
|
74
|
+
"stargazers_count": 0,
|
75
|
+
"watchers_count": 0,
|
76
|
+
"language": "Ruby",
|
77
|
+
"has_issues": false,
|
78
|
+
"has_downloads": true,
|
79
|
+
"has_wiki": false,
|
80
|
+
"forks_count": 0,
|
81
|
+
"mirror_url": null,
|
82
|
+
"open_issues_count": 0,
|
83
|
+
"forks": 0,
|
84
|
+
"open_issues": 0,
|
85
|
+
"watchers": 0,
|
86
|
+
"default_branch": "master"
|
87
|
+
}
|
88
|
+
]
|
data/spec/helper.rb
CHANGED
@@ -1,8 +1,17 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
require 'coveralls'
|
3
|
+
|
4
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
5
|
+
SimpleCov::Formatter::HTMLFormatter,
|
6
|
+
Coveralls::SimpleCov::Formatter
|
7
|
+
]
|
8
|
+
SimpleCov.start
|
9
|
+
|
1
10
|
require "rspec"
|
2
11
|
require "webmock/rspec"
|
3
12
|
require "contribution-checker"
|
4
13
|
|
5
|
-
WebMock.disable_net_connect!
|
14
|
+
WebMock.disable_net_connect! :allow => "coveralls.io"
|
6
15
|
|
7
16
|
def github_url(url)
|
8
17
|
url =~ /^http/ ? url : "https://api.github.com#{url}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contribution-checker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Dennes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -80,6 +80,34 @@ dependencies:
|
|
80
80
|
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: coveralls
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
83
111
|
description: Check whether a GitHub commit is counted as a contribution for a specific
|
84
112
|
GitHub user.
|
85
113
|
email:
|
@@ -101,9 +129,19 @@ files:
|
|
101
129
|
- spec/contribution-checker/checker_spec.rb
|
102
130
|
- spec/fixtures/commit.json
|
103
131
|
- spec/fixtures/default_compare.json
|
132
|
+
- spec/fixtures/default_compare_ahead.json
|
104
133
|
- spec/fixtures/emails.json
|
134
|
+
- spec/fixtures/gh-pages_compare.json
|
135
|
+
- spec/fixtures/org_owned_repo.json
|
136
|
+
- spec/fixtures/potential_fork.json
|
105
137
|
- spec/fixtures/repo.json
|
138
|
+
- spec/fixtures/repo_forks.json
|
139
|
+
- spec/fixtures/repo_with_forks.json
|
140
|
+
- spec/fixtures/repo_with_too_many_forks.json
|
106
141
|
- spec/fixtures/user.json
|
142
|
+
- spec/fixtures/user_fork.json
|
143
|
+
- spec/fixtures/user_fork_not_matching.json
|
144
|
+
- spec/fixtures/user_repos.json
|
107
145
|
- spec/helper.rb
|
108
146
|
homepage: ''
|
109
147
|
licenses:
|
@@ -133,7 +171,17 @@ test_files:
|
|
133
171
|
- spec/contribution-checker/checker_spec.rb
|
134
172
|
- spec/fixtures/commit.json
|
135
173
|
- spec/fixtures/default_compare.json
|
174
|
+
- spec/fixtures/default_compare_ahead.json
|
136
175
|
- spec/fixtures/emails.json
|
176
|
+
- spec/fixtures/gh-pages_compare.json
|
177
|
+
- spec/fixtures/org_owned_repo.json
|
178
|
+
- spec/fixtures/potential_fork.json
|
137
179
|
- spec/fixtures/repo.json
|
180
|
+
- spec/fixtures/repo_forks.json
|
181
|
+
- spec/fixtures/repo_with_forks.json
|
182
|
+
- spec/fixtures/repo_with_too_many_forks.json
|
138
183
|
- spec/fixtures/user.json
|
184
|
+
- spec/fixtures/user_fork.json
|
185
|
+
- spec/fixtures/user_fork_not_matching.json
|
186
|
+
- spec/fixtures/user_repos.json
|
139
187
|
- spec/helper.rb
|