octokit 0.6.5 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.rspec +1 -2
- data/.travis.yml +0 -1
- data/CHANGELOG.md +1 -0
- data/Gemfile +1 -1
- data/README.md +41 -28
- data/Rakefile +11 -0
- data/lib/faraday/response/raise_octokit_error.rb +4 -2
- data/lib/octokit/client.rb +2 -0
- data/lib/octokit/client/commits.rb +12 -0
- data/lib/octokit/client/events.rb +26 -0
- data/lib/octokit/client/issues.rb +35 -7
- data/lib/octokit/client/labels.rb +5 -5
- data/lib/octokit/client/objects.rb +10 -6
- data/lib/octokit/client/organizations.rb +25 -21
- data/lib/octokit/client/pub_sub_hubbub/service_hooks.rb +2 -2
- data/lib/octokit/client/pulls.rb +4 -4
- data/lib/octokit/client/repositories.rb +18 -18
- data/lib/octokit/client/users.rb +19 -14
- data/lib/octokit/configuration.rb +14 -11
- data/lib/octokit/connection.rb +3 -3
- data/lib/octokit/request.rb +17 -1
- data/lib/octokit/version.rb +1 -1
- data/octokit.gemspec +13 -12
- data/spec/fixtures/v3/blob.json +7 -0
- data/spec/fixtures/v3/commit_comment.json +19 -0
- data/spec/fixtures/v3/commit_comments.json +78 -0
- data/spec/fixtures/v3/emails.json +4 -0
- data/spec/fixtures/v3/followers.json +212 -0
- data/spec/fixtures/v3/following.json +209 -0
- data/spec/fixtures/v3/issue.json +37 -0
- data/spec/fixtures/v3/issue_closed.json +37 -0
- data/spec/fixtures/v3/issue_event.json +44 -0
- data/spec/fixtures/v3/issue_events.json +72 -0
- data/spec/fixtures/v3/list_commit_comments.json +572 -0
- data/spec/fixtures/v3/organization-repositories.json +4292 -0
- data/spec/fixtures/v3/organization-repository.json +42 -0
- data/spec/fixtures/v3/organization.json +18 -0
- data/spec/fixtures/v3/organization_members.json +576 -0
- data/spec/fixtures/v3/organization_team_members.json +16 -0
- data/spec/fixtures/v3/organization_team_repos.json +62 -0
- data/spec/fixtures/v3/organizations.json +44 -0
- data/spec/fixtures/v3/public_events.json +1110 -0
- data/spec/fixtures/v3/pull_created.json +138 -0
- data/spec/fixtures/v3/pull_request.json +138 -0
- data/spec/fixtures/v3/pull_requests.json +187 -0
- data/spec/fixtures/v3/repo_events.json +1668 -0
- data/spec/fixtures/v3/repo_issues_events.json +134 -0
- data/spec/fixtures/v3/team.json +8 -0
- data/spec/fixtures/v3/teams.json +4 -4
- data/spec/fixtures/v3/tree.json +112 -0
- data/spec/fixtures/v3/watched.json +1022 -0
- data/spec/helper.rb +3 -3
- data/spec/octokit/client/commits_spec.rb +33 -0
- data/spec/octokit/client/events_spec.rb +27 -0
- data/spec/octokit/client/issue_events_spec.rb +30 -0
- data/spec/octokit/client/issues_spec.rb +31 -20
- data/spec/octokit/client/labels_spec.rb +1 -1
- data/spec/octokit/client/objects_spec.rb +9 -8
- data/spec/octokit/client/organizations_spec.rb +56 -67
- data/spec/octokit/client/pulls_spec.rb +19 -18
- data/spec/octokit/client/repositories_spec.rb +24 -38
- data/spec/octokit/client/users_spec.rb +50 -51
- data/spec/octokit/client_spec.rb +16 -0
- metadata +111 -81
- data/puppeteer.jpg +0 -0
- data/spec/fixtures/v2/blob.json +0 -1
- data/spec/fixtures/v2/comment.json +0 -1
- data/spec/fixtures/v2/comments.json +0 -1
- data/spec/fixtures/v2/delete_failure.json +0 -1
- data/spec/fixtures/v2/delete_token.json +0 -1
- data/spec/fixtures/v2/emails.json +0 -1
- data/spec/fixtures/v2/followers.json +0 -1
- data/spec/fixtures/v2/following.json +0 -1
- data/spec/fixtures/v2/issue.json +0 -1
- data/spec/fixtures/v2/labels.json +0 -1
- data/spec/fixtures/v2/organization.json +0 -1
- data/spec/fixtures/v2/organizations.json +0 -1
- data/spec/fixtures/v2/public_keys.json +0 -1
- data/spec/fixtures/v2/pull.json +0 -1
- data/spec/fixtures/v2/pulls.json +0 -1
- data/spec/fixtures/v2/tags.json +0 -1
- data/spec/fixtures/v2/team.json +0 -1
- data/spec/fixtures/v2/teams.json +0 -1
- data/spec/fixtures/v2/tree.json +0 -1
@@ -0,0 +1,138 @@
|
|
1
|
+
{
|
2
|
+
"title": "Pull this awesome v3 stuff",
|
3
|
+
"url": "https://api.github.com/repos/ctshryock/octokit/pulls/15",
|
4
|
+
"merged": false,
|
5
|
+
"commits": 19,
|
6
|
+
"additions": 5015,
|
7
|
+
"created_at": "2012-02-11T16:12:31Z",
|
8
|
+
"patch_url": "https://github.com/ctshryock/octokit/pull/15.patch",
|
9
|
+
"merged_at": null,
|
10
|
+
"number": 15,
|
11
|
+
"issue_url": "https://github.com/ctshryock/octokit/issues/15",
|
12
|
+
"deletions": 112,
|
13
|
+
"head": {
|
14
|
+
"ref": "api-version-3",
|
15
|
+
"repo": {
|
16
|
+
"svn_url": "https://github.com/ctshryock/octokit",
|
17
|
+
"mirror_url": null,
|
18
|
+
"url": "https://api.github.com/repos/ctshryock/octokit",
|
19
|
+
"clone_url": "https://github.com/ctshryock/octokit.git",
|
20
|
+
"created_at": "2011-04-29T18:43:10Z",
|
21
|
+
"html_url": "https://github.com/ctshryock/octokit",
|
22
|
+
"ssh_url": "git@github.com:ctshryock/octokit.git",
|
23
|
+
"description": "Simple Ruby wrapper for the GitHub v2 API and feeds",
|
24
|
+
"has_wiki": true,
|
25
|
+
"forks": 0,
|
26
|
+
"fork": true,
|
27
|
+
"pushed_at": "2012-02-11T16:06:32Z",
|
28
|
+
"watchers": 1,
|
29
|
+
"open_issues": 1,
|
30
|
+
"master_branch": null,
|
31
|
+
"private": false,
|
32
|
+
"homepage": "",
|
33
|
+
"size": 140,
|
34
|
+
"has_issues": true,
|
35
|
+
"updated_at": "2012-02-11T16:06:34Z",
|
36
|
+
"owner": {
|
37
|
+
"url": "https://api.github.com/users/ctshryock",
|
38
|
+
"avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
39
|
+
"gravatar_id": "dfb3948650131e4f0385c3328187cfca",
|
40
|
+
"login": "ctshryock",
|
41
|
+
"id": 61721
|
42
|
+
},
|
43
|
+
"name": "octokit",
|
44
|
+
"git_url": "git://github.com/ctshryock/octokit.git",
|
45
|
+
"id": 1682040,
|
46
|
+
"has_downloads": true,
|
47
|
+
"language": "Ruby"
|
48
|
+
},
|
49
|
+
"sha": "3a3a3ca7ca0ca0026fca1bccfb090b4113a7e754",
|
50
|
+
"label": "ctshryock:api-version-3",
|
51
|
+
"user": {
|
52
|
+
"url": "https://api.github.com/users/ctshryock",
|
53
|
+
"avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
54
|
+
"gravatar_id": "dfb3948650131e4f0385c3328187cfca",
|
55
|
+
"login": "ctshryock",
|
56
|
+
"id": 61721
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"body": "Here is more V3 stuff",
|
60
|
+
"html_url": "https://github.com/ctshryock/octokit/pull/15",
|
61
|
+
"diff_url": "https://github.com/ctshryock/octokit/pull/15.diff",
|
62
|
+
"base": {
|
63
|
+
"ref": "master",
|
64
|
+
"repo": {
|
65
|
+
"svn_url": "https://github.com/ctshryock/octokit",
|
66
|
+
"mirror_url": null,
|
67
|
+
"url": "https://api.github.com/repos/ctshryock/octokit",
|
68
|
+
"clone_url": "https://github.com/ctshryock/octokit.git",
|
69
|
+
"created_at": "2011-04-29T18:43:10Z",
|
70
|
+
"html_url": "https://github.com/ctshryock/octokit",
|
71
|
+
"ssh_url": "git@github.com:ctshryock/octokit.git",
|
72
|
+
"description": "Simple Ruby wrapper for the GitHub v2 API and feeds",
|
73
|
+
"has_wiki": true,
|
74
|
+
"forks": 0,
|
75
|
+
"fork": true,
|
76
|
+
"pushed_at": "2012-02-11T16:06:32Z",
|
77
|
+
"watchers": 1,
|
78
|
+
"open_issues": 1,
|
79
|
+
"master_branch": null,
|
80
|
+
"private": false,
|
81
|
+
"homepage": "",
|
82
|
+
"size": 140,
|
83
|
+
"has_issues": true,
|
84
|
+
"updated_at": "2012-02-11T16:06:34Z",
|
85
|
+
"owner": {
|
86
|
+
"url": "https://api.github.com/users/ctshryock",
|
87
|
+
"avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
88
|
+
"gravatar_id": "dfb3948650131e4f0385c3328187cfca",
|
89
|
+
"login": "ctshryock",
|
90
|
+
"id": 61721
|
91
|
+
},
|
92
|
+
"name": "octokit",
|
93
|
+
"git_url": "git://github.com/ctshryock/octokit.git",
|
94
|
+
"id": 1682040,
|
95
|
+
"has_downloads": true,
|
96
|
+
"language": "Ruby"
|
97
|
+
},
|
98
|
+
"sha": "89e255143524b71bd91f51d2ca31b7e8c90f398c",
|
99
|
+
"label": "ctshryock:master",
|
100
|
+
"user": {
|
101
|
+
"url": "https://api.github.com/users/ctshryock",
|
102
|
+
"avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
103
|
+
"gravatar_id": "dfb3948650131e4f0385c3328187cfca",
|
104
|
+
"login": "ctshryock",
|
105
|
+
"id": 61721
|
106
|
+
}
|
107
|
+
},
|
108
|
+
"mergeable": null,
|
109
|
+
"comments": 0,
|
110
|
+
"review_comments": 0,
|
111
|
+
"_links": {
|
112
|
+
"html": {
|
113
|
+
"href": "https://github.com/ctshryock/octokit/pull/15"
|
114
|
+
},
|
115
|
+
"review_comments": {
|
116
|
+
"href": "https://api.github.com/repos/ctshryock/octokit/pulls/15/comments"
|
117
|
+
},
|
118
|
+
"comments": {
|
119
|
+
"href": "https://api.github.com/repos/ctshryock/octokit/issues/15/comments"
|
120
|
+
},
|
121
|
+
"self": {
|
122
|
+
"href": "https://api.github.com/repos/ctshryock/octokit/pulls/15"
|
123
|
+
}
|
124
|
+
},
|
125
|
+
"closed_at": null,
|
126
|
+
"updated_at": "2012-02-11T16:12:31Z",
|
127
|
+
"state": "open",
|
128
|
+
"id": 815669,
|
129
|
+
"merged_by": null,
|
130
|
+
"changed_files": 15,
|
131
|
+
"user": {
|
132
|
+
"url": "https://api.github.com/users/ctshryock",
|
133
|
+
"avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
134
|
+
"gravatar_id": "dfb3948650131e4f0385c3328187cfca",
|
135
|
+
"login": "ctshryock",
|
136
|
+
"id": 61721
|
137
|
+
}
|
138
|
+
}
|
@@ -0,0 +1,138 @@
|
|
1
|
+
{
|
2
|
+
"title": "Added new paramater for github_url",
|
3
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/pulls/67",
|
4
|
+
"merged": false,
|
5
|
+
"commits": 1,
|
6
|
+
"additions": 23,
|
7
|
+
"_links": {
|
8
|
+
"html": {
|
9
|
+
"href": "https://github.com/pengwynn/octokit/pull/67"
|
10
|
+
},
|
11
|
+
"review_comments": {
|
12
|
+
"href": "https://api.github.com/repos/pengwynn/octokit/pulls/67/comments"
|
13
|
+
},
|
14
|
+
"comments": {
|
15
|
+
"href": "https://api.github.com/repos/pengwynn/octokit/issues/67/comments"
|
16
|
+
},
|
17
|
+
"self": {
|
18
|
+
"href": "https://api.github.com/repos/pengwynn/octokit/pulls/67"
|
19
|
+
}
|
20
|
+
},
|
21
|
+
"created_at": "2012-01-31T10:54:26Z",
|
22
|
+
"merged_at": null,
|
23
|
+
"number": 67,
|
24
|
+
"issue_url": "https://github.com/pengwynn/octokit/issues/67",
|
25
|
+
"deletions": 4,
|
26
|
+
"changed_files": 3,
|
27
|
+
"head": {
|
28
|
+
"ref": "alter-url",
|
29
|
+
"repo": {
|
30
|
+
"git_url": "git://github.com/koichiro/octokit.git",
|
31
|
+
"url": "https://api.github.com/repos/koichiro/octokit",
|
32
|
+
"clone_url": "https://github.com/koichiro/octokit.git",
|
33
|
+
"svn_url": "https://github.com/koichiro/octokit",
|
34
|
+
"created_at": "2012-01-31T10:41:19Z",
|
35
|
+
"has_issues": false,
|
36
|
+
"html_url": "https://github.com/koichiro/octokit",
|
37
|
+
"ssh_url": "git@github.com:koichiro/octokit.git",
|
38
|
+
"description": "Simple Ruby wrapper for the GitHub v2, v3 API and feeds",
|
39
|
+
"has_wiki": true,
|
40
|
+
"master_branch": null,
|
41
|
+
"forks": 0,
|
42
|
+
"fork": true,
|
43
|
+
"watchers": 1,
|
44
|
+
"open_issues": 0,
|
45
|
+
"private": false,
|
46
|
+
"homepage": "",
|
47
|
+
"size": 152,
|
48
|
+
"mirror_url": null,
|
49
|
+
"updated_at": "2012-01-31T10:53:02Z",
|
50
|
+
"owner": {
|
51
|
+
"url": "https://api.github.com/users/koichiro",
|
52
|
+
"avatar_url": "https://secure.gravatar.com/avatar/1ce18b10bd8f911566c5577042b6a44c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
53
|
+
"gravatar_id": "1ce18b10bd8f911566c5577042b6a44c",
|
54
|
+
"login": "koichiro",
|
55
|
+
"id": 9646
|
56
|
+
},
|
57
|
+
"name": "octokit",
|
58
|
+
"id": 3313901,
|
59
|
+
"has_downloads": true,
|
60
|
+
"language": "Ruby",
|
61
|
+
"pushed_at": "2012-01-31T10:53:02Z"
|
62
|
+
},
|
63
|
+
"sha": "2097821c7c5aa4dc02a2cc54d5ca51968b373f95",
|
64
|
+
"label": "koichiro:alter-url",
|
65
|
+
"user": {
|
66
|
+
"url": "https://api.github.com/users/koichiro",
|
67
|
+
"avatar_url": "https://secure.gravatar.com/avatar/1ce18b10bd8f911566c5577042b6a44c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
68
|
+
"gravatar_id": "1ce18b10bd8f911566c5577042b6a44c",
|
69
|
+
"login": "koichiro",
|
70
|
+
"id": 9646
|
71
|
+
}
|
72
|
+
},
|
73
|
+
"body": "Support github alternative sites.\r\nfor example: github:enterprise https://enterprise.github.com/",
|
74
|
+
"patch_url": "https://github.com/pengwynn/octokit/pull/67.patch",
|
75
|
+
"html_url": "https://github.com/pengwynn/octokit/pull/67",
|
76
|
+
"base": {
|
77
|
+
"ref": "master",
|
78
|
+
"repo": {
|
79
|
+
"git_url": "git://github.com/pengwynn/octokit.git",
|
80
|
+
"url": "https://api.github.com/repos/pengwynn/octokit",
|
81
|
+
"clone_url": "https://github.com/pengwynn/octokit.git",
|
82
|
+
"svn_url": "https://github.com/pengwynn/octokit",
|
83
|
+
"created_at": "2009-12-10T21:41:49Z",
|
84
|
+
"has_issues": true,
|
85
|
+
"html_url": "https://github.com/pengwynn/octokit",
|
86
|
+
"ssh_url": "git@github.com:pengwynn/octokit.git",
|
87
|
+
"description": "Simple Ruby wrapper for the GitHub v2, v3 API and feeds",
|
88
|
+
"has_wiki": true,
|
89
|
+
"master_branch": null,
|
90
|
+
"forks": 45,
|
91
|
+
"fork": false,
|
92
|
+
"watchers": 170,
|
93
|
+
"open_issues": 6,
|
94
|
+
"private": false,
|
95
|
+
"homepage": "",
|
96
|
+
"size": 188,
|
97
|
+
"mirror_url": null,
|
98
|
+
"updated_at": "2012-02-09T06:27:01Z",
|
99
|
+
"owner": {
|
100
|
+
"url": "https://api.github.com/users/pengwynn",
|
101
|
+
"avatar_url": "https://secure.gravatar.com/avatar/7e19cd5486b5d6dc1ef90e671ba52ae0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
102
|
+
"gravatar_id": "7e19cd5486b5d6dc1ef90e671ba52ae0",
|
103
|
+
"login": "pengwynn",
|
104
|
+
"id": 865
|
105
|
+
},
|
106
|
+
"name": "octokit",
|
107
|
+
"id": 417862,
|
108
|
+
"has_downloads": true,
|
109
|
+
"language": "Ruby",
|
110
|
+
"pushed_at": "2012-02-05T23:56:13Z"
|
111
|
+
},
|
112
|
+
"sha": "9c5d4c76b42f535bc796f46d0bf7a5526b6066bb",
|
113
|
+
"label": "pengwynn:master",
|
114
|
+
"user": {
|
115
|
+
"url": "https://api.github.com/users/pengwynn",
|
116
|
+
"avatar_url": "https://secure.gravatar.com/avatar/7e19cd5486b5d6dc1ef90e671ba52ae0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
117
|
+
"gravatar_id": "7e19cd5486b5d6dc1ef90e671ba52ae0",
|
118
|
+
"login": "pengwynn",
|
119
|
+
"id": 865
|
120
|
+
}
|
121
|
+
},
|
122
|
+
"mergeable": true,
|
123
|
+
"comments": 2,
|
124
|
+
"review_comments": 1,
|
125
|
+
"closed_at": null,
|
126
|
+
"updated_at": "2012-01-31T14:26:49Z",
|
127
|
+
"state": "open",
|
128
|
+
"diff_url": "https://github.com/pengwynn/octokit/pull/67.diff",
|
129
|
+
"id": 759706,
|
130
|
+
"merged_by": null,
|
131
|
+
"user": {
|
132
|
+
"url": "https://api.github.com/users/koichiro",
|
133
|
+
"avatar_url": "https://secure.gravatar.com/avatar/1ce18b10bd8f911566c5577042b6a44c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
134
|
+
"gravatar_id": "1ce18b10bd8f911566c5577042b6a44c",
|
135
|
+
"login": "koichiro",
|
136
|
+
"id": 9646
|
137
|
+
}
|
138
|
+
}
|
@@ -0,0 +1,187 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"number": 928,
|
4
|
+
"patch_url": "https://github.com/sferik/rails_admin/pull/928.patch",
|
5
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/pulls/928",
|
6
|
+
"body": "Without this patch, rails\\_admin skips hidden fields when it's handing out classnames.\r\n\r\n_Bummer._\r\n\r\nBecause, I found a case where I really wanted to hook into classnames on hidden fields, too.\r\n\r\nThe case goes like this: I want to drag-and-drop nested items around, re-order them. So, I hacked together something using the `position` attribute rails\\_admin already favors, and I add `position` to the form as a hidden input.\r\nNext, I have to get jQuery UI's Sortables to _find_ that hidden `position` input. But all I have is a name and an id to work with. So unless I do something ugly like `$(\"input[name$='[position]']\")` I can't find the hidden inputs and add behavior to them.\r\n\r\nIt seemed that if I just had a classname to grab onto, it would make the code much more clear.\r\n\r\nSo, with the code in this pull request, now I get a `hidden_position_field` on the div containing the `position` inputs. Now I can update the position values whenever I drag and drop a nested item around. \r\n\r\n_Totally sweet._\r\n\r\nHow about an example? Well, given a configuration like this:\r\n\r\n config.model Thing do\r\n nested do\r\n field :position, :hidden do\r\n help '' # no caption\r\n end\r\n field :description\r\n end\r\n end\r\n\r\n… I can setup jQuery UI's Sortables on the nested items like so:\r\n\r\n $(function() {\r\n var sortable_model = 'things';\r\n \r\n var sortable_target = '#' + sortable_model + '_attributes_field';\r\n var sortable_input_field = '.hidden_position_field';\r\n var sortable_items = 'div.fields';\r\n $(sortable_target).sortable({\r\n items: sortable_items,\r\n cursor: 'all-scroll',\r\n tolerance: 'pointer',\r\n scroll: true,\r\n scrollSensitivity: 100,\r\n placeholder: 'ui-state-highlight',\r\n forcePlaceholderSize: true,\r\n forceHelperSize: true,\r\n update: function() {\r\n $.each($(sortable_target).find(sortable_input_field), function(n, obj) {\r\n $(obj).find('input').val(n);\r\n });\r\n }\r\n });\r\n });\r\n",
|
7
|
+
"closed_at": null,
|
8
|
+
"diff_url": "https://github.com/sferik/rails_admin/pull/928.diff",
|
9
|
+
"updated_at": "2012-01-16T04:09:55Z",
|
10
|
+
"state": "open",
|
11
|
+
"_links": {
|
12
|
+
"html": {
|
13
|
+
"href": "https://github.com/sferik/rails_admin/pull/928"
|
14
|
+
},
|
15
|
+
"review_comments": {
|
16
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/pulls/928/comments"
|
17
|
+
},
|
18
|
+
"comments": {
|
19
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/issues/928/comments"
|
20
|
+
},
|
21
|
+
"self": {
|
22
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/pulls/928"
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"issue_url": "https://github.com/sferik/rails_admin/issues/928",
|
26
|
+
"merged_at": null,
|
27
|
+
"user": {
|
28
|
+
"url": "https://api.github.com/users/audionerd",
|
29
|
+
"avatar_url": "https://secure.gravatar.com/avatar/9c1b01901ef90d3908c63fd3118938c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
30
|
+
"gravatar_id": "9c1b01901ef90d3908c63fd3118938c7",
|
31
|
+
"login": "audionerd",
|
32
|
+
"id": 23459
|
33
|
+
},
|
34
|
+
"title": "Give hidden input fields a field-specific classname",
|
35
|
+
"html_url": "https://github.com/sferik/rails_admin/pull/928",
|
36
|
+
"id": 691424,
|
37
|
+
"created_at": "2012-01-15T06:53:07Z"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"number": 833,
|
41
|
+
"patch_url": "https://github.com/sferik/rails_admin/pull/833.patch",
|
42
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/pulls/833",
|
43
|
+
"body": "Works the same as enum, but use 'multi' keyword to create multi select form.",
|
44
|
+
"closed_at": null,
|
45
|
+
"diff_url": "https://github.com/sferik/rails_admin/pull/833.diff",
|
46
|
+
"updated_at": "2011-11-23T15:32:23Z",
|
47
|
+
"state": "open",
|
48
|
+
"_links": {
|
49
|
+
"html": {
|
50
|
+
"href": "https://github.com/sferik/rails_admin/pull/833"
|
51
|
+
},
|
52
|
+
"review_comments": {
|
53
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/pulls/833/comments"
|
54
|
+
},
|
55
|
+
"comments": {
|
56
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/issues/833/comments"
|
57
|
+
},
|
58
|
+
"self": {
|
59
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/pulls/833"
|
60
|
+
}
|
61
|
+
},
|
62
|
+
"issue_url": "https://github.com/sferik/rails_admin/issues/833",
|
63
|
+
"merged_at": null,
|
64
|
+
"user": {
|
65
|
+
"url": "https://api.github.com/users/stiller",
|
66
|
+
"avatar_url": "https://secure.gravatar.com/avatar/150b7dfb3c10c343999c41183f3253cd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
67
|
+
"gravatar_id": "150b7dfb3c10c343999c41183f3253cd",
|
68
|
+
"login": "stiller",
|
69
|
+
"id": 548535
|
70
|
+
},
|
71
|
+
"title": "Added multi select option to enum",
|
72
|
+
"html_url": "https://github.com/sferik/rails_admin/pull/833",
|
73
|
+
"id": 496043,
|
74
|
+
"created_at": "2011-11-15T15:13:44Z"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"number": 827,
|
78
|
+
"patch_url": "https://github.com/sferik/rails_admin/pull/827.patch",
|
79
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/pulls/827",
|
80
|
+
"body": "model Event\r\nhas_many :timings\r\nhas_many :placements\r\n\r\nmodel Event::Timing\r\nhas_many :timing_placements\r\nhas_many :placements, :source => :placement, :through => :timing_placements\r\n\r\nmodel Event::Placement\r\n\r\nmodel Event::TimingPlacement\r\nbelongs_to :timing\r\nbelongs_to :placement\r\n\r\nWhen I edit the event and click \"create timing\" I want to see a multiselect with placements for the event\r\n\r\n config.model Event::Timing do\r\n parent Event\r\n\r\n field :placements do\r\n associated_collection_scope do\r\n timing = bindings[:object]\r\n Proc.new { |scope|\r\n scope = scope.where(:event_id => timing.event_id) if timing.present?\r\n scope\r\n }\r\n end\r\n end\r\n end\r\n",
|
81
|
+
"closed_at": null,
|
82
|
+
"diff_url": "https://github.com/sferik/rails_admin/pull/827.diff",
|
83
|
+
"updated_at": "2011-11-23T15:32:23Z",
|
84
|
+
"state": "open",
|
85
|
+
"_links": {
|
86
|
+
"html": {
|
87
|
+
"href": "https://github.com/sferik/rails_admin/pull/827"
|
88
|
+
},
|
89
|
+
"review_comments": {
|
90
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/pulls/827/comments"
|
91
|
+
},
|
92
|
+
"comments": {
|
93
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/issues/827/comments"
|
94
|
+
},
|
95
|
+
"self": {
|
96
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/pulls/827"
|
97
|
+
}
|
98
|
+
},
|
99
|
+
"issue_url": "https://github.com/sferik/rails_admin/issues/827",
|
100
|
+
"merged_at": null,
|
101
|
+
"user": {
|
102
|
+
"url": "https://api.github.com/users/mokevnin",
|
103
|
+
"avatar_url": "https://secure.gravatar.com/avatar/104200ed9f8e87411934cba84d04fa95?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
104
|
+
"gravatar_id": "104200ed9f8e87411934cba84d04fa95",
|
105
|
+
"login": "mokevnin",
|
106
|
+
"id": 308430
|
107
|
+
},
|
108
|
+
"title": "added associations to new object",
|
109
|
+
"html_url": "https://github.com/sferik/rails_admin/pull/827",
|
110
|
+
"id": 485317,
|
111
|
+
"created_at": "2011-11-11T08:23:32Z"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"number": 561,
|
115
|
+
"patch_url": "https://github.com/sferik/rails_admin/pull/561.patch",
|
116
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/pulls/561",
|
117
|
+
"body": "In a couple of my projects, I used rails_admin as my application framework. It covers 80% of what I needed and I only had to implement a few home made controllers to handle the 20% left.\r\n\r\nNote that to accomplish this I used the following technique: https://gist.github.com/1086055 which allows to reuse the awesome Activo theme of Rails Admin for my whole application.\r\n\r\nNow, I needed to insert some additional links to my home made controllers into the Rails Admin navigation.\r\n\r\nAnother use case would be if I wanted to have a permanent link always in the navigation: for instance, let's say I have a customer model, and I want to always see a link to \"Add new customer\" in my navigation (from every admin pages). I could use the feature as well.\r\n\r\nThis pull request is a first stab at it, which I think is not ideal:\r\n1) I don't like the configuration syntax that much\r\n2) It's missing tests and docs (to be fixed of course)\r\n\r\nThe syntax currently looks like this\r\n\r\n``` ruby\r\nRailsAdmin.config do |config|\r\n config.nav_before_models = {\r\n 'foo' => {\r\n 'label' => 'Foo',\r\n 'url' => 'foo/foo',\r\n },\r\n 'bar' => {\r\n 'label' => 'Bar',\r\n 'url' => 'bar/bar'\r\n }\r\n }\r\n config.nav_after_models = {\r\n 'stuff' => {\r\n 'label' => 'More stuff',\r\n 'url' => 'more/stuff'\r\n }\r\n }\r\nend\r\n```\r\n\r\nIdeally, I wanted to use the RailsAdmin::Config::Navigation class, but it's being deprecated. The syntax could have looked like this:\r\n\r\n``` ruby\r\nRailsAdmin.config do |config|\r\n config.navigation.before_models do\r\n link :foo do\r\n label 'Foo'\r\n url 'foo/foo'\r\n end\r\n link :bar do\r\n label 'Bar'\r\n url 'bar/bar'\r\n end\r\n end\r\n config.navigation.after_models do end\r\n link :stuff do\r\n label 'More stuff'\r\n url 'more/stuff'\r\n end\r\n end\r\nend\r\n```\r\n\r\n\r\nWhat do you think? Any suggestion on what would be the best approach?\r\n",
|
118
|
+
"closed_at": null,
|
119
|
+
"diff_url": "https://github.com/sferik/rails_admin/pull/561.diff",
|
120
|
+
"updated_at": "2011-11-23T15:32:23Z",
|
121
|
+
"state": "open",
|
122
|
+
"_links": {
|
123
|
+
"html": {
|
124
|
+
"href": "https://github.com/sferik/rails_admin/pull/561"
|
125
|
+
},
|
126
|
+
"review_comments": {
|
127
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/pulls/561/comments"
|
128
|
+
},
|
129
|
+
"comments": {
|
130
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/issues/561/comments"
|
131
|
+
},
|
132
|
+
"self": {
|
133
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/pulls/561"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"issue_url": "https://github.com/sferik/rails_admin/issues/561",
|
137
|
+
"merged_at": null,
|
138
|
+
"user": {
|
139
|
+
"url": "https://api.github.com/users/jphpsf",
|
140
|
+
"avatar_url": "https://secure.gravatar.com/avatar/c1cb39f9320d1b293114a6dc447b7873?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
141
|
+
"gravatar_id": "c1cb39f9320d1b293114a6dc447b7873",
|
142
|
+
"login": "jphpsf",
|
143
|
+
"id": 100218
|
144
|
+
},
|
145
|
+
"title": "Additional navigation proposal",
|
146
|
+
"html_url": "https://github.com/sferik/rails_admin/pull/561",
|
147
|
+
"id": 226217,
|
148
|
+
"created_at": "2011-07-16T06:03:23Z"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"number": 560,
|
152
|
+
"patch_url": "https://github.com/sferik/rails_admin/pull/560.patch",
|
153
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/pulls/560",
|
154
|
+
"body": "This is a simple change to allow to customize the text in the footer of Rails Admin. ",
|
155
|
+
"closed_at": null,
|
156
|
+
"diff_url": "https://github.com/sferik/rails_admin/pull/560.diff",
|
157
|
+
"updated_at": "2011-11-23T15:32:23Z",
|
158
|
+
"state": "open",
|
159
|
+
"_links": {
|
160
|
+
"html": {
|
161
|
+
"href": "https://github.com/sferik/rails_admin/pull/560"
|
162
|
+
},
|
163
|
+
"review_comments": {
|
164
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/pulls/560/comments"
|
165
|
+
},
|
166
|
+
"comments": {
|
167
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/issues/560/comments"
|
168
|
+
},
|
169
|
+
"self": {
|
170
|
+
"href": "https://api.github.com/repos/sferik/rails_admin/pulls/560"
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"issue_url": "https://github.com/sferik/rails_admin/issues/560",
|
174
|
+
"merged_at": null,
|
175
|
+
"user": {
|
176
|
+
"url": "https://api.github.com/users/jphpsf",
|
177
|
+
"avatar_url": "https://secure.gravatar.com/avatar/c1cb39f9320d1b293114a6dc447b7873?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
178
|
+
"gravatar_id": "c1cb39f9320d1b293114a6dc447b7873",
|
179
|
+
"login": "jphpsf",
|
180
|
+
"id": 100218
|
181
|
+
},
|
182
|
+
"title": "Make the footer customizable",
|
183
|
+
"html_url": "https://github.com/sferik/rails_admin/pull/560",
|
184
|
+
"id": 226194,
|
185
|
+
"created_at": "2011-07-16T04:24:26Z"
|
186
|
+
}
|
187
|
+
]
|