onebox 1.8.39 → 1.8.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/.travis.yml +0 -1
  4. data/README.md +1 -1
  5. data/lib/onebox/engine/amazon_onebox.rb +98 -17
  6. data/lib/onebox/version.rb +3 -1
  7. data/onebox.gemspec +5 -5
  8. data/templates/amazon.mustache +7 -1
  9. metadata +7 -177
  10. data/spec/fixtures/amazon-og.response +0 -3675
  11. data/spec/fixtures/amazon.response +0 -3040
  12. data/spec/fixtures/cloudapp-gif.response +0 -66
  13. data/spec/fixtures/cloudapp-jpg.response +0 -66
  14. data/spec/fixtures/cloudapp-mp4.response +0 -65
  15. data/spec/fixtures/cloudapp-others.response +0 -66
  16. data/spec/fixtures/dailymail.response +0 -5914
  17. data/spec/fixtures/discourse_topic.response +0 -344
  18. data/spec/fixtures/discourse_topic_reply.response +0 -345
  19. data/spec/fixtures/douban.response +0 -4399
  20. data/spec/fixtures/etsy.response +0 -5827
  21. data/spec/fixtures/etsy_mobile.response +0 -4230
  22. data/spec/fixtures/gfycat.response +0 -1
  23. data/spec/fixtures/githubblob.response +0 -46
  24. data/spec/fixtures/githubcommit.response +0 -87
  25. data/spec/fixtures/githubgist.response +0 -310
  26. data/spec/fixtures/githubpullrequest.response +0 -216
  27. data/spec/fixtures/googleplayapp.response +0 -138
  28. data/spec/fixtures/image.response +0 -0
  29. data/spec/fixtures/meetup.response.html +0 -4419
  30. data/spec/fixtures/meetup_oembed.response +0 -1
  31. data/spec/fixtures/pubmed-electronic-xml.response +0 -175
  32. data/spec/fixtures/pubmed-electronic.response +0 -307
  33. data/spec/fixtures/pubmed-xml.response +0 -122
  34. data/spec/fixtures/pubmed.response +0 -300
  35. data/spec/fixtures/slides.response +0 -2852
  36. data/spec/fixtures/stackexchange-answer.response +0 -1
  37. data/spec/fixtures/stackexchange-question.response +0 -1
  38. data/spec/fixtures/twitterstatus.response +0 -2814
  39. data/spec/fixtures/video.response +0 -0
  40. data/spec/fixtures/wechat-mp.response +0 -631
  41. data/spec/fixtures/wikimedia.response +0 -1
  42. data/spec/fixtures/wikipedia.response +0 -566
  43. data/spec/fixtures/wikipediaredirected.response +0 -899
  44. data/spec/fixtures/xkcd.response +0 -1
  45. data/spec/fixtures/youku-meta.response +0 -1
  46. data/spec/fixtures/youku.response +0 -1443
  47. data/spec/fixtures/youtube-channel.response +0 -5446
  48. data/spec/fixtures/youtube-json.response +0 -1
  49. data/spec/fixtures/youtube-list-json.response +0 -1
  50. data/spec/fixtures/youtube.response +0 -1625
  51. data/spec/lib/onebox/engine/amazon_onebox_spec.rb +0 -116
  52. data/spec/lib/onebox/engine/audio_onebox_spec.rb +0 -31
  53. data/spec/lib/onebox/engine/cloudapp_onebox_spec.rb +0 -26
  54. data/spec/lib/onebox/engine/douban_onebox_spec.rb +0 -29
  55. data/spec/lib/onebox/engine/gfycat_onebox_spec.rb +0 -34
  56. data/spec/lib/onebox/engine/github_blob_onebox_spec.rb +0 -21
  57. data/spec/lib/onebox/engine/github_commit_onebox_spec.rb +0 -108
  58. data/spec/lib/onebox/engine/github_gist_onebox_spec.rb +0 -67
  59. data/spec/lib/onebox/engine/github_pullrequest_onebox_spec.rb +0 -46
  60. data/spec/lib/onebox/engine/google_docs_onebox_spec.rb +0 -35
  61. data/spec/lib/onebox/engine/google_maps_onebox_spec.rb +0 -72
  62. data/spec/lib/onebox/engine/google_play_app_onebox_spec.rb +0 -28
  63. data/spec/lib/onebox/engine/html_spec.rb +0 -25
  64. data/spec/lib/onebox/engine/image_onebox_spec.rb +0 -39
  65. data/spec/lib/onebox/engine/json_spec.rb +0 -25
  66. data/spec/lib/onebox/engine/pdf_onebox_spec.rb +0 -28
  67. data/spec/lib/onebox/engine/pubmed_onebox_spec.rb +0 -78
  68. data/spec/lib/onebox/engine/slides_onebox_spec.rb +0 -24
  69. data/spec/lib/onebox/engine/stack_exchange_onebox_spec.rb +0 -97
  70. data/spec/lib/onebox/engine/trello_onebox_spec.rb +0 -30
  71. data/spec/lib/onebox/engine/twitch_clips_onebox_spec.rb +0 -10
  72. data/spec/lib/onebox/engine/twitch_stream_onebox_spec.rb +0 -15
  73. data/spec/lib/onebox/engine/twitch_video_onebox_spec.rb +0 -10
  74. data/spec/lib/onebox/engine/twitter_status_onebox_spec.rb +0 -187
  75. data/spec/lib/onebox/engine/video_onebox_spec.rb +0 -31
  76. data/spec/lib/onebox/engine/wechat_mp_onebox_spec.rb +0 -26
  77. data/spec/lib/onebox/engine/whitelisted_generic_onebox_spec.rb +0 -179
  78. data/spec/lib/onebox/engine/wikimedia_onebox_spec.rb +0 -23
  79. data/spec/lib/onebox/engine/wikipedia_onebox_spec.rb +0 -21
  80. data/spec/lib/onebox/engine/xkcd_spec.rb +0 -27
  81. data/spec/lib/onebox/engine/youku_onebox_spec.rb +0 -13
  82. data/spec/lib/onebox/engine/youtube_onebox_spec.rb +0 -84
  83. data/spec/lib/onebox/engine_spec.rb +0 -101
  84. data/spec/lib/onebox/helpers_spec.rb +0 -73
  85. data/spec/lib/onebox/layout_spec.rb +0 -79
  86. data/spec/lib/onebox/matcher_spec.rb +0 -74
  87. data/spec/lib/onebox/preview_spec.rb +0 -74
  88. data/spec/lib/onebox/status_check_spec.rb +0 -68
  89. data/spec/lib/onebox_spec.rb +0 -65
  90. data/spec/spec_helper.rb +0 -90
  91. data/spec/support/html_spec_helper.rb +0 -18
  92. data/web/assets/javascripts/jquery.js +0 -4
  93. data/web/assets/javascripts/main.js +0 -23
  94. data/web/assets/stylesheets/normalize.css +0 -427
  95. data/web/assets/stylesheets/style.css +0 -25
  96. data/web/views/index.haml +0 -29
  97. data/web/views/layout.haml +0 -11
@@ -1 +0,0 @@
1
- {"gfyItem":{"gfyId":"amusingposhcleanerwrasse","gfyName":"AmusingPoshCleanerwrasse","gfyNumber":"679816419","userName":"anonymous","width":"1920","height":"1080","frameRate":"60","numFrames":"407","mp4Url":"https:\/\/giant.gfycat.com\/AmusingPoshCleanerwrasse.mp4","webmUrl":"https:\/\/fat.gfycat.com\/AmusingPoshCleanerwrasse.webm","webpUrl":"https:\/\/thumbs.gfycat.com\/AmusingPoshCleanerwrasse.webp","mobileUrl":"https:\/\/thumbs.gfycat.com\/AmusingPoshCleanerwrasse-mobile.mp4","mobilePosterUrl":"https:\/\/thumbs.gfycat.com\/AmusingPoshCleanerwrasse-mobile.jpg","posterUrl":"https:\/\/thumbs.gfycat.com\/AmusingPoshCleanerwrasse-poster.jpg","thumb360Url":"https:\/\/thumbs.gfycat.com\/AmusingPoshCleanerwrasse-360.mp4","thumb360PosterUrl":"https:\/\/thumbs.gfycat.com\/AmusingPoshCleanerwrasse-thumb360.jpg","thumb100PosterUrl":"https:\/\/thumbs.gfycat.com\/AmusingPoshCleanerwrasse-thumb100.jpg","max5mbGif":"https:\/\/thumbs.gfycat.com\/AmusingPoshCleanerwrasse-size_restricted.gif","max2mbGif":"https:\/\/thumbs.gfycat.com\/AmusingPoshCleanerwrasse-small.gif","mjpgUrl":"https:\/\/thumbs.gfycat.com\/AmusingPoshCleanerwrasse.mjpg","gifUrl":"https:\/\/giant.gfycat.com\/AmusingPoshCleanerwrasse.gif","gifSize":"12850292","mp4Size":"12420204","webmSize":"2146835","createDate":"1488568617","views":150,"viewsNewEpoch":"149","title":null,"extraLemmas":null,"md5":"3c9261db26eda7e8f251f0abab64f8ca","tags":null,"userTags":null,"nsfw":"0","sar":null,"url":null,"source":"1","dynamo":null,"subreddit":null,"redditId":null,"redditIdText":null,"likes":null,"dislikes":null,"published":null,"description":null,"copyrightClaimaint":null,"languageText":null,"fullDomainWhitelist":[],"fullGeoWhitelist":[],"iframeProfileImageVisible":true}}
@@ -1,46 +0,0 @@
1
- require_dependency 'oneboxer/handlebars_onebox'
2
-
3
- module Oneboxer
4
- class GithubBlobOnebox < HandlebarsOnebox
5
-
6
- matcher /^https?:\/\/(?:www\.)?github\.com\/[^\/]+\/[^\/]+\/blob\/.*/
7
- favicon 'github.png'
8
-
9
- def translate_url
10
- m = @url.match(/github\.com\/(?<user>[^\/]+)\/(?<repo>[^\/]+)\/blob\/(?<sha1>[^\/]+)\/(?<file>[^#]+)(#(L(?<from>[^-]*)(-L(?<to>.*))?))?/mi)
11
- if m
12
- @from = (m[:from] || -1).to_i
13
- @to = (m[:to] || -1).to_i
14
- @file = m[:file]
15
- return "https://raw.github.com/#{m[:user]}/#{m[:repo]}/#{m[:sha1]}/#{m[:file]}"
16
- end
17
- nil
18
- end
19
-
20
- def parse(data)
21
-
22
- if @from > 0
23
- if @to < 0
24
- @from = @from - 10
25
- @to = @from + 20
26
- end
27
- if @to > @from
28
- data = data.split("\n")[@from..@to].join("\n")
29
- end
30
- end
31
-
32
- extension = @file.split(".")[-1]
33
- @lang = extension
34
-
35
- truncated = false
36
- if data.length > SiteSetting.onebox_max_chars
37
- data = data[0..SiteSetting.onebox_max_chars-1]
38
- truncated = true
39
- end
40
-
41
- {content: data, truncated: truncated}
42
- end
43
-
44
- end
45
- end
46
-
@@ -1,87 +0,0 @@
1
- {
2
- "sha": "803d023e2307309f8b776ab3b8b7e38ba91c0919",
3
- "commit": {
4
- "author": {
5
- "name": "Sam",
6
- "email": "sam.saffron@gmail.com",
7
- "date": "2013-08-02T02:03:53Z"
8
- },
9
- "committer": {
10
- "name": "Sam",
11
- "email": "sam.saffron@gmail.com",
12
- "date": "2013-08-02T02:16:44Z"
13
- },
14
- "message": "Fixed GitHub auth, GitHub can provide us with a valid email - so automatically log in for those cases",
15
- "tree": {
16
- "sha": "8e0f3e17bb5ee3edc5701229dc1ad82dc5a41de6",
17
- "url": "https://api.github.com/repos/discourse/discourse/git/trees/8e0f3e17bb5ee3edc5701229dc1ad82dc5a41de6"
18
- },
19
- "url": "https://api.github.com/repos/discourse/discourse/git/commits/803d023e2307309f8b776ab3b8b7e38ba91c0919",
20
- "comment_count": 0
21
- },
22
- "url": "https://api.github.com/repos/discourse/discourse/commits/803d023e2307309f8b776ab3b8b7e38ba91c0919",
23
- "html_url": "https://github.com/discourse/discourse/commit/803d023e2307309f8b776ab3b8b7e38ba91c0919",
24
- "comments_url": "https://api.github.com/repos/discourse/discourse/commits/803d023e2307309f8b776ab3b8b7e38ba91c0919/comments",
25
- "author": {
26
- "login": "SamSaffron",
27
- "id": 5213,
28
- "avatar_url": "https://2.gravatar.com/avatar/3dcae8378d46c244172a115c28ca49ce?d=https%3A%2F%2Fidenticons.github.com%2F7d3010c11d08cf990b7614d2c2ca9098.png",
29
- "gravatar_id": "3dcae8378d46c244172a115c28ca49ce",
30
- "url": "https://api.github.com/users/SamSaffron",
31
- "html_url": "https://github.com/SamSaffron",
32
- "followers_url": "https://api.github.com/users/SamSaffron/followers",
33
- "following_url": "https://api.github.com/users/SamSaffron/following{/other_user}",
34
- "gists_url": "https://api.github.com/users/SamSaffron/gists{/gist_id}",
35
- "starred_url": "https://api.github.com/users/SamSaffron/starred{/owner}{/repo}",
36
- "subscriptions_url": "https://api.github.com/users/SamSaffron/subscriptions",
37
- "organizations_url": "https://api.github.com/users/SamSaffron/orgs",
38
- "repos_url": "https://api.github.com/users/SamSaffron/repos",
39
- "events_url": "https://api.github.com/users/SamSaffron/events{/privacy}",
40
- "received_events_url": "https://api.github.com/users/SamSaffron/received_events",
41
- "type": "User"
42
- },
43
- "committer": {
44
- "login": "SamSaffron",
45
- "id": 5213,
46
- "avatar_url": "https://2.gravatar.com/avatar/3dcae8378d46c244172a115c28ca49ce?d=https%3A%2F%2Fidenticons.github.com%2F7d3010c11d08cf990b7614d2c2ca9098.png",
47
- "gravatar_id": "3dcae8378d46c244172a115c28ca49ce",
48
- "url": "https://api.github.com/users/SamSaffron",
49
- "html_url": "https://github.com/SamSaffron",
50
- "followers_url": "https://api.github.com/users/SamSaffron/followers",
51
- "following_url": "https://api.github.com/users/SamSaffron/following{/other_user}",
52
- "gists_url": "https://api.github.com/users/SamSaffron/gists{/gist_id}",
53
- "starred_url": "https://api.github.com/users/SamSaffron/starred{/owner}{/repo}",
54
- "subscriptions_url": "https://api.github.com/users/SamSaffron/subscriptions",
55
- "organizations_url": "https://api.github.com/users/SamSaffron/orgs",
56
- "repos_url": "https://api.github.com/users/SamSaffron/repos",
57
- "events_url": "https://api.github.com/users/SamSaffron/events{/privacy}",
58
- "received_events_url": "https://api.github.com/users/SamSaffron/received_events",
59
- "type": "User"
60
- },
61
- "parents": [
62
- {
63
- "sha": "cf333268d5b48946a659f173716aecc1096d7e66",
64
- "url": "https://api.github.com/repos/discourse/discourse/commits/cf333268d5b48946a659f173716aecc1096d7e66",
65
- "html_url": "https://github.com/discourse/discourse/commit/cf333268d5b48946a659f173716aecc1096d7e66"
66
- }
67
- ],
68
- "stats": {
69
- "total": 20,
70
- "additions": 18,
71
- "deletions": 2
72
- },
73
- "files": [
74
- {
75
- "sha": "0edc93bbf3d28a5020ee8b2d44ed68d4e3706a1f",
76
- "filename": "app/controllers/users/omniauth_callbacks_controller.rb",
77
- "status": "modified",
78
- "additions": 18,
79
- "deletions": 2,
80
- "changes": 20,
81
- "blob_url": "https://github.com/discourse/discourse/blob/803d023e2307309f8b776ab3b8b7e38ba91c0919/app/controllers/users/omniauth_callbacks_controller.rb",
82
- "raw_url": "https://github.com/discourse/discourse/raw/803d023e2307309f8b776ab3b8b7e38ba91c0919/app/controllers/users/omniauth_callbacks_controller.rb",
83
- "contents_url": "https://api.github.com/repos/discourse/discourse/contents/app/controllers/users/omniauth_callbacks_controller.rb?ref=803d023e2307309f8b776ab3b8b7e38ba91c0919",
84
- "patch": "@@ -210,6 +210,8 @@ def create_or_sign_on_user_using_openid(auth_token)\n \n if user_open_id.blank? && user = User.find_by_email(email)\n # we trust so do an email lookup\n+ # TODO some openid providers may not be trust worthy, allow for that\n+ # for now we are good (google, yahoo are trust worthy)\n user_open_id = UserOpenId.create(url: identity_url , user_id: user.id, email: email, active: true)\n end\n \n@@ -250,18 +252,32 @@ def create_or_sign_on_user_using_github(auth_token)\n \n data = auth_token[:info]\n screen_name = data[\"nickname\"]\n+ email = data[\"email\"]\n github_user_id = auth_token[\"uid\"]\n \n session[:authentication] = {\n github_user_id: github_user_id,\n- github_screen_name: screen_name\n+ github_screen_name: screen_name,\n+ email: email,\n+ email_valid: true\n }\n \n user_info = GithubUserInfo.where(github_user_id: github_user_id).first\n \n+ if !user_info && user = User.find_by_email(email)\n+ # we trust so do an email lookup\n+ user_info = GithubUserInfo.create(\n+ user_id: user.id,\n+ screen_name: screen_name,\n+ github_user_id: github_user_id\n+ )\n+ end\n+\n @data = {\n username: screen_name,\n- auth_provider: \"Github\"\n+ auth_provider: \"Github\",\n+ email: email,\n+ email_valid: true\n }\n \n process_user_info(user_info, screen_name)"
85
- }
86
- ]
87
- }
@@ -1,310 +0,0 @@
1
- {
2
- "url": "https://api.github.com/gists/208fdd59fc4b4c39283b",
3
- "forks_url": "https://api.github.com/gists/208fdd59fc4b4c39283b/forks",
4
- "commits_url": "https://api.github.com/gists/208fdd59fc4b4c39283b/commits",
5
- "id": "208fdd59fc4b4c39283b",
6
- "git_pull_url": "https://gist.github.com/208fdd59fc4b4c39283b.git",
7
- "git_push_url": "https://gist.github.com/208fdd59fc4b4c39283b.git",
8
- "html_url": "https://gist.github.com/208fdd59fc4b4c39283b",
9
- "files": {
10
- "0.rb": {
11
- "filename": "0.rb",
12
- "type": "application/x-ruby",
13
- "language": "Ruby",
14
- "raw_url": "https://gist.githubusercontent.com/karreiro/208fdd59fc4b4c39283b/raw/42864e791652564ec50f773589df168998fbfdf7/0.rb",
15
- "size": 384,
16
- "truncated": false,
17
- "content": "3.times { puts \"Gist API test.\" }\n\n3.times { puts \"Gist API test.\" }\n\n3.times { puts \"Gist API test.\" }\n\n3.times { puts \"Gist API test.\" }\n\n3.times { puts \"Gist API test.\" }\n\n3.times { puts \"Gist API test.\" }\n\n3.times { puts \"Gist API test.\" }\n\n3.times { puts \"Gist API test.\" }\n\n3.times { puts \"Gist API test.\" }\n\n3.times { puts \"Gist API test.\" }\n\n3.times { puts \"Gist API test.\" }\n"
18
- },
19
- "1.js": {
20
- "filename": "1.js",
21
- "type": "application/javascript",
22
- "language": "JavaScript",
23
- "raw_url": "https://gist.githubusercontent.com/karreiro/208fdd59fc4b4c39283b/raw/767c3a1cec198cc2a9e6bf8a8043977cfcf3a469/1.js",
24
- "size": 22,
25
- "truncated": false,
26
- "content": "console.log(\"Hey! ;)\")"
27
- },
28
- "2.md": {
29
- "filename": "2.md",
30
- "type": "text/plain",
31
- "language": "Markdown",
32
- "raw_url": "https://gist.githubusercontent.com/karreiro/208fdd59fc4b4c39283b/raw/5da5715735f9d4d908003b4656426d53bfd69a96/2.md",
33
- "size": 25,
34
- "truncated": false,
35
- "content": "#### Hey, this is a test!"
36
- },
37
- "3.java": {
38
- "filename": "3.java",
39
- "type": "text/plain",
40
- "language": "Java",
41
- "raw_url": "https://gist.githubusercontent.com/karreiro/208fdd59fc4b4c39283b/raw/1a5f6d12fc557951f87b52f91c9cb8d6bdb2562d/3.java",
42
- "size": 43,
43
- "truncated": false,
44
- "content": "System.out.println(\"Wow! This is a test!\");"
45
- }
46
- },
47
- "public": true,
48
- "created_at": "2014-11-23T20:34:53Z",
49
- "updated_at": "2014-11-26T01:06:05Z",
50
- "description": "",
51
- "comments": 0,
52
- "user": null,
53
- "comments_url": "https://api.github.com/gists/208fdd59fc4b4c39283b/comments",
54
- "owner": {
55
- "login": "karreiro",
56
- "id": 1079279,
57
- "avatar_url": "https://avatars.githubusercontent.com/u/1079279?v=3",
58
- "gravatar_id": "",
59
- "url": "https://api.github.com/users/karreiro",
60
- "html_url": "https://github.com/karreiro",
61
- "followers_url": "https://api.github.com/users/karreiro/followers",
62
- "following_url": "https://api.github.com/users/karreiro/following{/other_user}",
63
- "gists_url": "https://api.github.com/users/karreiro/gists{/gist_id}",
64
- "starred_url": "https://api.github.com/users/karreiro/starred{/owner}{/repo}",
65
- "subscriptions_url": "https://api.github.com/users/karreiro/subscriptions",
66
- "organizations_url": "https://api.github.com/users/karreiro/orgs",
67
- "repos_url": "https://api.github.com/users/karreiro/repos",
68
- "events_url": "https://api.github.com/users/karreiro/events{/privacy}",
69
- "received_events_url": "https://api.github.com/users/karreiro/received_events",
70
- "type": "User",
71
- "site_admin": false
72
- },
73
- "forks": [
74
-
75
- ],
76
- "history": [
77
- {
78
- "user": {
79
- "login": "karreiro",
80
- "id": 1079279,
81
- "avatar_url": "https://avatars.githubusercontent.com/u/1079279?v=3",
82
- "gravatar_id": "",
83
- "url": "https://api.github.com/users/karreiro",
84
- "html_url": "https://github.com/karreiro",
85
- "followers_url": "https://api.github.com/users/karreiro/followers",
86
- "following_url": "https://api.github.com/users/karreiro/following{/other_user}",
87
- "gists_url": "https://api.github.com/users/karreiro/gists{/gist_id}",
88
- "starred_url": "https://api.github.com/users/karreiro/starred{/owner}{/repo}",
89
- "subscriptions_url": "https://api.github.com/users/karreiro/subscriptions",
90
- "organizations_url": "https://api.github.com/users/karreiro/orgs",
91
- "repos_url": "https://api.github.com/users/karreiro/repos",
92
- "events_url": "https://api.github.com/users/karreiro/events{/privacy}",
93
- "received_events_url": "https://api.github.com/users/karreiro/received_events",
94
- "type": "User",
95
- "site_admin": false
96
- },
97
- "version": "e272e4f835e80f53fb61df2dca190fdc84b9077d",
98
- "committed_at": "2014-11-26T01:06:05Z",
99
- "change_status": {
100
- "total": 4,
101
- "additions": 2,
102
- "deletions": 2
103
- },
104
- "url": "https://api.github.com/gists/208fdd59fc4b4c39283b/e272e4f835e80f53fb61df2dca190fdc84b9077d"
105
- },
106
- {
107
- "user": {
108
- "login": "karreiro",
109
- "id": 1079279,
110
- "avatar_url": "https://avatars.githubusercontent.com/u/1079279?v=3",
111
- "gravatar_id": "",
112
- "url": "https://api.github.com/users/karreiro",
113
- "html_url": "https://github.com/karreiro",
114
- "followers_url": "https://api.github.com/users/karreiro/followers",
115
- "following_url": "https://api.github.com/users/karreiro/following{/other_user}",
116
- "gists_url": "https://api.github.com/users/karreiro/gists{/gist_id}",
117
- "starred_url": "https://api.github.com/users/karreiro/starred{/owner}{/repo}",
118
- "subscriptions_url": "https://api.github.com/users/karreiro/subscriptions",
119
- "organizations_url": "https://api.github.com/users/karreiro/orgs",
120
- "repos_url": "https://api.github.com/users/karreiro/repos",
121
- "events_url": "https://api.github.com/users/karreiro/events{/privacy}",
122
- "received_events_url": "https://api.github.com/users/karreiro/received_events",
123
- "type": "User",
124
- "site_admin": false
125
- },
126
- "version": "3e26db8aae98340fce9d0eed3e0105c78dc440e9",
127
- "committed_at": "2014-11-26T01:05:48Z",
128
- "change_status": {
129
- "total": 48,
130
- "additions": 24,
131
- "deletions": 24
132
- },
133
- "url": "https://api.github.com/gists/208fdd59fc4b4c39283b/3e26db8aae98340fce9d0eed3e0105c78dc440e9"
134
- },
135
- {
136
- "user": {
137
- "login": "karreiro",
138
- "id": 1079279,
139
- "avatar_url": "https://avatars.githubusercontent.com/u/1079279?v=3",
140
- "gravatar_id": "",
141
- "url": "https://api.github.com/users/karreiro",
142
- "html_url": "https://github.com/karreiro",
143
- "followers_url": "https://api.github.com/users/karreiro/followers",
144
- "following_url": "https://api.github.com/users/karreiro/following{/other_user}",
145
- "gists_url": "https://api.github.com/users/karreiro/gists{/gist_id}",
146
- "starred_url": "https://api.github.com/users/karreiro/starred{/owner}{/repo}",
147
- "subscriptions_url": "https://api.github.com/users/karreiro/subscriptions",
148
- "organizations_url": "https://api.github.com/users/karreiro/orgs",
149
- "repos_url": "https://api.github.com/users/karreiro/repos",
150
- "events_url": "https://api.github.com/users/karreiro/events{/privacy}",
151
- "received_events_url": "https://api.github.com/users/karreiro/received_events",
152
- "type": "User",
153
- "site_admin": false
154
- },
155
- "version": "4ad435c22f01aca33b6b9425505b257b8e79fe51",
156
- "committed_at": "2014-11-26T01:05:16Z",
157
- "change_status": {
158
- "total": 22,
159
- "additions": 21,
160
- "deletions": 1
161
- },
162
- "url": "https://api.github.com/gists/208fdd59fc4b4c39283b/4ad435c22f01aca33b6b9425505b257b8e79fe51"
163
- },
164
- {
165
- "user": {
166
- "login": "karreiro",
167
- "id": 1079279,
168
- "avatar_url": "https://avatars.githubusercontent.com/u/1079279?v=3",
169
- "gravatar_id": "",
170
- "url": "https://api.github.com/users/karreiro",
171
- "html_url": "https://github.com/karreiro",
172
- "followers_url": "https://api.github.com/users/karreiro/followers",
173
- "following_url": "https://api.github.com/users/karreiro/following{/other_user}",
174
- "gists_url": "https://api.github.com/users/karreiro/gists{/gist_id}",
175
- "starred_url": "https://api.github.com/users/karreiro/starred{/owner}{/repo}",
176
- "subscriptions_url": "https://api.github.com/users/karreiro/subscriptions",
177
- "organizations_url": "https://api.github.com/users/karreiro/orgs",
178
- "repos_url": "https://api.github.com/users/karreiro/repos",
179
- "events_url": "https://api.github.com/users/karreiro/events{/privacy}",
180
- "received_events_url": "https://api.github.com/users/karreiro/received_events",
181
- "type": "User",
182
- "site_admin": false
183
- },
184
- "version": "766d913a9bbe70181944a7a74818db5a1531d7e2",
185
- "committed_at": "2014-11-26T00:56:12Z",
186
- "change_status": {
187
- "total": 2,
188
- "additions": 2,
189
- "deletions": 0
190
- },
191
- "url": "https://api.github.com/gists/208fdd59fc4b4c39283b/766d913a9bbe70181944a7a74818db5a1531d7e2"
192
- },
193
- {
194
- "user": {
195
- "login": "karreiro",
196
- "id": 1079279,
197
- "avatar_url": "https://avatars.githubusercontent.com/u/1079279?v=3",
198
- "gravatar_id": "",
199
- "url": "https://api.github.com/users/karreiro",
200
- "html_url": "https://github.com/karreiro",
201
- "followers_url": "https://api.github.com/users/karreiro/followers",
202
- "following_url": "https://api.github.com/users/karreiro/following{/other_user}",
203
- "gists_url": "https://api.github.com/users/karreiro/gists{/gist_id}",
204
- "starred_url": "https://api.github.com/users/karreiro/starred{/owner}{/repo}",
205
- "subscriptions_url": "https://api.github.com/users/karreiro/subscriptions",
206
- "organizations_url": "https://api.github.com/users/karreiro/orgs",
207
- "repos_url": "https://api.github.com/users/karreiro/repos",
208
- "events_url": "https://api.github.com/users/karreiro/events{/privacy}",
209
- "received_events_url": "https://api.github.com/users/karreiro/received_events",
210
- "type": "User",
211
- "site_admin": false
212
- },
213
- "version": "0b66a247bcbcdaeaee33b43a3b8accd499f82c8d",
214
- "committed_at": "2014-11-24T23:48:58Z",
215
- "change_status": {
216
- "total": 1,
217
- "additions": 1,
218
- "deletions": 0
219
- },
220
- "url": "https://api.github.com/gists/208fdd59fc4b4c39283b/0b66a247bcbcdaeaee33b43a3b8accd499f82c8d"
221
- },
222
- {
223
- "user": {
224
- "login": "karreiro",
225
- "id": 1079279,
226
- "avatar_url": "https://avatars.githubusercontent.com/u/1079279?v=3",
227
- "gravatar_id": "",
228
- "url": "https://api.github.com/users/karreiro",
229
- "html_url": "https://github.com/karreiro",
230
- "followers_url": "https://api.github.com/users/karreiro/followers",
231
- "following_url": "https://api.github.com/users/karreiro/following{/other_user}",
232
- "gists_url": "https://api.github.com/users/karreiro/gists{/gist_id}",
233
- "starred_url": "https://api.github.com/users/karreiro/starred{/owner}{/repo}",
234
- "subscriptions_url": "https://api.github.com/users/karreiro/subscriptions",
235
- "organizations_url": "https://api.github.com/users/karreiro/orgs",
236
- "repos_url": "https://api.github.com/users/karreiro/repos",
237
- "events_url": "https://api.github.com/users/karreiro/events{/privacy}",
238
- "received_events_url": "https://api.github.com/users/karreiro/received_events",
239
- "type": "User",
240
- "site_admin": false
241
- },
242
- "version": "310b5888a5ee830a38972f0fbace28055ab05759",
243
- "committed_at": "2014-11-24T23:47:40Z",
244
- "change_status": {
245
- "total": 99,
246
- "additions": 0,
247
- "deletions": 99
248
- },
249
- "url": "https://api.github.com/gists/208fdd59fc4b4c39283b/310b5888a5ee830a38972f0fbace28055ab05759"
250
- },
251
- {
252
- "user": {
253
- "login": "karreiro",
254
- "id": 1079279,
255
- "avatar_url": "https://avatars.githubusercontent.com/u/1079279?v=3",
256
- "gravatar_id": "",
257
- "url": "https://api.github.com/users/karreiro",
258
- "html_url": "https://github.com/karreiro",
259
- "followers_url": "https://api.github.com/users/karreiro/followers",
260
- "following_url": "https://api.github.com/users/karreiro/following{/other_user}",
261
- "gists_url": "https://api.github.com/users/karreiro/gists{/gist_id}",
262
- "starred_url": "https://api.github.com/users/karreiro/starred{/owner}{/repo}",
263
- "subscriptions_url": "https://api.github.com/users/karreiro/subscriptions",
264
- "organizations_url": "https://api.github.com/users/karreiro/orgs",
265
- "repos_url": "https://api.github.com/users/karreiro/repos",
266
- "events_url": "https://api.github.com/users/karreiro/events{/privacy}",
267
- "received_events_url": "https://api.github.com/users/karreiro/received_events",
268
- "type": "User",
269
- "site_admin": false
270
- },
271
- "version": "dc19c6c9c36079f56363062eea81e448fe1f996e",
272
- "committed_at": "2014-11-24T01:06:00Z",
273
- "change_status": {
274
- "total": 99,
275
- "additions": 99,
276
- "deletions": 0
277
- },
278
- "url": "https://api.github.com/gists/208fdd59fc4b4c39283b/dc19c6c9c36079f56363062eea81e448fe1f996e"
279
- },
280
- {
281
- "user": {
282
- "login": "karreiro",
283
- "id": 1079279,
284
- "avatar_url": "https://avatars.githubusercontent.com/u/1079279?v=3",
285
- "gravatar_id": "",
286
- "url": "https://api.github.com/users/karreiro",
287
- "html_url": "https://github.com/karreiro",
288
- "followers_url": "https://api.github.com/users/karreiro/followers",
289
- "following_url": "https://api.github.com/users/karreiro/following{/other_user}",
290
- "gists_url": "https://api.github.com/users/karreiro/gists{/gist_id}",
291
- "starred_url": "https://api.github.com/users/karreiro/starred{/owner}{/repo}",
292
- "subscriptions_url": "https://api.github.com/users/karreiro/subscriptions",
293
- "organizations_url": "https://api.github.com/users/karreiro/orgs",
294
- "repos_url": "https://api.github.com/users/karreiro/repos",
295
- "events_url": "https://api.github.com/users/karreiro/events{/privacy}",
296
- "received_events_url": "https://api.github.com/users/karreiro/received_events",
297
- "type": "User",
298
- "site_admin": false
299
- },
300
- "version": "9ec949557a17391117a30aebcd907a14d61eae88",
301
- "committed_at": "2014-11-23T20:34:53Z",
302
- "change_status": {
303
- "total": 1,
304
- "additions": 1,
305
- "deletions": 0
306
- },
307
- "url": "https://api.github.com/gists/208fdd59fc4b4c39283b/9ec949557a17391117a30aebcd907a14d61eae88"
308
- }
309
- ]
310
- }
@@ -1,216 +0,0 @@
1
- {
2
- "url": "https://api.github.com/repos/discourse/discourse/pulls/1253",
3
- "id": 7186071,
4
- "html_url": "https://github.com/discourse/discourse/pull/1253",
5
- "diff_url": "https://github.com/discourse/discourse/pull/1253.diff",
6
- "patch_url": "https://github.com/discourse/discourse/pull/1253.patch",
7
- "issue_url": "https://github.com/discourse/discourse/pull/1253",
8
- "number": 1253,
9
- "state": "closed",
10
- "title": "Add audio onebox",
11
- "user": {
12
- "login": "jamesaanderson",
13
- "id": 2722987,
14
- "avatar_url": "https://0.gravatar.com/avatar/b3e9977094ce189bbb493cf7f9adea21?d=https%3A%2F%2Fidenticons.github.com%2Fb4a68f5d10a482ee680e30f88540942a.png",
15
- "gravatar_id": "b3e9977094ce189bbb493cf7f9adea21",
16
- "url": "https://api.github.com/users/jamesaanderson",
17
- "html_url": "https://github.com/jamesaanderson",
18
- "followers_url": "https://api.github.com/users/jamesaanderson/followers",
19
- "following_url": "https://api.github.com/users/jamesaanderson/following{/other_user}",
20
- "gists_url": "https://api.github.com/users/jamesaanderson/gists{/gist_id}",
21
- "starred_url": "https://api.github.com/users/jamesaanderson/starred{/owner}{/repo}",
22
- "subscriptions_url": "https://api.github.com/users/jamesaanderson/subscriptions",
23
- "organizations_url": "https://api.github.com/users/jamesaanderson/orgs",
24
- "repos_url": "https://api.github.com/users/jamesaanderson/repos",
25
- "events_url": "https://api.github.com/users/jamesaanderson/events{/privacy}",
26
- "received_events_url": "https://api.github.com/users/jamesaanderson/received_events",
27
- "type": "User"
28
- },
29
- "body": "http://meta.discourse.org/t/audio-html5-tag/8168",
30
- "created_at": "2013-07-26T02:05:53Z",
31
- "updated_at": "2013-07-26T15:31:57Z",
32
- "closed_at": "2013-07-26T15:30:57Z",
33
- "merged_at": "2013-07-26T15:30:57Z",
34
- "merge_commit_sha": null,
35
- "assignee": null,
36
- "milestone": null,
37
- "commits_url": "https://github.com/discourse/discourse/pull/1253/commits",
38
- "review_comments_url": "https://github.com/discourse/discourse/pull/1253/comments",
39
- "review_comment_url": "/repos/discourse/discourse/pulls/comments/{number}",
40
- "comments_url": "https://api.github.com/repos/discourse/discourse/issues/1253/comments",
41
- "head": {
42
- "label": "jamesaanderson:add-audio-onebox",
43
- "ref": "add-audio-onebox",
44
- "sha": "d7d3be1130c665cc7fab9f05dbf32335229137a6",
45
- "user": {
46
- "login": "jamesaanderson",
47
- "id": 2722987,
48
- "avatar_url": "https://0.gravatar.com/avatar/b3e9977094ce189bbb493cf7f9adea21?d=https%3A%2F%2Fidenticons.github.com%2Fb4a68f5d10a482ee680e30f88540942a.png",
49
- "gravatar_id": "b3e9977094ce189bbb493cf7f9adea21",
50
- "url": "https://api.github.com/users/jamesaanderson",
51
- "html_url": "https://github.com/jamesaanderson",
52
- "followers_url": "https://api.github.com/users/jamesaanderson/followers",
53
- "following_url": "https://api.github.com/users/jamesaanderson/following{/other_user}",
54
- "gists_url": "https://api.github.com/users/jamesaanderson/gists{/gist_id}",
55
- "starred_url": "https://api.github.com/users/jamesaanderson/starred{/owner}{/repo}",
56
- "subscriptions_url": "https://api.github.com/users/jamesaanderson/subscriptions",
57
- "organizations_url": "https://api.github.com/users/jamesaanderson/orgs",
58
- "repos_url": "https://api.github.com/users/jamesaanderson/repos",
59
- "events_url": "https://api.github.com/users/jamesaanderson/events{/privacy}",
60
- "received_events_url": "https://api.github.com/users/jamesaanderson/received_events",
61
- "type": "User"
62
- },
63
- "repo": null
64
- },
65
- "base": {
66
- "label": "discourse:master",
67
- "ref": "master",
68
- "sha": "cc79d22f82ede170dd86a05274eb3c2c5eb02912",
69
- "user": {
70
- "login": "discourse",
71
- "id": 3220138,
72
- "avatar_url": "https://0.gravatar.com/avatar/b30fff48d257cdd17c4437afac19fd30?d=https%3A%2F%2Fidenticons.github.com%2Fa42d8d01d12f7137e49e7c1ee1b2b3f0.png",
73
- "gravatar_id": "b30fff48d257cdd17c4437afac19fd30",
74
- "url": "https://api.github.com/users/discourse",
75
- "html_url": "https://github.com/discourse",
76
- "followers_url": "https://api.github.com/users/discourse/followers",
77
- "following_url": "https://api.github.com/users/discourse/following{/other_user}",
78
- "gists_url": "https://api.github.com/users/discourse/gists{/gist_id}",
79
- "starred_url": "https://api.github.com/users/discourse/starred{/owner}{/repo}",
80
- "subscriptions_url": "https://api.github.com/users/discourse/subscriptions",
81
- "organizations_url": "https://api.github.com/users/discourse/orgs",
82
- "repos_url": "https://api.github.com/users/discourse/repos",
83
- "events_url": "https://api.github.com/users/discourse/events{/privacy}",
84
- "received_events_url": "https://api.github.com/users/discourse/received_events",
85
- "type": "Organization"
86
- },
87
- "repo": {
88
- "id": 7569578,
89
- "name": "discourse",
90
- "full_name": "discourse/discourse",
91
- "owner": {
92
- "login": "discourse",
93
- "id": 3220138,
94
- "avatar_url": "https://0.gravatar.com/avatar/b30fff48d257cdd17c4437afac19fd30?d=https%3A%2F%2Fidenticons.github.com%2Fa42d8d01d12f7137e49e7c1ee1b2b3f0.png",
95
- "gravatar_id": "b30fff48d257cdd17c4437afac19fd30",
96
- "url": "https://api.github.com/users/discourse",
97
- "html_url": "https://github.com/discourse",
98
- "followers_url": "https://api.github.com/users/discourse/followers",
99
- "following_url": "https://api.github.com/users/discourse/following{/other_user}",
100
- "gists_url": "https://api.github.com/users/discourse/gists{/gist_id}",
101
- "starred_url": "https://api.github.com/users/discourse/starred{/owner}{/repo}",
102
- "subscriptions_url": "https://api.github.com/users/discourse/subscriptions",
103
- "organizations_url": "https://api.github.com/users/discourse/orgs",
104
- "repos_url": "https://api.github.com/users/discourse/repos",
105
- "events_url": "https://api.github.com/users/discourse/events{/privacy}",
106
- "received_events_url": "https://api.github.com/users/discourse/received_events",
107
- "type": "Organization"
108
- },
109
- "private": false,
110
- "html_url": "https://github.com/discourse/discourse",
111
- "description": "A platform for community discussion. Free, open, simple.",
112
- "fork": false,
113
- "url": "https://api.github.com/repos/discourse/discourse",
114
- "forks_url": "https://api.github.com/repos/discourse/discourse/forks",
115
- "keys_url": "https://api.github.com/repos/discourse/discourse/keys{/key_id}",
116
- "collaborators_url": "https://api.github.com/repos/discourse/discourse/collaborators{/collaborator}",
117
- "teams_url": "https://api.github.com/repos/discourse/discourse/teams",
118
- "hooks_url": "https://api.github.com/repos/discourse/discourse/hooks",
119
- "issue_events_url": "https://api.github.com/repos/discourse/discourse/issues/events{/number}",
120
- "events_url": "https://api.github.com/repos/discourse/discourse/events",
121
- "assignees_url": "https://api.github.com/repos/discourse/discourse/assignees{/user}",
122
- "branches_url": "https://api.github.com/repos/discourse/discourse/branches{/branch}",
123
- "tags_url": "https://api.github.com/repos/discourse/discourse/tags",
124
- "blobs_url": "https://api.github.com/repos/discourse/discourse/git/blobs{/sha}",
125
- "git_tags_url": "https://api.github.com/repos/discourse/discourse/git/tags{/sha}",
126
- "git_refs_url": "https://api.github.com/repos/discourse/discourse/git/refs{/sha}",
127
- "trees_url": "https://api.github.com/repos/discourse/discourse/git/trees{/sha}",
128
- "statuses_url": "https://api.github.com/repos/discourse/discourse/statuses/{sha}",
129
- "languages_url": "https://api.github.com/repos/discourse/discourse/languages",
130
- "stargazers_url": "https://api.github.com/repos/discourse/discourse/stargazers",
131
- "contributors_url": "https://api.github.com/repos/discourse/discourse/contributors",
132
- "subscribers_url": "https://api.github.com/repos/discourse/discourse/subscribers",
133
- "subscription_url": "https://api.github.com/repos/discourse/discourse/subscription",
134
- "commits_url": "https://api.github.com/repos/discourse/discourse/commits{/sha}",
135
- "git_commits_url": "https://api.github.com/repos/discourse/discourse/git/commits{/sha}",
136
- "comments_url": "https://api.github.com/repos/discourse/discourse/comments{/number}",
137
- "issue_comment_url": "https://api.github.com/repos/discourse/discourse/issues/comments/{number}",
138
- "contents_url": "https://api.github.com/repos/discourse/discourse/contents/{+path}",
139
- "compare_url": "https://api.github.com/repos/discourse/discourse/compare/{base}...{head}",
140
- "merges_url": "https://api.github.com/repos/discourse/discourse/merges",
141
- "archive_url": "https://api.github.com/repos/discourse/discourse/{archive_format}{/ref}",
142
- "downloads_url": "https://api.github.com/repos/discourse/discourse/downloads",
143
- "issues_url": "https://api.github.com/repos/discourse/discourse/issues{/number}",
144
- "pulls_url": "https://api.github.com/repos/discourse/discourse/pulls{/number}",
145
- "milestones_url": "https://api.github.com/repos/discourse/discourse/milestones{/number}",
146
- "notifications_url": "https://api.github.com/repos/discourse/discourse/notifications{?since,all,participating}",
147
- "labels_url": "https://api.github.com/repos/discourse/discourse/labels{/name}",
148
- "created_at": "2013-01-12T00:25:55Z",
149
- "updated_at": "2013-09-28T16:44:54Z",
150
- "pushed_at": "2013-09-27T19:08:59Z",
151
- "git_url": "git://github.com/discourse/discourse.git",
152
- "ssh_url": "git@github.com:discourse/discourse.git",
153
- "clone_url": "https://github.com/discourse/discourse.git",
154
- "svn_url": "https://github.com/discourse/discourse",
155
- "homepage": "http://www.discourse.org",
156
- "size": 48020,
157
- "watchers_count": 7857,
158
- "language": "JavaScript",
159
- "has_issues": true,
160
- "has_downloads": true,
161
- "has_wiki": true,
162
- "forks_count": 1876,
163
- "mirror_url": null,
164
- "open_issues_count": 38,
165
- "forks": 1876,
166
- "open_issues": 38,
167
- "watchers": 7857,
168
- "master_branch": "master",
169
- "default_branch": "master"
170
- }
171
- },
172
- "_links": {
173
- "self": {
174
- "href": "https://api.github.com/repos/discourse/discourse/pulls/1253"
175
- },
176
- "html": {
177
- "href": "https://github.com/discourse/discourse/pull/1253"
178
- },
179
- "issue": {
180
- "href": "https://api.github.com/repos/discourse/discourse/issues/1253"
181
- },
182
- "comments": {
183
- "href": "https://api.github.com/repos/discourse/discourse/issues/1253/comments"
184
- },
185
- "review_comments": {
186
- "href": "https://api.github.com/repos/discourse/discourse/pulls/1253/comments"
187
- }
188
- },
189
- "merged": true,
190
- "mergeable": null,
191
- "mergeable_state": "unknown",
192
- "merged_by": {
193
- "login": "eviltrout",
194
- "id": 17538,
195
- "avatar_url": "https://0.gravatar.com/avatar/c6e17f2ae2a215e87ff9e878a4e63cd9?d=https%3A%2F%2Fidenticons.github.com%2Fba01baa4856d494a66a0d5eca39f5418.png",
196
- "gravatar_id": "c6e17f2ae2a215e87ff9e878a4e63cd9",
197
- "url": "https://api.github.com/users/eviltrout",
198
- "html_url": "https://github.com/eviltrout",
199
- "followers_url": "https://api.github.com/users/eviltrout/followers",
200
- "following_url": "https://api.github.com/users/eviltrout/following{/other_user}",
201
- "gists_url": "https://api.github.com/users/eviltrout/gists{/gist_id}",
202
- "starred_url": "https://api.github.com/users/eviltrout/starred{/owner}{/repo}",
203
- "subscriptions_url": "https://api.github.com/users/eviltrout/subscriptions",
204
- "organizations_url": "https://api.github.com/users/eviltrout/orgs",
205
- "repos_url": "https://api.github.com/users/eviltrout/repos",
206
- "events_url": "https://api.github.com/users/eviltrout/events{/privacy}",
207
- "received_events_url": "https://api.github.com/users/eviltrout/received_events",
208
- "type": "User"
209
- },
210
- "comments": 2,
211
- "review_comments": 0,
212
- "commits": 1,
213
- "additions": 19,
214
- "deletions": 1,
215
- "changed_files": 4
216
- }