Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

explored event types

  • Loading branch information...
commit 88529624354b63a93c8918583865e38580f14f9b 1 parent f641d6d
@alto authored
View
11 HOWTO
@@ -1,8 +1,17 @@
gh = Github.new(login: 'login', password: 'password')
-repos = gh.repos.watching.watched
+# what repos I'm watching?
+repos = gh.repos.watching.watched
repos.each_page do |page|
page.each do |repo|
puts repo.full_name
end
end
+
+# which users does alto follow?
+following = gh.users.followers.following('alto') #.map(&:login)
+following.each_page do |page|
+ page.each do |user|
+ puts user.login
+ end
+end
View
28 play/find_events.rb
@@ -0,0 +1,28 @@
+require 'open-uri'
+require 'zlib'
+require 'yajl'
+
+KNOWN_EVENTS = %w(GollumEvent PushEvent IssuesEvent IssueCommentEvent WatchEvent ForkEvent CreateEvent DownloadEvent GistEvent FollowEvent CommitCommentEvent MemberEvent PublicEvent PullRequestReviewCommentEvent DeleteEvent PullRequestEvent)
+
+1.times.each do |hour|
+ puts "processing hour #{hour}"
+ gz = open("http://data.githubarchive.org/2012-07-26-#{hour}.json.gz")
+ js = Zlib::GzipReader.new(gz).read
+ puts " fetched file"
+
+ i = 0; stop_at = 10000
+
+ types = {}
+
+ Yajl::Parser.parse(js) do |event|
+ break if i > stop_at
+ next if KNOWN_EVENTS.include?(event['type'])
+ next if types.key?(event['type'])
+
+ puts "found new event type #{event['type']}"
+ puts event.inspect
+ types[event['type']] = true
+
+ i += 1
+ end
+end
View
2  play/little.json
@@ -1 +1 @@
-{"url":"https://github.com/spoletto/iOS-HTML5-Tethering","payload":{"action":"started"},"created_at":"2012-07-25T00:01:45-07:00","public":true,"actor":"mistral7","type":"WatchEvent","repository":{"owner":"spoletto","watchers":12,"has_wiki":true,"homepage":"","pushed_at":"2012-04-24T04:03:47-07:00","forks":1,"open_issues":0,"language":"JavaScript","description":"A websocket-based tethering solution for iOS devices","fork":false,"size":528,"name":"iOS-HTML5-Tethering","url":"https://github.com/spoletto/iOS-HTML5-Tethering","has_issues":true,"private":false,"has_downloads":true,"created_at":"2012-04-08T11:36:43-07:00"},"actor_attributes":{"email":"mistral7@gmail.com","blog":"http://mstrl.com","gravatar_id":"96a9587a14191d7086506115d297019e","name":"Masaki Kawaguchi","type":"User","login":"mistral7"}}
+{"url":"https://github.com/spoletto/iOS-HTML5-Tethering","payload":{"action":"started"},"created_at":"2012-07-25T00:01:45-07:00","public":true,"actor":"mistral7","type":"WatchEvent","repository":{"owner":"spoletto","watchers":12,"has_wiki":true,"homepage":"","pushed_at":"2012-04-24T04:03:47-07:00","forks":1,"open_issues":0,"language":"JavaScript","description":"A websocket-based tethering solution for iOS devices","fork":false,"size":528,"name":"iOS-HTML5-Tethering","url":"https://github.com/spoletto/iOS-HTML5-Tethering","has_issues":true,"private":false,"has_downloads":true,"created_at":"2012-04-08T11:36:43-07:00"},"actor_attributes":{"email":"xxxxxxx@muuuh.com","blog":"http://mstrl.com","gravatar_id":"96a9587a14191d7086506115d297019e","name":"Masaki Kawaguchi","type":"User","login":"mistral7"}}
View
40 test/fixtures/commit_comment_event.rb
@@ -0,0 +1,40 @@
+{
+ "type"=>"CommitCommentEvent",
+ "url"=>"https://github.com/dragos/scala-ide/commit/74b752eb168f3bdea0a3f8f956fb46c24dfc8a6d#org.scala-ide.sdt.core/src/scala/tools/eclipse/launching/ScalaLaunchShortcut.scala-P158",
+ "public"=>true,
+ "created_at"=>"2012-07-26T00:02:58-07:00",
+ "actor_attributes"=>{
+ "gravatar_id"=>"fbd384e9626d28d1648f023a5e22672f",
+ "company"=>"Typesafe Inc.",
+ "location"=>"Lausanne, Switzerland",
+ "type"=>"User",
+ "login"=>"dragos",
+ "blog"=>"www.iulidragos.org",
+ "email"=>"xxx@muuh.com",
+ "name"=>"Iulian Dragos"
+ },
+ "repository"=>{
+ "has_downloads"=>true,
+ "owner"=>"dragos",
+ "homepage"=>"www.scala-ide.org",
+ "watchers"=>1,
+ "has_wiki"=>false,
+ "pushed_at"=>"2012-07-25T09:03:40-07:00",
+ "forks"=>0,
+ "language"=>"Scala",
+ "description"=>"Scala IDE for Eclipse",
+ "fork"=>true,
+ "size"=>344,
+ "open_issues"=>0,
+ "name"=>"scala-ide",
+ "url"=>"https://github.com/dragos/scala-ide",
+ "has_issues"=>false,
+ "private"=>false,
+ "created_at"=>"2012-03-08T02:19:34-08:00"
+ },
+ "payload"=>{
+ "comment_id"=>1632564,
+ "commit"=>"74b752eb168f3bdea0a3f8f956fb46c24dfc8a6d"
+ },
+ "actor"=>"dragos"
+}
View
37 test/fixtures/create_event.rb
@@ -0,0 +1,37 @@
+{
+ "type"=>"CreateEvent",
+ "repository"=>{
+ "watchers"=>1,
+ "owner"=>"carsontang",
+ "has_wiki"=>true,
+ "pushed_at"=>"2012-07-26T01:02:17-07:00",
+ "forks"=>0,
+ "created_at"=>"2012-07-26T01:02:16-07:00",
+ "open_issues"=>0,
+ "has_issues"=>true,
+ "fork"=>false,
+ "size"=>0,
+ "name"=>"facebook_feed",
+ "url"=>"https://github.com/carsontang/facebook_feed",
+ "has_downloads"=>true,
+ "private"=>false,
+ "description"=>"A Ruby wrapper around Facebook feed APIs. Currently, Facebook Group and Feed APIs are supported."
+ },
+ "actor_attributes"=>{
+ "email"=>"xxx@muuh.com",
+ "gravatar_id"=>"55610916cc013e6ca47eae17f088625f",
+ "type"=>"User",
+ "login"=>"carsontang",
+ "name"=>"Carson"
+ },
+ "actor"=>"carsontang",
+ "public"=>true,
+ "url"=>"https://github.com/carsontang/facebook_feed",
+ "payload"=>{
+ "ref"=>nil,
+ "ref_type"=>"repository",
+ "master_branch"=>"master",
+ "description"=>"A Ruby wrapper around Facebook feed APIs. Currently, Facebook Group and Feed APIs are supported."
+ },
+ "created_at"=>"2012-07-26T01:02:17-07:00"
+}
View
40 test/fixtures/delete_event.rb
@@ -0,0 +1,40 @@
+{
+ "type"=>"DeleteEvent",
+ "url"=>"https://github.com/",
+ "repository"=>{
+ "has_downloads"=>true,
+ "owner"=>"gaodayihao",
+ "homepage"=>"http://www.qsanguosha.com/",
+ "watchers"=>9,
+ "has_wiki"=>true,
+ "pushed_at"=>"2012-07-26T00:08:33-07:00",
+ "forks"=>3,
+ "language"=>"C++",
+ "description"=>"An open source online version of the famous board game Sanguosha",
+ "fork"=>true,
+ "size"=>948,
+ "open_issues"=>12,
+ "name"=>"QSanguosha",
+ "url"=>"https://github.com/gaodayihao/QSanguosha",
+ "has_issues"=>true,
+ "private"=>false,
+ "created_at"=>"2012-05-25T23:06:21-07:00"
+ },
+ "payload"=>{
+ "ref"=>"lua",
+ "ref_type"=>"branch"
+ },
+ "actor_attributes"=>{
+ "name"=>"Guten",
+ "type"=>"User",
+ "location"=>"Yiwu, China",
+ "company"=>"nil",
+ "blog"=>"www.GutenYe.com",
+ "email"=>"xxx@muuh.com",
+ "login"=>"GutenYe",
+ "gravatar_id"=>"01f04a3bb55ef948a186620fa5d5ea29"
+ },
+ "actor"=>"GutenYe",
+ "public"=>true,
+ "created_at"=>"2012-07-26T00:08:33-07:00"
+ }
View
38 test/fixtures/download_event.rb
@@ -0,0 +1,38 @@
+{
+ "type"=>"DownloadEvent",
+ "payload"=>{
+ "url"=>"https://github.com/downloads/Tellus/pyro-places/pyro-places.1.0rc.zip",
+ "id"=>281150
+ },
+ "actor"=>"Tellus",
+ "url"=>"https://github.com/downloads/Tellus/pyro-places/pyro-places.1.0rc.zip",
+ "created_at"=>"2012-07-26T01:02:05-07:00",
+ "actor_attributes"=>{
+ "type"=>"User",
+ "blog"=>"www.j-space.dk",
+ "location"=>"Denmark",
+ "company"=>"The Homestead",
+ "name"=>"Johannes Borresen",
+ "gravatar_id"=>"75a5758b94c89d83951ed0789ea3f34c",
+ "login"=>"Tellus"
+ },
+ "public"=>true,
+ "repository"=>{
+ "watchers"=>1,
+ "owner"=>"Tellus",
+ "has_wiki"=>true,
+ "pushed_at"=>"2012-07-26T00:50:37-07:00",
+ "forks"=>1,
+ "language"=>"PHP",
+ "created_at"=>"2012-07-24T14:41:39-07:00",
+ "open_issues"=>3,
+ "has_issues"=>true,
+ "fork"=>false,
+ "size"=>189,
+ "name"=>"pyro-places",
+ "url"=>"https://github.com/Tellus/pyro-places",
+ "has_downloads"=>true,
+ "private"=>false,
+ "description"=>"A Google Maps and locations module for PyroCMS. Very small, needs translations."
+ }
+ }
View
24 test/fixtures/follow_event.rb
@@ -0,0 +1,24 @@
+{
+ "type"=>"FollowEvent",
+ "payload"=>{
+ "target"=>{
+ "followers"=>1,
+ "gravatar_id"=>"271eb4c756c6eb8dcf9d51da0304185d",
+ "repos"=>1,
+ "login"=>"markuskoller",
+ "id"=>1006936
+ }
+ },
+ "created_at"=>"2012-07-26T00:02:46-07:00",
+ "public"=>true,
+ "actor_attributes"=>{
+ "location"=>"Zurich",
+ "gravatar_id"=>"71879c7a339c51566a3a880e1fb71f04",
+ "name"=>"Ostap Cherkashin",
+ "blog"=>"http://bandilab.org",
+ "login"=>"ostap",
+ "type"=>"User"
+ },
+ "actor"=>"ostap",
+ "url"=>"https://github.com/markuskoller"
+}
View
31 test/fixtures/fork_event.rb
@@ -0,0 +1,31 @@
+{
+ "type"=>"ForkEvent",
+ "repository"=>{
+ "watchers"=>9,
+ "owner"=>"wangxiaomo",
+ "has_wiki"=>true,
+ "pushed_at"=>"2012-06-10T00:13:12-07:00",
+ "forks"=>4,
+ "language"=>"Python",
+ "created_at"=>"2012-06-09T23:01:07-07:00",
+ "open_issues"=>0,
+ "has_issues"=>true,
+ "fork"=>false,
+ "size"=>92,
+ "name"=>"py-weibo-oauth2template",
+ "url"=>"https://github.com/wangxiaomo/py-weibo-oauth2template",
+ "has_downloads"=>true,
+ "private"=>false,
+ "description"=>""
+ },
+ "actor_attributes"=>{
+ "gravatar_id"=>"a7b85c327ae16f86c73e8dbd382d2b7a",
+ "type"=>"User",
+ "login"=>"sarices"
+ },
+ "actor"=>"sarices",
+ "public"=>true,
+ "url"=>"https://github.com/sarices/py-weibo-oauth2template",
+ "payload"=>{},
+ "created_at"=>"2012-07-26T01:02:16-07:00"
+}
View
14 test/fixtures/gist_event.rb
@@ -0,0 +1,14 @@
+{
+ "public"=>true,
+ "url"=>"https://gist.github.com/3180662",
+ "payload"=>{
+ "url"=>"https://gist.github.com/3180662",
+ "desc"=>"Prevent ReflectionTypeLoadException when calling Assembly.GetTypes()",
+ "name"=>"gist: 3180662",
+ "id"=>3180662,
+ "action"=>"create"
+ },
+ "actor"=>nil,
+ "created_at"=>"2012-07-26T00:02:18-07:00",
+ "type"=>"GistEvent"
+}
View
44 test/fixtures/gollum_event.rb
@@ -0,0 +1,44 @@
+{
+ "type"=>"GollumEvent",
+ "payload"=>{
+ "pages"=>[
+ {
+ "page_name"=>"About",
+ "sha"=>"538bcb16d9c318e7e0d18f06e6c0060f09de1ee7",
+ "summary"=>nil,
+ "title"=>"About",
+ "html_url"=>"https://github.com/AITI-Philippines/ItsMoreFuninthePhilippines/wiki/About",
+ "action"=>"edited"
+ }
+ ]
+ },
+ "created_at"=>"2012-07-26T00:02:26-07:00",
+ "public"=>true,
+ "repository"=>{
+ "has_downloads"=>true,
+ "owner"=>"AITI-Philippines",
+ "organization"=>"AITI-Philippines",
+ "watchers"=>1,
+ "has_wiki"=>true,
+ "pushed_at"=>"2012-07-24T05:46:35-07:00",
+ "forks"=>1,
+ "language"=>"Python",
+ "description"=>"Its More Fun in the Philippines",
+ "fork"=>false,
+ "size"=>2128,
+ "open_issues"=>5,
+ "name"=>"ItsMoreFuninthePhilippines",
+ "url"=>"https://github.com/AITI-Philippines/ItsMoreFuninthePhilippines",
+ "has_issues"=>true,
+ "private"=>false,
+ "created_at"=>"2012-07-03T01:51:52-07:00"
+ },
+ "actor_attributes"=>{
+ "gravatar_id"=>"6c14370045ce166a55f12f62a8031cca",
+ "name"=>"Noel Sison II",
+ "login"=>"noelsison2",
+ "type"=>"User"
+ },
+ "actor"=>"noelsison2",
+ "url"=>"https://github.com/AITI-Philippines/ItsMoreFuninthePhilippines/wiki/About"
+}
View
38 test/fixtures/issue_comment_event.rb
@@ -0,0 +1,38 @@
+{
+ "type"=>"IssueCommentEvent",
+ "repository"=>{
+ "owner"=>"activescaffold",
+ "pushed_at"=>"2012-07-21T02:26:44-07:00",
+ "forks"=>216,
+ "language"=>"Ruby",
+ "created_at"=>"2008-05-21T10:47:42-07:00",
+ "watchers"=>797,
+ "has_wiki"=>true,
+ "open_issues"=>14,
+ "homepage"=>"http://activescaffold.com",
+ "fork"=>false,
+ "size"=>848,
+ "has_issues"=>true,
+ "name"=>"active_scaffold",
+ "url"=>"https://github.com/activescaffold/active_scaffold",
+ "private"=>false,
+ "description"=>"Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.",
+ "has_downloads"=>true
+ },
+ "created_at"=>"2012-07-26T00:02:09-07:00",
+ "actor_attributes"=>{
+ "gravatar_id"=>"fbef10e8904c80c015dce56f3fa09bea",
+ "location"=>"Zaragoza, Spain",
+ "type"=>"User",
+ "company"=>"entreCables S.L.",
+ "login"=>"scambra",
+ "name"=>"Sergio Cambra"
+ },
+ "actor"=>"scambra",
+ "public"=>true,
+ "url"=>"https://github.com/activescaffold/active_scaffold/issues/176#issuecomment-7270731",
+ "payload"=>{
+ "issue_id"=>5827343,
+ "comment_id"=>7270731
+ }
+}
View
37 test/fixtures/issues_event.rb
@@ -0,0 +1,37 @@
+{
+ "type"=>"IssuesEvent",
+ "payload"=>{
+ "number"=>111,
+ "issue"=>5848487,
+ "action"=>"opened"
+ },
+ "actor"=>"macfidelity",
+ "url"=>"https://github.com/macfidelity/monoto/issues/111",
+ "created_at"=>"2012-07-26T01:02:07-07:00",
+ "actor_attributes"=>{
+ "type"=>"User",
+ "blog"=>"yafp.de",
+ "name"=>"fidel",
+ "gravatar_id"=>"ebe13234077c7d81a4f2e80506fdf35f",
+ "login"=>"macfidelity"
+ },
+ "public"=>true,
+ "repository"=>{
+ "watchers"=>1,
+ "owner"=>"macfidelity",
+ "has_wiki"=>true,
+ "pushed_at"=>"2012-07-25T15:24:53-07:00",
+ "forks"=>1,
+ "language"=>"JavaScript",
+ "created_at"=>"2012-07-07T04:49:07-07:00",
+ "open_issues"=>13,
+ "has_issues"=>true,
+ "fork"=>false,
+ "size"=>4799,
+ "name"=>"monoto",
+ "url"=>"https://github.com/macfidelity/monoto",
+ "has_downloads"=>true,
+ "private"=>false,
+ "description"=>"a web-based notes keeper"
+ }
+}
View
41 test/fixtures/member_event.rb
@@ -0,0 +1,41 @@
+{
+ "type"=>"MemberEvent",
+ "repository"=>{
+ "has_downloads"=>true,
+ "owner"=>"huaihongwen",
+ "watchers"=>2,
+ "has_wiki"=>true,
+ "pushed_at"=>"2012-07-16T23:39:05-07:00",
+ "forks"=>0,
+ "language"=>"C++",
+ "description"=>"Veronica-20120602",
+ "fork"=>false,
+ "size"=>152,
+ "open_issues"=>0,
+ "name"=>"Veronica",
+ "url"=>"https://github.com/huaihongwen/Veronica",
+ "has_issues"=>true,
+ "private"=>false,
+ "created_at"=>"2012-06-02T16:29:09-07:00"
+ },
+ "payload"=>{
+ "member"=>{
+ "url"=>"https://api.github.com/users/HongwuHuai",
+ "gravatar_id"=>"ec635427c21f57174917879e06b0e88c",
+ "id"=>1837116,
+ "avatar_url"=>"https://secure.gravatar.com/avatar/ec635427c21f57174917879e06b0e88c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
+ "login"=>"HongwuHuai"
+ },
+ "action"=>"added"
+ },
+ "actor_attributes"=>{
+ "type"=>"User",
+ "gravatar_id"=>"72a39d5e3acde15c2c4bd238841f25d2",
+ "login"=>"huaihongwen",
+ "name"=>""
+ },
+ "public"=>true,
+ "actor"=>"huaihongwen",
+ "url"=>"https://github.com/huaihongwen/Veronica",
+ "created_at"=>"2012-07-26T00:03:13-07:00",
+}
View
34 test/fixtures/public_event.rb
@@ -0,0 +1,34 @@
+{
+ "type"=>"PublicEvent",
+ "actor_attributes"=>{
+ "name"=>"Thomas Robitaille",
+ "blog"=>"http://www.cfa.harvard.edu/~trobitaille/",
+ "gravatar_id"=>"f586e2a9879fe0a55fd1e3ea529c664f",
+ "login"=>"astrofrog",
+ "type"=>"User",
+ "location"=>"Cambridge, MA"
+ },
+ "actor"=>"astrofrog",
+ "url"=>"https://github.com/astrofrog/hyperion",
+ "repository"=>{
+ "watchers"=>1,
+ "owner"=>"astrofrog",
+ "has_wiki"=>true,
+ "pushed_at"=>"2012-07-25T04:26:39-07:00",
+ "forks"=>0,
+ "language"=>"Python",
+ "created_at"=>"2011-03-04T20:43:44-08:00",
+ "open_issues"=>9,
+ "has_issues"=>true,
+ "homepage"=>"http://www.hyperion-rt.org",
+ "fork"=>false,
+ "size"=>16685,
+ "name"=>"hyperion",
+ "url"=>"https://github.com/astrofrog/hyperion",
+ "has_downloads"=>true,
+ "private"=>false,
+ "description"=>"Hyperion Radiation Transfer Code"
+ },
+ "created_at"=>"2012-07-26T00:04:20-07:00",
+ "public"=>true
+}
View
189 test/fixtures/pull_request_event.rb
@@ -0,0 +1,189 @@
+{
+ "type"=>"PullRequestEvent",
+ "payload"=>{
+ "pull_request"=>{
+ "updated_at"=>"2012-07-26T07:02:46Z",
+ "patch_url"=>"https://github.com/symfony/symfony/pull/5057.patch",
+ "created_at"=>"2012-07-26T07:02:46Z",
+ "merged"=>false,
+ "body"=>"Bug fix!",
+ "deletions"=>0,
+ "changed_files"=>4,
+ "review_comments"=>0,
+ "state"=>"open",
+ "number"=>5057,
+ "assignee"=>nil,
+ "diff_url"=>"https://github.com/symfony/symfony/pull/5057.diff",
+ "mergeable"=>nil,
+ "merged_by"=>nil,
+ "_links"=>{
+ "html"=>{
+ "href"=>"https://github.com/symfony/symfony/pull/5057"
+ },
+ "review_comments"=>{
+ "href"=>"https://api.github.com/repos/symfony/symfony/pulls/5057/comments"
+ },
+ "self"=>{
+ "href"=>"https://api.github.com/repos/symfony/symfony/pulls/5057"
+ },
+ "issue"=>{
+ "href"=>"https://api.github.com/repos/symfony/symfony/issues/5057"
+ },
+ "comments"=>{
+ "href"=>"https://api.github.com/repos/symfony/symfony/issues/5057/comments"
+ }
+ },
+ "issue_url"=>"https://github.com/symfony/symfony/issues/5057",
+ "commits"=>1,
+ "title"=>"[HttpFoundation] Allow partial content to be sent",
+ "base"=>{
+ "ref"=>"master",
+ "sha"=>"e08e60ce311746d09551c1cf3e34a2cf43f6a4e0",
+ "label"=>"symfony:master",
+ "user"=>{
+ "gravatar_id"=>"bc6312a5b583c4258c9fad11122c6e31",
+ "login"=>"symfony",
+ "avatar_url"=>"https://secure.gravatar.com/avatar/bc6312a5b583c4258c9fad11122c6e31?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
+ "id"=>143937,
+ "url"=>"https://api.github.com/users/symfony"
+ },
+ "repo"=>{
+ "updated_at"=>"2012-07-26T06:36:06Z",
+ "full_name"=>"symfony/symfony",
+ "owner"=>{
+ "gravatar_id"=>"bc6312a5b583c4258c9fad11122c6e31",
+ "login"=>"symfony",
+ "avatar_url"=>"https://secure.gravatar.com/avatar/bc6312a5b583c4258c9fad11122c6e31?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
+ "id"=>143937,
+ "url"=>"https://api.github.com/users/symfony"
+ },
+ "created_at"=>"2010-01-04T14:21:21Z",
+ "open_issues"=>236,
+ "description"=>"The Symfony2 PHP framework",
+ "git_url"=>"git://github.com/symfony/symfony.git",
+ "clone_url"=>"https://github.com/symfony/symfony.git",
+ "forks"=>1428,
+ "name"=>"symfony",
+ "open_issues_count"=>236,
+ "private"=>false,
+ "watchers"=>5315,
+ "has_issues"=>true,
+ "watchers_count"=>5315,
+ "ssh_url"=>"git@github.com:symfony/symfony.git",
+ "forks_count"=>1428,
+ "pushed_at"=>"2012-07-26T06:36:06Z",
+ "id"=>458058,
+ "html_url"=>"https://github.com/symfony/symfony",
+ "size"=>19004,
+ "homepage"=>"symfony.com",
+ "svn_url"=>"https://github.com/symfony/symfony",
+ "language"=>"PHP",
+ "has_downloads"=>false,
+ "has_wiki"=>false,
+ "url"=>"https://api.github.com/repos/symfony/symfony",
+ "mirror_url"=>nil,
+ "fork"=>false
+ }
+ },
+ "head"=>{
+ "ref"=>"http_range_response",
+ "sha"=>"bb8f7158f8a48009dd998176aa611495d73ec095",
+ "label"=>"SamsonIT:http_range_response",
+ "user"=>{
+ "gravatar_id"=>"a07cc825b5bf546a8b40eab5786c8624",
+ "login"=>"SamsonIT",
+ "avatar_url"=>"https://secure.gravatar.com/avatar/a07cc825b5bf546a8b40eab5786c8624?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
+ "id"=>1146130,
+ "url"=>"https://api.github.com/users/SamsonIT"
+ },
+ "repo"=>{
+ "updated_at"=>"2012-07-26T07:00:27Z",
+ "full_name"=>"SamsonIT/symfony",
+ "owner"=>{
+ "gravatar_id"=>"a07cc825b5bf546a8b40eab5786c8624",
+ "login"=>"SamsonIT",
+ "avatar_url"=>"https://secure.gravatar.com/avatar/a07cc825b5bf546a8b40eab5786c8624?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
+ "id"=>1146130,
+ "url"=>"https://api.github.com/users/SamsonIT"
+ },
+ "created_at"=>"2012-06-13T08:23:52Z",
+ "open_issues"=>0,
+ "description"=>"The Symfony2 PHP framework",
+ "git_url"=>"git://github.com/SamsonIT/symfony.git",
+ "clone_url"=>"https://github.com/SamsonIT/symfony.git",
+ "forks"=>0,
+ "name"=>"symfony",
+ "open_issues_count"=>0,
+ "private"=>false,
+ "watchers"=>1,
+ "has_issues"=>false,
+ "watchers_count"=>1,
+ "ssh_url"=>"git@github.com:SamsonIT/symfony.git",
+ "forks_count"=>0,
+ "pushed_at"=>"2012-07-26T07:00:27Z",
+ "id"=>4648463,
+ "html_url"=>"https://github.com/SamsonIT/symfony",
+ "size"=>384,
+ "homepage"=>"symfony.com",
+ "svn_url"=>"https://github.com/SamsonIT/symfony",
+ "language"=>"PHP",
+ "has_downloads"=>false,
+ "has_wiki"=>false, "url"=>"https://api.github.com/repos/SamsonIT/symfony",
+ "mirror_url"=>nil,
+ "fork"=>true
+ }
+ },
+ "id"=>1894409,
+ "milestone"=>nil,
+ "html_url"=>"https://github.com/symfony/symfony/pull/5057",
+ "user"=>{
+ "gravatar_id"=>"61c1ed29afda785eb8b45a9174bc2470",
+ "login"=>"Burgov",
+ "avatar_url"=>"https://secure.gravatar.com/avatar/61c1ed29afda785eb8b45a9174bc2470?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
+ "id"=>417674,
+ "url"=>"https://api.github.com/users/Burgov"
+ },
+ "additions"=>167,
+ "closed_at"=>nil,
+ "merged_at"=>nil,
+ "url"=>"https://api.github.com/repos/symfony/symfony/pulls/5057",
+ "comments"=>0
+ },
+ "number"=>5057,
+ "action"=>"opened"
+ },
+ "created_at"=>"2012-07-26T00:02:47-07:00",
+ "public"=>true,
+ "repository"=>{
+ "has_downloads"=>false,
+ "owner"=>"symfony",
+ "organization"=>"symfony",
+ "homepage"=>"symfony.com",
+ "watchers"=>5315,
+ "has_wiki"=>false,
+ "pushed_at"=>"2012-07-25T23:36:06-07:00",
+ "forks"=>1428,
+ "language"=>"PHP",
+ "description"=>"The Symfony2 PHP framework",
+ "fork"=>false,
+ "size"=>19004,
+ "open_issues"=>236,
+ "name"=>"symfony",
+ "url"=>"https://github.com/symfony/symfony",
+ "has_issues"=>true,
+ "private"=>false,
+ "created_at"=>"2010-01-04T06:21:21-08:00"
+ },
+ "actor_attributes"=>{
+ "location"=>"NL",
+ "gravatar_id"=>"61c1ed29afda785eb8b45a9174bc2470",
+ "company"=>"Samson-IT",
+ "name"=>"Bart van den Burg",
+ "blog"=>"www.samson-it.nl",
+ "login"=>"Burgov",
+ "email"=>"xxx@muuh.com",
+ "type"=>"User"
+ },
+ "actor"=>"Burgov",
+ "url"=>"https://github.com/symfony/symfony/pull/5057"
+}
View
67 test/fixtures/pull_request_review_comment_event.rb
@@ -0,0 +1,67 @@
+{
+ "type"=>"PullRequestReviewCommentEvent",
+ "public"=>true,
+ "url"=>"https://github.com/ruflin/Elastica/pull/157#discussion_r1241787",
+ "payload"=>{
+ "comment"=>{
+ "original_position"=>4,
+ "url"=>"https://api.github.com/repos/ruflin/Elastica/pulls/comments/1241787",
+ "original_commit_id"=>"bdacde9af07294e815d138962abed9fd3311b70c",
+ "path"=>"lib/Elastica/Index.php",
+ "created_at"=>"2012-07-26T07:04:43Z",
+ "position"=>4,
+ "user"=>{
+ "url"=>"https://api.github.com/users/lavoiesl",
+ "avatar_url"=>"https://secure.gravatar.com/avatar/02d77018ca5aa84689270899bfa8bfd5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
+ "gravatar_id"=>"02d77018ca5aa84689270899bfa8bfd5",
+ "id"=>1216046,
+ "login"=>"lavoiesl"
+ },
+ "updated_at"=>"2012-07-26T07:04:43Z",
+ "_links"=>{
+ "pull_request"=>{
+ "href"=>"https://api.github.com/repos/ruflin/Elastica/pulls/157"
+ },
+ "self"=>{
+ "href"=>"https://api.github.com/repos/ruflin/Elastica/pulls/comments/1241787"
+ },
+ "html"=>{
+ "href"=>"https://github.com/ruflin/Elastica/pull/157#discussion_r1241787"
+ }
+ },
+ "body"=>"Could you break down this in multiple lines ?\nThis is becoming pretty long.",
+ "commit_id"=>"bdacde9af07294e815d138962abed9fd3311b70c",
+ "id"=>1241787
+ }
+ },
+ "repository"=>{
+ "has_downloads"=>true,
+ "owner"=>"ruflin",
+ "homepage"=>"http://ruflin.github.com/Elastica",
+ "watchers"=>291,
+ "has_wiki"=>true,
+ "pushed_at"=>"2012-07-25T23:57:44-07:00",
+ "forks"=>92,
+ "language"=>"PHP",
+ "description"=>"Elastica is a PHP client for elasticsearch",
+ "fork"=>false,
+ "size"=>1216,
+ "open_issues"=>22,
+ "name"=>"Elastica",
+ "url"=>"https://github.com/ruflin/Elastica",
+ "has_issues"=>true,
+ "private"=>false,
+ "created_at"=>"2010-10-19T10:04:21-07:00"
+ },
+ "actor"=>"lavoiesl",
+ "actor_attributes"=>{
+ "email"=>"xxx@muuh.com",
+ "name"=>"Sébastien Lavoie",
+ "location"=>"Montreal, Canada",
+ "blog"=>"http://sebastien.lavoie.sl",
+ "type"=>"User",
+ "gravatar_id"=>"02d77018ca5aa84689270899bfa8bfd5",
+ "login"=>"lavoiesl"
+ },
+ "created_at"=>"2012-07-26T00:04:43-07:00"
+}
View
43 test/fixtures/push_event.rb
@@ -0,0 +1,43 @@
+{
+ "type"=>"PushEvent",
+ "payload"=>{
+ "shas"=>[
+ ["d7b08ee892b053cc99e4ace231254ce54ede9383", "build@linux-indicator", "Automated build", "Automated Build", true]
+ ],
+ "ref"=>"refs/heads/master",
+ "head"=>"d7b08ee892b053cc99e4ace231254ce54ede9383",
+ "size"=>1
+ },
+ "actor"=>"IVPR",
+ "url"=>"https://github.com/IVPR/Weave-Binaries/compare/1c3ca332d8...d7b08ee892",
+ "created_at"=>"2012-07-26T01:02:05-07:00",
+ "actor_attributes"=>{
+ "type"=>"User",
+ "blog"=>"http://www.uml.edu/centers/ivpr/",
+ "location"=>"University of Massachusetts Lowell",
+ "company"=>"Institute for Visualization and Perception Research",
+ "name"=>"UMass Lowell IVPR",
+ "gravatar_id"=>"6cf66adca08d6a6dcd771d07d85c4efd",
+ "login"=>"IVPR"
+ },
+ "public"=>true,
+ "repository"=>{
+ "watchers"=>1,
+ "owner"=>"IVPR",
+ "has_wiki"=>false,
+ "pushed_at"=>"2012-07-26T01:02:04-07:00",
+ "forks"=>1,
+ "language"=>"JavaScript",
+ "created_at"=>"2011-06-07T08:40:28-07:00",
+ "open_issues"=>0,
+ "has_issues"=>false,
+ "homepage"=>"http://info.oicweave.org/",
+ "fork"=>false,
+ "size"=>427736,
+ "name"=>"Weave-Binaries",
+ "url"=>"https://github.com/IVPR/Weave-Binaries",
+ "has_downloads"=>true,
+ "private"=>false,
+ "description"=>"Here you can download a nightly build of Weave. Check the README.txt for the link."
+ }
+}
View
38 test/fixtures/watch_event.rb
@@ -0,0 +1,38 @@
+{
+ "type"=>"WatchEvent",
+ "payload"=>{
+ "action"=>"started"
+ },
+ "actor"=>"jkal",
+ "url"=>"https://github.com/gabrielfalcao/unclebob",
+ "created_at"=>"2012-07-26T01:02:10-07:00",
+ "actor_attributes"=>{
+ "email"=>"xxx@muuh.com",
+ "type"=>"User",
+ "blog"=>"",
+ "company"=>"Transifex",
+ "name"=>"John Kalantzis",
+ "gravatar_id"=>"1786514bccb60216fa7892f052023cc7",
+ "login"=>"jkal"
+ },
+ "public"=>true,
+ "repository"=>{
+ "watchers"=>28,
+ "owner"=>"gabrielfalcao",
+ "has_wiki"=>true,
+ "pushed_at"=>"2012-07-01T09:38:20-07:00",
+ "forks"=>4,
+ "language"=>"Python",
+ "created_at"=>"2011-04-19T13:18:18-07:00",
+ "open_issues"=>2,
+ "has_issues"=>true,
+ "homepage"=>"",
+ "fork"=>false,
+ "size"=>1464,
+ "name"=>"unclebob",
+ "url"=>"https://github.com/gabrielfalcao/unclebob",
+ "has_downloads"=>true,
+ "private"=>false,
+ "description"=>"django tool for running tests organized between unit, functional and integration"
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.