tinybucket 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +10 -1
- data/Gemfile +8 -7
- data/README.md +28 -5
- data/Rakefile +1 -0
- data/lib/faraday_middleware/follow_oauth_redirects.rb +5 -2
- data/lib/tinybucket.rb +2 -0
- data/lib/tinybucket/api.rb +3 -0
- data/lib/tinybucket/api/base_api.rb +2 -0
- data/lib/tinybucket/api/branch_restrictions_api.rb +6 -5
- data/lib/tinybucket/api/branches_api.rb +48 -0
- data/lib/tinybucket/api/build_status_api.rb +15 -1
- data/lib/tinybucket/api/comments_api.rb +7 -6
- data/lib/tinybucket/api/commits_api.rb +25 -4
- data/lib/tinybucket/api/diff_api.rb +4 -3
- data/lib/tinybucket/api/helper.rb +3 -0
- data/lib/tinybucket/api/helper/api_helper.rb +2 -0
- data/lib/tinybucket/api/helper/branch_restrictions_helper.rb +2 -0
- data/lib/tinybucket/api/helper/branches_helper.rb +29 -0
- data/lib/tinybucket/api/helper/build_status_helper.rb +11 -0
- data/lib/tinybucket/api/helper/comments_helper.rb +2 -0
- data/lib/tinybucket/api/helper/commits_helper.rb +8 -0
- data/lib/tinybucket/api/helper/diff_helper.rb +2 -0
- data/lib/tinybucket/api/helper/pull_requests_helper.rb +2 -0
- data/lib/tinybucket/api/helper/repo_helper.rb +2 -0
- data/lib/tinybucket/api/helper/repos_helper.rb +2 -0
- data/lib/tinybucket/api/helper/team_helper.rb +2 -0
- data/lib/tinybucket/api/helper/user_helper.rb +2 -0
- data/lib/tinybucket/api/pull_requests_api.rb +4 -3
- data/lib/tinybucket/api/repo_api.rb +4 -3
- data/lib/tinybucket/api/repos_api.rb +3 -1
- data/lib/tinybucket/api/team_api.rb +4 -2
- data/lib/tinybucket/api/user_api.rb +3 -1
- data/lib/tinybucket/api_factory.rb +2 -0
- data/lib/tinybucket/client.rb +3 -2
- data/lib/tinybucket/config.rb +5 -1
- data/lib/tinybucket/connection.rb +21 -8
- data/lib/tinybucket/constants.rb +2 -0
- data/lib/tinybucket/enumerator.rb +2 -0
- data/lib/tinybucket/error.rb +2 -0
- data/lib/tinybucket/error/base_error.rb +2 -0
- data/lib/tinybucket/error/conflict.rb +2 -0
- data/lib/tinybucket/error/not_found.rb +2 -0
- data/lib/tinybucket/error/service_error.rb +2 -0
- data/lib/tinybucket/iterator.rb +4 -2
- data/lib/tinybucket/model.rb +3 -0
- data/lib/tinybucket/model/base.rb +2 -2
- data/lib/tinybucket/model/branch.rb +48 -0
- data/lib/tinybucket/model/branch_restriction.rb +4 -2
- data/lib/tinybucket/model/build_status.rb +3 -1
- data/lib/tinybucket/model/comment.rb +4 -2
- data/lib/tinybucket/model/commit.rb +6 -2
- data/lib/tinybucket/model/concerns.rb +2 -0
- data/lib/tinybucket/model/concerns/acceptable_attributes.rb +2 -0
- data/lib/tinybucket/model/concerns/api_callable.rb +2 -0
- data/lib/tinybucket/model/concerns/enumerable.rb +2 -0
- data/lib/tinybucket/model/concerns/reloadable.rb +2 -0
- data/lib/tinybucket/model/concerns/repository_keys.rb +2 -0
- data/lib/tinybucket/model/error_response.rb +4 -2
- data/lib/tinybucket/model/page.rb +4 -2
- data/lib/tinybucket/model/profile.rb +4 -2
- data/lib/tinybucket/model/pull_request.rb +4 -2
- data/lib/tinybucket/model/repository.rb +31 -5
- data/lib/tinybucket/model/team.rb +4 -2
- data/lib/tinybucket/null_logger.rb +2 -0
- data/lib/tinybucket/parser.rb +5 -0
- data/lib/tinybucket/parser/base_parser.rb +3 -2
- data/lib/tinybucket/parser/branch_parser.rb +13 -0
- data/lib/tinybucket/parser/branch_restriction_parser.rb +2 -0
- data/lib/tinybucket/parser/branch_restrictions_parser.rb +2 -0
- data/lib/tinybucket/parser/branches_parser.rb +11 -0
- data/lib/tinybucket/parser/build_status_parser.rb +2 -0
- data/lib/tinybucket/parser/builds_parser.rb +11 -0
- data/lib/tinybucket/parser/comment_parser.rb +2 -0
- data/lib/tinybucket/parser/comments_parser.rb +2 -0
- data/lib/tinybucket/parser/commit_parser.rb +2 -0
- data/lib/tinybucket/parser/commits_parser.rb +2 -0
- data/lib/tinybucket/parser/profile_parser.rb +2 -0
- data/lib/tinybucket/parser/profiles_parser.rb +2 -0
- data/lib/tinybucket/parser/pull_request_parser.rb +2 -0
- data/lib/tinybucket/parser/pull_requests_parser.rb +2 -0
- data/lib/tinybucket/parser/repo_parser.rb +2 -0
- data/lib/tinybucket/parser/repos_parser.rb +2 -0
- data/lib/tinybucket/parser/team_parser.rb +2 -0
- data/lib/tinybucket/parser/teams_parser.rb +2 -0
- data/lib/tinybucket/request.rb +2 -0
- data/lib/tinybucket/resource.rb +3 -0
- data/lib/tinybucket/resource/base.rb +6 -0
- data/lib/tinybucket/resource/branch_restrictions.rb +2 -0
- data/lib/tinybucket/resource/branches.rb +35 -0
- data/lib/tinybucket/resource/commit/base.rb +2 -0
- data/lib/tinybucket/resource/commit/build_statuses.rb +6 -3
- data/lib/tinybucket/resource/commit/comments.rb +2 -0
- data/lib/tinybucket/resource/commits.rb +13 -0
- data/lib/tinybucket/resource/forks.rb +2 -0
- data/lib/tinybucket/resource/pull_request/base.rb +2 -0
- data/lib/tinybucket/resource/pull_request/comments.rb +2 -0
- data/lib/tinybucket/resource/pull_request/commits.rb +2 -0
- data/lib/tinybucket/resource/pull_requests.rb +2 -0
- data/lib/tinybucket/resource/repos.rb +2 -0
- data/lib/tinybucket/resource/team/base.rb +2 -0
- data/lib/tinybucket/resource/team/followers.rb +2 -0
- data/lib/tinybucket/resource/team/following.rb +2 -0
- data/lib/tinybucket/resource/team/members.rb +2 -0
- data/lib/tinybucket/resource/team/repos.rb +2 -0
- data/lib/tinybucket/resource/user/base.rb +2 -0
- data/lib/tinybucket/resource/user/followers.rb +2 -0
- data/lib/tinybucket/resource/user/following.rb +2 -0
- data/lib/tinybucket/resource/user/repos.rb +2 -0
- data/lib/tinybucket/resource/watchers.rb +2 -0
- data/lib/tinybucket/response.rb +2 -0
- data/lib/tinybucket/response/handler.rb +2 -0
- data/lib/tinybucket/version.rb +3 -1
- data/tinybucket.gemspec +1 -1
- metadata +11 -193
- data/.coveralls.yml +0 -1
- data/.gitignore +0 -33
- data/.rspec +0 -1
- data/.travis.yml +0 -13
- data/Guardfile +0 -13
- data/spec/fixtures/branch_restriction.json +0 -17
- data/spec/fixtures/build_status.json +0 -16
- data/spec/fixtures/comment.json +0 -30
- data/spec/fixtures/commit.json +0 -83
- data/spec/fixtures/profile.json +0 -29
- data/spec/fixtures/pull_request.json +0 -106
- data/spec/fixtures/repositories/get.json +0 -78
- data/spec/fixtures/repositories/test_owner/get.json +0 -78
- data/spec/fixtures/repositories/test_owner/test_repo/branch-restrictions/1/get.json +0 -17
- data/spec/fixtures/repositories/test_owner/test_repo/branch-restrictions/get.json +0 -101
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/approve/post.json +0 -16
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/comments/1/get.json +0 -38
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/comments/get.json +0 -40
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/get.json +0 -83
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/statuses/build/post.json +0 -16
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/statuses/build/test_status/get.json +0 -16
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/statuses/build/test_status/put.json +0 -16
- data/spec/fixtures/repositories/test_owner/test_repo/commits/get.json +0 -73
- data/spec/fixtures/repositories/test_owner/test_repo/diff/1/get.json +0 -21
- data/spec/fixtures/repositories/test_owner/test_repo/forks/get.json +0 -78
- data/spec/fixtures/repositories/test_owner/test_repo/get.json +0 -71
- data/spec/fixtures/repositories/test_owner/test_repo/patch/1/get.json +0 -29
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/approve/delete.json +0 -3
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/approve/post.json +0 -3
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/comments/1/get.json +0 -30
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/comments/get.json +0 -44
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/commits/get.json +0 -66
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/decline/post.json +0 -116
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/diff/get.txt +0 -13
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/get.json +0 -164
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/merge/post.json +0 -123
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/get.json +0 -112
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/get_state_declined.json +0 -112
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/get_state_merged.json +0 -112
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/get_state_open.json +0 -112
- data/spec/fixtures/repositories/test_owner/test_repo/watchers/get.json +0 -32
- data/spec/fixtures/repository.json +0 -72
- data/spec/fixtures/team.json +0 -32
- data/spec/fixtures/teams/test_team/followers/get.json +0 -36
- data/spec/fixtures/teams/test_team/following/get.json +0 -39
- data/spec/fixtures/teams/test_team/get.json +0 -32
- data/spec/fixtures/teams/test_team/members/get.json +0 -36
- data/spec/fixtures/teams/test_team/repositories/get.json +0 -125
- data/spec/fixtures/users/test_owner/followers/get.json +0 -65
- data/spec/fixtures/users/test_owner/following/get.json +0 -100
- data/spec/fixtures/users/test_owner/get.json +0 -29
- data/spec/lib/tinybucket/api/branch_restrictions_api_spec.rb +0 -77
- data/spec/lib/tinybucket/api/build_status_api_spec.rb +0 -65
- data/spec/lib/tinybucket/api/comments_api_spec.rb +0 -132
- data/spec/lib/tinybucket/api/commits_api_spec.rb +0 -152
- data/spec/lib/tinybucket/api/diff_api_spec.rb +0 -5
- data/spec/lib/tinybucket/api/pull_requests_api_spec.rb +0 -259
- data/spec/lib/tinybucket/api/repo_api_spec.rb +0 -99
- data/spec/lib/tinybucket/api/repos_api_spec.rb +0 -27
- data/spec/lib/tinybucket/api/team_api_spec.rb +0 -82
- data/spec/lib/tinybucket/api/user_api_spec.rb +0 -73
- data/spec/lib/tinybucket/api_factory_spec.rb +0 -18
- data/spec/lib/tinybucket/client_spec.rb +0 -100
- data/spec/lib/tinybucket/connection_spec.rb +0 -30
- data/spec/lib/tinybucket/error/service_error_spec.rb +0 -23
- data/spec/lib/tinybucket/model/branch_restriction_spec.rb +0 -35
- data/spec/lib/tinybucket/model/build_status_spec.rb +0 -66
- data/spec/lib/tinybucket/model/comment_spec.rb +0 -37
- data/spec/lib/tinybucket/model/commit_spec.rb +0 -108
- data/spec/lib/tinybucket/model/page_spec.rb +0 -28
- data/spec/lib/tinybucket/model/profile_spec.rb +0 -52
- data/spec/lib/tinybucket/model/pull_request_spec.rb +0 -141
- data/spec/lib/tinybucket/model/repository_spec.rb +0 -131
- data/spec/lib/tinybucket/model/team_spec.rb +0 -70
- data/spec/lib/tinybucket/null_logger_spec.rb +0 -53
- data/spec/lib/tinybucket/resource/branch_restrictions_spec.rb +0 -60
- data/spec/lib/tinybucket/resource/commit/build_statuses_spec.rb +0 -50
- data/spec/lib/tinybucket/resource/commit/comments_spec.rb +0 -49
- data/spec/lib/tinybucket/resource/commits_spec.rb +0 -43
- data/spec/lib/tinybucket/resource/forks_spec.rb +0 -36
- data/spec/lib/tinybucket/resource/pull_request/comments_spec.rb +0 -41
- data/spec/lib/tinybucket/resource/pull_request/commits_spec.rb +0 -41
- data/spec/lib/tinybucket/resource/pull_requests_spec.rb +0 -59
- data/spec/lib/tinybucket/resource/repos_spec.rb +0 -76
- data/spec/lib/tinybucket/resource/team/followers_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/team/following_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/team/members_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/team/repos_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/user/followers_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/user/following_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/user/repos_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/watchers_spec.rb +0 -38
- data/spec/lib/tinybucket_spec.rb +0 -42
- data/spec/spec_helper.rb +0 -45
- data/spec/support/api_response_macros.rb +0 -74
- data/spec/support/fixture_macros.rb +0 -5
- data/spec/support/model_macros.rb +0 -103
data/.coveralls.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
service_name: travis-ci
|
data/.gitignore
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
Gemfile.lock
|
5
|
-
*.bundle
|
6
|
-
*.so
|
7
|
-
*.o
|
8
|
-
*.a
|
9
|
-
mkmf.log
|
10
|
-
app.rb
|
11
|
-
log/
|
12
|
-
*.swp
|
13
|
-
|
14
|
-
features
|
15
|
-
.envrc
|
16
|
-
|
17
|
-
## from github ignore.
|
18
|
-
|
19
|
-
/.config
|
20
|
-
/coverage/
|
21
|
-
/InstalledFiles
|
22
|
-
/pkg/
|
23
|
-
/tmp/
|
24
|
-
|
25
|
-
## Documentation cache and generated files:
|
26
|
-
/.yardoc/
|
27
|
-
/_yardoc/
|
28
|
-
/doc/
|
29
|
-
/rdoc/
|
30
|
-
|
31
|
-
## Environment normalisation:
|
32
|
-
/.bundle/
|
33
|
-
/lib/bundler/man/
|
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--color
|
data/.travis.yml
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
before_install:
|
4
|
-
- gem install bundler -v 1.10.6
|
5
|
-
rvm: 2.3.1
|
6
|
-
addons:
|
7
|
-
code_climate:
|
8
|
-
repo_token: 58717000233e2eba64f18993364e4689b9c3e862a3e775d14890cd235979a7f9
|
9
|
-
notifications:
|
10
|
-
slack:
|
11
|
-
rooms:
|
12
|
-
- secure: VnXzbJEGFsHRZN0alas2Yu7o22VyXEnVlqIebI99yMZgULKh1IGA7uvGGOAyvIxTIAoY9yWm44RghBMSwYEZjoNgXNFC0EEl66sYdEgw2pEmza8ydlolFLsjX5RFIsbPSGHQArNBnV1sYuuP7452TheDn/BJTi53tnR+B4tF2JU=
|
13
|
-
env: CODECLIMATE_REPORT='on'
|
data/Guardfile
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
guard 'rspec', cmd: 'rspec --drb' do
|
2
|
-
watch(/^spec\/.+_spec\.rb$/)
|
3
|
-
watch(/^lib\/(.+)\.rb$/) { |m| "spec/#{m[1]}_spec.rb" }
|
4
|
-
watch(/^spec\/(.+)\.rb$/) { |m| "spec/#{m[1]}_spec.rb" }
|
5
|
-
watch('spec/spec_helper.rb') { 'spec' }
|
6
|
-
|
7
|
-
watch(/^lib\/(.+)\.rb$/) { |m| "spec/#{m[1]}_spec.rb" }
|
8
|
-
end
|
9
|
-
|
10
|
-
guard :rubocop, all_on_start: true, cmd: ['--format', 'clang', '-c', '.rubocop.yml'] do
|
11
|
-
watch(/^lib\/(.+)\.rb$/)
|
12
|
-
watch(/\.rubocop.yml$/)
|
13
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"groups": [],
|
3
|
-
"id": 52,
|
4
|
-
"kind": "delete",
|
5
|
-
"links": [
|
6
|
-
{
|
7
|
-
"href": "https://api.bitbucket.org/2.0/repositories/manthony/restrictiontest/branch-restrictions/52",
|
8
|
-
"rel": "self"
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"href": "https://api.bitbucket.org/2.0/repositories/manthony/restrictiontest/branch-restrictions",
|
12
|
-
"rel": "parent"
|
13
|
-
}
|
14
|
-
],
|
15
|
-
"pattern": "foobar/*",
|
16
|
-
"users": []
|
17
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"state": "SUCCESSFUL",
|
3
|
-
"type": "build",
|
4
|
-
"key": "test_status",
|
5
|
-
"name": "Build #34",
|
6
|
-
"url": "https://example.com/path/to/build",
|
7
|
-
"description": "Changes by John Doe",
|
8
|
-
"links": {
|
9
|
-
"self": {
|
10
|
-
"href": "https://api.bitbucket.org/2.0/repositories/emmap1/MyRepo/commits/61d9e64348f9da407e62f64726337fd3bb24b466/statuses/build/BAMBOO-PROJECT-X"
|
11
|
-
},
|
12
|
-
"commit": {
|
13
|
-
"href": "https://api.bitbucket.org/2.0/repositories/emmap1/MyRepo/commits/61d9e64348f9da407e62f64726337fd3bb24b466"
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
data/spec/fixtures/comment.json
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"links": {
|
3
|
-
"self": {
|
4
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/pullrequests/2821/comments/839163"
|
5
|
-
},
|
6
|
-
"html": {
|
7
|
-
"href": "https://bitbucket.org/tutorials/tutorials.bitbucket.org/pull-request/2821/_/diff#comment-839163"
|
8
|
-
}
|
9
|
-
},
|
10
|
-
"content": {
|
11
|
-
"raw": "this is my first comment",
|
12
|
-
"markup": "markdown",
|
13
|
-
"html": "<p>this is my first comment</p>"
|
14
|
-
},
|
15
|
-
"created_on": "2013-11-19T21:19:24.138375+00:00",
|
16
|
-
"user": {
|
17
|
-
"username": "tutorials",
|
18
|
-
"display_name": "first name last",
|
19
|
-
"links": {
|
20
|
-
"self": {
|
21
|
-
"href": "https://bitbucket.org/api/2.0/users/tutorials"
|
22
|
-
},
|
23
|
-
"avatar": {
|
24
|
-
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Jul/17/tutorials-avatar-1826704565-4_avatar.png"
|
25
|
-
}
|
26
|
-
}
|
27
|
-
},
|
28
|
-
"updated_on": "2013-11-19T21:19:24.141013+00:00",
|
29
|
-
"id": 839163
|
30
|
-
}
|
data/spec/fixtures/commit.json
DELETED
@@ -1,83 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"hash": "61d9e64348f9da407e62f64726337fd3bb24b466",
|
3
|
-
"links": {
|
4
|
-
"self": {
|
5
|
-
"href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-rest/commit/61d9e64348f9da407e62f64726337fd3bb24b466"
|
6
|
-
},
|
7
|
-
"comments": {
|
8
|
-
"href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-rest/commit/61d9e64348f9da407e62f64726337fd3bb24b466/comments"
|
9
|
-
},
|
10
|
-
"patch": {
|
11
|
-
"href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-rest/patch/61d9e64348f9da407e62f64726337fd3bb24b466"
|
12
|
-
},
|
13
|
-
"html": {
|
14
|
-
"href": "https://api.bitbucket.org/atlassian/atlassian-rest/commits/61d9e64348f9da407e62f64726337fd3bb24b466"
|
15
|
-
},
|
16
|
-
"diff": {
|
17
|
-
"href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-rest/diff/61d9e64348f9da407e62f64726337fd3bb24b466"
|
18
|
-
},
|
19
|
-
"approve": {
|
20
|
-
"href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-rest/commit/61d9e64348f9da407e62f64726337fd3b24b466/approve"
|
21
|
-
}
|
22
|
-
},
|
23
|
-
"repository": {
|
24
|
-
"links": {
|
25
|
-
"self": {
|
26
|
-
"href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-rest"
|
27
|
-
},
|
28
|
-
"avatar": {
|
29
|
-
"href": "https://d3oaxc4q5k2d6q.cloudfront.net/m/bf1e763db20f/img/language-avatars/java_16.png"
|
30
|
-
}
|
31
|
-
},
|
32
|
-
"full_name": "atlassian/atlassian-rest",
|
33
|
-
"name": "atlassian-rest"
|
34
|
-
},
|
35
|
-
"author": {
|
36
|
-
"raw": "Joseph Walton <jwalton@atlassian.com>",
|
37
|
-
"user": {
|
38
|
-
"username": "jwalton",
|
39
|
-
"display_name": "Joseph Walton",
|
40
|
-
"links": {
|
41
|
-
"self": {
|
42
|
-
"href": "https://api.bitbucket.org/2.0/users/jwalton"
|
43
|
-
},
|
44
|
-
"avatar": {
|
45
|
-
"href": "https://secure.gravatar.com/avatar/8e6e91101e3ed8a332dbebfdf59a3cef?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2Fbf1e763db20f%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32"
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
49
|
-
},
|
50
|
-
"participants": [{
|
51
|
-
"role": "PARTICIPANT",
|
52
|
-
"user": {
|
53
|
-
"username": "evzijst",
|
54
|
-
"display_name": "Erik van Zijst",
|
55
|
-
"links": {
|
56
|
-
"self": {
|
57
|
-
"href": "https://api.bitbucket.org/2.0/users/evzijst"
|
58
|
-
},
|
59
|
-
"avatar": {
|
60
|
-
"href": "https://secure.gravatar.com/avatar/f6bcbb4e3f665e74455bd8c0b4b3afba?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2Fbf1e763db20f%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32"
|
61
|
-
}
|
62
|
-
}
|
63
|
-
},
|
64
|
-
"approved": false
|
65
|
-
}],
|
66
|
-
"parents": [{
|
67
|
-
"hash": "59721f593b020123a75424285845325126f56e2e",
|
68
|
-
"links": {
|
69
|
-
"self": {
|
70
|
-
"href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-rest/commit/59721f593b020123a75424285845325126f56e2e"
|
71
|
-
}
|
72
|
-
}
|
73
|
-
}, {
|
74
|
-
"hash": "56c49d8b2ae3a094fa7ba5a1251d6dd2c7c66993",
|
75
|
-
"links": {
|
76
|
-
"self": {
|
77
|
-
"href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-rest/commit/56c49d8b2ae3a094fa7ba5a1251d6dd2c7c66993"
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}],
|
81
|
-
"date": "2013-10-21T07:21:51+00:00",
|
82
|
-
"message": "Merge remote-tracking branch 'origin/rest-2.8.x' "
|
83
|
-
}
|
data/spec/fixtures/profile.json
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"username": "tutorials",
|
3
|
-
"kind": "user",
|
4
|
-
"website": "https://tutorials.bitbucket.org/",
|
5
|
-
"display_name": "first name last",
|
6
|
-
"links": {
|
7
|
-
"self": {
|
8
|
-
"href": "https://api.bitbucket.org/2.0/users/tutorials"
|
9
|
-
},
|
10
|
-
"repositories": {
|
11
|
-
"href": "https://api.bitbucket.org/2.0/users/tutorials/repositories"
|
12
|
-
},
|
13
|
-
"html": {
|
14
|
-
"href": "https://api.bitbucket.org/tutorials"
|
15
|
-
},
|
16
|
-
"followers": {
|
17
|
-
"href": "https://api.bitbucket.org/2.0/users/tutorials/followers"
|
18
|
-
},
|
19
|
-
"avatar": {
|
20
|
-
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Jul/17/tutorials-avatar-1826704565-4_avatar.png"
|
21
|
-
},
|
22
|
-
"following": {
|
23
|
-
"href": "https://api.bitbucket.org/2.0/users/tutorials/following"
|
24
|
-
}
|
25
|
-
},
|
26
|
-
"created_on": "2011-12-20T16:34:07.132459+00:00",
|
27
|
-
"location": "San Francisco, CA",
|
28
|
-
"type": "user"
|
29
|
-
}
|
@@ -1,106 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"description": "![img](https://cloudup.com/c7ZJtChLw9J+)\r\n\r\n## Removing:\r\n\r\n* Notifications\r\n* Email\r\n* Change password\r\n* Sessions\r\n\r\n## Renaming: \r\n\r\n* Change username\r\n* Delete account (rename to delete team)\r\n\r\n",
|
3
|
-
"links": {
|
4
|
-
"decline": {
|
5
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/decline"
|
6
|
-
},
|
7
|
-
"commits": {
|
8
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/commits"
|
9
|
-
},
|
10
|
-
"self": {
|
11
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767"
|
12
|
-
},
|
13
|
-
"comments": {
|
14
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/comments"
|
15
|
-
},
|
16
|
-
"patch": {
|
17
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/patch"
|
18
|
-
},
|
19
|
-
"merge": {
|
20
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/merge"
|
21
|
-
},
|
22
|
-
"html": {
|
23
|
-
"href": "https://api.bitbucket.org/bitbucket/bitbucket/pull-request/3767"
|
24
|
-
},
|
25
|
-
"activity": {
|
26
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/activity"
|
27
|
-
},
|
28
|
-
"diff": {
|
29
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/diff"
|
30
|
-
},
|
31
|
-
"approve": {
|
32
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/approve"
|
33
|
-
}
|
34
|
-
},
|
35
|
-
"author": {
|
36
|
-
"username": "mfrauenholtz",
|
37
|
-
"display_name": "Michael Frauenholtz",
|
38
|
-
"links": {
|
39
|
-
"self": {
|
40
|
-
"href": "https://api.bitbucket.org/2.0/users/mfrauenholtz"
|
41
|
-
},
|
42
|
-
"avatar": {
|
43
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Aug/24/mfrauenholtz-avatar-1858533797-5_avatar.png"
|
44
|
-
}
|
45
|
-
}
|
46
|
-
},
|
47
|
-
"close_source_branch": true,
|
48
|
-
"title": "BB-9500: Remove certain admin links for Team accounts",
|
49
|
-
"destination": {
|
50
|
-
"commit": {
|
51
|
-
"hash": "e04099ba977c",
|
52
|
-
"links": {
|
53
|
-
"self": {
|
54
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/commit/e04099ba977c"
|
55
|
-
}
|
56
|
-
}
|
57
|
-
},
|
58
|
-
"repository": {
|
59
|
-
"links": {
|
60
|
-
"self": {
|
61
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket"
|
62
|
-
},
|
63
|
-
"avatar": {
|
64
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Sep/27/bitbucket-logo-1832464563-7_avatar.png"
|
65
|
-
}
|
66
|
-
},
|
67
|
-
"full_name": "bitbucket/bitbucket",
|
68
|
-
"name": "bitbucket"
|
69
|
-
},
|
70
|
-
"branch": {
|
71
|
-
"name": "staging"
|
72
|
-
}
|
73
|
-
},
|
74
|
-
"reason": "",
|
75
|
-
"closed_by": null,
|
76
|
-
"source": {
|
77
|
-
"commit": {
|
78
|
-
"hash": "2a81a1edc0c2",
|
79
|
-
"links": {
|
80
|
-
"self": {
|
81
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/commit/2a81a1edc0c2"
|
82
|
-
}
|
83
|
-
}
|
84
|
-
},
|
85
|
-
"repository": {
|
86
|
-
"links": {
|
87
|
-
"self": {
|
88
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket"
|
89
|
-
},
|
90
|
-
"avatar": {
|
91
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Sep/27/bitbucket-logo-1832464563-7_avatar.png"
|
92
|
-
}
|
93
|
-
},
|
94
|
-
"full_name": "bitbucket/bitbucket",
|
95
|
-
"name": "bitbucket"
|
96
|
-
},
|
97
|
-
"branch": {
|
98
|
-
"name": "mfrauenholtz/team-removal/admin-links"
|
99
|
-
}
|
100
|
-
},
|
101
|
-
"state": "OPEN",
|
102
|
-
"created_on": "2013-11-05T23:59:26.480984+00:00",
|
103
|
-
"updated_on": "2013-11-07T00:17:41.061613+00:00",
|
104
|
-
"merge_commit": null,
|
105
|
-
"id": 3767
|
106
|
-
}
|
@@ -1,78 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"pagelen": 10,
|
3
|
-
"values": [
|
4
|
-
{
|
5
|
-
"scm": "git",
|
6
|
-
"has_wiki": false,
|
7
|
-
"description": "",
|
8
|
-
"links": {
|
9
|
-
"watchers": {
|
10
|
-
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork/watchers"
|
11
|
-
},
|
12
|
-
"commits": {
|
13
|
-
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork/commits"
|
14
|
-
},
|
15
|
-
"self": {
|
16
|
-
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork"
|
17
|
-
},
|
18
|
-
"html": {
|
19
|
-
"href": "https://bitbucket.org/evzijst/atlassian-connect-fork"
|
20
|
-
},
|
21
|
-
"avatar": {
|
22
|
-
"href": "https://bitbucket.org/m/3a846b46851a/img/language-avatars/default_16.png"
|
23
|
-
},
|
24
|
-
"forks": {
|
25
|
-
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork/forks"
|
26
|
-
},
|
27
|
-
"clone": [
|
28
|
-
{
|
29
|
-
"href": "https://bitbucket.org/evzijst/atlassian-connect-fork.git",
|
30
|
-
"name": "https"
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"href": "ssh://git@bitbucket.org/evzijst/atlassian-connect-fork.git",
|
34
|
-
"name": "ssh"
|
35
|
-
}
|
36
|
-
],
|
37
|
-
"pullrequests": {
|
38
|
-
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork/pullrequests"
|
39
|
-
}
|
40
|
-
},
|
41
|
-
"fork_policy": "allow_forks",
|
42
|
-
"language": "",
|
43
|
-
"created_on": "2013-08-26T18:13:07.339080+00:00",
|
44
|
-
"parent": {
|
45
|
-
"links": {
|
46
|
-
"self": {
|
47
|
-
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect"
|
48
|
-
},
|
49
|
-
"avatar": {
|
50
|
-
"href": "https://bitbucket-assetroot.s3.amazonaws.com/m/3a846b46851a/img/language-avatars/default_16.png"
|
51
|
-
}
|
52
|
-
},
|
53
|
-
"full_name": "evzijst/atlassian-connect",
|
54
|
-
"name": "atlassian-connect"
|
55
|
-
},
|
56
|
-
"full_name": "evzijst/atlassian-connect-fork",
|
57
|
-
"has_issues": false,
|
58
|
-
"owner": {
|
59
|
-
"username": "evzijst",
|
60
|
-
"display_name": "Erik van Zijst",
|
61
|
-
"links": {
|
62
|
-
"self": {
|
63
|
-
"href": "https://api.bitbucket.org/2.0/users/evzijst"
|
64
|
-
},
|
65
|
-
"avatar": {
|
66
|
-
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Oct/28/evzijst-avatar-3454044670-3_avatar.png"
|
67
|
-
}
|
68
|
-
}
|
69
|
-
},
|
70
|
-
"updated_on": "2013-08-26T18:13:07.514065+00:00",
|
71
|
-
"size": 17657351,
|
72
|
-
"is_private": false,
|
73
|
-
"name": "atlassian-connect-fork"
|
74
|
-
}
|
75
|
-
],
|
76
|
-
"page": 1,
|
77
|
-
"next": "https://api.bitbucket.org/2.0/repositories?pagelen=1&after=2013-09-26T23%3A01%3A01.638828%2B00%3A00&page=2"
|
78
|
-
}
|
@@ -1,78 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"pagelen": 10,
|
3
|
-
"values": [
|
4
|
-
{
|
5
|
-
"scm": "git",
|
6
|
-
"has_wiki": false,
|
7
|
-
"description": "",
|
8
|
-
"links": {
|
9
|
-
"watchers": {
|
10
|
-
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork/watchers"
|
11
|
-
},
|
12
|
-
"commits": {
|
13
|
-
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork/commits"
|
14
|
-
},
|
15
|
-
"self": {
|
16
|
-
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork"
|
17
|
-
},
|
18
|
-
"html": {
|
19
|
-
"href": "https://bitbucket.org/evzijst/atlassian-connect-fork"
|
20
|
-
},
|
21
|
-
"avatar": {
|
22
|
-
"href": "https://bitbucket.org/m/3a846b46851a/img/language-avatars/default_16.png"
|
23
|
-
},
|
24
|
-
"forks": {
|
25
|
-
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork/forks"
|
26
|
-
},
|
27
|
-
"clone": [
|
28
|
-
{
|
29
|
-
"href": "https://bitbucket.org/evzijst/atlassian-connect-fork.git",
|
30
|
-
"name": "https"
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"href": "ssh://git@bitbucket.org/evzijst/atlassian-connect-fork.git",
|
34
|
-
"name": "ssh"
|
35
|
-
}
|
36
|
-
],
|
37
|
-
"pullrequests": {
|
38
|
-
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork/pullrequests"
|
39
|
-
}
|
40
|
-
},
|
41
|
-
"fork_policy": "allow_forks",
|
42
|
-
"language": "",
|
43
|
-
"created_on": "2013-08-26T18:13:07.339080+00:00",
|
44
|
-
"parent": {
|
45
|
-
"links": {
|
46
|
-
"self": {
|
47
|
-
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect"
|
48
|
-
},
|
49
|
-
"avatar": {
|
50
|
-
"href": "https://bitbucket-assetroot.s3.amazonaws.com/m/3a846b46851a/img/language-avatars/default_16.png"
|
51
|
-
}
|
52
|
-
},
|
53
|
-
"full_name": "evzijst/atlassian-connect",
|
54
|
-
"name": "atlassian-connect"
|
55
|
-
},
|
56
|
-
"full_name": "evzijst/atlassian-connect-fork",
|
57
|
-
"has_issues": false,
|
58
|
-
"owner": {
|
59
|
-
"username": "evzijst",
|
60
|
-
"display_name": "Erik van Zijst",
|
61
|
-
"links": {
|
62
|
-
"self": {
|
63
|
-
"href": "https://api.bitbucket.org/2.0/users/evzijst"
|
64
|
-
},
|
65
|
-
"avatar": {
|
66
|
-
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Oct/28/evzijst-avatar-3454044670-3_avatar.png"
|
67
|
-
}
|
68
|
-
}
|
69
|
-
},
|
70
|
-
"updated_on": "2013-08-26T18:13:07.514065+00:00",
|
71
|
-
"size": 17657351,
|
72
|
-
"is_private": false,
|
73
|
-
"name": "atlassian-connect-fork"
|
74
|
-
}
|
75
|
-
],
|
76
|
-
"page": 1,
|
77
|
-
"next": "https://api.bitbucket.org/2.0/repositories/test_owner?pagelen=1&after=2013-09-26T23%3A01%3A01.638828%2B00%3A00&page=2"
|
78
|
-
}
|