bimble 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +3 -1
- data/CHANGELOG.md +9 -0
- data/README.md +10 -2
- data/Rakefile +4 -0
- data/bimble.gemspec +5 -2
- data/bin/bimble +11 -0
- data/bin/{generate_oauth_token.rb → generate_github_oauth_token} +0 -0
- data/lib/bimble.rb +16 -3
- data/lib/bimble/bundler.rb +9 -0
- data/lib/bimble/factory.rb +12 -0
- data/lib/bimble/git_strategy/clone.rb +40 -0
- data/lib/bimble/git_strategy/github_api.rb +57 -0
- data/lib/bimble/helpers/github.rb +99 -0
- data/lib/bimble/helpers/strings.rb +19 -0
- data/lib/bimble/helpers/updater.rb +14 -0
- data/lib/bimble/version.rb +1 -1
- data/spec/cassettes/Bimble_GitStrategy_GithubApi/should_be_able_to_create_a_new_blob.yml +73 -0
- data/spec/cassettes/Bimble_GitStrategy_GithubApi/should_be_able_to_create_a_new_branch_for_a_commit.yml +73 -0
- data/spec/cassettes/Bimble_GitStrategy_GithubApi/should_be_able_to_create_a_new_commit_from_a_tree.yml +215 -0
- data/spec/cassettes/Bimble_GitStrategy_GithubApi/should_be_able_to_create_a_tree_with_the_new_blob_in_it_given_a_filename.yml +211 -0
- data/spec/cassettes/Bimble_GitStrategy_GithubApi/should_be_able_to_fetch_the_default_branch_for_a_repo.yml +72 -0
- data/spec/cassettes/Bimble_GitStrategy_GithubApi/should_be_able_to_get_a_blob_sha_for_a_file_on_a_branch.yml +72 -0
- data/spec/cassettes/Bimble_GitStrategy_GithubApi/should_be_able_to_get_a_blob_sha_for_files_matching_a_regex_on_a_branch.yml +72 -0
- data/spec/cassettes/Bimble_GitStrategy_GithubApi/should_be_able_to_get_a_blob_sha_for_files_matching_a_regexp_on_a_branch.yml +72 -0
- data/spec/cassettes/Bimble_GitStrategy_GithubApi/should_be_able_to_get_latest_commit_SHA_on_a_branch.yml +73 -0
- data/spec/cassettes/Bimble_GitStrategy_GithubApi/should_be_able_to_get_the_content_of_the_Gemfile_blob.yml +70 -0
- data/spec/cassettes/Bimble_GitStrategy_GithubApi/should_be_able_to_open_a_pull_request_back_to_the_default_branch.yml +76 -0
- data/spec/cassettes/Bimble_GitStrategy_GithubApi/should_be_able_to_update_Gemfile_lock_and_open_PR_all_in_one_go.yml +567 -0
- data/spec/cassettes/github_api_strategy/should_get_all_appropriate_files.yml +342 -0
- data/spec/git_strategy_spec.rb +26 -0
- data/spec/github_api_spec.rb +70 -0
- data/spec/spec_helper.rb +15 -6
- metadata +88 -8
- data/bin/bimble.rb +0 -52
@@ -0,0 +1,73 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.github.com/repos/Floppy/bimble-test/git/refs?access_token=<GITHUB_OAUTH_TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{\"ref\":\"refs/heads/update-dependencies\",\"sha\":\"fe6e5861c26a3a61c918b9b4bcc82059e4c0c62b\"}"
|
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.11.3
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Authorization:
|
19
|
+
- Token token="<GITHUB_OAUTH_TOKEN>"
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 201
|
25
|
+
message: Created
|
26
|
+
headers:
|
27
|
+
Server:
|
28
|
+
- GitHub.com
|
29
|
+
Date:
|
30
|
+
- Tue, 11 Mar 2014 16:50:36 GMT
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Status:
|
34
|
+
- 201 Created
|
35
|
+
X-Ratelimit-Limit:
|
36
|
+
- '5000'
|
37
|
+
X-Ratelimit-Remaining:
|
38
|
+
- '4865'
|
39
|
+
X-Ratelimit-Reset:
|
40
|
+
- '1394560236'
|
41
|
+
Cache-Control:
|
42
|
+
- private, max-age=60, s-maxage=60
|
43
|
+
Etag:
|
44
|
+
- "\"043a6d8d3b3623e8eeeded6773d89855\""
|
45
|
+
X-Oauth-Scopes:
|
46
|
+
- repo
|
47
|
+
X-Accepted-Oauth-Scopes:
|
48
|
+
- ''
|
49
|
+
Location:
|
50
|
+
- https://api.github.com/repos/Floppy/bimble-test/git/refs/heads/update-dependencies
|
51
|
+
Vary:
|
52
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
53
|
+
X-Github-Media-Type:
|
54
|
+
- github.v3; format=json
|
55
|
+
X-Content-Type-Options:
|
56
|
+
- nosniff
|
57
|
+
Content-Length:
|
58
|
+
- '316'
|
59
|
+
Access-Control-Allow-Credentials:
|
60
|
+
- 'true'
|
61
|
+
Access-Control-Expose-Headers:
|
62
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
63
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
64
|
+
Access-Control-Allow-Origin:
|
65
|
+
- "*"
|
66
|
+
X-Github-Request-Id:
|
67
|
+
- 519F8646:7B0C:1F6D276:531F3EDB
|
68
|
+
body:
|
69
|
+
encoding: UTF-8
|
70
|
+
string: "{\"ref\":\"refs/heads/update-dependencies\",\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/refs/heads/update-dependencies\",\"object\":{\"sha\":\"fe6e5861c26a3a61c918b9b4bcc82059e4c0c62b\",\"type\":\"commit\",\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/commits/fe6e5861c26a3a61c918b9b4bcc82059e4c0c62b\"}}"
|
71
|
+
http_version:
|
72
|
+
recorded_at: Tue, 11 Mar 2014 16:50:36 GMT
|
73
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,215 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.github.com/repos/Floppy/bimble-test?access_token=<GITHUB_OAUTH_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.11.3
|
16
|
+
Authorization:
|
17
|
+
- Token token="<GITHUB_OAUTH_TOKEN>"
|
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
|
+
- Tue, 11 Mar 2014 15:28:23 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
X-Ratelimit-Limit:
|
36
|
+
- '5000'
|
37
|
+
X-Ratelimit-Remaining:
|
38
|
+
- '4487'
|
39
|
+
X-Ratelimit-Reset:
|
40
|
+
- '1394555303'
|
41
|
+
Cache-Control:
|
42
|
+
- private, max-age=60, s-maxage=60
|
43
|
+
Last-Modified:
|
44
|
+
- Tue, 11 Mar 2014 12:51:24 GMT
|
45
|
+
Etag:
|
46
|
+
- "\"642a51dfc1a88ac4bbef8efaae437bc9\""
|
47
|
+
X-Oauth-Scopes:
|
48
|
+
- repo
|
49
|
+
X-Accepted-Oauth-Scopes:
|
50
|
+
- repo
|
51
|
+
Vary:
|
52
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
53
|
+
- Accept-Encoding
|
54
|
+
X-Github-Media-Type:
|
55
|
+
- github.v3; format=json
|
56
|
+
X-Content-Type-Options:
|
57
|
+
- nosniff
|
58
|
+
Access-Control-Allow-Credentials:
|
59
|
+
- 'true'
|
60
|
+
Access-Control-Expose-Headers:
|
61
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
62
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
63
|
+
Access-Control-Allow-Origin:
|
64
|
+
- "*"
|
65
|
+
X-Github-Request-Id:
|
66
|
+
- 519F8646:2A97:131CBC2:531F2B97
|
67
|
+
body:
|
68
|
+
encoding: UTF-8
|
69
|
+
string: "{\"id\":17630125,\"name\":\"bimble-test\",\"full_name\":\"Floppy/bimble-test\",\"owner\":{\"login\":\"Floppy\",\"id\":3565,\"avatar_url\":\"https://gravatar.com/avatar/c150a49c7709fa40bffca545ecf8942d?d=https%3A%2F%2Fidenticons.github.com%2Fe6e713296627dff6475085cc6a224464.png&r=x\",\"gravatar_id\":\"c150a49c7709fa40bffca545ecf8942d\",\"url\":\"https://api.github.com/users/Floppy\",\"html_url\":\"https://github.com/Floppy\",\"followers_url\":\"https://api.github.com/users/Floppy/followers\",\"following_url\":\"https://api.github.com/users/Floppy/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/Floppy/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/Floppy/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/Floppy/subscriptions\",\"organizations_url\":\"https://api.github.com/users/Floppy/orgs\",\"repos_url\":\"https://api.github.com/users/Floppy/repos\",\"events_url\":\"https://api.github.com/users/Floppy/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/Floppy/received_events\",\"type\":\"User\",\"site_admin\":false},\"private\":false,\"html_url\":\"https://github.com/Floppy/bimble-test\",\"description\":\"\",\"fork\":false,\"url\":\"https://api.github.com/repos/Floppy/bimble-test\",\"forks_url\":\"https://api.github.com/repos/Floppy/bimble-test/forks\",\"keys_url\":\"https://api.github.com/repos/Floppy/bimble-test/keys{/key_id}\",\"collaborators_url\":\"https://api.github.com/repos/Floppy/bimble-test/collaborators{/collaborator}\",\"teams_url\":\"https://api.github.com/repos/Floppy/bimble-test/teams\",\"hooks_url\":\"https://api.github.com/repos/Floppy/bimble-test/hooks\",\"issue_events_url\":\"https://api.github.com/repos/Floppy/bimble-test/issues/events{/number}\",\"events_url\":\"https://api.github.com/repos/Floppy/bimble-test/events\",\"assignees_url\":\"https://api.github.com/repos/Floppy/bimble-test/assignees{/user}\",\"branches_url\":\"https://api.github.com/repos/Floppy/bimble-test/branches{/branch}\",\"tags_url\":\"https://api.github.com/repos/Floppy/bimble-test/tags\",\"blobs_url\":\"https://api.github.com/repos/Floppy/bimble-test/git/blobs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/Floppy/bimble-test/git/tags{/sha}\",\"git_refs_url\":\"https://api.github.com/repos/Floppy/bimble-test/git/refs{/sha}\",\"trees_url\":\"https://api.github.com/repos/Floppy/bimble-test/git/trees{/sha}\",\"statuses_url\":\"https://api.github.com/repos/Floppy/bimble-test/statuses/{sha}\",\"languages_url\":\"https://api.github.com/repos/Floppy/bimble-test/languages\",\"stargazers_url\":\"https://api.github.com/repos/Floppy/bimble-test/stargazers\",\"contributors_url\":\"https://api.github.com/repos/Floppy/bimble-test/contributors\",\"subscribers_url\":\"https://api.github.com/repos/Floppy/bimble-test/subscribers\",\"subscription_url\":\"https://api.github.com/repos/Floppy/bimble-test/subscription\",\"commits_url\":\"https://api.github.com/repos/Floppy/bimble-test/commits{/sha}\",\"git_commits_url\":\"https://api.github.com/repos/Floppy/bimble-test/git/commits{/sha}\",\"comments_url\":\"https://api.github.com/repos/Floppy/bimble-test/comments{/number}\",\"issue_comment_url\":\"https://api.github.com/repos/Floppy/bimble-test/issues/comments/{number}\",\"contents_url\":\"https://api.github.com/repos/Floppy/bimble-test/contents/{+path}\",\"compare_url\":\"https://api.github.com/repos/Floppy/bimble-test/compare/{base}...{head}\",\"merges_url\":\"https://api.github.com/repos/Floppy/bimble-test/merges\",\"archive_url\":\"https://api.github.com/repos/Floppy/bimble-test/{archive_format}{/ref}\",\"downloads_url\":\"https://api.github.com/repos/Floppy/bimble-test/downloads\",\"issues_url\":\"https://api.github.com/repos/Floppy/bimble-test/issues{/number}\",\"pulls_url\":\"https://api.github.com/repos/Floppy/bimble-test/pulls{/number}\",\"milestones_url\":\"https://api.github.com/repos/Floppy/bimble-test/milestones{/number}\",\"notifications_url\":\"https://api.github.com/repos/Floppy/bimble-test/notifications{?since,all,participating}\",\"labels_url\":\"https://api.github.com/repos/Floppy/bimble-test/labels{/name}\",\"releases_url\":\"https://api.github.com/repos/Floppy/bimble-test/releases{/id}\",\"created_at\":\"2014-03-11T12:49:15Z\",\"updated_at\":\"2014-03-11T12:51:24Z\",\"pushed_at\":\"2014-03-11T12:51:24Z\",\"git_url\":\"git://github.com/Floppy/bimble-test.git\",\"ssh_url\":\"git@github.com:Floppy/bimble-test.git\",\"clone_url\":\"https://github.com/Floppy/bimble-test.git\",\"svn_url\":\"https://github.com/Floppy/bimble-test\",\"homepage\":null,\"size\":0,\"stargazers_count\":0,\"watchers_count\":0,\"language\":\"Ruby\",\"has_issues\":true,\"has_downloads\":true,\"has_wiki\":true,\"forks_count\":0,\"mirror_url\":null,\"open_issues_count\":0,\"forks\":0,\"open_issues\":0,\"watchers\":0,\"default_branch\":\"master\",\"permissions\":{\"admin\":true,\"push\":true,\"pull\":true},\"network_count\":0,\"subscribers_count\":0}"
|
70
|
+
http_version:
|
71
|
+
recorded_at: Tue, 11 Mar 2014 15:28:24 GMT
|
72
|
+
- request:
|
73
|
+
method: get
|
74
|
+
uri: https://api.github.com/repos/Floppy/bimble-test/branches/master?access_token=<GITHUB_OAUTH_TOKEN>
|
75
|
+
body:
|
76
|
+
encoding: US-ASCII
|
77
|
+
string: ''
|
78
|
+
headers:
|
79
|
+
Accept:
|
80
|
+
- application/vnd.github.v3+json,application/vnd.github.beta+json;q=0.5,application/json;q=0.1
|
81
|
+
Accept-Charset:
|
82
|
+
- utf-8
|
83
|
+
User-Agent:
|
84
|
+
- Github Ruby Gem 0.11.3
|
85
|
+
Authorization:
|
86
|
+
- Token token="<GITHUB_OAUTH_TOKEN>"
|
87
|
+
Accept-Encoding:
|
88
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 200
|
92
|
+
message: OK
|
93
|
+
headers:
|
94
|
+
Server:
|
95
|
+
- GitHub.com
|
96
|
+
Date:
|
97
|
+
- Tue, 11 Mar 2014 15:28:24 GMT
|
98
|
+
Content-Type:
|
99
|
+
- application/json; charset=utf-8
|
100
|
+
Transfer-Encoding:
|
101
|
+
- chunked
|
102
|
+
Status:
|
103
|
+
- 200 OK
|
104
|
+
X-Ratelimit-Limit:
|
105
|
+
- '5000'
|
106
|
+
X-Ratelimit-Remaining:
|
107
|
+
- '4486'
|
108
|
+
X-Ratelimit-Reset:
|
109
|
+
- '1394555304'
|
110
|
+
Cache-Control:
|
111
|
+
- private, max-age=60, s-maxage=60
|
112
|
+
Etag:
|
113
|
+
- "\"3a7913057633488993c3bf95f7d29565\""
|
114
|
+
X-Oauth-Scopes:
|
115
|
+
- repo
|
116
|
+
X-Accepted-Oauth-Scopes:
|
117
|
+
- ''
|
118
|
+
Vary:
|
119
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
120
|
+
- Accept-Encoding
|
121
|
+
X-Github-Media-Type:
|
122
|
+
- github.v3; format=json
|
123
|
+
X-Content-Type-Options:
|
124
|
+
- nosniff
|
125
|
+
Access-Control-Allow-Credentials:
|
126
|
+
- 'true'
|
127
|
+
Access-Control-Expose-Headers:
|
128
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
129
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
130
|
+
Access-Control-Allow-Origin:
|
131
|
+
- "*"
|
132
|
+
X-Github-Request-Id:
|
133
|
+
- 519F8646:2A9A:9F8835:531F2B97
|
134
|
+
body:
|
135
|
+
encoding: UTF-8
|
136
|
+
string: "{\"name\":\"master\",\"commit\":{\"sha\":\"97376a25bcc2e403ed5b9c9f7eb35c0e8a36c01c\",\"commit\":{\"author\":{\"name\":\"James
|
137
|
+
Smith\",\"email\":\"james@floppy.org.uk\",\"date\":\"2014-03-11T12:51:07Z\"},\"committer\":{\"name\":\"James
|
138
|
+
Smith\",\"email\":\"james@floppy.org.uk\",\"date\":\"2014-03-11T12:51:07Z\"},\"message\":\"test
|
139
|
+
gemfile\",\"tree\":{\"sha\":\"5ed8484f4e04996c3a4cf10eba9e24d4ef3a3cbb\",\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/trees/5ed8484f4e04996c3a4cf10eba9e24d4ef3a3cbb\"},\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/commits/97376a25bcc2e403ed5b9c9f7eb35c0e8a36c01c\",\"comment_count\":0},\"url\":\"https://api.github.com/repos/Floppy/bimble-test/commits/97376a25bcc2e403ed5b9c9f7eb35c0e8a36c01c\",\"html_url\":\"https://github.com/Floppy/bimble-test/commit/97376a25bcc2e403ed5b9c9f7eb35c0e8a36c01c\",\"comments_url\":\"https://api.github.com/repos/Floppy/bimble-test/commits/97376a25bcc2e403ed5b9c9f7eb35c0e8a36c01c/comments\",\"author\":{\"login\":\"Floppy\",\"id\":3565,\"avatar_url\":\"https://gravatar.com/avatar/c150a49c7709fa40bffca545ecf8942d?d=https%3A%2F%2Fidenticons.github.com%2Fe6e713296627dff6475085cc6a224464.png&r=x\",\"gravatar_id\":\"c150a49c7709fa40bffca545ecf8942d\",\"url\":\"https://api.github.com/users/Floppy\",\"html_url\":\"https://github.com/Floppy\",\"followers_url\":\"https://api.github.com/users/Floppy/followers\",\"following_url\":\"https://api.github.com/users/Floppy/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/Floppy/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/Floppy/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/Floppy/subscriptions\",\"organizations_url\":\"https://api.github.com/users/Floppy/orgs\",\"repos_url\":\"https://api.github.com/users/Floppy/repos\",\"events_url\":\"https://api.github.com/users/Floppy/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/Floppy/received_events\",\"type\":\"User\",\"site_admin\":false},\"committer\":{\"login\":\"Floppy\",\"id\":3565,\"avatar_url\":\"https://gravatar.com/avatar/c150a49c7709fa40bffca545ecf8942d?d=https%3A%2F%2Fidenticons.github.com%2Fe6e713296627dff6475085cc6a224464.png&r=x\",\"gravatar_id\":\"c150a49c7709fa40bffca545ecf8942d\",\"url\":\"https://api.github.com/users/Floppy\",\"html_url\":\"https://github.com/Floppy\",\"followers_url\":\"https://api.github.com/users/Floppy/followers\",\"following_url\":\"https://api.github.com/users/Floppy/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/Floppy/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/Floppy/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/Floppy/subscriptions\",\"organizations_url\":\"https://api.github.com/users/Floppy/orgs\",\"repos_url\":\"https://api.github.com/users/Floppy/repos\",\"events_url\":\"https://api.github.com/users/Floppy/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/Floppy/received_events\",\"type\":\"User\",\"site_admin\":false},\"parents\":[]},\"_links\":{\"self\":\"https://api.github.com/repos/Floppy/bimble-test/branches/master\",\"html\":\"https://github.com/Floppy/bimble-test/tree/master\"}}"
|
140
|
+
http_version:
|
141
|
+
recorded_at: Tue, 11 Mar 2014 15:28:24 GMT
|
142
|
+
- request:
|
143
|
+
method: post
|
144
|
+
uri: https://api.github.com/repos/Floppy/bimble-test/git/commits?access_token=<GITHUB_OAUTH_TOKEN>
|
145
|
+
body:
|
146
|
+
encoding: UTF-8
|
147
|
+
string: "{\"message\":\"updated dependencies\",\"parents\":[\"97376a25bcc2e403ed5b9c9f7eb35c0e8a36c01c\"],\"tree\":\"e12209a3617bd2fd7a95755dc2808b75e239afa7\"}"
|
148
|
+
headers:
|
149
|
+
Accept:
|
150
|
+
- application/vnd.github.v3+json,application/vnd.github.beta+json;q=0.5,application/json;q=0.1
|
151
|
+
Accept-Charset:
|
152
|
+
- utf-8
|
153
|
+
User-Agent:
|
154
|
+
- Github Ruby Gem 0.11.3
|
155
|
+
Content-Type:
|
156
|
+
- application/json
|
157
|
+
Authorization:
|
158
|
+
- Token token="<GITHUB_OAUTH_TOKEN>"
|
159
|
+
Accept-Encoding:
|
160
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
161
|
+
response:
|
162
|
+
status:
|
163
|
+
code: 201
|
164
|
+
message: Created
|
165
|
+
headers:
|
166
|
+
Server:
|
167
|
+
- GitHub.com
|
168
|
+
Date:
|
169
|
+
- Tue, 11 Mar 2014 15:28:24 GMT
|
170
|
+
Content-Type:
|
171
|
+
- application/json; charset=utf-8
|
172
|
+
Status:
|
173
|
+
- 201 Created
|
174
|
+
X-Ratelimit-Limit:
|
175
|
+
- '5000'
|
176
|
+
X-Ratelimit-Remaining:
|
177
|
+
- '4485'
|
178
|
+
X-Ratelimit-Reset:
|
179
|
+
- '1394555304'
|
180
|
+
Cache-Control:
|
181
|
+
- private, max-age=60, s-maxage=60
|
182
|
+
Etag:
|
183
|
+
- "\"5a996d980f827a25f1aaa616b03723e3\""
|
184
|
+
X-Oauth-Scopes:
|
185
|
+
- repo
|
186
|
+
X-Accepted-Oauth-Scopes:
|
187
|
+
- ''
|
188
|
+
Location:
|
189
|
+
- https://api.github.com/repos/Floppy/bimble-test/git/commits/fe6e5861c26a3a61c918b9b4bcc82059e4c0c62b
|
190
|
+
Vary:
|
191
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
192
|
+
X-Github-Media-Type:
|
193
|
+
- github.v3; format=json
|
194
|
+
X-Content-Type-Options:
|
195
|
+
- nosniff
|
196
|
+
Content-Length:
|
197
|
+
- '914'
|
198
|
+
Access-Control-Allow-Credentials:
|
199
|
+
- 'true'
|
200
|
+
Access-Control-Expose-Headers:
|
201
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
202
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
203
|
+
Access-Control-Allow-Origin:
|
204
|
+
- "*"
|
205
|
+
X-Github-Request-Id:
|
206
|
+
- 519F8646:2A97:131CD29:531F2B98
|
207
|
+
body:
|
208
|
+
encoding: UTF-8
|
209
|
+
string: "{\"sha\":\"fe6e5861c26a3a61c918b9b4bcc82059e4c0c62b\",\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/commits/fe6e5861c26a3a61c918b9b4bcc82059e4c0c62b\",\"html_url\":\"https://github.com/Floppy/bimble-test/commit/fe6e5861c26a3a61c918b9b4bcc82059e4c0c62b\",\"author\":{\"name\":\"James
|
210
|
+
Smith\",\"email\":\"james@floppy.org.uk\",\"date\":\"2014-03-11T15:28:24Z\"},\"committer\":{\"name\":\"James
|
211
|
+
Smith\",\"email\":\"james@floppy.org.uk\",\"date\":\"2014-03-11T15:28:24Z\"},\"tree\":{\"sha\":\"e12209a3617bd2fd7a95755dc2808b75e239afa7\",\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/trees/e12209a3617bd2fd7a95755dc2808b75e239afa7\"},\"message\":\"updated
|
212
|
+
dependencies\",\"parents\":[{\"sha\":\"97376a25bcc2e403ed5b9c9f7eb35c0e8a36c01c\",\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/commits/97376a25bcc2e403ed5b9c9f7eb35c0e8a36c01c\",\"html_url\":\"https://github.com/Floppy/bimble-test/commit/97376a25bcc2e403ed5b9c9f7eb35c0e8a36c01c\"}]}"
|
213
|
+
http_version:
|
214
|
+
recorded_at: Tue, 11 Mar 2014 15:28:25 GMT
|
215
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,211 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.github.com/repos/Floppy/bimble-test?access_token=<GITHUB_OAUTH_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.11.3
|
16
|
+
Authorization:
|
17
|
+
- Token token="<GITHUB_OAUTH_TOKEN>"
|
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
|
+
- Tue, 11 Mar 2014 14:34:31 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
X-Ratelimit-Limit:
|
36
|
+
- '5000'
|
37
|
+
X-Ratelimit-Remaining:
|
38
|
+
- '4481'
|
39
|
+
X-Ratelimit-Reset:
|
40
|
+
- '1394548554'
|
41
|
+
Cache-Control:
|
42
|
+
- private, max-age=60, s-maxage=60
|
43
|
+
Last-Modified:
|
44
|
+
- Tue, 11 Mar 2014 12:51:24 GMT
|
45
|
+
Etag:
|
46
|
+
- "\"642a51dfc1a88ac4bbef8efaae437bc9\""
|
47
|
+
X-Oauth-Scopes:
|
48
|
+
- repo
|
49
|
+
X-Accepted-Oauth-Scopes:
|
50
|
+
- repo
|
51
|
+
Vary:
|
52
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
53
|
+
- Accept-Encoding
|
54
|
+
X-Github-Media-Type:
|
55
|
+
- github.v3; format=json
|
56
|
+
X-Content-Type-Options:
|
57
|
+
- nosniff
|
58
|
+
Access-Control-Allow-Credentials:
|
59
|
+
- 'true'
|
60
|
+
Access-Control-Expose-Headers:
|
61
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
62
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
63
|
+
Access-Control-Allow-Origin:
|
64
|
+
- "*"
|
65
|
+
X-Github-Request-Id:
|
66
|
+
- 519F8646:7B0C:1B418DF:531F1EF7
|
67
|
+
body:
|
68
|
+
encoding: UTF-8
|
69
|
+
string: "{\"id\":17630125,\"name\":\"bimble-test\",\"full_name\":\"Floppy/bimble-test\",\"owner\":{\"login\":\"Floppy\",\"id\":3565,\"avatar_url\":\"https://gravatar.com/avatar/c150a49c7709fa40bffca545ecf8942d?d=https%3A%2F%2Fidenticons.github.com%2Fe6e713296627dff6475085cc6a224464.png&r=x\",\"gravatar_id\":\"c150a49c7709fa40bffca545ecf8942d\",\"url\":\"https://api.github.com/users/Floppy\",\"html_url\":\"https://github.com/Floppy\",\"followers_url\":\"https://api.github.com/users/Floppy/followers\",\"following_url\":\"https://api.github.com/users/Floppy/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/Floppy/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/Floppy/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/Floppy/subscriptions\",\"organizations_url\":\"https://api.github.com/users/Floppy/orgs\",\"repos_url\":\"https://api.github.com/users/Floppy/repos\",\"events_url\":\"https://api.github.com/users/Floppy/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/Floppy/received_events\",\"type\":\"User\",\"site_admin\":false},\"private\":false,\"html_url\":\"https://github.com/Floppy/bimble-test\",\"description\":\"\",\"fork\":false,\"url\":\"https://api.github.com/repos/Floppy/bimble-test\",\"forks_url\":\"https://api.github.com/repos/Floppy/bimble-test/forks\",\"keys_url\":\"https://api.github.com/repos/Floppy/bimble-test/keys{/key_id}\",\"collaborators_url\":\"https://api.github.com/repos/Floppy/bimble-test/collaborators{/collaborator}\",\"teams_url\":\"https://api.github.com/repos/Floppy/bimble-test/teams\",\"hooks_url\":\"https://api.github.com/repos/Floppy/bimble-test/hooks\",\"issue_events_url\":\"https://api.github.com/repos/Floppy/bimble-test/issues/events{/number}\",\"events_url\":\"https://api.github.com/repos/Floppy/bimble-test/events\",\"assignees_url\":\"https://api.github.com/repos/Floppy/bimble-test/assignees{/user}\",\"branches_url\":\"https://api.github.com/repos/Floppy/bimble-test/branches{/branch}\",\"tags_url\":\"https://api.github.com/repos/Floppy/bimble-test/tags\",\"blobs_url\":\"https://api.github.com/repos/Floppy/bimble-test/git/blobs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/Floppy/bimble-test/git/tags{/sha}\",\"git_refs_url\":\"https://api.github.com/repos/Floppy/bimble-test/git/refs{/sha}\",\"trees_url\":\"https://api.github.com/repos/Floppy/bimble-test/git/trees{/sha}\",\"statuses_url\":\"https://api.github.com/repos/Floppy/bimble-test/statuses/{sha}\",\"languages_url\":\"https://api.github.com/repos/Floppy/bimble-test/languages\",\"stargazers_url\":\"https://api.github.com/repos/Floppy/bimble-test/stargazers\",\"contributors_url\":\"https://api.github.com/repos/Floppy/bimble-test/contributors\",\"subscribers_url\":\"https://api.github.com/repos/Floppy/bimble-test/subscribers\",\"subscription_url\":\"https://api.github.com/repos/Floppy/bimble-test/subscription\",\"commits_url\":\"https://api.github.com/repos/Floppy/bimble-test/commits{/sha}\",\"git_commits_url\":\"https://api.github.com/repos/Floppy/bimble-test/git/commits{/sha}\",\"comments_url\":\"https://api.github.com/repos/Floppy/bimble-test/comments{/number}\",\"issue_comment_url\":\"https://api.github.com/repos/Floppy/bimble-test/issues/comments/{number}\",\"contents_url\":\"https://api.github.com/repos/Floppy/bimble-test/contents/{+path}\",\"compare_url\":\"https://api.github.com/repos/Floppy/bimble-test/compare/{base}...{head}\",\"merges_url\":\"https://api.github.com/repos/Floppy/bimble-test/merges\",\"archive_url\":\"https://api.github.com/repos/Floppy/bimble-test/{archive_format}{/ref}\",\"downloads_url\":\"https://api.github.com/repos/Floppy/bimble-test/downloads\",\"issues_url\":\"https://api.github.com/repos/Floppy/bimble-test/issues{/number}\",\"pulls_url\":\"https://api.github.com/repos/Floppy/bimble-test/pulls{/number}\",\"milestones_url\":\"https://api.github.com/repos/Floppy/bimble-test/milestones{/number}\",\"notifications_url\":\"https://api.github.com/repos/Floppy/bimble-test/notifications{?since,all,participating}\",\"labels_url\":\"https://api.github.com/repos/Floppy/bimble-test/labels{/name}\",\"releases_url\":\"https://api.github.com/repos/Floppy/bimble-test/releases{/id}\",\"created_at\":\"2014-03-11T12:49:15Z\",\"updated_at\":\"2014-03-11T12:51:24Z\",\"pushed_at\":\"2014-03-11T12:51:24Z\",\"git_url\":\"git://github.com/Floppy/bimble-test.git\",\"ssh_url\":\"git@github.com:Floppy/bimble-test.git\",\"clone_url\":\"https://github.com/Floppy/bimble-test.git\",\"svn_url\":\"https://github.com/Floppy/bimble-test\",\"homepage\":null,\"size\":0,\"stargazers_count\":0,\"watchers_count\":0,\"language\":\"Ruby\",\"has_issues\":true,\"has_downloads\":true,\"has_wiki\":true,\"forks_count\":0,\"mirror_url\":null,\"open_issues_count\":0,\"forks\":0,\"open_issues\":0,\"watchers\":0,\"default_branch\":\"master\",\"permissions\":{\"admin\":true,\"push\":true,\"pull\":true},\"network_count\":0,\"subscribers_count\":0}"
|
70
|
+
http_version:
|
71
|
+
recorded_at: Tue, 11 Mar 2014 14:34:32 GMT
|
72
|
+
- request:
|
73
|
+
method: get
|
74
|
+
uri: https://api.github.com/repos/Floppy/bimble-test/git/trees/master?access_token=<GITHUB_OAUTH_TOKEN>
|
75
|
+
body:
|
76
|
+
encoding: US-ASCII
|
77
|
+
string: ''
|
78
|
+
headers:
|
79
|
+
Accept:
|
80
|
+
- application/vnd.github.v3+json,application/vnd.github.beta+json;q=0.5,application/json;q=0.1
|
81
|
+
Accept-Charset:
|
82
|
+
- utf-8
|
83
|
+
User-Agent:
|
84
|
+
- Github Ruby Gem 0.11.3
|
85
|
+
Authorization:
|
86
|
+
- Token token="<GITHUB_OAUTH_TOKEN>"
|
87
|
+
Accept-Encoding:
|
88
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 200
|
92
|
+
message: OK
|
93
|
+
headers:
|
94
|
+
Server:
|
95
|
+
- GitHub.com
|
96
|
+
Date:
|
97
|
+
- Tue, 11 Mar 2014 14:34:32 GMT
|
98
|
+
Content-Type:
|
99
|
+
- application/json; charset=utf-8
|
100
|
+
Transfer-Encoding:
|
101
|
+
- chunked
|
102
|
+
Status:
|
103
|
+
- 200 OK
|
104
|
+
X-Ratelimit-Limit:
|
105
|
+
- '5000'
|
106
|
+
X-Ratelimit-Remaining:
|
107
|
+
- '4480'
|
108
|
+
X-Ratelimit-Reset:
|
109
|
+
- '1394548554'
|
110
|
+
Cache-Control:
|
111
|
+
- private, max-age=60, s-maxage=60
|
112
|
+
Last-Modified:
|
113
|
+
- Tue, 11 Mar 2014 12:51:24 GMT
|
114
|
+
Etag:
|
115
|
+
- "\"642a51dfc1a88ac4bbef8efaae437bc9\""
|
116
|
+
X-Oauth-Scopes:
|
117
|
+
- repo
|
118
|
+
X-Accepted-Oauth-Scopes:
|
119
|
+
- ''
|
120
|
+
Vary:
|
121
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
122
|
+
- Accept-Encoding
|
123
|
+
X-Github-Media-Type:
|
124
|
+
- github.v3; format=json
|
125
|
+
X-Content-Type-Options:
|
126
|
+
- nosniff
|
127
|
+
Access-Control-Allow-Credentials:
|
128
|
+
- 'true'
|
129
|
+
Access-Control-Expose-Headers:
|
130
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
131
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
132
|
+
Access-Control-Allow-Origin:
|
133
|
+
- "*"
|
134
|
+
X-Github-Request-Id:
|
135
|
+
- 519F8646:7B08:5FB62A:531F1EF8
|
136
|
+
body:
|
137
|
+
encoding: UTF-8
|
138
|
+
string: "{\"sha\":\"master\",\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/trees/master\",\"tree\":[{\"mode\":\"100644\",\"type\":\"blob\",\"sha\":\"971ea446b4dd814d3e1a59f2df9f52d911e60168\",\"path\":\"Gemfile\",\"size\":79,\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/blobs/971ea446b4dd814d3e1a59f2df9f52d911e60168\"},{\"mode\":\"100644\",\"type\":\"blob\",\"sha\":\"3d77996b4520655a4d90665c6825ede135b87751\",\"path\":\"Gemfile.lock\",\"size\":102,\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/blobs/3d77996b4520655a4d90665c6825ede135b87751\"}]}"
|
139
|
+
http_version:
|
140
|
+
recorded_at: Tue, 11 Mar 2014 14:34:33 GMT
|
141
|
+
- request:
|
142
|
+
method: post
|
143
|
+
uri: https://api.github.com/repos/Floppy/bimble-test/git/trees?access_token=<GITHUB_OAUTH_TOKEN>
|
144
|
+
body:
|
145
|
+
encoding: UTF-8
|
146
|
+
string: "{\"base_tree\":\"master\",\"tree\":[{\"path\":\"Gemfile.lock\",\"mode\":\"100644\",\"type\":\"blob\",\"sha\":\"28b552e7359c5c3bbe947749aab70d18e3ea554b\"}]}"
|
147
|
+
headers:
|
148
|
+
Accept:
|
149
|
+
- application/vnd.github.v3+json,application/vnd.github.beta+json;q=0.5,application/json;q=0.1
|
150
|
+
Accept-Charset:
|
151
|
+
- utf-8
|
152
|
+
User-Agent:
|
153
|
+
- Github Ruby Gem 0.11.3
|
154
|
+
Content-Type:
|
155
|
+
- application/json
|
156
|
+
Authorization:
|
157
|
+
- Token token="<GITHUB_OAUTH_TOKEN>"
|
158
|
+
Accept-Encoding:
|
159
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
160
|
+
response:
|
161
|
+
status:
|
162
|
+
code: 201
|
163
|
+
message: Created
|
164
|
+
headers:
|
165
|
+
Server:
|
166
|
+
- GitHub.com
|
167
|
+
Date:
|
168
|
+
- Tue, 11 Mar 2014 14:34:33 GMT
|
169
|
+
Content-Type:
|
170
|
+
- application/json; charset=utf-8
|
171
|
+
Status:
|
172
|
+
- 201 Created
|
173
|
+
X-Ratelimit-Limit:
|
174
|
+
- '5000'
|
175
|
+
X-Ratelimit-Remaining:
|
176
|
+
- '4479'
|
177
|
+
X-Ratelimit-Reset:
|
178
|
+
- '1394548554'
|
179
|
+
Cache-Control:
|
180
|
+
- private, max-age=60, s-maxage=60
|
181
|
+
Etag:
|
182
|
+
- "\"6a9614af82933393c39d10afba02a458\""
|
183
|
+
X-Oauth-Scopes:
|
184
|
+
- repo
|
185
|
+
X-Accepted-Oauth-Scopes:
|
186
|
+
- ''
|
187
|
+
Location:
|
188
|
+
- https://api.github.com/repos/Floppy/bimble-test/git/trees/e12209a3617bd2fd7a95755dc2808b75e239afa7
|
189
|
+
Vary:
|
190
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
191
|
+
X-Github-Media-Type:
|
192
|
+
- github.v3; format=json
|
193
|
+
X-Content-Type-Options:
|
194
|
+
- nosniff
|
195
|
+
Content-Length:
|
196
|
+
- '601'
|
197
|
+
Access-Control-Allow-Credentials:
|
198
|
+
- 'true'
|
199
|
+
Access-Control-Expose-Headers:
|
200
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
201
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
202
|
+
Access-Control-Allow-Origin:
|
203
|
+
- "*"
|
204
|
+
X-Github-Request-Id:
|
205
|
+
- 519F8646:7B06:F54A0:531F1EF8
|
206
|
+
body:
|
207
|
+
encoding: UTF-8
|
208
|
+
string: "{\"sha\":\"e12209a3617bd2fd7a95755dc2808b75e239afa7\",\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/trees/e12209a3617bd2fd7a95755dc2808b75e239afa7\",\"tree\":[{\"mode\":\"100644\",\"type\":\"blob\",\"sha\":\"971ea446b4dd814d3e1a59f2df9f52d911e60168\",\"path\":\"Gemfile\",\"size\":79,\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/blobs/971ea446b4dd814d3e1a59f2df9f52d911e60168\"},{\"mode\":\"100644\",\"type\":\"blob\",\"sha\":\"28b552e7359c5c3bbe947749aab70d18e3ea554b\",\"path\":\"Gemfile.lock\",\"size\":16,\"url\":\"https://api.github.com/repos/Floppy/bimble-test/git/blobs/28b552e7359c5c3bbe947749aab70d18e3ea554b\"}]}"
|
209
|
+
http_version:
|
210
|
+
recorded_at: Tue, 11 Mar 2014 14:34:33 GMT
|
211
|
+
recorded_with: VCR 2.8.0
|