github_api 0.9.7 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +24 -14
- data/features/cassettes/media/get_default.yml +84 -0
- data/features/cassettes/media/get_full_json.yml +83 -0
- data/features/cassettes/media/get_html_json.yml +81 -0
- data/features/cassettes/media/get_raw_json.yml +80 -0
- data/features/cassettes/media/get_text_json.yml +80 -0
- data/features/cassettes/repos/stats/commits.yml +80 -0
- data/features/cassettes/repos/stats/contribs.yml +221 -0
- data/features/cassettes/repos/stats/frequency.yml +54 -0
- data/features/cassettes/repos/stats/participation.yml +68 -0
- data/features/cassettes/repos/stats/punch.yml +76 -0
- data/features/cassettes/search/users_keyword.yml +70 -0
- data/features/gitignore.feature +1 -1
- data/features/media_type.feature +76 -0
- data/features/repos/statistics.feature +60 -0
- data/features/search.feature +11 -0
- data/features/step_definitions/github_api_steps.rb +4 -0
- data/lib/github_api.rb +2 -0
- data/lib/github_api/arguments.rb +1 -1
- data/lib/github_api/authorization.rb +1 -1
- data/lib/github_api/connection.rb +5 -7
- data/lib/github_api/core_ext/deep_merge.rb +13 -0
- data/lib/github_api/git_data/trees.rb +1 -1
- data/lib/github_api/gitignore.rb +5 -4
- data/lib/github_api/markdown.rb +7 -5
- data/lib/github_api/mime_type.rb +19 -41
- data/lib/github_api/paged_request.rb +1 -1
- data/lib/github_api/parameter_filter.rb +1 -1
- data/lib/github_api/params_hash.rb +59 -22
- data/lib/github_api/repos.rb +9 -3
- data/lib/github_api/repos/pub_sub_hubbub.rb +4 -2
- data/lib/github_api/repos/statistics.rb +94 -0
- data/lib/github_api/request.rb +17 -28
- data/lib/github_api/response_wrapper.rb +8 -0
- data/lib/github_api/say.rb +2 -1
- data/lib/github_api/scopes.rb +3 -2
- data/lib/github_api/search.rb +3 -3
- data/lib/github_api/utils/url.rb +5 -2
- data/lib/github_api/version.rb +2 -2
- data/spec/fixtures/repos/commit_activity.json +15 -0
- data/spec/fixtures/repos/contribs.json +20 -0
- data/spec/fixtures/repos/frequency.json +7 -0
- data/spec/fixtures/repos/participation.json +110 -0
- data/spec/fixtures/repos/punch_card.json +17 -0
- data/spec/github/arguments/parse_spec.rb +2 -2
- data/spec/github/core_ext/deep_merge_spec.rb +23 -0
- data/spec/github/git_data/trees/create_spec.rb +6 -0
- data/spec/github/gitignore/get_spec.rb +1 -1
- data/spec/github/mime_type_spec.rb +24 -55
- data/spec/github/params_hash_spec.rb +64 -0
- data/spec/github/pull_requests/list_spec.rb +1 -1
- data/spec/github/repos/statistics/code_frequency_spec.rb +25 -0
- data/spec/github/repos/statistics/commit_activity_spec.rb +29 -0
- data/spec/github/repos/statistics/contributors_spec.rb +29 -0
- data/spec/github/repos/statistics/participation_spec.rb +25 -0
- data/spec/github/repos/statistics/punch_card_spec.rb +25 -0
- data/spec/github/request_spec.rb +10 -11
- data/spec/github/response_wrapper/overwrites_spec.rb +19 -0
- data/spec/github/users/keys/update_spec.rb +1 -1
- metadata +73 -34
data/README.md
CHANGED
@@ -15,17 +15,18 @@ Supports all the API methods(nearly 200). It's build in a modular way, that is,
|
|
15
15
|
|
16
16
|
## Features
|
17
17
|
|
18
|
-
* Intuitive GitHub API interface navigation.
|
19
|
-
* Modular design allows for working with parts of API.
|
20
|
-
* Fully customizable including advanced middleware stack construction.
|
18
|
+
* Intuitive GitHub API interface navigation. [usage](#usage)
|
19
|
+
* Modular design allows for working with parts of API. [api](#api)
|
20
|
+
* Fully customizable including advanced middleware stack construction. [config](#advanced-configuration)
|
21
21
|
* Its comprehensive, you can request all GitHub API resources.
|
22
|
-
*
|
23
|
-
*
|
24
|
-
*
|
22
|
+
* Support OAuth2 authorization. [oauth](#oauth)
|
23
|
+
* Flexible arguments parsing, you can write expressive and natural queries. [params]()
|
24
|
+
* Requests pagination with convenient DSL and automatic option. [pagination](#pagination)
|
25
|
+
* Easy error handling split for client and server type errors. [error](#error-handling)
|
25
26
|
* Supports multithreaded environment.
|
26
|
-
* Custom
|
27
|
+
* Custom media types specification through 'media' parameter. [media](#media-types)
|
27
28
|
* Request results caching (Status: TODO)
|
28
|
-
* Fully tested with test coverage above 90% with over 1,500 specs and 800 features.
|
29
|
+
* Fully tested with test coverage above 90% with over 1,500 specs and 800 features. [testing](#testing)
|
29
30
|
|
30
31
|
## Installation
|
31
32
|
|
@@ -293,6 +294,8 @@ token = github.get_token( authorization_code )
|
|
293
294
|
|
294
295
|
Once you have your access token, configure your github instance following instructions under Configuration.
|
295
296
|
|
297
|
+
**Note**: If you are working locally (i.e. your app URL and callback URL are localhost), do not specify a ```:redirect_uri``` otherwise you will get a ```redirect_uri_mismatch``` error.
|
298
|
+
|
296
299
|
### Authorizations API
|
297
300
|
|
298
301
|
Alternatively you can use OAuth Authorizations API. For instance, to create access token through GitHub API you required to pass your basic credentials as in the following:
|
@@ -345,18 +348,25 @@ If your client fails to find CA certs you can pass other SSL options to specify
|
|
345
348
|
For instance, download CA root certificates from Mozilla [cacert](http://curl.haxx.se/ca/cacert.pem) and point ca_file at your certificate bundle location.
|
346
349
|
This will allow the client to verify the github.com ssl certificate as authentic.
|
347
350
|
|
348
|
-
##
|
349
|
-
|
350
|
-
Issues, PullRequests and few other API leverage custom mime types which are <tt>:json</tt>, <tt>:blob</tt>, <tt>:raw</tt>, <tt>:text</tt>, <tt>:html</tt>, <tt>:full</tt>. By default <tt>:raw</tt> is used.
|
351
|
+
## Media Types
|
351
352
|
|
352
|
-
|
353
|
+
You can specify custom media types to choose the format of the data you wish to receive. To make things easier you can specify the following shortcuts
|
354
|
+
`json`, `blob`, `raw`, `text`, `html`, `full`. For instance:
|
353
355
|
|
354
356
|
```ruby
|
355
357
|
github = Github.new
|
356
|
-
github.
|
358
|
+
github.issues.get 'peter-murach', 'github', 108, media: 'text'
|
357
359
|
```
|
358
360
|
|
359
|
-
|
361
|
+
This will be expanded into `application/vnd.github.v3.text+json`
|
362
|
+
|
363
|
+
If you wish to specify the version pass `media: 'beta.text'` which will be converted to `application/vnd/github.beta.text+json`.
|
364
|
+
|
365
|
+
Finally, you can always pass the whole accept header like so
|
366
|
+
|
367
|
+
```ruby
|
368
|
+
github.issues.get 'peter-murach', 'github', 108, accept: 'application/vnd.github.raw'
|
369
|
+
```
|
360
370
|
|
361
371
|
## Configuration
|
362
372
|
|
@@ -0,0 +1,84 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/peter-murach/github/issues/108?access_token=<TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.github.v3+json,application/vnd.github.beta+json;q=0.5,application/json;q=0.1
|
12
|
+
Accept-Charset:
|
13
|
+
- utf-8
|
14
|
+
User-Agent:
|
15
|
+
- Github Ruby Gem 0.9.7
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- GitHub.com
|
27
|
+
Date:
|
28
|
+
- Sun, 19 May 2013 18:12:24 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '5000'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '4996'
|
41
|
+
Vary:
|
42
|
+
- Accept, Authorization, Cookie
|
43
|
+
- Accept-Encoding
|
44
|
+
Cache-Control:
|
45
|
+
- private, max-age=60, s-maxage=60
|
46
|
+
Last-Modified:
|
47
|
+
- Sun, 19 May 2013 09:24:08 GMT
|
48
|
+
Etag:
|
49
|
+
- ! '"cf6079634c7d7ef3188cb3ebc14cce45"'
|
50
|
+
X-Github-Media-Type:
|
51
|
+
- github.v3; format=json
|
52
|
+
X-Content-Type-Options:
|
53
|
+
- nosniff
|
54
|
+
Access-Control-Allow-Credentials:
|
55
|
+
- 'true'
|
56
|
+
Access-Control-Expose-Headers:
|
57
|
+
- Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-OAuth-Scopes, X-Accepted-OAuth-Scopes
|
58
|
+
Access-Control-Allow-Origin:
|
59
|
+
- ! '*'
|
60
|
+
Content-Encoding:
|
61
|
+
- gzip
|
62
|
+
body:
|
63
|
+
encoding: ASCII-8BIT
|
64
|
+
string: !binary |-
|
65
|
+
H4sIAAAAAAAAA61VYWvbMBD9K4dh9Eti2Y5bp2ZbGawrhbEPI2WwdbSyfbFF
|
66
|
+
bclIckoW8t93spssy0a6dv0QUCS9p7t3d88rr9O1l3qVta1JGeOt8Ethqy7z
|
67
|
+
c9Uwja0yrEWLetx0mucVG06ZMKZDw8Jg6o28mmdYm5v/pmID0YpJ3uCaiCmG
|
68
|
+
BqV9CeoNFbHi4oU4ByJirGxT76W/o+Kj+onCS8PJ5DgOk2Tkya7JUNNOMB15
|
69
|
+
VtgaqUCXRw2UaK2QJVz0BUrTc62VTtNPyr7Lc2wtz2pMQUnoy0YFlNYl6hOO
|
70
|
+
YuyMI115tSqFJMZmgUtrGi7pzAUwiZMoGHl8wS3Xe8kYzDuNfqmH0743hiWL
|
71
|
+
pxT49CSZJ5xPgjgIwhCDhJ8Wp0GRZBidFW+2zRXFUx99fscbLnyJlnFj0AW4
|
72
|
+
7bhX0QfR8BINLTav7a7HLotxHAV+K0sKfHPnxmXgPRaLU+FQuztyw3aFOVzY
|
73
|
+
3ZtzVdfqnvCHx2DvCbaFUWzDmir8HAqCrZiyFVLtKA03PaUwj43Ofjg9ZEVD
|
74
|
+
bixJ6kgMdYPG4mkhPYAooHtJsax6I+nZuszkWrRWKPlEpX6DEpXSJZfiB38G
|
75
|
+
FUENMfRj8rTEeghB/8VC9rUdMCvWarHg+dLJoTFHsSB1n8O3ByY6u2ydV1y5
|
76
|
+
SV9vbNlLv33vy2jdmWrRDTwNnigl0o7s6nrkNaJGY5XcbmztMp2QDWskdHHD
|
77
|
+
LTFEQTgZB/E4nM7C4zSM0knwlRi7tvjzTpTMojCN4/T41N3Ja2UeaIZnM1Us
|
78
|
+
ifJLhRIuweolWAWczMwYoFaGjYWBmgOHOQUJ9+QVfzG4EeHJ54BLQGeLcHvY
|
79
|
+
JS/OZ/D66vPHtynEwQnMKmGI1ahO5wiFQgNSWTBd2ypt+1iO5qTUETRYCA5O
|
80
|
+
aWi5pu8UfRv922t9Ld2v53HdT3JBxVtS2zm2dduN0u6Pv7n7XhQwOB9kJPAd
|
81
|
+
GEVslbvfJ+keHYwdKuQFarezBO585uyXmhkp6NRc/wRP0SznzAcAAA==
|
82
|
+
http_version: !!null
|
83
|
+
recorded_at: Sun, 19 May 2013 18:12:24 GMT
|
84
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/peter-murach/github/issues/108?access_token=<TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.github.beta.full+json
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.7
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- GitHub.com
|
23
|
+
Date:
|
24
|
+
- Sun, 19 May 2013 18:15:58 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
X-Ratelimit-Limit:
|
34
|
+
- '5000'
|
35
|
+
X-Ratelimit-Remaining:
|
36
|
+
- '4992'
|
37
|
+
Vary:
|
38
|
+
- Accept, Authorization, Cookie
|
39
|
+
- Accept-Encoding
|
40
|
+
Cache-Control:
|
41
|
+
- private, max-age=60, s-maxage=60
|
42
|
+
Last-Modified:
|
43
|
+
- Sun, 19 May 2013 09:24:08 GMT
|
44
|
+
Etag:
|
45
|
+
- ! '"a9236d106801cec5a35be7746d504278"'
|
46
|
+
X-Github-Media-Type:
|
47
|
+
- github.beta; param=full; format=json
|
48
|
+
X-Content-Type-Options:
|
49
|
+
- nosniff
|
50
|
+
Access-Control-Allow-Credentials:
|
51
|
+
- 'true'
|
52
|
+
Access-Control-Expose-Headers:
|
53
|
+
- Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-OAuth-Scopes, X-Accepted-OAuth-Scopes
|
54
|
+
Access-Control-Allow-Origin:
|
55
|
+
- ! '*'
|
56
|
+
Content-Encoding:
|
57
|
+
- gzip
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: !binary |-
|
61
|
+
H4sIAAAAAAAAA71V72/TMBD9V6xIbF/aOEmztcvKJiTGhIT4gDYhwVDnJNfE
|
62
|
+
WmIb2+ko1f53zklbSkH7PT5USu17z3fvfM8Lr9GVl3iltcoklDLF/YLbskn9
|
63
|
+
TNZUg5KGKrCg+3WjWVbSbpdyYxowNAxGXs+rWAqVmTyZinZECypYDTdIjDnU
|
64
|
+
IOxzUK+okBVmz8TZESFjaetqq/wNFe/Uj+deEg4Ge3E4HPY80dQpaFwJRj3P
|
65
|
+
clsBNuj9bk0KsJaLgpy2DUqSE62lTpKP0r7JMlCWpRUkRArStg0bKKwr1Ecc
|
66
|
+
5tgYR7rwKllwgYz1DObW1EzgnktgEA+joOexGbNMbxVjIGs0+IXudtu70X3S
|
67
|
+
eISJj/aH0yFjgyAOgjCEYMgO8oMgH6YQHeev15crikc++OyK1Yz7AixlxoBL
|
68
|
+
cH3jXkXveM0KMPixOm3zu++q6MdR4CtRYOKrmImrwLsrF6fCbdfdkRu6Kczt
|
69
|
+
jd2MnMqqkteIv30Mto6gaxjm1n1jhx9DgbAFlbYE7B2W4aan4Oau0dlOp4Us
|
70
|
+
cMiNRUkdicHboCF/WEpLECZ0LTCXRWskLVuTmkxzZbkUD1TqDyhSSV0wwX+y
|
71
|
+
R1Ah1CBDOyYPK6yFIPQ+FrKtbYdZUKX5jGVzJ4eGDPgM1X0M3xYY6excOa84
|
72
|
+
d5N+s7JlL/n6rW2jdXtSgRt4HDxeCMAV0VRVz6t5BcZKsV5Y22UyQBvWgOh8
|
73
|
+
wiwyREE46AdxPxydhXtJGCWD4AsyNir/OyYankVhEsfJ3oGLySppljTdsQoP
|
74
|
+
n2j4jk8JUi82fLTbz/l02jVoGc9sVv5ewBpTmc8nbkoxs7E6+lyCIO+J1XNi
|
75
|
+
JWFoi8YQHAqyMkMip4SRKZZLrtF1/mGVPcSjYxImCDiDJeNM5nB0u+menpyR
|
76
|
+
ncoenn/6sFPYw4TEwT45K7nBA4xsdAYkl2CIkJaYRimpbZvW7hQV2CU15JwR
|
77
|
+
1z6imMbHDx9cf0zbg8dUHV2IC4HVtYRutrAZpGQKe+neA+uWa6ndH0Stw9/y
|
78
|
+
nHTWSlLs4BUxEplLB2lrdwl0LwcpgeWg3cqcMGdkx44HW9bqa+GH6/xLiHu3
|
79
|
+
rGPU9OhZBHUq3kdCF/ck7Za6vZBkl/9Ts8sLjXLg717CLWOfKt7SJ9J5Z083
|
80
|
+
vwBWvInDpgoAAA==
|
81
|
+
http_version: !!null
|
82
|
+
recorded_at: Sun, 19 May 2013 18:16:00 GMT
|
83
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,81 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/peter-murach/github/issues/108?access_token=<TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.github.v3.html+json
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.7
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- GitHub.com
|
23
|
+
Date:
|
24
|
+
- Sun, 19 May 2013 18:14:21 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
X-Ratelimit-Limit:
|
34
|
+
- '5000'
|
35
|
+
X-Ratelimit-Remaining:
|
36
|
+
- '4993'
|
37
|
+
Vary:
|
38
|
+
- Accept, Authorization, Cookie
|
39
|
+
- Accept-Encoding
|
40
|
+
Cache-Control:
|
41
|
+
- private, max-age=60, s-maxage=60
|
42
|
+
Last-Modified:
|
43
|
+
- Sun, 19 May 2013 09:24:08 GMT
|
44
|
+
Etag:
|
45
|
+
- ! '"1e81fe8e6c15b18969690631b46875c9"'
|
46
|
+
X-Github-Media-Type:
|
47
|
+
- github.v3; param=html; format=json
|
48
|
+
X-Content-Type-Options:
|
49
|
+
- nosniff
|
50
|
+
Access-Control-Allow-Credentials:
|
51
|
+
- 'true'
|
52
|
+
Access-Control-Expose-Headers:
|
53
|
+
- Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-OAuth-Scopes, X-Accepted-OAuth-Scopes
|
54
|
+
Access-Control-Allow-Origin:
|
55
|
+
- ! '*'
|
56
|
+
Content-Encoding:
|
57
|
+
- gzip
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: !binary |-
|
61
|
+
H4sIAAAAAAAAA61VYU/bMBD9K6dIgy9tnKSBlsBAk8YQ0rQPE2jSxoSc5JpY
|
62
|
+
JLZlO0VdxX/fOaEd6yYYjG+p7ff87p3vdRV0pgmyoHZO24wxrkVYCVd3eVio
|
63
|
+
lhnUyjKNDs247QwvajbsMmFth5bF0SwYBQ3PsbHX/03FBqIVk7zFOyImDS1K
|
64
|
+
9xrUaypixcUrcQ5ExFi7ttkq/4GLT/onyiCLJ5O9NJ5OR4Hs2hwNrUSzUeCE
|
65
|
+
a5AadL7bQoXOCVnBWd+gLDs1Rpks+6Tcu6JA7XjeYAZKQt82aqB0vtCQcKSx
|
66
|
+
s550FTSqEpIY2wUunW25pD0vYJJOk2gU8AV33GwVY7HoDIaVGXb7tzF8snRG
|
67
|
+
wmf70/mU80mURlEcYzTlB+VBVE5zTE7Kt5vHlaSzEEN+w1suQomOcWvRC9y8
|
68
|
+
uDfJB9HyCi19rG97+D32VYzTJAq1rEj4+sy1ryB4Sot34bHn7skte2jM4419
|
69
|
+
eHKumkbdEv7xMdi6gm1gpG34pg6/hIJgK6ZcjdQ7KsNPTyXsU6OzLaeHrGjI
|
70
|
+
rSNLPYml12CwfJ6kexAJupWkZdUHSc/W5bYwQjuh5DOd+g1KVMpUXIof/AVU
|
71
|
+
BLXE0I/J8wrrIQT9lwjZ9nbArJg2YsGLpbfDYIFiQe6+hG8LTHRuqX1WXPpJ
|
72
|
+
v1vHcpB9+9630fk9pdEPPA2eqCTSiuyaZhS0okHrlNwsbOIym1AMGyR0ec0d
|
73
|
+
MSRRPBlH6TieXcR7WZxkk+grMXa6/PNMMr1I4ixNs70Df6ZolL2nGa7NVbm8
|
74
|
+
9jNGvEf6+EuNEs7BmSU4BZxCzVqgJw3rKAM1Bw5zEgu3lBl/CboR4SnvgEtA
|
75
|
+
H49wVKgSjx+PzLPTC9hp3OHl5487lTvMII324aIWli6wqjMFQqnQglQObKe1
|
76
|
+
Mq6XtTsn83ahxVJw8OaD5ob+uujvMjxi/cVHTB9fyStJ1fWEfjLISqi5pk74
|
77
|
+
NHd+uVXG/yDU5vh7UcIQjJCT/zdgFTHXHtLX7gUMuQ818hKNX1kC9zF04nl+
|
78
|
+
GZ4vhz7f/QTwM+MD7wcAAA==
|
79
|
+
http_version: !!null
|
80
|
+
recorded_at: Sun, 19 May 2013 18:14:21 GMT
|
81
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,80 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/peter-murach/github/issues/108?access_token=<TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.github.v3.raw+json
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.7
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- GitHub.com
|
23
|
+
Date:
|
24
|
+
- Sun, 19 May 2013 18:12:36 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
X-Ratelimit-Limit:
|
34
|
+
- '5000'
|
35
|
+
X-Ratelimit-Remaining:
|
36
|
+
- '4995'
|
37
|
+
Vary:
|
38
|
+
- Accept, Authorization, Cookie
|
39
|
+
- Accept-Encoding
|
40
|
+
Cache-Control:
|
41
|
+
- private, max-age=60, s-maxage=60
|
42
|
+
Last-Modified:
|
43
|
+
- Sun, 19 May 2013 09:24:08 GMT
|
44
|
+
Etag:
|
45
|
+
- ! '"62f385b5366c23ef199103102600c2e3"'
|
46
|
+
X-Github-Media-Type:
|
47
|
+
- github.v3; param=raw; format=json
|
48
|
+
X-Content-Type-Options:
|
49
|
+
- nosniff
|
50
|
+
Access-Control-Allow-Credentials:
|
51
|
+
- 'true'
|
52
|
+
Access-Control-Expose-Headers:
|
53
|
+
- Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-OAuth-Scopes, X-Accepted-OAuth-Scopes
|
54
|
+
Access-Control-Allow-Origin:
|
55
|
+
- ! '*'
|
56
|
+
Content-Encoding:
|
57
|
+
- gzip
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: !binary |-
|
61
|
+
H4sIAAAAAAAAA61VYWvbMBD9K4dh9Eti2Y5bp2ZbGawrhbEPI2WwdbSyfbFF
|
62
|
+
bclIckoW8t93spssy0a6dv0QUCS9p7t3d88rr9O1l3qVta1JGeOt8Ethqy7z
|
63
|
+
c9Uwja0yrEWLetx0mucVG06ZMKZDw8Jg6o28mmdYm5v/pmID0YpJ3uCaiCmG
|
64
|
+
BqV9CeoNFbHi4oU4ByJirGxT76W/o+Kj+onCS8PJ5DgOk2Tkya7JUNNOMB15
|
65
|
+
VtgaqUCXRw2UaK2QJVz0BUrTc62VTtNPyr7Lc2wtz2pMQUnoy0YFlNYl6hOO
|
66
|
+
YuyMI115tSqFJMZmgUtrGi7pzAUwiZMoGHl8wS3Xe8kYzDuNfqmH0743hiWL
|
67
|
+
pxT49CSZJ5xPgjgIwhCDhJ8Wp0GRZBidFW+2zRXFUx99fscbLnyJlnFj0AW4
|
68
|
+
7bhX0QfR8BINLTav7a7HLotxHAV+K0sKfHPnxmXgPRaLU+FQuztyw3aFOVzY
|
69
|
+
3ZtzVdfqnvCHx2DvCbaFUWzDmir8HAqCrZiyFVLtKA03PaUwj43Ofjg9ZEVD
|
70
|
+
bixJ6kgMdYPG4mkhPYAooHtJsax6I+nZuszkWrRWKPlEpX6DEpXSJZfiB38G
|
71
|
+
FUENMfRj8rTEeghB/8VC9rUdMCvWarHg+dLJoTFHsSB1n8O3ByY6u2ydV1y5
|
72
|
+
SV9vbNlLv33vy2jdmWrRDTwNnigl0o7s6nrkNaJGY5XcbmztMp2QDWskdHHD
|
73
|
+
LTFEQTgZB/E4nM7C4zSM0knwlRi7tvjzTpTMojCN4/T41N3Ja2UeaIZnM1Us
|
74
|
+
ifJLhRIuweolWAWczMwYoFaGjYWBmgOHOQUJ9+QVfzG4EeHJ54BLQGeLcHvY
|
75
|
+
JS/OZ/D66vPHtynEwQnMKmGI1ahO5wiFQgNSWTBd2ypt+1iO5qTUETRYCA5O
|
76
|
+
aWi5pu8UfRv922t9Ld2v53HdT3JBxVtS2zm2dduN0u6Pv7n7XhQwOB9kJPAd
|
77
|
+
GEVslbvfJ+keHYwdKuQFarezBO585uyXmhkp6NRc/wRP0SznzAcAAA==
|
78
|
+
http_version: !!null
|
79
|
+
recorded_at: Sun, 19 May 2013 18:12:36 GMT
|
80
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,80 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/peter-murach/github/issues/108?access_token=<TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.github.v3.text+json
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.7
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- GitHub.com
|
23
|
+
Date:
|
24
|
+
- Sun, 19 May 2013 18:13:30 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
X-Ratelimit-Limit:
|
34
|
+
- '5000'
|
35
|
+
X-Ratelimit-Remaining:
|
36
|
+
- '4994'
|
37
|
+
Vary:
|
38
|
+
- Accept, Authorization, Cookie
|
39
|
+
- Accept-Encoding
|
40
|
+
Cache-Control:
|
41
|
+
- private, max-age=60, s-maxage=60
|
42
|
+
Last-Modified:
|
43
|
+
- Sun, 19 May 2013 09:24:08 GMT
|
44
|
+
Etag:
|
45
|
+
- ! '"781e26d455f5d40201a39b5d9b902e8e"'
|
46
|
+
X-Github-Media-Type:
|
47
|
+
- github.v3; param=text; format=json
|
48
|
+
X-Content-Type-Options:
|
49
|
+
- nosniff
|
50
|
+
Access-Control-Allow-Credentials:
|
51
|
+
- 'true'
|
52
|
+
Access-Control-Expose-Headers:
|
53
|
+
- Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-OAuth-Scopes, X-Accepted-OAuth-Scopes
|
54
|
+
Access-Control-Allow-Origin:
|
55
|
+
- ! '*'
|
56
|
+
Content-Encoding:
|
57
|
+
- gzip
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: !binary |-
|
61
|
+
H4sIAAAAAAAAA61VYWvbMBD9K4dh9Eti2Y5bp2ZbGawrhbEPI2WwdQTZvtii
|
62
|
+
tmQkOV0a+t93spssy0azdv0mS7qnd+/untdep2sv9SprW5Myxlvhl8JWXebn
|
63
|
+
qmEaW2VYixb1uOk0zys2nDJhTIeGhcHUG3k1z7A28/+GYgPQmkne4D0BE4cG
|
64
|
+
pX0J6A0UoeLyhTAHIEKsbFPvpb+j4kH9ROGl4WRyHIdJMvJk12SoaSeYjjwr
|
65
|
+
bI1UoMujBkq0VsgSLvoCpem51kqn6Sdl3+U5tpZnNaagJPRlowJK6xL1KY44
|
66
|
+
dsaBrr1alUISYrPElTUNl3TmCEziJApGHl9yy/VeMgbzTqNf6uG0741hyeIp
|
67
|
+
EZ+eJIuE80kQB0EYYpDw0+I0KJIMo7Pizba5onjqo89veMOFL9Eybgw6gtuO
|
68
|
+
exV9EA0v0dBi89rueuyyGMdR4LeyJOKbO3OXgXeIi1PhsXZ34IbtCvN4YXdv
|
69
|
+
LlRdq1uKf3wM9p5g2zDiNqypws+BoLA1U7ZCqh2l4aanFObQ6OzT6UPWNOTG
|
70
|
+
kqQOxFA3aCyeRukhiAjdSuKy7o2kR+syk2vRWqHkE5X6LZSglC65FHf8GVAU
|
71
|
+
agihH5OnJdaHUOi/WMi+tkPMmrVaLHm+cnJozFEsSd3n4O0FE5xdtc4rrtyk
|
72
|
+
329s2Uu/fe/LaN2ZatENPA2eKCXSjuzqeuQ1okZjldxubO0ynZANa6ToYs4t
|
73
|
+
IURBOBkH8TiczsLjNIzSSfCVELu2+PNOlMyiMI3j9PjU3clrZR5ghmczVazm
|
74
|
+
Fn843C8VSrgEq1dgFXByNGOA+hk2PgZqARwWxBRuyTD+4nIjiiezAy4BnTce
|
75
|
+
cMqL8xm8vvr88W0KcXACs0oYAjWq0zlCodCAVBZM17ZK257K0YLUOoIGC8HB
|
76
|
+
qQ0t1/Svov+jfy2vZQ/hmp/Ugoq3JLYzbOu2G6XdR3/vvShgMD3ISNsbMIpA
|
77
|
+
Kne3T829NXg6VMgL1G5nBdxZzNkvIbPVUL/7n09sVLzHBwAA
|
78
|
+
http_version: !!null
|
79
|
+
recorded_at: Sun, 19 May 2013 18:13:31 GMT
|
80
|
+
recorded_with: VCR 2.4.0
|