worochi 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/worochi/agent.rb +18 -5
  3. data/lib/worochi/version.rb +1 -1
  4. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml +5 -5
  5. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/contains_file1.yml +4 -4
  6. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml +79 -0
  7. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml +155 -0
  8. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml +5 -5
  9. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml +5 -5
  10. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml +79 -0
  11. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml +17 -17
  12. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/contains_file1.yml +17 -17
  13. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml +133 -0
  14. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml +263 -0
  15. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml +17 -17
  16. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml +15 -15
  17. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml +133 -0
  18. data/spec/support/shared_exampes_for_agents.rb +15 -0
  19. metadata +13 -9
  20. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/accepts_a_different_path.yml +0 -60
  21. data/spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/accepts_a_different_path.yml +0 -60
  22. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_path.yml +0 -133
  23. data/spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_path.yml +0 -133
@@ -0,0 +1,133 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.github.com/repos/darkmirage/test/branches/master
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Octokit Ruby Gem 1.25.0
12
+ Accept:
13
+ - application/vnd.github.beta+json
14
+ Authorization:
15
+ - token <GITHUB_TOKEN>
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - GitHub.com
25
+ Date:
26
+ - Tue, 13 Aug 2013 00:17:50 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Status:
32
+ - 200 OK
33
+ X-Ratelimit-Limit:
34
+ - '5000'
35
+ X-Ratelimit-Remaining:
36
+ - '4983'
37
+ X-Ratelimit-Reset:
38
+ - '1376356405'
39
+ X-Oauth-Scopes:
40
+ - user, public_repo, repo, gist
41
+ X-Accepted-Oauth-Scopes:
42
+ - repo, public_repo, repo:status, delete_repo, site_admin
43
+ X-Github-Media-Type:
44
+ - github.beta; format=json
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ Access-Control-Allow-Credentials:
48
+ - 'true'
49
+ Access-Control-Expose-Headers:
50
+ - ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes,
51
+ X-Accepted-OAuth-Scopes
52
+ Access-Control-Allow-Origin:
53
+ - '*'
54
+ Etag:
55
+ - '"9f1960e9f71a26ef10999b56127f5ff5"'
56
+ Cache-Control:
57
+ - max-age=0, private, must-revalidate
58
+ Vary:
59
+ - Accept-Encoding
60
+ body:
61
+ encoding: UTF-8
62
+ string: '{"name":"master","commit":{"sha":"cdddc3941866854cdb41c023d0f5240ed10df053","commit":{"author":{"name":"Raven
63
+ Jiang","email":"raven@cs.stanford.edu","date":"2013-08-09T23:23:24Z"},"committer":{"name":"Raven
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://secure.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://secure.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
+ http_version:
67
+ recorded_at: Tue, 13 Aug 2013 00:17:50 GMT
68
+ - request:
69
+ method: get
70
+ uri: https://api.github.com/repos/darkmirage/test/git/trees/cdddc3941866854cdb41c023d0f5240ed10df053?recursive=true
71
+ body:
72
+ encoding: US-ASCII
73
+ string: ''
74
+ headers:
75
+ User-Agent:
76
+ - Octokit Ruby Gem 1.25.0
77
+ Accept:
78
+ - application/vnd.github.beta+json
79
+ Authorization:
80
+ - token <GITHUB_TOKEN>
81
+ Accept-Encoding:
82
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
+ response:
84
+ status:
85
+ code: 200
86
+ message: OK
87
+ headers:
88
+ Server:
89
+ - GitHub.com
90
+ Date:
91
+ - Tue, 13 Aug 2013 00:17:50 GMT
92
+ Content-Type:
93
+ - application/json; charset=utf-8
94
+ Transfer-Encoding:
95
+ - chunked
96
+ Status:
97
+ - 200 OK
98
+ X-Ratelimit-Limit:
99
+ - '5000'
100
+ X-Ratelimit-Remaining:
101
+ - '4982'
102
+ X-Ratelimit-Reset:
103
+ - '1376356405'
104
+ Cache-Control:
105
+ - private, max-age=60, s-maxage=60
106
+ Last-Modified:
107
+ - Sat, 10 Aug 2013 00:15:19 GMT
108
+ Etag:
109
+ - '"7536c20cf268503cd571db01d453988b"'
110
+ X-Oauth-Scopes:
111
+ - user, public_repo, repo, gist
112
+ X-Accepted-Oauth-Scopes:
113
+ - repo, public_repo, repo:status, delete_repo, site_admin
114
+ Vary:
115
+ - Accept, Authorization, Cookie
116
+ - Accept-Encoding
117
+ X-Github-Media-Type:
118
+ - github.beta; format=json
119
+ X-Content-Type-Options:
120
+ - nosniff
121
+ Access-Control-Allow-Credentials:
122
+ - 'true'
123
+ Access-Control-Expose-Headers:
124
+ - ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes,
125
+ X-Accepted-OAuth-Scopes
126
+ Access-Control-Allow-Origin:
127
+ - '*'
128
+ body:
129
+ encoding: UTF-8
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
+ http_version:
132
+ recorded_at: Tue, 13 Aug 2013 00:17:50 GMT
133
+ recorded_with: VCR 2.5.0
@@ -18,6 +18,10 @@ shared_examples_for 'a service agent' do
18
18
  it 'contains file1' do
19
19
  expect(agent.files).to include('file1')
20
20
  end
21
+
22
+ it 'does not contain folder1' do
23
+ expect(agent.files).not_to include('folder1')
24
+ end
21
25
 
22
26
  it 'accepts a different relative path' do
23
27
  expect(agent.files('folder1')).to include('test.txt')
@@ -29,8 +33,19 @@ shared_examples_for 'a service agent' do
29
33
  expect(agent.folders).to include('folder1')
30
34
  end
31
35
 
36
+ it 'does not contain file1' do
37
+ expect(agent.folders).not_to include('file1')
38
+ end
39
+
32
40
  it 'accepts a different relative path' do
33
41
  expect(agent.folders('folder1').size).to be(0)
34
42
  end
35
43
  end
44
+
45
+ describe '#files_and_folders', :vcr do
46
+ it 'contains folder1 and file1' do
47
+ expect(agent.files_and_folders).to include('file1')
48
+ expect(agent.files_and_folders).to include('folder1')
49
+ end
50
+ end
36
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worochi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raven Jiang
@@ -159,21 +159,23 @@ files:
159
159
  - spec/support/test_file
160
160
  - spec/cassettes/Worochi_Agent_Dropbox/_push_item_chunked/pushes_a_single_item_in_chunks.yml
161
161
  - spec/cassettes/Worochi_Agent_Dropbox/_list/works_with_absolute_paths.yml
162
+ - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml
163
+ - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml
162
164
  - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/contains_file1.yml
163
- - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/accepts_a_different_path.yml
164
165
  - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml
165
166
  - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml
166
- - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/accepts_a_different_path.yml
167
+ - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml
167
168
  - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml
168
169
  - spec/cassettes/Worochi_Agent_Dropbox/_push_item/pushes_a_single_item.yml
169
170
  - spec/cassettes/Worochi_Agent_Github/_push_all/pushes_the_file_to_the_right_place.yml
170
171
  - spec/cassettes/Worochi_Agent_Github/_push_all/pushes_a_list_of_items_to_create_a_new_commit.yml
171
172
  - spec/cassettes/Worochi_Agent_Github/_list/works_with_absolute_paths.yml
173
+ - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml
174
+ - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml
172
175
  - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/contains_file1.yml
173
- - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_path.yml
174
176
  - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml
175
177
  - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml
176
- - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_path.yml
178
+ - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml
177
179
  - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml
178
180
  - spec/cassettes/Worochi_Agent_Github/_source_branch/retrieves_the_master_branch_correctly.yml
179
181
  - spec/cassettes/Worochi_Item/_open_single/accepts_a_String.yml
@@ -227,21 +229,23 @@ test_files:
227
229
  - spec/support/test_file
228
230
  - spec/cassettes/Worochi_Agent_Dropbox/_push_item_chunked/pushes_a_single_item_in_chunks.yml
229
231
  - spec/cassettes/Worochi_Agent_Dropbox/_list/works_with_absolute_paths.yml
232
+ - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml
233
+ - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml
230
234
  - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/contains_file1.yml
231
- - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/accepts_a_different_path.yml
232
235
  - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml
233
236
  - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml
234
- - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/accepts_a_different_path.yml
237
+ - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml
235
238
  - spec/cassettes/Worochi_Agent_Dropbox/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml
236
239
  - spec/cassettes/Worochi_Agent_Dropbox/_push_item/pushes_a_single_item.yml
237
240
  - spec/cassettes/Worochi_Agent_Github/_push_all/pushes_the_file_to_the_right_place.yml
238
241
  - spec/cassettes/Worochi_Agent_Github/_push_all/pushes_a_list_of_items_to_create_a_new_commit.yml
239
242
  - spec/cassettes/Worochi_Agent_Github/_list/works_with_absolute_paths.yml
243
+ - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files_and_folders/contains_folder1_and_file1.yml
244
+ - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/does_not_contain_folder1.yml
240
245
  - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/contains_file1.yml
241
- - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_path.yml
242
246
  - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_files/accepts_a_different_relative_path.yml
243
247
  - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/contains_folder1.yml
244
- - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_path.yml
248
+ - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/does_not_contain_file1.yml
245
249
  - spec/cassettes/Worochi_Agent_Github/it_should_behave_like_a_service_agent/_folders/accepts_a_different_relative_path.yml
246
250
  - spec/cassettes/Worochi_Agent_Github/_source_branch/retrieves_the_master_branch_correctly.yml
247
251
  - spec/cassettes/Worochi_Item/_open_single/accepts_a_String.yml
@@ -1,60 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.dropbox.com/1/metadata/auto/Dev/test/folder1?file_limit=25000&include_deleted=false&list=true
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - '*/*'
14
- User-Agent:
15
- - OfficialDropboxRubySDK/1.6.1
16
- Authorization:
17
- - Bearer <DROPBOX_TOKEN>
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Server:
24
- - nginx
25
- Date:
26
- - Fri, 09 Aug 2013 23:04:20 GMT
27
- Content-Type:
28
- - text/javascript
29
- Transfer-Encoding:
30
- - chunked
31
- Connection:
32
- - keep-alive
33
- X-Server-Response-Time:
34
- - '63'
35
- X-Dropbox-Request-Id:
36
- - c936b2207e9a05265bbfdb7b8a7498e9
37
- Pragma:
38
- - no-cache
39
- Cache-Control:
40
- - no-cache
41
- X-Dropbox-Http-Protocol:
42
- - None
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Requestid:
46
- - 78c6a5121753ef034ef506daed5be507
47
- body:
48
- encoding: UTF-8
49
- string: '{"hash": "f8b81477e7377b80273993acbacd0527", "revision": 913527046,
50
- "rev": "36735106002426b8", "thumb_exists": false, "bytes": 0, "modified":
51
- "Fri, 09 Aug 2013 00:17:28 +0000", "path": "/Dev/test/folder1", "is_dir":
52
- true, "icon": "folder", "root": "dropbox", "contents": [{"revision": 913527127,
53
- "rev": "36735157002426b8", "thumb_exists": false, "bytes": 6, "modified":
54
- "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime": "Thu, 08 Aug 2013 20:41:05
55
- +0000", "path": "/Dev/test/folder1/test.txt", "is_dir": false, "icon": "page_white_text",
56
- "root": "dropbox", "mime_type": "text/plain", "size": "6 bytes"}], "size":
57
- "0 bytes"}'
58
- http_version:
59
- recorded_at: Fri, 09 Aug 2013 23:04:20 GMT
60
- recorded_with: VCR 2.5.0
@@ -1,60 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.dropbox.com/1/metadata/auto/Dev/test/folder1?file_limit=25000&include_deleted=false&list=true
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - '*/*'
14
- User-Agent:
15
- - OfficialDropboxRubySDK/1.6.1
16
- Authorization:
17
- - Bearer <DROPBOX_TOKEN>
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Server:
24
- - nginx
25
- Date:
26
- - Fri, 09 Aug 2013 23:16:53 GMT
27
- Content-Type:
28
- - text/javascript
29
- Transfer-Encoding:
30
- - chunked
31
- Connection:
32
- - keep-alive
33
- X-Server-Response-Time:
34
- - '46'
35
- X-Dropbox-Request-Id:
36
- - 030cfdf38668243a91dc6e7c5aab47b7
37
- Pragma:
38
- - no-cache
39
- Cache-Control:
40
- - no-cache
41
- X-Dropbox-Http-Protocol:
42
- - None
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Requestid:
46
- - f44af7aa59e252256ba3781850804603
47
- body:
48
- encoding: UTF-8
49
- string: '{"hash": "f8b81477e7377b80273993acbacd0527", "revision": 913527046,
50
- "rev": "36735106002426b8", "thumb_exists": false, "bytes": 0, "modified":
51
- "Fri, 09 Aug 2013 00:17:28 +0000", "path": "/Dev/test/folder1", "is_dir":
52
- true, "icon": "folder", "root": "dropbox", "contents": [{"revision": 913527127,
53
- "rev": "36735157002426b8", "thumb_exists": false, "bytes": 6, "modified":
54
- "Fri, 09 Aug 2013 00:17:36 +0000", "client_mtime": "Thu, 08 Aug 2013 20:41:05
55
- +0000", "path": "/Dev/test/folder1/test.txt", "is_dir": false, "icon": "page_white_text",
56
- "root": "dropbox", "mime_type": "text/plain", "size": "6 bytes"}], "size":
57
- "0 bytes"}'
58
- http_version:
59
- recorded_at: Fri, 09 Aug 2013 23:16:53 GMT
60
- recorded_with: VCR 2.5.0
@@ -1,133 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.github.com/repos/darkmirage/test/branches/master
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Octokit Ruby Gem 1.25.0
12
- Accept:
13
- - application/vnd.github.beta+json
14
- Authorization:
15
- - token <GITHUB_TOKEN>
16
- Accept-Encoding:
17
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Server:
24
- - GitHub.com
25
- Date:
26
- - Fri, 09 Aug 2013 22:59:39 GMT
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Transfer-Encoding:
30
- - chunked
31
- Status:
32
- - 200 OK
33
- X-Ratelimit-Limit:
34
- - '5000'
35
- X-Ratelimit-Remaining:
36
- - '4999'
37
- X-Ratelimit-Reset:
38
- - '1376092779'
39
- X-Oauth-Scopes:
40
- - user, public_repo, repo, gist
41
- X-Accepted-Oauth-Scopes:
42
- - repo, public_repo, repo:status, delete_repo, site_admin
43
- X-Github-Media-Type:
44
- - github.beta; format=json
45
- X-Content-Type-Options:
46
- - nosniff
47
- Access-Control-Allow-Credentials:
48
- - 'true'
49
- Access-Control-Expose-Headers:
50
- - ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes,
51
- X-Accepted-OAuth-Scopes
52
- Access-Control-Allow-Origin:
53
- - '*'
54
- Etag:
55
- - '"428275e7cbec9caf0c5afc6ae18aca4a"'
56
- Cache-Control:
57
- - max-age=0, private, must-revalidate
58
- Vary:
59
- - Accept-Encoding
60
- body:
61
- encoding: UTF-8
62
- string: '{"name":"master","commit":{"sha":"9da46c5d5e0758a759f80de6283eba05c1f04735","commit":{"author":{"name":"Raven
63
- Jiang","email":"raven@cs.stanford.edu","date":"2013-08-08T20:43:19Z"},"committer":{"name":"Raven
64
- Jiang","email":"raven@cs.stanford.edu","date":"2013-08-08T20:44:18Z"},"message":"Added
65
- files","tree":{"sha":"f890a36e136395f740cfb1f385a5c9b1682aead7","url":"https://api.github.com/repos/darkmirage/test/git/trees/f890a36e136395f740cfb1f385a5c9b1682aead7"},"url":"https://api.github.com/repos/darkmirage/test/git/commits/9da46c5d5e0758a759f80de6283eba05c1f04735","comment_count":0},"url":"https://api.github.com/repos/darkmirage/test/commits/9da46c5d5e0758a759f80de6283eba05c1f04735","html_url":"https://github.com/darkmirage/test/commit/9da46c5d5e0758a759f80de6283eba05c1f04735","comments_url":"https://api.github.com/repos/darkmirage/test/commits/9da46c5d5e0758a759f80de6283eba05c1f04735/comments","author":{"login":"darkmirage","id":1635019,"avatar_url":"https://secure.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://secure.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":"546288fc7c63f85dfe32f0d19d54615edfa84f7c","url":"https://api.github.com/repos/darkmirage/test/commits/546288fc7c63f85dfe32f0d19d54615edfa84f7c","html_url":"https://github.com/darkmirage/test/commit/546288fc7c63f85dfe32f0d19d54615edfa84f7c"}]},"_links":{"self":"https://api.github.com/repos/darkmirage/test/branches/master","html":"https://github.com/darkmirage/test/tree/master"}}'
66
- http_version:
67
- recorded_at: Fri, 09 Aug 2013 22:59:39 GMT
68
- - request:
69
- method: get
70
- uri: https://api.github.com/repos/darkmirage/test/git/trees/9da46c5d5e0758a759f80de6283eba05c1f04735?recursive=true
71
- body:
72
- encoding: US-ASCII
73
- string: ''
74
- headers:
75
- User-Agent:
76
- - Octokit Ruby Gem 1.25.0
77
- Accept:
78
- - application/vnd.github.beta+json
79
- Authorization:
80
- - token <GITHUB_TOKEN>
81
- Accept-Encoding:
82
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
- response:
84
- status:
85
- code: 200
86
- message: OK
87
- headers:
88
- Server:
89
- - GitHub.com
90
- Date:
91
- - Fri, 09 Aug 2013 22:59:40 GMT
92
- Content-Type:
93
- - application/json; charset=utf-8
94
- Transfer-Encoding:
95
- - chunked
96
- Status:
97
- - 200 OK
98
- X-Ratelimit-Limit:
99
- - '5000'
100
- X-Ratelimit-Remaining:
101
- - '4998'
102
- X-Ratelimit-Reset:
103
- - '1376092779'
104
- Cache-Control:
105
- - private, max-age=60, s-maxage=60
106
- Last-Modified:
107
- - Thu, 08 Aug 2013 20:44:25 GMT
108
- Etag:
109
- - '"584533f9bdef857cf6814f6caae06778"'
110
- X-Oauth-Scopes:
111
- - user, public_repo, repo, gist
112
- X-Accepted-Oauth-Scopes:
113
- - repo, public_repo, repo:status, delete_repo, site_admin
114
- Vary:
115
- - Accept, Authorization, Cookie
116
- - Accept-Encoding
117
- X-Github-Media-Type:
118
- - github.beta; format=json
119
- X-Content-Type-Options:
120
- - nosniff
121
- Access-Control-Allow-Credentials:
122
- - 'true'
123
- Access-Control-Expose-Headers:
124
- - ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes,
125
- X-Accepted-OAuth-Scopes
126
- Access-Control-Allow-Origin:
127
- - '*'
128
- body:
129
- encoding: UTF-8
130
- string: '{"sha":"9da46c5d5e0758a759f80de6283eba05c1f04735","url":"https://api.github.com/repos/darkmirage/test/git/trees/9da46c5d5e0758a759f80de6283eba05c1f04735","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":"4a31152692df2669d97dd374515333e5164e7af8","path":"folder2","url":"https://api.github.com/repos/darkmirage/test/git/trees/4a31152692df2669d97dd374515333e5164e7af8"},{"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":"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
- http_version:
132
- recorded_at: Fri, 09 Aug 2013 22:59:40 GMT
133
- recorded_with: VCR 2.5.0