octokit 1.19.0 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/.travis.yml +2 -0
  2. data/CHANGELOG.md +11 -0
  3. data/README.md +35 -1
  4. data/lib/faraday/response/raise_octokit_error.rb +15 -22
  5. data/lib/octokit.rb +2 -1
  6. data/lib/octokit/authentication.rb +15 -0
  7. data/lib/octokit/client.rb +4 -0
  8. data/lib/octokit/client/authorizations.rb +1 -1
  9. data/lib/octokit/client/commits.rb +15 -14
  10. data/lib/octokit/client/contents.rb +42 -42
  11. data/lib/octokit/client/downloads.rb +5 -1
  12. data/lib/octokit/client/gists.rb +6 -12
  13. data/lib/octokit/client/gitignore.rb +41 -0
  14. data/lib/octokit/client/issues.rb +30 -1
  15. data/lib/octokit/client/labels.rb +2 -2
  16. data/lib/octokit/client/milestones.rb +1 -1
  17. data/lib/octokit/client/notifications.rb +1 -5
  18. data/lib/octokit/client/organizations.rb +11 -15
  19. data/lib/octokit/client/pulls.rb +33 -7
  20. data/lib/octokit/client/refs.rb +1 -1
  21. data/lib/octokit/client/repositories.rb +27 -40
  22. data/lib/octokit/client/users.rb +25 -13
  23. data/lib/octokit/configuration.rb +4 -2
  24. data/lib/octokit/connection.rb +6 -4
  25. data/lib/octokit/request.rb +9 -0
  26. data/lib/octokit/version.rb +1 -1
  27. data/octokit.gemspec +2 -1
  28. data/spec/fixtures/.netrc +2 -0
  29. data/spec/fixtures/all_repositories.json +122 -0
  30. data/spec/fixtures/all_users.json +34 -0
  31. data/spec/fixtures/gitignore_template_ruby.json +4 -0
  32. data/spec/fixtures/gitignore_templates.json +78 -0
  33. data/spec/fixtures/pull_requests_comments.json +82 -0
  34. data/spec/fixtures/repository_issues_comments.json +52 -0
  35. data/spec/octokit/client/authorizations_spec.rb +1 -1
  36. data/spec/octokit/client/commits_spec.rb +1 -1
  37. data/spec/octokit/client/downloads_spec.rb +1 -1
  38. data/spec/octokit/client/gists_spec.rb +6 -6
  39. data/spec/octokit/client/gitignore_spec.rb +29 -0
  40. data/spec/octokit/client/issues_spec.rb +12 -1
  41. data/spec/octokit/client/labels_spec.rb +2 -2
  42. data/spec/octokit/client/milestones_spec.rb +1 -1
  43. data/spec/octokit/client/notifications_spec.rb +10 -10
  44. data/spec/octokit/client/organizations_spec.rb +10 -10
  45. data/spec/octokit/client/pulls_spec.rb +13 -2
  46. data/spec/octokit/client/refs_spec.rb +1 -1
  47. data/spec/octokit/client/repositories_spec.rb +25 -14
  48. data/spec/octokit/client/users_spec.rb +17 -6
  49. data/spec/octokit/client_spec.rb +47 -1
  50. data/spec/octokit_spec.rb +1 -1
  51. metadata +36 -3
@@ -17,13 +17,14 @@ module Octokit
17
17
  :client_secret,
18
18
  :user_agent,
19
19
  :request_host,
20
+ :netrc,
20
21
  :auto_traversal,
21
22
  :per_page].freeze
22
23
 
23
24
  DEFAULT_ADAPTER = Faraday.default_adapter
24
25
  DEFAULT_API_VERSION = 3
25
- DEFAULT_API_ENDPOINT = 'https://api.github.com/'
26
- DEFAULT_WEB_ENDPOINT = 'https://github.com/'
26
+ DEFAULT_API_ENDPOINT = ENV['OCTOKIT_API_ENDPOINT'] || 'https://api.github.com/'
27
+ DEFAULT_WEB_ENDPOINT = ENV['OCTOKIT_WEB_ENDPOINT'] || 'https://github.com/'
27
28
  DEFAULT_USER_AGENT = "Octokit Ruby Gem #{Octokit::VERSION}".freeze
28
29
  DEFAULT_AUTO_TRAVERSAL = false
29
30
 
@@ -65,6 +66,7 @@ module Octokit
65
66
  self.client_id = nil
66
67
  self.client_secret = nil
67
68
  self.request_host = nil
69
+ self.netrc = false
68
70
  self.user_agent = DEFAULT_USER_AGENT
69
71
  self.auto_traversal = DEFAULT_AUTO_TRAVERSAL
70
72
  end
@@ -8,11 +8,11 @@ module Octokit
8
8
 
9
9
  def connection(options={})
10
10
  options = {
11
- :authenticate => true,
11
+ :authenticate => true,
12
12
  :force_urlencoded => false,
13
- :raw => false,
14
- :ssl => { :verify => false },
15
- :url => Octokit.api_endpoint
13
+ :raw => false,
14
+ :ssl => { :verify => false },
15
+ :url => api_endpoint
16
16
  }.merge(options)
17
17
 
18
18
  if !proxy.nil?
@@ -43,6 +43,8 @@ module Octokit
43
43
  connection.basic_auth authentication[:login], authentication[:password]
44
44
  end
45
45
 
46
+ connection.headers[:user_agent] = user_agent
47
+
46
48
  connection
47
49
  end
48
50
  end
@@ -35,6 +35,15 @@ module Octokit
35
35
 
36
36
  private
37
37
 
38
+ # Executes the request, checking if it was successful
39
+ #
40
+ # @return [Boolean] True on success, false otherwise
41
+ def boolean_from_response(method, path, options={})
42
+ request(method, path, options).status == 204
43
+ rescue Octokit::NotFound
44
+ false
45
+ end
46
+
38
47
  def request(method, path, options={})
39
48
  path.sub(%r{^/}, '') #leading slash in path fails in github:enterprise
40
49
 
@@ -1,3 +1,3 @@
1
1
  module Octokit
2
- VERSION = "1.19.0" unless defined?(Octokit::VERSION)
2
+ VERSION = "1.20.0" unless defined?(Octokit::VERSION)
3
3
  end
data/octokit.gemspec CHANGED
@@ -7,8 +7,9 @@ Gem::Specification.new do |spec|
7
7
  spec.add_dependency 'faraday_middleware', '~> 0.9'
8
8
  spec.add_dependency 'hashie', '~> 1.2'
9
9
  spec.add_dependency 'multi_json', '~> 1.3'
10
+ spec.add_dependency 'netrc', '~> 0.7.7'
10
11
  spec.add_development_dependency 'json', '~> 1.7'
11
- spec.add_development_dependency 'maruku'
12
+ spec.add_development_dependency 'kramdown'
12
13
  spec.add_development_dependency 'rake'
13
14
  spec.add_development_dependency 'rspec'
14
15
  spec.add_development_dependency 'simplecov'
@@ -0,0 +1,2 @@
1
+ machine api.github.com login sferik password il0veruby
2
+ machine api.github.dev login defunkt password il0veruby
@@ -0,0 +1,122 @@
1
+ [
2
+ {
3
+ "archive_url": "https://api.github.com/repos/mojombo/grit/{archive_format}{/ref}",
4
+ "issue_comment_url": "https://api.github.com/repos/mojombo/grit/issues/comments/{number}",
5
+ "branches_url": "https://api.github.com/repos/mojombo/grit/branches{/branch}",
6
+ "full_name": "mojombo/grit",
7
+ "notifications_url": "https://api.github.com/repos/mojombo/grit/notifications{?since,all,participating}",
8
+ "compare_url": "https://api.github.com/repos/mojombo/grit/compare/{base}...{head}",
9
+ "subscribers_url": "https://api.github.com/repos/mojombo/grit/subscribers",
10
+ "stargazers_url": "https://api.github.com/repos/mojombo/grit/stargazers",
11
+ "collaborators_url": "https://api.github.com/repos/mojombo/grit/collaborators{/collaborator}",
12
+ "html_url": "https://github.com/mojombo/grit",
13
+ "owner": {
14
+ "login": "mojombo",
15
+ "starred_url": "https://api.github.com/users/mojombo/starred{/owner}{/repo}",
16
+ "gists_url": "https://api.github.com/users/mojombo/gists{/gist_id}",
17
+ "organizations_url": "https://api.github.com/users/mojombo/orgs",
18
+ "followers_url": "https://api.github.com/users/mojombo/followers",
19
+ "url": "https://api.github.com/users/mojombo",
20
+ "repos_url": "https://api.github.com/users/mojombo/repos",
21
+ "following_url": "https://api.github.com/users/mojombo/following",
22
+ "avatar_url": "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
23
+ "gravatar_id": "25c7c18223fb42a4c6ae1c8db6f50f9b",
24
+ "received_events_url": "https://api.github.com/users/mojombo/received_events",
25
+ "subscriptions_url": "https://api.github.com/users/mojombo/subscriptions",
26
+ "id": 1,
27
+ "events_url": "https://api.github.com/users/mojombo/events{/privacy}"
28
+ },
29
+ "labels_url": "https://api.github.com/repos/mojombo/grit/labels{/name}",
30
+ "pulls_url": "https://api.github.com/repos/mojombo/grit/pulls{/number}",
31
+ "contributors_url": "https://api.github.com/repos/mojombo/grit/contributors",
32
+ "blobs_url": "https://api.github.com/repos/mojombo/grit/git/blobs{/sha}",
33
+ "issues_url": "https://api.github.com/repos/mojombo/grit/issues{/number}",
34
+ "comments_url": "https://api.github.com/repos/mojombo/grit/comments{/number}",
35
+ "subscription_url": "https://api.github.com/repos/mojombo/grit/subscription",
36
+ "teams_url": "https://api.github.com/repos/mojombo/grit/teams",
37
+ "keys_url": "https://api.github.com/repos/mojombo/grit/keys{/key_id}",
38
+ "milestones_url": "https://api.github.com/repos/mojombo/grit/milestones{/number}",
39
+ "downloads_url": "https://api.github.com/repos/mojombo/grit/downloads",
40
+ "git_tags_url": "https://api.github.com/repos/mojombo/grit/git/tags{/sha}",
41
+ "git_commits_url": "https://api.github.com/repos/mojombo/grit/git/commits{/sha}",
42
+ "hooks_url": "https://api.github.com/repos/mojombo/grit/hooks",
43
+ "description": "Grit gives you object oriented read/write access to Git repositories via Ruby.",
44
+ "git_refs_url": "https://api.github.com/repos/mojombo/grit/git/refs{/sha}",
45
+ "url": "https://api.github.com/repos/mojombo/grit",
46
+ "contents_url": "https://api.github.com/repos/mojombo/grit/contents/{+path}",
47
+ "tags_url": "https://api.github.com/repos/mojombo/grit/tags{/tag}",
48
+ "issue_events_url": "https://api.github.com/repos/mojombo/grit/issues/events{/number}",
49
+ "fork": false,
50
+ "commits_url": "https://api.github.com/repos/mojombo/grit/commits{/sha}",
51
+ "trees_url": "https://api.github.com/repos/mojombo/grit/git/trees{/sha}",
52
+ "name": "grit",
53
+ "merges_url": "https://api.github.com/repos/mojombo/grit/merges",
54
+ "languages_url": "https://api.github.com/repos/mojombo/grit/languages",
55
+ "assignees_url": "https://api.github.com/repos/mojombo/grit/assignees{/user}",
56
+ "private": false,
57
+ "id": 1,
58
+ "statuses_url": "https://api.github.com/repos/mojombo/grit/statuses/{sha}",
59
+ "events_url": "https://api.github.com/repos/mojombo/grit/events",
60
+ "forks_url": "https://api.github.com/repos/mojombo/grit/forks"
61
+ },
62
+ {
63
+ "archive_url": "https://api.github.com/repos/wycats/merb-core/{archive_format}{/ref}",
64
+ "issue_comment_url": "https://api.github.com/repos/wycats/merb-core/issues/comments/{number}",
65
+ "branches_url": "https://api.github.com/repos/wycats/merb-core/branches{/branch}",
66
+ "full_name": "wycats/merb-core",
67
+ "notifications_url": "https://api.github.com/repos/wycats/merb-core/notifications{?since,all,participating}",
68
+ "compare_url": "https://api.github.com/repos/wycats/merb-core/compare/{base}...{head}",
69
+ "subscribers_url": "https://api.github.com/repos/wycats/merb-core/subscribers",
70
+ "stargazers_url": "https://api.github.com/repos/wycats/merb-core/stargazers",
71
+ "collaborators_url": "https://api.github.com/repos/wycats/merb-core/collaborators{/collaborator}",
72
+ "html_url": "https://github.com/wycats/merb-core",
73
+ "owner": {
74
+ "login": "wycats",
75
+ "starred_url": "https://api.github.com/users/wycats/starred{/owner}{/repo}",
76
+ "gists_url": "https://api.github.com/users/wycats/gists{/gist_id}",
77
+ "organizations_url": "https://api.github.com/users/wycats/orgs",
78
+ "followers_url": "https://api.github.com/users/wycats/followers",
79
+ "url": "https://api.github.com/users/wycats",
80
+ "repos_url": "https://api.github.com/users/wycats/repos",
81
+ "following_url": "https://api.github.com/users/wycats/following",
82
+ "avatar_url": "https://secure.gravatar.com/avatar/428167a3ec72235ba971162924492609?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
83
+ "gravatar_id": "428167a3ec72235ba971162924492609",
84
+ "received_events_url": "https://api.github.com/users/wycats/received_events",
85
+ "subscriptions_url": "https://api.github.com/users/wycats/subscriptions",
86
+ "id": 4,
87
+ "events_url": "https://api.github.com/users/wycats/events{/privacy}"
88
+ },
89
+ "labels_url": "https://api.github.com/repos/wycats/merb-core/labels{/name}",
90
+ "pulls_url": "https://api.github.com/repos/wycats/merb-core/pulls{/number}",
91
+ "contributors_url": "https://api.github.com/repos/wycats/merb-core/contributors",
92
+ "blobs_url": "https://api.github.com/repos/wycats/merb-core/git/blobs{/sha}",
93
+ "issues_url": "https://api.github.com/repos/wycats/merb-core/issues{/number}",
94
+ "comments_url": "https://api.github.com/repos/wycats/merb-core/comments{/number}",
95
+ "subscription_url": "https://api.github.com/repos/wycats/merb-core/subscription",
96
+ "teams_url": "https://api.github.com/repos/wycats/merb-core/teams",
97
+ "keys_url": "https://api.github.com/repos/wycats/merb-core/keys{/key_id}",
98
+ "milestones_url": "https://api.github.com/repos/wycats/merb-core/milestones{/number}",
99
+ "downloads_url": "https://api.github.com/repos/wycats/merb-core/downloads",
100
+ "git_tags_url": "https://api.github.com/repos/wycats/merb-core/git/tags{/sha}",
101
+ "git_commits_url": "https://api.github.com/repos/wycats/merb-core/git/commits{/sha}",
102
+ "hooks_url": "https://api.github.com/repos/wycats/merb-core/hooks",
103
+ "description": "Merb Core: All you need. None you don't.",
104
+ "git_refs_url": "https://api.github.com/repos/wycats/merb-core/git/refs{/sha}",
105
+ "url": "https://api.github.com/repos/wycats/merb-core",
106
+ "contents_url": "https://api.github.com/repos/wycats/merb-core/contents/{+path}",
107
+ "tags_url": "https://api.github.com/repos/wycats/merb-core/tags{/tag}",
108
+ "issue_events_url": "https://api.github.com/repos/wycats/merb-core/issues/events{/number}",
109
+ "fork": false,
110
+ "commits_url": "https://api.github.com/repos/wycats/merb-core/commits{/sha}",
111
+ "trees_url": "https://api.github.com/repos/wycats/merb-core/git/trees{/sha}",
112
+ "name": "merb-core",
113
+ "merges_url": "https://api.github.com/repos/wycats/merb-core/merges",
114
+ "languages_url": "https://api.github.com/repos/wycats/merb-core/languages",
115
+ "assignees_url": "https://api.github.com/repos/wycats/merb-core/assignees{/user}",
116
+ "private": false,
117
+ "id": 26,
118
+ "statuses_url": "https://api.github.com/repos/wycats/merb-core/statuses/{sha}",
119
+ "events_url": "https://api.github.com/repos/wycats/merb-core/events",
120
+ "forks_url": "https://api.github.com/repos/wycats/merb-core/forks"
121
+ }
122
+ ]
@@ -0,0 +1,34 @@
1
+ [
2
+ {
3
+ "avatar_url": "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
4
+ "login": "mojombo",
5
+ "events_url": "https://api.github.com/users/mojombo/events{/privacy}",
6
+ "gists_url": "https://api.github.com/users/mojombo/gists{/gist_id}",
7
+ "organizations_url": "https://api.github.com/users/mojombo/orgs",
8
+ "starred_url": "https://api.github.com/users/mojombo/starred{/owner}{/repo}",
9
+ "followers_url": "https://api.github.com/users/mojombo/followers",
10
+ "url": "https://api.github.com/users/mojombo",
11
+ "repos_url": "https://api.github.com/users/mojombo/repos",
12
+ "following_url": "https://api.github.com/users/mojombo/following",
13
+ "gravatar_id": "25c7c18223fb42a4c6ae1c8db6f50f9b",
14
+ "received_events_url": "https://api.github.com/users/mojombo/received_events",
15
+ "subscriptions_url": "https://api.github.com/users/mojombo/subscriptions",
16
+ "id": 1
17
+ },
18
+ {
19
+ "avatar_url": "https://secure.gravatar.com/avatar/b8dbb1987e8e5318584865f880036796?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
20
+ "login": "defunkt",
21
+ "events_url": "https://api.github.com/users/defunkt/events{/privacy}",
22
+ "gists_url": "https://api.github.com/users/defunkt/gists{/gist_id}",
23
+ "organizations_url": "https://api.github.com/users/defunkt/orgs",
24
+ "starred_url": "https://api.github.com/users/defunkt/starred{/owner}{/repo}",
25
+ "followers_url": "https://api.github.com/users/defunkt/followers",
26
+ "url": "https://api.github.com/users/defunkt",
27
+ "repos_url": "https://api.github.com/users/defunkt/repos",
28
+ "following_url": "https://api.github.com/users/defunkt/following",
29
+ "gravatar_id": "b8dbb1987e8e5318584865f880036796",
30
+ "received_events_url": "https://api.github.com/users/defunkt/received_events",
31
+ "subscriptions_url": "https://api.github.com/users/defunkt/subscriptions",
32
+ "id": 2
33
+ }
34
+ ]
@@ -0,0 +1,4 @@
1
+ {
2
+ "source": "*.gem\n*.rbc\n.bundle\n.config\ncoverage\nInstalledFiles\nlib/bundler/man\npkg\nrdoc\nspec/reports\ntest/tmp\ntest/version_tmp\ntmp\n\n# YARD artifacts\n.yardoc\n_yardoc\ndoc/\n",
3
+ "name": "Ruby"
4
+ }
@@ -0,0 +1,78 @@
1
+ [
2
+ "Actionscript",
3
+ "Android",
4
+ "AppceleratorTitanium",
5
+ "Autotools",
6
+ "Bancha",
7
+ "C",
8
+ "C++",
9
+ "CFWheels",
10
+ "CMake",
11
+ "CSharp",
12
+ "CakePHP",
13
+ "Clojure",
14
+ "CodeIgniter",
15
+ "Compass",
16
+ "Concrete5",
17
+ "Coq",
18
+ "Delphi",
19
+ "Django",
20
+ "Drupal",
21
+ "Erlang",
22
+ "ExpressionEngine",
23
+ "Finale",
24
+ "ForceDotCom",
25
+ "FuelPHP",
26
+ "GWT",
27
+ "Go",
28
+ "Grails",
29
+ "Haskell",
30
+ "Java",
31
+ "Jboss",
32
+ "Jekyll",
33
+ "Joomla",
34
+ "Jython",
35
+ "Kohana",
36
+ "LaTeX",
37
+ "Leiningen",
38
+ "LemonStand",
39
+ "Lilypond",
40
+ "Lithium",
41
+ "Magento",
42
+ "Maven",
43
+ "Node",
44
+ "OCaml",
45
+ "Objective-C",
46
+ "Opa",
47
+ "OracleForms",
48
+ "Perl",
49
+ "PlayFramework",
50
+ "Python",
51
+ "Qooxdoo",
52
+ "Qt",
53
+ "R",
54
+ "Rails",
55
+ "RhodesRhomobile",
56
+ "Ruby",
57
+ "Scala",
58
+ "Sdcc",
59
+ "SeamGen",
60
+ "SketchUp",
61
+ "SugarCRM",
62
+ "Symfony",
63
+ "Symfony2",
64
+ "SymphonyCMS",
65
+ "Target3001",
66
+ "Tasm",
67
+ "Textpattern",
68
+ "TurboGears2",
69
+ "Unity",
70
+ "VB.Net",
71
+ "Waf",
72
+ "Wordpress",
73
+ "Yii",
74
+ "ZendFramework",
75
+ "gcov",
76
+ "nanoc",
77
+ "opencart"
78
+ ]
@@ -0,0 +1,82 @@
1
+ [
2
+ {
3
+ "created_at": "2011-08-28T23:35:50Z",
4
+ "original_commit_id": "472ae972b0180136c4745df19bbb045a5c6efa38",
5
+ "body": "Please remove this.",
6
+ "url": "https://api.github.com/repos/pengwynn/octokit/pulls/comments/104862",
7
+ "path": "lib/octokit/client/repositories.rb",
8
+ "commit_id": "3ae33359b5135c9c5e43f6eda6623465aa36427f",
9
+ "user": {
10
+ "type": "User",
11
+ "subscriptions_url": "https://api.github.com/users/sferik/subscriptions",
12
+ "url": "https://api.github.com/users/sferik",
13
+ "starred_url": "https://api.github.com/users/sferik/starred{/owner}{/repo}",
14
+ "repos_url": "https://api.github.com/users/sferik/repos",
15
+ "avatar_url": "https://secure.gravatar.com/avatar/1f74b13f1e5c6c69cb5d7fbaabb1e2cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
16
+ "gists_url": "https://api.github.com/users/sferik/gists{/gist_id}",
17
+ "events_url": "https://api.github.com/users/sferik/events{/privacy}",
18
+ "gravatar_id": "1f74b13f1e5c6c69cb5d7fbaabb1e2cb",
19
+ "login": "sferik",
20
+ "organizations_url": "https://api.github.com/users/sferik/orgs",
21
+ "received_events_url": "https://api.github.com/users/sferik/received_events",
22
+ "followers_url": "https://api.github.com/users/sferik/followers",
23
+ "id": 10308,
24
+ "following_url": "https://api.github.com/users/sferik/following"
25
+ },
26
+ "updated_at": "2011-08-28T23:42:45Z",
27
+ "_links": {
28
+ "html": {
29
+ "href": "https://github.com/pengwynn/octokit/pull/52#discussion_r104862"
30
+ },
31
+ "self": {
32
+ "href": "https://api.github.com/repos/pengwynn/octokit/pulls/comments/104862"
33
+ },
34
+ "pull_request": {
35
+ "href": "https://api.github.com/repos/pengwynn/octokit/pulls/52"
36
+ }
37
+ },
38
+ "original_position": 2,
39
+ "position": null,
40
+ "id": 104862
41
+ },
42
+ {
43
+ "created_at": "2011-08-28T23:43:30Z",
44
+ "original_commit_id": "472ae972b0180136c4745df19bbb045a5c6efa38",
45
+ "body": "Whoops. Fixed now.",
46
+ "url": "https://api.github.com/repos/pengwynn/octokit/pulls/comments/104864",
47
+ "path": "lib/octokit/client/repositories.rb",
48
+ "commit_id": "3ae33359b5135c9c5e43f6eda6623465aa36427f",
49
+ "user": {
50
+ "type": "User",
51
+ "subscriptions_url": "https://api.github.com/users/alexkwolfe/subscriptions",
52
+ "url": "https://api.github.com/users/alexkwolfe",
53
+ "starred_url": "https://api.github.com/users/alexkwolfe/starred{/owner}{/repo}",
54
+ "repos_url": "https://api.github.com/users/alexkwolfe/repos",
55
+ "avatar_url": "https://secure.gravatar.com/avatar/72d403ad3c243379dfdb5da3e6179c05?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
56
+ "gists_url": "https://api.github.com/users/alexkwolfe/gists{/gist_id}",
57
+ "events_url": "https://api.github.com/users/alexkwolfe/events{/privacy}",
58
+ "gravatar_id": "72d403ad3c243379dfdb5da3e6179c05",
59
+ "login": "alexkwolfe",
60
+ "organizations_url": "https://api.github.com/users/alexkwolfe/orgs",
61
+ "received_events_url": "https://api.github.com/users/alexkwolfe/received_events",
62
+ "followers_url": "https://api.github.com/users/alexkwolfe/followers",
63
+ "id": 569,
64
+ "following_url": "https://api.github.com/users/alexkwolfe/following"
65
+ },
66
+ "updated_at": "2011-08-28T23:43:30Z",
67
+ "_links": {
68
+ "html": {
69
+ "href": "https://github.com/pengwynn/octokit/pull/52#discussion_r104864"
70
+ },
71
+ "self": {
72
+ "href": "https://api.github.com/repos/pengwynn/octokit/pulls/comments/104864"
73
+ },
74
+ "pull_request": {
75
+ "href": "https://api.github.com/repos/pengwynn/octokit/pulls/52"
76
+ }
77
+ },
78
+ "original_position": 2,
79
+ "position": null,
80
+ "id": 104864
81
+ }
82
+ ]
@@ -0,0 +1,52 @@
1
+ [
2
+ {
3
+ "created_at": "2010-05-04T23:45:02Z",
4
+ "body": "It looks like it's a bug in HTTParty. I can patch on my end but I think it should really handle 404's without parsing. I'll submit a patch. Thanks!",
5
+ "url": "https://api.github.com/repos/pengwynn/octokit/issues/comments/229900",
6
+ "user": {
7
+ "type": "User",
8
+ "subscriptions_url": "https://api.github.com/users/pengwynn/subscriptions",
9
+ "url": "https://api.github.com/users/pengwynn",
10
+ "starred_url": "https://api.github.com/users/pengwynn/starred{/owner}{/repo}",
11
+ "repos_url": "https://api.github.com/users/pengwynn/repos",
12
+ "avatar_url": "https://secure.gravatar.com/avatar/7e19cd5486b5d6dc1ef90e671ba52ae0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
13
+ "gists_url": "https://api.github.com/users/pengwynn/gists{/gist_id}",
14
+ "events_url": "https://api.github.com/users/pengwynn/events{/privacy}",
15
+ "gravatar_id": "7e19cd5486b5d6dc1ef90e671ba52ae0",
16
+ "login": "pengwynn",
17
+ "organizations_url": "https://api.github.com/users/pengwynn/orgs",
18
+ "received_events_url": "https://api.github.com/users/pengwynn/received_events",
19
+ "followers_url": "https://api.github.com/users/pengwynn/followers",
20
+ "id": 865,
21
+ "following_url": "https://api.github.com/users/pengwynn/following"
22
+ },
23
+ "updated_at": "2010-05-04T23:45:02Z",
24
+ "issue_url": "https://api.github.com/repos/pengwynn/octokit/issues/186583",
25
+ "id": 229900
26
+ },
27
+ {
28
+ "created_at": "2010-05-25T08:28:03Z",
29
+ "body": "Now github return the same type has request in 404 result :\n\nhttp://support.github.com/discussions/api/11-return-404-instead-of-403-in-issues-api-for-non-existent-repository",
30
+ "url": "https://api.github.com/repos/pengwynn/octokit/issues/comments/252641",
31
+ "user": {
32
+ "type": "User",
33
+ "subscriptions_url": "https://api.github.com/users/shingara/subscriptions",
34
+ "url": "https://api.github.com/users/shingara",
35
+ "starred_url": "https://api.github.com/users/shingara/starred{/owner}{/repo}",
36
+ "repos_url": "https://api.github.com/users/shingara/repos",
37
+ "avatar_url": "https://secure.gravatar.com/avatar/2fd0206c71a1b22a9cc6293f38537461?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
38
+ "gists_url": "https://api.github.com/users/shingara/gists{/gist_id}",
39
+ "events_url": "https://api.github.com/users/shingara/events{/privacy}",
40
+ "gravatar_id": "2fd0206c71a1b22a9cc6293f38537461",
41
+ "login": "shingara",
42
+ "organizations_url": "https://api.github.com/users/shingara/orgs",
43
+ "received_events_url": "https://api.github.com/users/shingara/received_events",
44
+ "followers_url": "https://api.github.com/users/shingara/followers",
45
+ "id": 1088,
46
+ "following_url": "https://api.github.com/users/shingara/following"
47
+ },
48
+ "updated_at": "2010-05-25T08:28:03Z",
49
+ "issue_url": "https://api.github.com/repos/pengwynn/octokit/issues/186583",
50
+ "id": 252641
51
+ }
52
+ ]