gh 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gh/version.rb +1 -1
- data/spec/payloads/repos/rkh/gh/contents/{README.md?per_page=100.yml → README.md_per_page_100.yml} +0 -0
- data/spec/payloads/users/rkh/{repos?page=2&per_page=100.yml → repos_page_2&per_page=100.yml} +0 -0
- data/spec/payloads/users/rkh/{repos?page=2.yml → repos_page_2.yml} +0 -0
- data/spec/payloads/users/rkh/repos_page_2_per_page_100.yml +49 -0
- data/spec/payloads/users/rkh/{repos?page=3.yml → repos_page_3.yml} +0 -0
- data/spec/payloads/users/rkh/{repos?page=4.yml → repos_page_4.yml} +0 -0
- data/spec/payloads/users/rkh/{repos?page=5.yml → repos_page_5.yml} +0 -0
- data/spec/payloads/users/rkh/{repos?per_page=100.yml → repos_per_page_100.yml} +0 -0
- data/spec/payloads/users/{rkh?per_page=100.yml → rkh_per_page_100.yml} +0 -0
- data/spec/spec_helper.rb +9 -4
- metadata +20 -18
data/lib/gh/version.rb
CHANGED
data/spec/payloads/repos/rkh/gh/contents/{README.md?per_page=100.yml → README.md_per_page_100.yml}
RENAMED
File without changes
|
data/spec/payloads/users/rkh/{repos?page=2&per_page=100.yml → repos_page_2&per_page=100.yml}
RENAMED
File without changes
|
File without changes
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
- !binary "c2VydmVy": !binary |-
|
3
|
+
bmdpbngvMS4wLjEz
|
4
|
+
!binary "ZGF0ZQ==": !binary |-
|
5
|
+
V2VkLCAyMyBNYXkgMjAxMiAxMzo1OTozNiBHTVQ=
|
6
|
+
!binary "Y29udGVudC10eXBl": !binary |-
|
7
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
8
|
+
!binary "dHJhbnNmZXItZW5jb2Rpbmc=": !binary |-
|
9
|
+
Y2h1bmtlZA==
|
10
|
+
!binary "Y29ubmVjdGlvbg==": !binary |-
|
11
|
+
a2VlcC1hbGl2ZQ==
|
12
|
+
!binary "c3RhdHVz": !binary |-
|
13
|
+
MjAwIE9L
|
14
|
+
!binary "eC1yYXRlbGltaXQtbGltaXQ=": !binary |-
|
15
|
+
NTAwMA==
|
16
|
+
!binary "ZXRhZw==": !binary |-
|
17
|
+
IjNhMWFkMzc4N2NiZDkwNGQ2NDk4YzllODA5NWZlODY0Ig==
|
18
|
+
!binary "bGluaw==": !binary |-
|
19
|
+
PGh0dHBzOi8vYXBpLmdpdGh1Yi5jb20vdXNlcnMvcmtoL3JlcG9zP3BhZ2U9
|
20
|
+
MSZwZXJfcGFnZT0xMDA+OyByZWw9ImZpcnN0IiwgPGh0dHBzOi8vYXBpLmdp
|
21
|
+
dGh1Yi5jb20vdXNlcnMvcmtoL3JlcG9zP3BhZ2U9MSZwZXJfcGFnZT0xMDA+
|
22
|
+
OyByZWw9InByZXYi
|
23
|
+
!binary "eC1yYXRlbGltaXQtcmVtYWluaW5n": !binary |-
|
24
|
+
NDk5Nw==
|
25
|
+
- ! '[{"html_url":"https://github.com/rkh/hpi","pushed_at":"2011-10-28T21:56:35Z","updated_at":"2012-04-10T11:37:21Z","homepage":null,"url":"https://api.github.com/repos/rkh/hpi","has_downloads":true,"watchers":10,"fork":false,"svn_url":"https://github.com/rkh/hpi","has_wiki":true,"has_issues":true,"size":168,"private":false,"mirror_url":null,"forks":1,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"hpi","language":"Ruby","description":null,"clone_url":"https://github.com/rkh/hpi.git","ssh_url":"git@github.com:rkh/hpi.git","git_url":"git://github.com/rkh/hpi.git","created_at":"2011-10-07T23:55:05Z","id":2536005,"open_issues":0},{"html_url":"https://github.com/rkh/tool","pushed_at":"2011-10-27T02:01:35Z","updated_at":"2011-10-27T02:01:35Z","homepage":null,"url":"https://api.github.com/repos/rkh/tool","has_downloads":true,"watchers":1,"fork":false,"svn_url":"https://github.com/rkh/tool","has_wiki":true,"has_issues":true,"size":140,"private":false,"mirror_url":null,"forks":1,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"tool","language":"Ruby","description":null,"clone_url":"https://github.com/rkh/tool.git","ssh_url":"git@github.com:rkh/tool.git","git_url":"git://github.com/rkh/tool.git","created_at":"2011-10-27T01:50:56Z","id":2655239,"open_issues":0},{"html_url":"https://github.com/rkh/twp","pushed_at":"2011-12-15T09:10:41Z","updated_at":"2012-02-11T19:56:48Z","homepage":"http://www.dcl.hpi.uni-potsdam.de/teaching/mds/","url":"https://api.github.com/repos/rkh/twp","has_downloads":true,"watchers":5,"fork":false,"svn_url":"https://github.com/rkh/twp","has_wiki":true,"has_issues":true,"size":256,"private":false,"mirror_url":null,"forks":1,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"twp","language":"Ruby","description":"TWP3
|
26
|
+
in Ruby","clone_url":"https://github.com/rkh/twp.git","ssh_url":"git@github.com:rkh/twp.git","git_url":"git://github.com/rkh/twp.git","created_at":"2011-12-11T23:01:21Z","id":2960627,"open_issues":0},{"html_url":"https://github.com/rkh/fibur","pushed_at":"2011-12-19T19:07:32Z","updated_at":"2011-12-19T19:07:33Z","homepage":"","url":"https://api.github.com/repos/rkh/fibur","has_downloads":true,"watchers":1,"fork":true,"svn_url":"https://github.com/rkh/fibur","has_wiki":true,"has_issues":false,"size":112,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"fibur","language":"Ruby","description":"Concurrent
|
27
|
+
execution during Ruby I/O","clone_url":"https://github.com/rkh/fibur.git","ssh_url":"git@github.com:rkh/fibur.git","git_url":"git://github.com/rkh/fibur.git","created_at":"2011-12-19T19:06:39Z","id":3014283,"open_issues":0},{"html_url":"https://github.com/rkh/rkelly","pushed_at":"2012-01-09T20:27:16Z","updated_at":"2012-01-09T20:27:16Z","homepage":"","url":"https://api.github.com/repos/rkh/rkelly","has_downloads":true,"watchers":1,"fork":true,"svn_url":"https://github.com/rkh/rkelly","has_wiki":true,"has_issues":false,"size":336,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"rkelly","language":"Ruby","description":"Pure
|
28
|
+
ruby javascript parser and interpreter.","clone_url":"https://github.com/rkh/rkelly.git","ssh_url":"git@github.com:rkh/rkelly.git","git_url":"git://github.com/rkh/rkelly.git","created_at":"2012-01-09T20:25:53Z","id":3139761,"open_issues":0},{"html_url":"https://github.com/rkh/curriculum","pushed_at":"2012-01-10T16:30:53Z","updated_at":"2012-01-14T12:17:49Z","homepage":"","url":"https://api.github.com/repos/rkh/curriculum","has_downloads":true,"watchers":1,"fork":true,"svn_url":"https://github.com/rkh/curriculum","has_wiki":true,"has_issues":false,"size":132,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"curriculum","language":"JavaScript","description":"","clone_url":"https://github.com/rkh/curriculum.git","ssh_url":"git@github.com:rkh/curriculum.git","git_url":"git://github.com/rkh/curriculum.git","created_at":"2012-01-10T16:28:11Z","id":3146605,"open_issues":0},{"html_url":"https://github.com/rkh/fog","pushed_at":"2012-01-12T15:40:22Z","updated_at":"2012-02-26T06:24:48Z","homepage":"http://fog.io","url":"https://api.github.com/repos/rkh/fog","has_downloads":true,"watchers":3,"fork":true,"svn_url":"https://github.com/rkh/fog","has_wiki":true,"has_issues":false,"size":180,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"fog","language":"Ruby","description":"The
|
29
|
+
Ruby cloud services library.","clone_url":"https://github.com/rkh/fog.git","ssh_url":"git@github.com:rkh/fog.git","git_url":"git://github.com/rkh/fog.git","created_at":"2012-01-12T15:32:01Z","id":3163178,"open_issues":0},{"html_url":"https://github.com/rkh/test-project-1","pushed_at":"2012-05-16T12:08:44Z","updated_at":"2012-05-16T12:08:44Z","homepage":"http://travis-ci.org","url":"https://api.github.com/repos/rkh/test-project-1","has_downloads":true,"watchers":0,"fork":true,"svn_url":"https://github.com/rkh/test-project-1","has_wiki":true,"has_issues":false,"size":152,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"test-project-1","language":"Ruby","description":"Test
|
30
|
+
dummy repository for testing Travis CI","clone_url":"https://github.com/rkh/test-project-1.git","ssh_url":"git@github.com:rkh/test-project-1.git","git_url":"git://github.com/rkh/test-project-1.git","created_at":"2012-02-13T15:17:57Z","id":3431064,"open_issues":1},{"html_url":"https://github.com/rkh/oh-my-zsh","pushed_at":"2012-02-22T13:48:52Z","updated_at":"2012-03-07T21:11:13Z","homepage":"http://twitter.com/ohmyzsh","url":"https://api.github.com/repos/rkh/oh-my-zsh","has_downloads":true,"watchers":2,"fork":true,"svn_url":"https://github.com/rkh/oh-my-zsh","has_wiki":true,"has_issues":false,"size":7224,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"oh-my-zsh","language":"Shell","description":"A
|
31
|
+
community-driven framework for managing your zsh configuration. Includes 40+ optional
|
32
|
+
plugins (rails, git, OSX, hub, capistrano, brew, ant, macports, etc), over 80 terminal
|
33
|
+
themes to spice up your morning, and an auto-update tool so that makes it easy
|
34
|
+
to keep up with the latest updates from the community.","clone_url":"https://github.com/rkh/oh-my-zsh.git","ssh_url":"git@github.com:rkh/oh-my-zsh.git","git_url":"git://github.com/rkh/oh-my-zsh.git","created_at":"2012-02-22T13:47:54Z","id":3514933,"open_issues":0},{"html_url":"https://github.com/rkh/rbenv-use","pushed_at":"2012-02-22T16:53:26Z","updated_at":"2012-03-27T15:54:20Z","homepage":"","url":"https://api.github.com/repos/rkh/rbenv-use","has_downloads":true,"watchers":10,"fork":false,"svn_url":"https://github.com/rkh/rbenv-use","has_wiki":true,"has_issues":true,"size":108,"private":false,"mirror_url":null,"forks":1,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"rbenv-use","language":"Shell","description":"rbenv
|
35
|
+
use rbx","clone_url":"https://github.com/rkh/rbenv-use.git","ssh_url":"git@github.com:rkh/rbenv-use.git","git_url":"git://github.com/rkh/rbenv-use.git","created_at":"2012-02-22T13:51:59Z","id":3514966,"open_issues":0},{"html_url":"https://github.com/rkh/rbenv-whatis","pushed_at":"2012-02-22T13:52:54Z","updated_at":"2012-04-24T20:50:23Z","homepage":null,"url":"https://api.github.com/repos/rkh/rbenv-whatis","has_downloads":true,"watchers":5,"fork":false,"svn_url":"https://github.com/rkh/rbenv-whatis","has_wiki":true,"has_issues":true,"size":84,"private":false,"mirror_url":null,"forks":2,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"rbenv-whatis","language":"Shell","description":null,"clone_url":"https://github.com/rkh/rbenv-whatis.git","ssh_url":"git@github.com:rkh/rbenv-whatis.git","git_url":"git://github.com/rkh/rbenv-whatis.git","created_at":"2012-02-22T13:52:44Z","id":3514978,"open_issues":0},{"html_url":"https://github.com/rkh/sinatra-template","pushed_at":"2012-03-14T15:07:40Z","updated_at":"2012-03-14T15:07:41Z","homepage":"","url":"https://api.github.com/repos/rkh/sinatra-template","has_downloads":true,"watchers":6,"fork":false,"svn_url":"https://github.com/rkh/sinatra-template","has_wiki":true,"has_issues":true,"size":124,"private":false,"mirror_url":null,"forks":5,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"sinatra-template","language":"Ruby","description":"base
|
36
|
+
template for classic sinatra apps","clone_url":"https://github.com/rkh/sinatra-template.git","ssh_url":"git@github.com:rkh/sinatra-template.git","git_url":"git://github.com/rkh/sinatra-template.git","created_at":"2012-02-25T13:39:12Z","id":3544708,"open_issues":0},{"html_url":"https://github.com/rkh/rbenv-update","pushed_at":"2012-02-25T14:17:43Z","updated_at":"2012-05-17T00:03:11Z","homepage":"","url":"https://api.github.com/repos/rkh/rbenv-update","has_downloads":true,"watchers":3,"fork":false,"svn_url":"https://github.com/rkh/rbenv-update","has_wiki":true,"has_issues":true,"size":84,"private":false,"mirror_url":null,"forks":2,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"rbenv-update","language":"Shell","description":"update
|
37
|
+
rbenv and plugins","clone_url":"https://github.com/rkh/rbenv-update.git","ssh_url":"git@github.com:rkh/rbenv-update.git","git_url":"git://github.com/rkh/rbenv-update.git","created_at":"2012-02-25T14:17:01Z","id":3544886,"open_issues":1},{"html_url":"https://github.com/rkh/call-for-proposals","pushed_at":"2012-03-06T09:42:48Z","updated_at":"2012-03-06T09:42:48Z","homepage":"","url":"https://api.github.com/repos/rkh/call-for-proposals","has_downloads":true,"watchers":1,"fork":true,"svn_url":"https://github.com/rkh/call-for-proposals","has_wiki":true,"has_issues":false,"size":160,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"call-for-proposals","language":null,"description":"Want
|
38
|
+
to make a talk proposal for EuRuKo 2012? This is the place to be!","clone_url":"https://github.com/rkh/call-for-proposals.git","ssh_url":"git@github.com:rkh/call-for-proposals.git","git_url":"git://github.com/rkh/call-for-proposals.git","created_at":"2012-02-29T14:04:31Z","id":3582162,"open_issues":0},{"html_url":"https://github.com/rkh/socialshareprivacy","pushed_at":"2012-03-01T11:20:47Z","updated_at":"2012-03-01T11:21:49Z","homepage":"","url":"https://api.github.com/repos/rkh/socialshareprivacy","has_downloads":true,"watchers":1,"fork":false,"svn_url":"https://github.com/rkh/socialshareprivacy","has_wiki":false,"has_issues":false,"size":216,"private":false,"mirror_url":null,"forks":1,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"socialshareprivacy","language":"JavaScript","description":"this
|
39
|
+
is just a mirror","clone_url":"https://github.com/rkh/socialshareprivacy.git","ssh_url":"git@github.com:rkh/socialshareprivacy.git","git_url":"git://github.com/rkh/socialshareprivacy.git","created_at":"2012-03-01T11:20:28Z","id":3591314,"open_issues":0},{"html_url":"https://github.com/rkh/Smallest-Federated-Wiki","pushed_at":"2012-03-01T21:36:10Z","updated_at":"2012-03-01T21:36:11Z","homepage":"http://wardcunningham.github.com/","url":"https://api.github.com/repos/rkh/Smallest-Federated-Wiki","has_downloads":true,"watchers":1,"fork":true,"svn_url":"https://github.com/rkh/Smallest-Federated-Wiki","has_wiki":true,"has_issues":false,"size":112,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"Smallest-Federated-Wiki","language":"JavaScript","description":"Our
|
40
|
+
new wiki innovates three ways. It shares through federation, composes by refactoring
|
41
|
+
and wraps data with visualization.","clone_url":"https://github.com/rkh/Smallest-Federated-Wiki.git","ssh_url":"git@github.com:rkh/Smallest-Federated-Wiki.git","git_url":"git://github.com/rkh/Smallest-Federated-Wiki.git","created_at":"2012-03-01T21:34:49Z","id":3596336,"open_issues":0},{"html_url":"https://github.com/rkh/gh","pushed_at":"2012-05-23T13:30:33Z","updated_at":"2012-05-23T13:30:35Z","homepage":"http://gh.rkh.im/","url":"https://api.github.com/repos/rkh/gh","has_downloads":true,"watchers":11,"fork":false,"svn_url":"https://github.com/rkh/gh","has_wiki":true,"has_issues":true,"size":244,"private":false,"mirror_url":null,"forks":3,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"gh","language":"Ruby","description":"Layered
|
42
|
+
GitHub API client","clone_url":"https://github.com/rkh/gh.git","ssh_url":"git@github.com:rkh/gh.git","git_url":"git://github.com/rkh/gh.git","created_at":"2012-03-05T13:07:41Z","id":3627076,"open_issues":0},{"html_url":"https://github.com/rkh/trinidad","pushed_at":"2012-03-10T15:56:37Z","updated_at":"2012-03-10T15:56:37Z","homepage":"","url":"https://api.github.com/repos/rkh/trinidad","has_downloads":true,"watchers":1,"fork":true,"svn_url":"https://github.com/rkh/trinidad","has_wiki":true,"has_issues":false,"size":152,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"trinidad","language":"Ruby","description":"Simple
|
43
|
+
library to run rails and rackup applications into an embedded Apache Tomcat","clone_url":"https://github.com/rkh/trinidad.git","ssh_url":"git@github.com:rkh/trinidad.git","git_url":"git://github.com/rkh/trinidad.git","created_at":"2012-03-10T15:55:36Z","id":3680426,"open_issues":0},{"html_url":"https://github.com/rkh/prefix","pushed_at":"2012-03-20T15:01:24Z","updated_at":"2012-03-20T15:21:14Z","homepage":null,"url":"https://api.github.com/repos/rkh/prefix","has_downloads":true,"watchers":2,"fork":false,"svn_url":"https://github.com/rkh/prefix","has_wiki":true,"has_issues":true,"size":92,"private":false,"mirror_url":null,"forks":1,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"prefix","language":"Ruby","description":null,"clone_url":"https://github.com/rkh/prefix.git","ssh_url":"git@github.com:rkh/prefix.git","git_url":"git://github.com/rkh/prefix.git","created_at":"2012-03-20T14:47:08Z","id":3776230,"open_issues":0},{"html_url":"https://github.com/rkh/hearts","pushed_at":"2012-03-25T16:45:47Z","updated_at":"2012-03-25T16:45:48Z","homepage":"","url":"https://api.github.com/repos/rkh/hearts","has_downloads":true,"watchers":1,"fork":true,"svn_url":"https://github.com/rkh/hearts","has_wiki":true,"has_issues":false,"size":108,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"hearts","language":"Ruby","description":"I
|
44
|
+
love hearts!","clone_url":"https://github.com/rkh/hearts.git","ssh_url":"git@github.com:rkh/hearts.git","git_url":"git://github.com/rkh/hearts.git","created_at":"2012-03-25T16:45:16Z","id":3825575,"open_issues":0},{"html_url":"https://github.com/rkh/test-project-matrix-1","pushed_at":"2012-04-15T16:21:18Z","updated_at":"2012-04-15T16:21:18Z","homepage":"","url":"https://api.github.com/repos/rkh/test-project-matrix-1","has_downloads":true,"watchers":1,"master_branch":"master","fork":true,"svn_url":"https://github.com/rkh/test-project-matrix-1","has_wiki":true,"has_issues":false,"size":112,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"test-project-matrix-1","language":"Ruby","description":"Test
|
45
|
+
dummy repository for testing Travis CI","clone_url":"https://github.com/rkh/test-project-matrix-1.git","ssh_url":"git@github.com:rkh/test-project-matrix-1.git","git_url":"git://github.com/rkh/test-project-matrix-1.git","created_at":"2012-04-15T16:20:55Z","id":4033173,"open_issues":0},{"html_url":"https://github.com/rkh/euruko-golf","pushed_at":"2012-05-04T11:54:45Z","updated_at":"2012-05-10T10:03:45Z","homepage":"","url":"https://api.github.com/repos/rkh/euruko-golf","has_downloads":true,"watchers":1,"fork":true,"svn_url":"https://github.com/rkh/euruko-golf","has_wiki":true,"has_issues":false,"size":108,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"euruko-golf","language":"Ruby","description":"Tweetable
|
46
|
+
ruby programs that output EuRuKo ASCII art.","clone_url":"https://github.com/rkh/euruko-golf.git","ssh_url":"git@github.com:rkh/euruko-golf.git","git_url":"git://github.com/rkh/euruko-golf.git","created_at":"2012-05-04T11:51:10Z","id":4224272,"open_issues":0},{"html_url":"https://github.com/rkh/github-services","pushed_at":"2012-05-15T12:00:57Z","updated_at":"2012-05-15T12:00:57Z","homepage":"http://github.com/blog/53-github-services-ipo","url":"https://api.github.com/repos/rkh/github-services","has_downloads":false,"watchers":1,"fork":true,"svn_url":"https://github.com/rkh/github-services","has_wiki":false,"has_issues":false,"size":120,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"github-services","language":"Ruby","description":"Official
|
47
|
+
GitHub Services Integration - You can set these up in your repo admin screen under
|
48
|
+
Service Hooks","clone_url":"https://github.com/rkh/github-services.git","ssh_url":"git@github.com:rkh/github-services.git","git_url":"git://github.com/rkh/github-services.git","created_at":"2012-05-15T11:35:46Z","id":4335034,"open_issues":0},{"html_url":"https://github.com/rkh/bundler","pushed_at":"2012-05-22T13:26:25Z","updated_at":"2012-05-22T13:26:25Z","homepage":"http://gembundler.com","url":"https://api.github.com/repos/rkh/bundler","has_downloads":false,"watchers":1,"master_branch":"master","fork":true,"svn_url":"https://github.com/rkh/bundler","has_wiki":true,"has_issues":false,"size":140,"private":false,"mirror_url":null,"forks":0,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"bundler","language":"Ruby","description":"Manage
|
49
|
+
your application''s gem dependencies with less pain","clone_url":"https://github.com/rkh/bundler.git","ssh_url":"git@github.com:rkh/bundler.git","git_url":"git://github.com/rkh/bundler.git","created_at":"2012-05-21T14:05:57Z","id":4394235,"open_issues":0},{"html_url":"https://github.com/rkh/gh-store","pushed_at":"2012-05-22T12:50:46Z","updated_at":"2012-05-22T13:11:14Z","homepage":null,"url":"https://api.github.com/repos/rkh/gh-store","has_downloads":true,"watchers":2,"fork":false,"svn_url":"https://github.com/rkh/gh-store","has_wiki":true,"has_issues":true,"size":92,"private":false,"mirror_url":null,"forks":1,"owner":{"url":"https://api.github.com/users/rkh","login":"rkh","avatar_url":"https://secure.gravatar.com/avatar/5c2b452f6eea4a6d84c105ebd971d2a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5c2b452f6eea4a6d84c105ebd971d2a4","id":30442},"name":"gh-store","language":"Ruby","description":null,"clone_url":"https://github.com/rkh/gh-store.git","ssh_url":"git@github.com:rkh/gh-store.git","git_url":"git://github.com/rkh/gh-store.git","created_at":"2012-05-22T12:50:34Z","id":4406633,"open_issues":0}]'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
@@ -29,6 +29,7 @@ module GH
|
|
29
29
|
def should_not_request(&block)
|
30
30
|
should_request(0, &block)
|
31
31
|
end
|
32
|
+
|
32
33
|
end
|
33
34
|
|
34
35
|
class MockBackend < Wrapper
|
@@ -40,11 +41,11 @@ module GH
|
|
40
41
|
end
|
41
42
|
|
42
43
|
def fetch_resource(key)
|
43
|
-
key
|
44
|
-
|
44
|
+
key = path_for(key)
|
45
|
+
key_fn = sanitize_filename(key)
|
46
|
+
file = File.expand_path("../payloads/#{key_fn}.yml", __FILE__)
|
45
47
|
@requests << key
|
46
|
-
|
47
|
-
result = @data[key] ||= begin
|
48
|
+
result = @data[key] ||= begin
|
48
49
|
unless File.exist? file
|
49
50
|
res = allow_http { super }
|
50
51
|
FileUtils.mkdir_p File.dirname(file)
|
@@ -59,6 +60,10 @@ module GH
|
|
59
60
|
result
|
60
61
|
end
|
61
62
|
|
63
|
+
def sanitize_filename(name)
|
64
|
+
name.gsub(/[\?=&]/,"_")
|
65
|
+
end
|
66
|
+
|
62
67
|
def reset
|
63
68
|
super
|
64
69
|
@data.clear
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -184,7 +184,7 @@ files:
|
|
184
184
|
- spec/pagination_spec.rb
|
185
185
|
- spec/parallel_spec.rb
|
186
186
|
- spec/payloads/.yml
|
187
|
-
- spec/payloads/repos/rkh/gh/contents/README.
|
187
|
+
- spec/payloads/repos/rkh/gh/contents/README.md_per_page_100.yml
|
188
188
|
- spec/payloads/repos/rkh/test-project-1.yml
|
189
189
|
- spec/payloads/repos/sinatra/sinatra/issues/56/comments.yml
|
190
190
|
- spec/payloads/repos/sinatra/sinatra/issues/comments/383214.yml
|
@@ -195,13 +195,14 @@ files:
|
|
195
195
|
- spec/payloads/repos/travis-repos/test-project-1/pulls/1.yml
|
196
196
|
- spec/payloads/users/rkh.yml
|
197
197
|
- spec/payloads/users/rkh/repos.yml
|
198
|
-
- spec/payloads/users/rkh/
|
199
|
-
- spec/payloads/users/rkh/
|
200
|
-
- spec/payloads/users/rkh/
|
201
|
-
- spec/payloads/users/rkh/
|
202
|
-
- spec/payloads/users/rkh/
|
203
|
-
- spec/payloads/users/rkh/
|
204
|
-
- spec/payloads/users/rkh
|
198
|
+
- spec/payloads/users/rkh/repos_page_2&per_page=100.yml
|
199
|
+
- spec/payloads/users/rkh/repos_page_2.yml
|
200
|
+
- spec/payloads/users/rkh/repos_page_2_per_page_100.yml
|
201
|
+
- spec/payloads/users/rkh/repos_page_3.yml
|
202
|
+
- spec/payloads/users/rkh/repos_page_4.yml
|
203
|
+
- spec/payloads/users/rkh/repos_page_5.yml
|
204
|
+
- spec/payloads/users/rkh/repos_per_page_100.yml
|
205
|
+
- spec/payloads/users/rkh_per_page_100.yml
|
205
206
|
- spec/payloads/users/rtomayko.yml
|
206
207
|
- spec/payloads/users/svenfuchs.yml
|
207
208
|
- spec/payloads/users/travis-repos.yml
|
@@ -248,7 +249,7 @@ test_files:
|
|
248
249
|
- spec/pagination_spec.rb
|
249
250
|
- spec/parallel_spec.rb
|
250
251
|
- spec/payloads/.yml
|
251
|
-
- spec/payloads/repos/rkh/gh/contents/README.
|
252
|
+
- spec/payloads/repos/rkh/gh/contents/README.md_per_page_100.yml
|
252
253
|
- spec/payloads/repos/rkh/test-project-1.yml
|
253
254
|
- spec/payloads/repos/sinatra/sinatra/issues/56/comments.yml
|
254
255
|
- spec/payloads/repos/sinatra/sinatra/issues/comments/383214.yml
|
@@ -259,13 +260,14 @@ test_files:
|
|
259
260
|
- spec/payloads/repos/travis-repos/test-project-1/pulls/1.yml
|
260
261
|
- spec/payloads/users/rkh.yml
|
261
262
|
- spec/payloads/users/rkh/repos.yml
|
262
|
-
- spec/payloads/users/rkh/
|
263
|
-
- spec/payloads/users/rkh/
|
264
|
-
- spec/payloads/users/rkh/
|
265
|
-
- spec/payloads/users/rkh/
|
266
|
-
- spec/payloads/users/rkh/
|
267
|
-
- spec/payloads/users/rkh/
|
268
|
-
- spec/payloads/users/rkh
|
263
|
+
- spec/payloads/users/rkh/repos_page_2&per_page=100.yml
|
264
|
+
- spec/payloads/users/rkh/repos_page_2.yml
|
265
|
+
- spec/payloads/users/rkh/repos_page_2_per_page_100.yml
|
266
|
+
- spec/payloads/users/rkh/repos_page_3.yml
|
267
|
+
- spec/payloads/users/rkh/repos_page_4.yml
|
268
|
+
- spec/payloads/users/rkh/repos_page_5.yml
|
269
|
+
- spec/payloads/users/rkh/repos_per_page_100.yml
|
270
|
+
- spec/payloads/users/rkh_per_page_100.yml
|
269
271
|
- spec/payloads/users/rtomayko.yml
|
270
272
|
- spec/payloads/users/svenfuchs.yml
|
271
273
|
- spec/payloads/users/travis-repos.yml
|