github_api 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/README.md +8 -0
  2. data/features/README.rdoc +4 -0
  3. data/features/cassettes/errors/repos/create.yml +76 -34
  4. data/features/cassettes/gists/comments/all.yml +118 -119
  5. data/features/cassettes/gists/comments/first.yml +43 -44
  6. data/features/cassettes/gists/gist.yml +62 -63
  7. data/features/cassettes/gists/gists/public_all.yml +34 -34
  8. data/features/cassettes/gists/gists/user_all.yml +45 -46
  9. data/features/cassettes/gists/starred.yml +34 -38
  10. data/features/cassettes/git_data/references/all.yml +379 -0
  11. data/features/cassettes/git_data/references/all_tags.yml +141 -0
  12. data/features/cassettes/git_data/references/one.yml +97 -0
  13. data/features/cassettes/pagination/repos/commits/list.yml +180 -180
  14. data/features/cassettes/pagination/repos/commits/next.yml +166 -350
  15. data/features/cassettes/pagination/repos/commits/sha.yml +138 -129
  16. data/features/cassettes/pagination/repos/commits/sha/next.yml +139 -133
  17. data/features/cassettes/pagination/repos/diff.yml +131 -129
  18. data/features/cassettes/pagination/repos/diff/next.yml +131 -172
  19. data/features/cassettes/pagination/repos/list.yml +168 -163
  20. data/features/cassettes/pagination/repos/list/next.yml +171 -209
  21. data/features/cassettes/pagination/repos/per_page/each_page.yml +441 -412
  22. data/features/cassettes/pagination/repos/per_page/first.yml +130 -129
  23. data/features/cassettes/repos/branches.yml +40 -40
  24. data/features/cassettes/repos/create.yml +46 -0
  25. data/features/cassettes/repos/get.yml +59 -0
  26. data/features/cassettes/repos/languages.yml +44 -0
  27. data/features/cassettes/repos/list.yml +79 -79
  28. data/features/cassettes/repos/tags.yml +59 -142
  29. data/features/cassettes/repos/teams.yml +48 -0
  30. data/features/error_codes.feature +1 -0
  31. data/features/git_data/references.feature +49 -0
  32. data/features/repos.feature +32 -2
  33. data/features/settings.yml +6 -0
  34. data/features/settings.yml.sample +6 -0
  35. data/features/step_definitions/github_api_steps.rb +14 -2
  36. data/features/support/settings.rb +7 -0
  37. data/features/support/vcr.rb +3 -1
  38. data/lib/github_api/authorizations.rb +5 -0
  39. data/lib/github_api/git_data/commits.rb +10 -10
  40. data/lib/github_api/git_data/references.rb +10 -7
  41. data/lib/github_api/repos.rb +1 -1
  42. data/lib/github_api/repos/downloads.rb +5 -0
  43. data/lib/github_api/version.rb +1 -1
  44. data/spec/github/git_data/references_spec.rb +17 -14
  45. metadata +153 -154
  46. data/features/cassettes/gists/gist/first.yml +0 -65
  47. data/features/cassettes/pagination/repos/commits.yml +0 -189
data/README.md CHANGED
@@ -347,6 +347,14 @@ class GithubController < ApplicationController
347
347
  end
348
348
  ```
349
349
 
350
+ ## Testing
351
+
352
+ The test suite is split into two groups `live` and `mock`.
353
+
354
+ The `live` tests are the ones in `features` folder and they simply exercise the GitHub API by making live requests and then being cached with VCR in directory named `features\cassettes`. For details on how to get setup please navigate to `features` folder.
355
+
356
+ The `mock` tests are in `spec` directory and their primary concern is to test the gem internals without the hindrance of external calls.
357
+
350
358
  ## Development
351
359
 
352
360
  Questions or problems? Please post them on the [issue tracker](https://github.com/peter-murach/github/issues). You can contribute changes by forking the project and submitting a pull request. You can ensure the tests are passing by running `bundle` and `rake`.
data/features/README.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = GithubAPI
2
2
 
3
+ == Setup
4
+
5
+ Start by renaming the 'settings.yml.sample' file to 'settings.yml'. Then fill in all the information required such as authentication token etc. This should be enough to get the whole test suite run.
6
+
3
7
  == Running the specs and features
4
8
 
5
9
  To run the specs first run the +bundle+ command to install the necessary gems and then +rake+ command to run the specs.
@@ -1,46 +1,88 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<BASIC_AUTH>@api.github.com/user/repos
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"homepage":"https://github.com","private":false,"has_issues":true,"has_wiki":true,"has_downloads":true,"name":"basic_auth"}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - ! '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 422
19
+ message: Unprocessable Entity
20
+ headers:
21
+ Server:
22
+ - nginx/1.0.13
23
+ Date:
24
+ - Mon, 07 May 2012 15:42:17 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Connection:
28
+ - keep-alive
29
+ Status:
30
+ - 422 Unprocessable Entity
31
+ X-Ratelimit-Limit:
32
+ - '5000'
33
+ Etag:
34
+ - ! '"f5bdcd2978e6fcd2811b039d8d25df3b"'
35
+ X-Ratelimit-Remaining:
36
+ - '4997'
37
+ Content-Length:
38
+ - '147'
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! '{"errors":[{"message":"name already exists on this account","field":"name","resource":"Repository","code":"custom"}],"message":"Validation
42
+ Failed"}'
43
+ http_version: !!null
44
+ recorded_at: Mon, 07 May 2012 15:42:17 GMT
45
+ - request:
4
46
  method: post
5
47
  uri: https://api.github.com/user/repos
6
- body:
48
+ body:
7
49
  encoding: UTF-8
8
- string: "{\"homepage\":\"https://github.com\",\"public\":true,\"has_issues\":true,\"has_wiki\":true,\"has_downloads\":true,\"name\":\"basic_auth\"}"
9
- headers:
10
- Content-Type:
50
+ string: ! '{"homepage":"https://github.com","private":false,"has_issues":true,"has_wiki":true,"has_downloads":true,"name":"basic_auth"}'
51
+ headers:
52
+ Content-Type:
11
53
  - application/json
12
- Accept:
13
- - "*/*"
14
- User-Agent:
54
+ Accept:
55
+ - ! '*/*'
56
+ User-Agent:
15
57
  - Ruby
16
- response:
17
- status:
58
+ response:
59
+ status:
18
60
  code: 401
19
61
  message: Unauthorized
20
- headers:
21
- Server:
22
- - nginx/1.0.12
23
- Date:
24
- - Sat, 10 Mar 2012 23:11:46 GMT
25
- Content-Type:
62
+ headers:
63
+ Server:
64
+ - nginx/1.0.13
65
+ Date:
66
+ - Mon, 07 May 2012 16:12:15 GMT
67
+ Content-Type:
26
68
  - application/json; charset=utf-8
27
- Connection:
69
+ Connection:
28
70
  - keep-alive
29
- Status:
71
+ Status:
30
72
  - 401 Unauthorized
31
- Www-Authenticate:
73
+ Www-Authenticate:
32
74
  - Basic realm="GitHub"
33
- X-Ratelimit-Limit:
34
- - "5000"
35
- Etag:
36
- - "\"99852aefab6a0988db8f62bf2fb96f49\""
37
- X-Ratelimit-Remaining:
38
- - "4999"
39
- Content-Length:
40
- - "37"
41
- body:
75
+ X-Ratelimit-Limit:
76
+ - '5000'
77
+ Etag:
78
+ - ! '"99852aefab6a0988db8f62bf2fb96f49"'
79
+ X-Ratelimit-Remaining:
80
+ - '4997'
81
+ Content-Length:
82
+ - '37'
83
+ body:
42
84
  encoding: US-ASCII
43
- string: "{\"message\":\"Requires authentication\"}"
44
- http_version:
45
- recorded_at: Sat, 10 Mar 2012 23:11:46 GMT
46
- recorded_with: VCR 2.0.0
85
+ string: ! '{"message":"Requires authentication"}'
86
+ http_version: !!null
87
+ recorded_at: Mon, 07 May 2012 16:12:15 GMT
88
+ recorded_with: VCR 2.1.1
@@ -1,131 +1,130 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: get
5
- uri: https://api.github.com/gists/999390/comments
6
- body:
5
+ uri: https://<BASIC_AUTH>@api.github.com/gists/999390/comments?access_token=<TOKEN>
6
+ body:
7
7
  encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Accept-Encoding:
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
12
+ Accept:
13
+ - ! '*/*'
14
+ User-Agent:
15
15
  - Ruby
16
- response:
17
- status:
16
+ response:
17
+ status:
18
18
  code: 200
19
19
  message: OK
20
- headers:
21
- Server:
22
- - nginx/1.0.12
23
- Date:
24
- - Sat, 10 Mar 2012 23:11:48 GMT
25
- Content-Type:
20
+ headers:
21
+ Server:
22
+ - nginx/1.0.13
23
+ Date:
24
+ - Mon, 07 May 2012 16:12:18 GMT
25
+ Content-Type:
26
26
  - application/json; charset=utf-8
27
- Transfer-Encoding:
27
+ Transfer-Encoding:
28
28
  - chunked
29
- Connection:
29
+ Connection:
30
30
  - keep-alive
31
- Status:
31
+ Status:
32
32
  - 200 OK
33
- X-Ratelimit-Limit:
34
- - "5000"
35
- Etag:
36
- - "\"8dec910af630488b32eeb2efd7acf9fc\""
37
- X-Ratelimit-Remaining:
38
- - "4997"
39
- Content-Encoding:
33
+ X-Ratelimit-Limit:
34
+ - '5000'
35
+ Etag:
36
+ - ! '"cb7013ea3796b320f9f1e0258699fdfa"'
37
+ X-Ratelimit-Remaining:
38
+ - '4920'
39
+ Content-Encoding:
40
40
  - gzip
41
- body:
41
+ body:
42
42
  encoding: ASCII-8BIT
43
- string: !binary |
44
- H4sIAAAAAAAAA+1ba4/bNhb9K4yL3Ul2bY+etiV0kSZBkk6BPJDMtug2RUpJ
45
- lK1YErWiNB636H/fc0nJo+lkbDjYAPNhiknGsSSSIg/PPede9pc/Rm2dj8LR
46
- qmkqFZ6e8iqbLrNm1UbTWBany0w16hSfClHig+t6s2A0HsW14I1IPvIGjzqW
47
- bU8sf+La5/YsdPzQdf+DeyKZbHH1R1FvWSxlPma5lGvF8mwtWLMSrBZLcSkU
48
- 42XCKt6s9PW2whe1YOssz7NyySpRp7IueBmLKXu2EvGaybZh/XAHQ61iXtWn
49
- ybaUkyjPmt9FzfAki0QZrwper6k1zpIsTUWNl2FcVSJumEyHfejBqJjnPMrQ
50
- yJZN2EpuGPrfMmpasUSyM1YKkTBZsu9FvZbtY4bXbavk4JRkyQiTgynE7UrU
51
- o/DA7NNN6nQtNypbo4tlzS94w+uP1M4oSm0vtYJ5Gi8i4S3mVhB5PEi5iOKU
52
- x0GKB3K5zErcumuBHpy7C88ej7qmrq++EnFbi2nfkYaAufH0UHePk3/tMOR4
53
- i6mY8jUveDYtRXPKlRKNGgDrb86LrOBLofCh7234eWJ71rQql6M//xwfmKSb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Ze3+4UShS8lEc7ZswaGQ5/tZ
121
- crAk3fYI7svQ+tj3VzzGgH1yS3nQ7JMAJ0RDfzZgyfOVoIoyEHQty0Pgvgqt
122
- pBPp+MEDdnYCGVYiNUi2BmCkw7s6TZJKHLGFjeq94pVShJ/A+copRfhBAbIr
123
- Fe0NtIPR9hA6rshy7ye+4IS35zreHinnuKG1CP2hn3gC9MAgDv5vAEXWAcyi
124
- 1Rgpd1gG4pabXtWcn4XfJaKj/A5MNWwAxxlZ2Aq4XJ0j07RMDUjUb0/Im3ct
125
- nfQ8ui9UD4dsgIRXPEqxPcslUm83XGk8n9le7EdJxL2FFcxgUsXcShwcbA1m
126
- MR/WLHYt6HAd+M4cYuHYeH2ov7sTr13v9ng9O7d8AAhVpKFaMxPU6//JTv/f
127
- zhDX2+kW1rsPMscGmV//B8ph4WOnNAAA
128
-
129
- http_version:
130
- recorded_at: Sat, 10 Mar 2012 23:11:48 GMT
131
- recorded_with: VCR 2.0.0
43
+ string: !binary |-
44
+ H4sIAAAAAAAAA+1ba2/bRhb9KxMXu052JZkUqQeJXaRpkKQukAcSb4tuU6RD
45
+ cigyIjlcDmlZLfLf99wZUqKTSLKF+lNdOLEiPuZ15txz7p3+8sdJo0R14v9x
46
+ sqj4Ja959SGNTvyTILbd2PJmcTgPhDufWV7gci/mIghjHnrxyeCkqTLcmNR1
47
+ qfyzM16mo0VaJ00wCmV+Rm9VZ0u5UukS97avvv6IEmFTiVHXsH7O3Hh2qPnH
48
+ 0b83DY/d+UiM+JLnPB0Voj7jSola9Xrzt/HzNOcLofCha63/eWi71qgsFugo
49
+ DX7mzF17cJLJRVpghO0gPg1OwkrwWkQfeI2vx5ZtD63J0LEv7Kk/nviO899D
50
+ s7JIVa3OMM5cFPjgOO7UwzOBjNZ444+iWrNQymzAMimXimXpUrA6EawSC3El
51
+ FONFxEpeJ/p6U+KLSrBlmmVpsWClqGJZ5bwIxYg9TUS4ZLKpWTdPvcUpQ15W
52
+ Z9G6kMMgS+vfRc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XS
118
+ z5yj0o6L9Lc+k9h5oM7jrhCMOkoBi7QKk9QRILQQBQgl00rQFEagstqDrEbg
119
+ 6loARa8FCbbWDbUHx9ZGbLYO4KzL3jy7Ahsp+Eak1bUBJRcxIKdLXIUiSg+t
120
+ GAeCuDmVUcKCpSoR0MLtK7UENLVD+OI+3+E0tT6ui4awGSA+9bmxL9+szT+M
121
+ KGQpeWjOFg04FOp8P0v2lrHdJ96+MvR9Puh2+SAwkefbtj+ZHsGXXq9CeJEI
122
+ KikDQteyPITubWwlqUjnDx6w81MosQLZQbI1QCOd39VpkljilC1sVOcVt2IR
123
+ fgIHLEcU4ns1yLZatDfS9kbYYWhPnSWcTW03nARRwN255U0BKTGzojHO2nrT
124
+ kN+wzvI0k0iyHJFQPNT83cZabzKeedtg245iT7gdO7419ye3dxOuM3a3Mu4J
125
+ gANv2PvfARQZB7CKVmKk22EYiFe+tKnm7CysLpEcpXbgp2ECOM7HwlTA4Or0
126
+ mKZkeoFE9faUbHn7ptOOQ/fF6/4wDYbQ/d1q7f44zPhWdmB6YU0AIlSGbk9D
127
+ jtuP1waxnf4fbvT/boK43na7uK716df/AznfKYunNAAA
128
+ http_version: !!null
129
+ recorded_at: Mon, 07 May 2012 16:12:18 GMT
130
+ recorded_with: VCR 2.1.1
@@ -1,56 +1,55 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: get
5
- uri: https://api.github.com/gists/comments/33469
6
- body:
5
+ uri: https://<BASIC_AUTH>@api.github.com/gists/comments/33469?access_token=<TOKEN>
6
+ body:
7
7
  encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Accept-Encoding:
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
12
+ Accept:
13
+ - ! '*/*'
14
+ User-Agent:
15
15
  - Ruby
16
- response:
17
- status:
16
+ response:
17
+ status:
18
18
  code: 200
19
19
  message: OK
20
- headers:
21
- Server:
22
- - nginx/1.0.12
23
- Date:
24
- - Sat, 10 Mar 2012 23:11:48 GMT
25
- Content-Type:
20
+ headers:
21
+ Server:
22
+ - nginx/1.0.13
23
+ Date:
24
+ - Mon, 07 May 2012 16:12:19 GMT
25
+ Content-Type:
26
26
  - application/json; charset=utf-8
27
- Transfer-Encoding:
27
+ Transfer-Encoding:
28
28
  - chunked
29
- Connection:
29
+ Connection:
30
30
  - keep-alive
31
- Status:
31
+ Status:
32
32
  - 200 OK
33
- X-Ratelimit-Limit:
34
- - "5000"
35
- Etag:
36
- - "\"2e13207db4166565ad36d0650ff6b67a\""
37
- X-Ratelimit-Remaining:
38
- - "4996"
39
- Content-Encoding:
33
+ X-Ratelimit-Limit:
34
+ - '5000'
35
+ Etag:
36
+ - ! '"108bdd5b051e4969849493a6260a1d4e"'
37
+ X-Ratelimit-Remaining:
38
+ - '4919'
39
+ Content-Encoding:
40
40
  - gzip
41
- body:
41
+ body:
42
42
  encoding: ASCII-8BIT
43
- string: !binary |
44
- H4sIAAAAAAAAA4VSy27cMAz8FcJAb/Fr7WTXBoocAgTtveihl4CSKFuwLQmS
45
- 3NQN8u+lt91gc2luA2k4Qw75kq1hzvpsTMnHvizRm2IwaVxFId1SDiamWDJa
46
- yDJomvauy24yGQgTqSdMXHqo6jqvbvOm/lbf9Yfbvml+MEc4tfHvdwobSOfm
47
- G5idmyLMZiJII0GggX5RBLQKPKbx/L96fggEk5lnYwfwFLQLC1pJBTyMJCdw
48
- a4JLu1eteok+lGqzLhezSb8pAFeCICvHBcO0qyEoozUFHgYwepIJnL72ODcT
49
- Jc4oDItskMPonoH9N9ilIygHX8ESKXAWvlCY3HoPPO7q1YeRGJVxOBwh0yOF
50
- rH/5f/o7KZaTe45mYosh4E9MGJ52nUzoutVVd9TyJKg9HatOtNhpJCE1yk5z
51
- wewGY5n6pvCv/v3KI8k1UHFRP+/9L7H8yONefX47nEN7KqjACRc0haVUYoyU
52
- 4tU1fTo8mgUHigwubtc4r9uq8HbgzvcJj82prV9f/wAsufCeogIAAA==
53
-
54
- http_version:
55
- recorded_at: Sat, 10 Mar 2012 23:11:48 GMT
56
- recorded_with: VCR 2.0.0
43
+ string: !binary |-
44
+ H4sIAAAAAAAAA4WRTW+cMBCG/8oIqbcFw0KyC1KVQ6UovVc55LIa22OwANuy
45
+ TVMS5b/HbLrt9tLcRvPxzDvvvGZLIJ91r9lke22yLhvtc9BjtsvwJ0b0p8VP
46
+ KTvE6ELHWCCxeCp6/1EthJ3ZR8i4qhpVtgcljpya46FseYOtQuJCoWjVnfx6
47
+ oeC+ORZU4Igz6sJQZBgCxVD0Og4L36hf9vd6xp5CCi7bruO8asrCmT4J/Vch
48
+ On2FYdt5gf056oI6aZmu+kxygm99h/rYVG+7THjCSPKEMc3uy6rKy5u8rn5U
49
+ t93+pqvrp9TPrVxT9ZH8CsLaaQeTtWOASY8EcSDw1NMvCoBGgsM4nOuLSwlP
50
+ MOpp0qYHR15ZP6MRVMC3gcQIdolw8e+vTcwJdJ7J1dicTzq+kIc0CZyMGGb0
51
+ 40ZDkFop8mQiYHAkIlh1veMsJgickOsEWSGHwT5D2r/Chg4gLXwHQyTBGngg
52
+ P9rlDjbvnfzUkv/+p9chBpYePid1gdV1c9v+tv0cv70DEWRpa6ICAAA=
53
+ http_version: !!null
54
+ recorded_at: Mon, 07 May 2012 16:12:19 GMT
55
+ recorded_with: VCR 2.1.1