worochi 0.0.7 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/worochi/agent/{sample.rb → #example.rb} +2 -14
- data/lib/worochi/agent/dropbox.rb +3 -13
- data/lib/worochi/agent/github.rb +8 -23
- data/lib/worochi/agent.rb +46 -18
- data/lib/worochi/config/#example.yml +35 -0
- data/lib/worochi/config/dropbox.yml +14 -0
- data/lib/worochi/config/github.yml +17 -0
- data/lib/worochi/config.rb +9 -84
- data/lib/worochi/configurator.rb +120 -0
- data/lib/worochi/helper/github_helper.rb +111 -0
- data/lib/worochi/helper.rb +28 -7
- data/lib/worochi/item.rb +5 -3
- data/lib/worochi/log.rb +8 -14
- data/lib/worochi/oauth.rb +69 -0
- data/lib/worochi/version.rb +1 -1
- data/lib/worochi.rb +20 -3
- data/spec/cassettes/Worochi/_push/pushes_with_agents.yml +512 -0
- data/spec/cassettes/Worochi_Agent_Dropbox/_push_item/pushes_it_chunked_if_size_exceeds_limit.yml +1049 -0
- data/spec/cassettes/Worochi_Agent_Dropbox/_push_item_chunked/raises_an_error.yml +44 -0
- data/spec/cassettes/Worochi_Agent_Dropbox/_push_items/pushes_multiple_items.yml +165 -0
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/raises_error_on_invalid_path.yml +38 -0
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files_and_folders/shows_detailed_listing.yml +79 -0
- data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files_and_folders/shows_detailed_listing_including_the_required_fields.yml +79 -0
- data/spec/cassettes/Worochi_Agent_Github/_list/works_with_absolute_paths.yml +12 -12
- data/spec/cassettes/Worochi_Agent_Github/_repos/lists_the_repos.yml +207 -0
- data/spec/cassettes/Worochi_Agent_Github/_source_branch/retrieves_the_master_branch_correctly.yml +6 -6
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml +12 -12
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/contains_file1.yml +12 -12
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml +12 -12
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/raises_error_on_invalid_path.yml +133 -0
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml +24 -24
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files_and_folders/shows_detailed_listing_including_the_required_fields.yml +133 -0
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml +12 -12
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml +12 -12
- data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml +12 -12
- data/spec/cassettes/Worochi_Agent_Github/{_push_all → modifies_the_repo/_push_all}/pushes_a_list_of_items_to_create_a_new_commit.yml +80 -80
- data/spec/cassettes/Worochi_Agent_Github/{_push_all → modifies_the_repo/_push_all}/pushes_the_file_to_the_right_place.yml +60 -60
- data/spec/cassettes/Worochi_Agent_Github/modifies_the_repo/_push_blob/pushes_the_blob_even_when_it_is_larger_than_block_size.yml +181 -0
- data/spec/cassettes/Worochi_Agent_Github/modifies_the_repo/_push_item/pushes_a_single_item_and_makes_a_commit.yml +687 -0
- data/spec/cassettes/Worochi_Agent_Github/modifies_the_repo/_stream_blob/streams_the_file_as_an_Base64_JSON_field.yml +181 -0
- data/spec/cassettes/Worochi_OAuth/_flow_end/rejects_bad_code.yml +56 -0
- data/spec/{helper.rb → spec_helper.rb} +14 -1
- data/spec/support/aws_uri_matcher.rb +1 -1
- data/spec/support/shared_exampes_for_agents.rb +13 -2
- data/spec/support/test_files.rb +4 -4
- data/spec/worochi/agent/dropbox_spec.rb +29 -3
- data/spec/worochi/agent/github_spec.rb +54 -26
- data/spec/worochi/agent_spec.rb +34 -1
- data/spec/worochi/config_spec.rb +46 -30
- data/spec/worochi/helper/github_helper_spec.rb +94 -0
- data/spec/worochi/helper_spec.rb +15 -3
- data/spec/worochi/item_spec.rb +9 -6
- data/spec/worochi/log_spec.rb +30 -0
- data/spec/worochi/oauth_spec.rb +33 -0
- data/spec/worochi_spec.rb +25 -1
- data/worochi.gemspec +5 -1
- metadata +104 -11
- data/lib/worochi/helper/github.rb +0 -100
- data/spec/worochi/helper/github_spec.rb +0 -57
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- GitHub.com
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Thu, 15 Aug 2013 21:07:18 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -33,9 +33,9 @@ http_interactions:
|
|
33
33
|
X-Ratelimit-Limit:
|
34
34
|
- '5000'
|
35
35
|
X-Ratelimit-Remaining:
|
36
|
-
- '
|
36
|
+
- '4796'
|
37
37
|
X-Ratelimit-Reset:
|
38
|
-
- '
|
38
|
+
- '1376602835'
|
39
39
|
X-Oauth-Scopes:
|
40
40
|
- user, public_repo, repo, gist
|
41
41
|
X-Accepted-Oauth-Scopes:
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Access-Control-Allow-Origin:
|
53
53
|
- '*'
|
54
54
|
Etag:
|
55
|
-
- '"
|
55
|
+
- '"1e9a35ec492ea865f92a1b38b774b076"'
|
56
56
|
Cache-Control:
|
57
57
|
- max-age=0, private, must-revalidate
|
58
58
|
Vary:
|
@@ -62,9 +62,9 @@ http_interactions:
|
|
62
62
|
string: '{"name":"master","commit":{"sha":"cdddc3941866854cdb41c023d0f5240ed10df053","commit":{"author":{"name":"Raven
|
63
63
|
Jiang","email":"raven@cs.stanford.edu","date":"2013-08-09T23:23:24Z"},"committer":{"name":"Raven
|
64
64
|
Jiang","email":"raven@cs.stanford.edu","date":"2013-08-09T23:23:24Z"},"message":"Added
|
65
|
-
subfolder testing","tree":{"sha":"6553d302dfc55bf5cd09c07a6125753af023c7a5","url":"https://api.github.com/repos/darkmirage/test/git/trees/6553d302dfc55bf5cd09c07a6125753af023c7a5"},"url":"https://api.github.com/repos/darkmirage/test/git/commits/cdddc3941866854cdb41c023d0f5240ed10df053","comment_count":0},"url":"https://api.github.com/repos/darkmirage/test/commits/cdddc3941866854cdb41c023d0f5240ed10df053","html_url":"https://github.com/darkmirage/test/commit/cdddc3941866854cdb41c023d0f5240ed10df053","comments_url":"https://api.github.com/repos/darkmirage/test/commits/cdddc3941866854cdb41c023d0f5240ed10df053/comments","author":{"login":"darkmirage","id":1635019,"avatar_url":"https://
|
65
|
+
subfolder testing","tree":{"sha":"6553d302dfc55bf5cd09c07a6125753af023c7a5","url":"https://api.github.com/repos/darkmirage/test/git/trees/6553d302dfc55bf5cd09c07a6125753af023c7a5"},"url":"https://api.github.com/repos/darkmirage/test/git/commits/cdddc3941866854cdb41c023d0f5240ed10df053","comment_count":0},"url":"https://api.github.com/repos/darkmirage/test/commits/cdddc3941866854cdb41c023d0f5240ed10df053","html_url":"https://github.com/darkmirage/test/commit/cdddc3941866854cdb41c023d0f5240ed10df053","comments_url":"https://api.github.com/repos/darkmirage/test/commits/cdddc3941866854cdb41c023d0f5240ed10df053/comments","author":{"login":"darkmirage","id":1635019,"avatar_url":"https://0.gravatar.com/avatar/5111569f6bba258cfe81d12af3ba99a2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png","gravatar_id":"5111569f6bba258cfe81d12af3ba99a2","url":"https://api.github.com/users/darkmirage","html_url":"https://github.com/darkmirage","followers_url":"https://api.github.com/users/darkmirage/followers","following_url":"https://api.github.com/users/darkmirage/following{/other_user}","gists_url":"https://api.github.com/users/darkmirage/gists{/gist_id}","starred_url":"https://api.github.com/users/darkmirage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkmirage/subscriptions","organizations_url":"https://api.github.com/users/darkmirage/orgs","repos_url":"https://api.github.com/users/darkmirage/repos","events_url":"https://api.github.com/users/darkmirage/events{/privacy}","received_events_url":"https://api.github.com/users/darkmirage/received_events","type":"User"},"committer":{"login":"darkmirage","id":1635019,"avatar_url":"https://0.gravatar.com/avatar/5111569f6bba258cfe81d12af3ba99a2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png","gravatar_id":"5111569f6bba258cfe81d12af3ba99a2","url":"https://api.github.com/users/darkmirage","html_url":"https://github.com/darkmirage","followers_url":"https://api.github.com/users/darkmirage/followers","following_url":"https://api.github.com/users/darkmirage/following{/other_user}","gists_url":"https://api.github.com/users/darkmirage/gists{/gist_id}","starred_url":"https://api.github.com/users/darkmirage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkmirage/subscriptions","organizations_url":"https://api.github.com/users/darkmirage/orgs","repos_url":"https://api.github.com/users/darkmirage/repos","events_url":"https://api.github.com/users/darkmirage/events{/privacy}","received_events_url":"https://api.github.com/users/darkmirage/received_events","type":"User"},"parents":[{"sha":"9da46c5d5e0758a759f80de6283eba05c1f04735","url":"https://api.github.com/repos/darkmirage/test/commits/9da46c5d5e0758a759f80de6283eba05c1f04735","html_url":"https://github.com/darkmirage/test/commit/9da46c5d5e0758a759f80de6283eba05c1f04735"}]},"_links":{"self":"https://api.github.com/repos/darkmirage/test/branches/master","html":"https://github.com/darkmirage/test/tree/master"}}'
|
66
66
|
http_version:
|
67
|
-
recorded_at:
|
67
|
+
recorded_at: Thu, 15 Aug 2013 21:07:18 GMT
|
68
68
|
- request:
|
69
69
|
method: get
|
70
70
|
uri: https://api.github.com/repos/darkmirage/test/git/trees/cdddc3941866854cdb41c023d0f5240ed10df053?recursive=true
|
@@ -88,7 +88,7 @@ http_interactions:
|
|
88
88
|
Server:
|
89
89
|
- GitHub.com
|
90
90
|
Date:
|
91
|
-
-
|
91
|
+
- Thu, 15 Aug 2013 21:07:19 GMT
|
92
92
|
Content-Type:
|
93
93
|
- application/json; charset=utf-8
|
94
94
|
Transfer-Encoding:
|
@@ -98,15 +98,15 @@ http_interactions:
|
|
98
98
|
X-Ratelimit-Limit:
|
99
99
|
- '5000'
|
100
100
|
X-Ratelimit-Remaining:
|
101
|
-
- '
|
101
|
+
- '4795'
|
102
102
|
X-Ratelimit-Reset:
|
103
|
-
- '
|
103
|
+
- '1376602835'
|
104
104
|
Cache-Control:
|
105
105
|
- private, max-age=60, s-maxage=60
|
106
106
|
Last-Modified:
|
107
|
-
-
|
107
|
+
- Thu, 15 Aug 2013 21:05:51 GMT
|
108
108
|
Etag:
|
109
|
-
- '"
|
109
|
+
- '"cf1c23a5a06824c37c225e090e4587d7"'
|
110
110
|
X-Oauth-Scopes:
|
111
111
|
- user, public_repo, repo, gist
|
112
112
|
X-Accepted-Oauth-Scopes:
|
@@ -129,5 +129,5 @@ http_interactions:
|
|
129
129
|
encoding: UTF-8
|
130
130
|
string: '{"sha":"cdddc3941866854cdb41c023d0f5240ed10df053","url":"https://api.github.com/repos/darkmirage/test/git/trees/cdddc3941866854cdb41c023d0f5240ed10df053","tree":[{"mode":"100644","type":"blob","sha":"398cd945a422cff4321d613a3c5aef57b0b27da2","path":"LICENSE","size":1078,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/398cd945a422cff4321d613a3c5aef57b0b27da2"},{"mode":"100644","type":"blob","sha":"453312977f72f7e37d96bdc6c5b5e4c9c59072f1","path":"README.md","size":20,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/453312977f72f7e37d96bdc6c5b5e4c9c59072f1"},{"mode":"100644","type":"blob","sha":"38a226454dab3931dbb694b3c3ae94e02d110dcf","path":"file1","size":18,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/38a226454dab3931dbb694b3c3ae94e02d110dcf"},{"mode":"040000","type":"tree","sha":"ec677e6fb544f1f197f8f02bcbaaededaac23bb8","path":"folder1","url":"https://api.github.com/repos/darkmirage/test/git/trees/ec677e6fb544f1f197f8f02bcbaaededaac23bb8"},{"mode":"100644","type":"blob","sha":"b69c5ab7d022a2fc12f5a3395e337e4c227845c8","path":"folder1/test.txt","size":6,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/b69c5ab7d022a2fc12f5a3395e337e4c227845c8"},{"mode":"040000","type":"tree","sha":"26a9ff72316b4b9af6481e28d3bb508c555d31a1","path":"folder2","url":"https://api.github.com/repos/darkmirage/test/git/trees/26a9ff72316b4b9af6481e28d3bb508c555d31a1"},{"mode":"100644","type":"blob","sha":"0d6c64027338c994e23ee2a254eb30229c2b474a","path":"folder2/lolcatsdotcomlikemyself.jpg","size":46054,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/0d6c64027338c994e23ee2a254eb30229c2b474a"},{"mode":"040000","type":"tree","sha":"54051fb94eb639fb429e656b4c888bc3aba44742","path":"folder2/subfolder","url":"https://api.github.com/repos/darkmirage/test/git/trees/54051fb94eb639fb429e656b4c888bc3aba44742"},{"mode":"040000","type":"tree","sha":"14c178a91bd3eda9ac179b373c8ee35e8f3c53ad","path":"folder2/subfolder/test","url":"https://api.github.com/repos/darkmirage/test/git/trees/14c178a91bd3eda9ac179b373c8ee35e8f3c53ad"},{"mode":"100644","type":"blob","sha":"c50b9ab72268ccbaf75a53676696940cccb66b89","path":"folder2/subfolder/test/abc.txt","size":32,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/c50b9ab72268ccbaf75a53676696940cccb66b89"},{"mode":"040000","type":"tree","sha":"d750655104da52a0f691c399528a29cf5fa594c2","path":"folder3","url":"https://api.github.com/repos/darkmirage/test/git/trees/d750655104da52a0f691c399528a29cf5fa594c2"},{"mode":"100644","type":"blob","sha":"131bbc4355114ce79bd3456abb10114bcc4b0ef8","path":"folder3/1000Hz-5sec.mp3","size":30440,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/131bbc4355114ce79bd3456abb10114bcc4b0ef8"},{"mode":"100644","type":"blob","sha":"3904c0889abcfc104bed5970c6a53d81773ac515","path":"folder3/440Hz-5sec.mp3","size":30439,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/3904c0889abcfc104bed5970c6a53d81773ac515"},{"mode":"100644","type":"blob","sha":"c45c70657ec69cd6482a4b189772d8b3aa8857be","path":"folder3/mp3tones.zip","size":32711,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/c45c70657ec69cd6482a4b189772d8b3aa8857be"}]}'
|
131
131
|
http_version:
|
132
|
-
recorded_at:
|
132
|
+
recorded_at: Thu, 15 Aug 2013 21:07:19 GMT
|
133
133
|
recorded_with: VCR 2.5.0
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- GitHub.com
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Thu, 15 Aug 2013 21:07:16 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -33,9 +33,9 @@ http_interactions:
|
|
33
33
|
X-Ratelimit-Limit:
|
34
34
|
- '5000'
|
35
35
|
X-Ratelimit-Remaining:
|
36
|
-
- '
|
36
|
+
- '4800'
|
37
37
|
X-Ratelimit-Reset:
|
38
|
-
- '
|
38
|
+
- '1376602835'
|
39
39
|
X-Oauth-Scopes:
|
40
40
|
- user, public_repo, repo, gist
|
41
41
|
X-Accepted-Oauth-Scopes:
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Access-Control-Allow-Origin:
|
53
53
|
- '*'
|
54
54
|
Etag:
|
55
|
-
- '"
|
55
|
+
- '"1e9a35ec492ea865f92a1b38b774b076"'
|
56
56
|
Cache-Control:
|
57
57
|
- max-age=0, private, must-revalidate
|
58
58
|
Vary:
|
@@ -62,9 +62,9 @@ http_interactions:
|
|
62
62
|
string: '{"name":"master","commit":{"sha":"cdddc3941866854cdb41c023d0f5240ed10df053","commit":{"author":{"name":"Raven
|
63
63
|
Jiang","email":"raven@cs.stanford.edu","date":"2013-08-09T23:23:24Z"},"committer":{"name":"Raven
|
64
64
|
Jiang","email":"raven@cs.stanford.edu","date":"2013-08-09T23:23:24Z"},"message":"Added
|
65
|
-
subfolder testing","tree":{"sha":"6553d302dfc55bf5cd09c07a6125753af023c7a5","url":"https://api.github.com/repos/darkmirage/test/git/trees/6553d302dfc55bf5cd09c07a6125753af023c7a5"},"url":"https://api.github.com/repos/darkmirage/test/git/commits/cdddc3941866854cdb41c023d0f5240ed10df053","comment_count":0},"url":"https://api.github.com/repos/darkmirage/test/commits/cdddc3941866854cdb41c023d0f5240ed10df053","html_url":"https://github.com/darkmirage/test/commit/cdddc3941866854cdb41c023d0f5240ed10df053","comments_url":"https://api.github.com/repos/darkmirage/test/commits/cdddc3941866854cdb41c023d0f5240ed10df053/comments","author":{"login":"darkmirage","id":1635019,"avatar_url":"https://
|
65
|
+
subfolder testing","tree":{"sha":"6553d302dfc55bf5cd09c07a6125753af023c7a5","url":"https://api.github.com/repos/darkmirage/test/git/trees/6553d302dfc55bf5cd09c07a6125753af023c7a5"},"url":"https://api.github.com/repos/darkmirage/test/git/commits/cdddc3941866854cdb41c023d0f5240ed10df053","comment_count":0},"url":"https://api.github.com/repos/darkmirage/test/commits/cdddc3941866854cdb41c023d0f5240ed10df053","html_url":"https://github.com/darkmirage/test/commit/cdddc3941866854cdb41c023d0f5240ed10df053","comments_url":"https://api.github.com/repos/darkmirage/test/commits/cdddc3941866854cdb41c023d0f5240ed10df053/comments","author":{"login":"darkmirage","id":1635019,"avatar_url":"https://0.gravatar.com/avatar/5111569f6bba258cfe81d12af3ba99a2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png","gravatar_id":"5111569f6bba258cfe81d12af3ba99a2","url":"https://api.github.com/users/darkmirage","html_url":"https://github.com/darkmirage","followers_url":"https://api.github.com/users/darkmirage/followers","following_url":"https://api.github.com/users/darkmirage/following{/other_user}","gists_url":"https://api.github.com/users/darkmirage/gists{/gist_id}","starred_url":"https://api.github.com/users/darkmirage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkmirage/subscriptions","organizations_url":"https://api.github.com/users/darkmirage/orgs","repos_url":"https://api.github.com/users/darkmirage/repos","events_url":"https://api.github.com/users/darkmirage/events{/privacy}","received_events_url":"https://api.github.com/users/darkmirage/received_events","type":"User"},"committer":{"login":"darkmirage","id":1635019,"avatar_url":"https://0.gravatar.com/avatar/5111569f6bba258cfe81d12af3ba99a2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png","gravatar_id":"5111569f6bba258cfe81d12af3ba99a2","url":"https://api.github.com/users/darkmirage","html_url":"https://github.com/darkmirage","followers_url":"https://api.github.com/users/darkmirage/followers","following_url":"https://api.github.com/users/darkmirage/following{/other_user}","gists_url":"https://api.github.com/users/darkmirage/gists{/gist_id}","starred_url":"https://api.github.com/users/darkmirage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkmirage/subscriptions","organizations_url":"https://api.github.com/users/darkmirage/orgs","repos_url":"https://api.github.com/users/darkmirage/repos","events_url":"https://api.github.com/users/darkmirage/events{/privacy}","received_events_url":"https://api.github.com/users/darkmirage/received_events","type":"User"},"parents":[{"sha":"9da46c5d5e0758a759f80de6283eba05c1f04735","url":"https://api.github.com/repos/darkmirage/test/commits/9da46c5d5e0758a759f80de6283eba05c1f04735","html_url":"https://github.com/darkmirage/test/commit/9da46c5d5e0758a759f80de6283eba05c1f04735"}]},"_links":{"self":"https://api.github.com/repos/darkmirage/test/branches/master","html":"https://github.com/darkmirage/test/tree/master"}}'
|
66
66
|
http_version:
|
67
|
-
recorded_at:
|
67
|
+
recorded_at: Thu, 15 Aug 2013 21:07:16 GMT
|
68
68
|
- request:
|
69
69
|
method: get
|
70
70
|
uri: https://api.github.com/repos/darkmirage/test/git/trees/cdddc3941866854cdb41c023d0f5240ed10df053?recursive=true
|
@@ -88,7 +88,7 @@ http_interactions:
|
|
88
88
|
Server:
|
89
89
|
- GitHub.com
|
90
90
|
Date:
|
91
|
-
-
|
91
|
+
- Thu, 15 Aug 2013 21:07:16 GMT
|
92
92
|
Content-Type:
|
93
93
|
- application/json; charset=utf-8
|
94
94
|
Transfer-Encoding:
|
@@ -98,15 +98,15 @@ http_interactions:
|
|
98
98
|
X-Ratelimit-Limit:
|
99
99
|
- '5000'
|
100
100
|
X-Ratelimit-Remaining:
|
101
|
-
- '
|
101
|
+
- '4799'
|
102
102
|
X-Ratelimit-Reset:
|
103
|
-
- '
|
103
|
+
- '1376602835'
|
104
104
|
Cache-Control:
|
105
105
|
- private, max-age=60, s-maxage=60
|
106
106
|
Last-Modified:
|
107
|
-
-
|
107
|
+
- Thu, 15 Aug 2013 21:05:51 GMT
|
108
108
|
Etag:
|
109
|
-
- '"
|
109
|
+
- '"cf1c23a5a06824c37c225e090e4587d7"'
|
110
110
|
X-Oauth-Scopes:
|
111
111
|
- user, public_repo, repo, gist
|
112
112
|
X-Accepted-Oauth-Scopes:
|
@@ -129,5 +129,5 @@ http_interactions:
|
|
129
129
|
encoding: UTF-8
|
130
130
|
string: '{"sha":"cdddc3941866854cdb41c023d0f5240ed10df053","url":"https://api.github.com/repos/darkmirage/test/git/trees/cdddc3941866854cdb41c023d0f5240ed10df053","tree":[{"mode":"100644","type":"blob","sha":"398cd945a422cff4321d613a3c5aef57b0b27da2","path":"LICENSE","size":1078,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/398cd945a422cff4321d613a3c5aef57b0b27da2"},{"mode":"100644","type":"blob","sha":"453312977f72f7e37d96bdc6c5b5e4c9c59072f1","path":"README.md","size":20,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/453312977f72f7e37d96bdc6c5b5e4c9c59072f1"},{"mode":"100644","type":"blob","sha":"38a226454dab3931dbb694b3c3ae94e02d110dcf","path":"file1","size":18,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/38a226454dab3931dbb694b3c3ae94e02d110dcf"},{"mode":"040000","type":"tree","sha":"ec677e6fb544f1f197f8f02bcbaaededaac23bb8","path":"folder1","url":"https://api.github.com/repos/darkmirage/test/git/trees/ec677e6fb544f1f197f8f02bcbaaededaac23bb8"},{"mode":"100644","type":"blob","sha":"b69c5ab7d022a2fc12f5a3395e337e4c227845c8","path":"folder1/test.txt","size":6,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/b69c5ab7d022a2fc12f5a3395e337e4c227845c8"},{"mode":"040000","type":"tree","sha":"26a9ff72316b4b9af6481e28d3bb508c555d31a1","path":"folder2","url":"https://api.github.com/repos/darkmirage/test/git/trees/26a9ff72316b4b9af6481e28d3bb508c555d31a1"},{"mode":"100644","type":"blob","sha":"0d6c64027338c994e23ee2a254eb30229c2b474a","path":"folder2/lolcatsdotcomlikemyself.jpg","size":46054,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/0d6c64027338c994e23ee2a254eb30229c2b474a"},{"mode":"040000","type":"tree","sha":"54051fb94eb639fb429e656b4c888bc3aba44742","path":"folder2/subfolder","url":"https://api.github.com/repos/darkmirage/test/git/trees/54051fb94eb639fb429e656b4c888bc3aba44742"},{"mode":"040000","type":"tree","sha":"14c178a91bd3eda9ac179b373c8ee35e8f3c53ad","path":"folder2/subfolder/test","url":"https://api.github.com/repos/darkmirage/test/git/trees/14c178a91bd3eda9ac179b373c8ee35e8f3c53ad"},{"mode":"100644","type":"blob","sha":"c50b9ab72268ccbaf75a53676696940cccb66b89","path":"folder2/subfolder/test/abc.txt","size":32,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/c50b9ab72268ccbaf75a53676696940cccb66b89"},{"mode":"040000","type":"tree","sha":"d750655104da52a0f691c399528a29cf5fa594c2","path":"folder3","url":"https://api.github.com/repos/darkmirage/test/git/trees/d750655104da52a0f691c399528a29cf5fa594c2"},{"mode":"100644","type":"blob","sha":"131bbc4355114ce79bd3456abb10114bcc4b0ef8","path":"folder3/1000Hz-5sec.mp3","size":30440,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/131bbc4355114ce79bd3456abb10114bcc4b0ef8"},{"mode":"100644","type":"blob","sha":"3904c0889abcfc104bed5970c6a53d81773ac515","path":"folder3/440Hz-5sec.mp3","size":30439,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/3904c0889abcfc104bed5970c6a53d81773ac515"},{"mode":"100644","type":"blob","sha":"c45c70657ec69cd6482a4b189772d8b3aa8857be","path":"folder3/mp3tones.zip","size":32711,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/c45c70657ec69cd6482a4b189772d8b3aa8857be"}]}'
|
131
131
|
http_version:
|
132
|
-
recorded_at:
|
132
|
+
recorded_at: Thu, 15 Aug 2013 21:07:16 GMT
|
133
133
|
recorded_with: VCR 2.5.0
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- GitHub.com
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Thu, 15 Aug 2013 21:07:17 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -33,9 +33,9 @@ http_interactions:
|
|
33
33
|
X-Ratelimit-Limit:
|
34
34
|
- '5000'
|
35
35
|
X-Ratelimit-Remaining:
|
36
|
-
- '
|
36
|
+
- '4798'
|
37
37
|
X-Ratelimit-Reset:
|
38
|
-
- '
|
38
|
+
- '1376602835'
|
39
39
|
X-Oauth-Scopes:
|
40
40
|
- user, public_repo, repo, gist
|
41
41
|
X-Accepted-Oauth-Scopes:
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Access-Control-Allow-Origin:
|
53
53
|
- '*'
|
54
54
|
Etag:
|
55
|
-
- '"
|
55
|
+
- '"1e9a35ec492ea865f92a1b38b774b076"'
|
56
56
|
Cache-Control:
|
57
57
|
- max-age=0, private, must-revalidate
|
58
58
|
Vary:
|
@@ -62,9 +62,9 @@ http_interactions:
|
|
62
62
|
string: '{"name":"master","commit":{"sha":"cdddc3941866854cdb41c023d0f5240ed10df053","commit":{"author":{"name":"Raven
|
63
63
|
Jiang","email":"raven@cs.stanford.edu","date":"2013-08-09T23:23:24Z"},"committer":{"name":"Raven
|
64
64
|
Jiang","email":"raven@cs.stanford.edu","date":"2013-08-09T23:23:24Z"},"message":"Added
|
65
|
-
subfolder testing","tree":{"sha":"6553d302dfc55bf5cd09c07a6125753af023c7a5","url":"https://api.github.com/repos/darkmirage/test/git/trees/6553d302dfc55bf5cd09c07a6125753af023c7a5"},"url":"https://api.github.com/repos/darkmirage/test/git/commits/cdddc3941866854cdb41c023d0f5240ed10df053","comment_count":0},"url":"https://api.github.com/repos/darkmirage/test/commits/cdddc3941866854cdb41c023d0f5240ed10df053","html_url":"https://github.com/darkmirage/test/commit/cdddc3941866854cdb41c023d0f5240ed10df053","comments_url":"https://api.github.com/repos/darkmirage/test/commits/cdddc3941866854cdb41c023d0f5240ed10df053/comments","author":{"login":"darkmirage","id":1635019,"avatar_url":"https://
|
65
|
+
subfolder testing","tree":{"sha":"6553d302dfc55bf5cd09c07a6125753af023c7a5","url":"https://api.github.com/repos/darkmirage/test/git/trees/6553d302dfc55bf5cd09c07a6125753af023c7a5"},"url":"https://api.github.com/repos/darkmirage/test/git/commits/cdddc3941866854cdb41c023d0f5240ed10df053","comment_count":0},"url":"https://api.github.com/repos/darkmirage/test/commits/cdddc3941866854cdb41c023d0f5240ed10df053","html_url":"https://github.com/darkmirage/test/commit/cdddc3941866854cdb41c023d0f5240ed10df053","comments_url":"https://api.github.com/repos/darkmirage/test/commits/cdddc3941866854cdb41c023d0f5240ed10df053/comments","author":{"login":"darkmirage","id":1635019,"avatar_url":"https://0.gravatar.com/avatar/5111569f6bba258cfe81d12af3ba99a2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png","gravatar_id":"5111569f6bba258cfe81d12af3ba99a2","url":"https://api.github.com/users/darkmirage","html_url":"https://github.com/darkmirage","followers_url":"https://api.github.com/users/darkmirage/followers","following_url":"https://api.github.com/users/darkmirage/following{/other_user}","gists_url":"https://api.github.com/users/darkmirage/gists{/gist_id}","starred_url":"https://api.github.com/users/darkmirage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkmirage/subscriptions","organizations_url":"https://api.github.com/users/darkmirage/orgs","repos_url":"https://api.github.com/users/darkmirage/repos","events_url":"https://api.github.com/users/darkmirage/events{/privacy}","received_events_url":"https://api.github.com/users/darkmirage/received_events","type":"User"},"committer":{"login":"darkmirage","id":1635019,"avatar_url":"https://0.gravatar.com/avatar/5111569f6bba258cfe81d12af3ba99a2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png","gravatar_id":"5111569f6bba258cfe81d12af3ba99a2","url":"https://api.github.com/users/darkmirage","html_url":"https://github.com/darkmirage","followers_url":"https://api.github.com/users/darkmirage/followers","following_url":"https://api.github.com/users/darkmirage/following{/other_user}","gists_url":"https://api.github.com/users/darkmirage/gists{/gist_id}","starred_url":"https://api.github.com/users/darkmirage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkmirage/subscriptions","organizations_url":"https://api.github.com/users/darkmirage/orgs","repos_url":"https://api.github.com/users/darkmirage/repos","events_url":"https://api.github.com/users/darkmirage/events{/privacy}","received_events_url":"https://api.github.com/users/darkmirage/received_events","type":"User"},"parents":[{"sha":"9da46c5d5e0758a759f80de6283eba05c1f04735","url":"https://api.github.com/repos/darkmirage/test/commits/9da46c5d5e0758a759f80de6283eba05c1f04735","html_url":"https://github.com/darkmirage/test/commit/9da46c5d5e0758a759f80de6283eba05c1f04735"}]},"_links":{"self":"https://api.github.com/repos/darkmirage/test/branches/master","html":"https://github.com/darkmirage/test/tree/master"}}'
|
66
66
|
http_version:
|
67
|
-
recorded_at:
|
67
|
+
recorded_at: Thu, 15 Aug 2013 21:07:17 GMT
|
68
68
|
- request:
|
69
69
|
method: get
|
70
70
|
uri: https://api.github.com/repos/darkmirage/test/git/trees/cdddc3941866854cdb41c023d0f5240ed10df053?recursive=true
|
@@ -88,7 +88,7 @@ http_interactions:
|
|
88
88
|
Server:
|
89
89
|
- GitHub.com
|
90
90
|
Date:
|
91
|
-
-
|
91
|
+
- Thu, 15 Aug 2013 21:07:18 GMT
|
92
92
|
Content-Type:
|
93
93
|
- application/json; charset=utf-8
|
94
94
|
Transfer-Encoding:
|
@@ -98,15 +98,15 @@ http_interactions:
|
|
98
98
|
X-Ratelimit-Limit:
|
99
99
|
- '5000'
|
100
100
|
X-Ratelimit-Remaining:
|
101
|
-
- '
|
101
|
+
- '4797'
|
102
102
|
X-Ratelimit-Reset:
|
103
|
-
- '
|
103
|
+
- '1376602835'
|
104
104
|
Cache-Control:
|
105
105
|
- private, max-age=60, s-maxage=60
|
106
106
|
Last-Modified:
|
107
|
-
-
|
107
|
+
- Thu, 15 Aug 2013 21:05:51 GMT
|
108
108
|
Etag:
|
109
|
-
- '"
|
109
|
+
- '"cf1c23a5a06824c37c225e090e4587d7"'
|
110
110
|
X-Oauth-Scopes:
|
111
111
|
- user, public_repo, repo, gist
|
112
112
|
X-Accepted-Oauth-Scopes:
|
@@ -129,5 +129,5 @@ http_interactions:
|
|
129
129
|
encoding: UTF-8
|
130
130
|
string: '{"sha":"cdddc3941866854cdb41c023d0f5240ed10df053","url":"https://api.github.com/repos/darkmirage/test/git/trees/cdddc3941866854cdb41c023d0f5240ed10df053","tree":[{"mode":"100644","type":"blob","sha":"398cd945a422cff4321d613a3c5aef57b0b27da2","path":"LICENSE","size":1078,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/398cd945a422cff4321d613a3c5aef57b0b27da2"},{"mode":"100644","type":"blob","sha":"453312977f72f7e37d96bdc6c5b5e4c9c59072f1","path":"README.md","size":20,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/453312977f72f7e37d96bdc6c5b5e4c9c59072f1"},{"mode":"100644","type":"blob","sha":"38a226454dab3931dbb694b3c3ae94e02d110dcf","path":"file1","size":18,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/38a226454dab3931dbb694b3c3ae94e02d110dcf"},{"mode":"040000","type":"tree","sha":"ec677e6fb544f1f197f8f02bcbaaededaac23bb8","path":"folder1","url":"https://api.github.com/repos/darkmirage/test/git/trees/ec677e6fb544f1f197f8f02bcbaaededaac23bb8"},{"mode":"100644","type":"blob","sha":"b69c5ab7d022a2fc12f5a3395e337e4c227845c8","path":"folder1/test.txt","size":6,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/b69c5ab7d022a2fc12f5a3395e337e4c227845c8"},{"mode":"040000","type":"tree","sha":"26a9ff72316b4b9af6481e28d3bb508c555d31a1","path":"folder2","url":"https://api.github.com/repos/darkmirage/test/git/trees/26a9ff72316b4b9af6481e28d3bb508c555d31a1"},{"mode":"100644","type":"blob","sha":"0d6c64027338c994e23ee2a254eb30229c2b474a","path":"folder2/lolcatsdotcomlikemyself.jpg","size":46054,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/0d6c64027338c994e23ee2a254eb30229c2b474a"},{"mode":"040000","type":"tree","sha":"54051fb94eb639fb429e656b4c888bc3aba44742","path":"folder2/subfolder","url":"https://api.github.com/repos/darkmirage/test/git/trees/54051fb94eb639fb429e656b4c888bc3aba44742"},{"mode":"040000","type":"tree","sha":"14c178a91bd3eda9ac179b373c8ee35e8f3c53ad","path":"folder2/subfolder/test","url":"https://api.github.com/repos/darkmirage/test/git/trees/14c178a91bd3eda9ac179b373c8ee35e8f3c53ad"},{"mode":"100644","type":"blob","sha":"c50b9ab72268ccbaf75a53676696940cccb66b89","path":"folder2/subfolder/test/abc.txt","size":32,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/c50b9ab72268ccbaf75a53676696940cccb66b89"},{"mode":"040000","type":"tree","sha":"d750655104da52a0f691c399528a29cf5fa594c2","path":"folder3","url":"https://api.github.com/repos/darkmirage/test/git/trees/d750655104da52a0f691c399528a29cf5fa594c2"},{"mode":"100644","type":"blob","sha":"131bbc4355114ce79bd3456abb10114bcc4b0ef8","path":"folder3/1000Hz-5sec.mp3","size":30440,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/131bbc4355114ce79bd3456abb10114bcc4b0ef8"},{"mode":"100644","type":"blob","sha":"3904c0889abcfc104bed5970c6a53d81773ac515","path":"folder3/440Hz-5sec.mp3","size":30439,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/3904c0889abcfc104bed5970c6a53d81773ac515"},{"mode":"100644","type":"blob","sha":"c45c70657ec69cd6482a4b189772d8b3aa8857be","path":"folder3/mp3tones.zip","size":32711,"url":"https://api.github.com/repos/darkmirage/test/git/blobs/c45c70657ec69cd6482a4b189772d8b3aa8857be"}]}'
|
131
131
|
http_version:
|
132
|
-
recorded_at:
|
132
|
+
recorded_at: Thu, 15 Aug 2013 21:07:18 GMT
|
133
133
|
recorded_with: VCR 2.5.0
|