bitbucket_rest_api2 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3c780a33274ab280cff7febc0e2c08867bdcb93d83d6684b06654cce218230e
|
4
|
+
data.tar.gz: 8e57c5a2cebac9abab4720f49f31b33c3f67c1b0cb666a7b161feabb584b3b57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b42134e350f99ed320c86fb458b639787d5a4cd6ecb320d04c80e99a2bf803225fcffaa0b36feff096f43c59a039350e028209487fd1e968f9583ef9e4604b93
|
7
|
+
data.tar.gz: 30f0ccc47f1c08902272368102e76e865f5807a4312503bdf837cbf7c0cf475afda2ea232e0780ad87fc847e1048da9c005adf2cbbf4e54ee6b31681344ebd9b
|
@@ -231,7 +231,7 @@ module BitBucket
|
|
231
231
|
# get_request("/2.0/users/#{user_name}", params)
|
232
232
|
#else
|
233
233
|
# For authenticated user
|
234
|
-
get_request("/2.0/
|
234
|
+
get_request("/2.0/repositories", params)
|
235
235
|
#end
|
236
236
|
return response unless block_given?
|
237
237
|
response.each { |el| yield el }
|
@@ -75,7 +75,7 @@ module BitBucket
|
|
75
75
|
# or has at least read access to.
|
76
76
|
# Use this if you're looking for a full list of all of the repositories associated with a user.
|
77
77
|
def repositories
|
78
|
-
get_request("/2.0/
|
78
|
+
get_request("/2.0/repositories")
|
79
79
|
end
|
80
80
|
|
81
81
|
alias :repos :repositories
|
@@ -86,7 +86,7 @@ module BitBucket
|
|
86
86
|
# Gets a list of the repositories the account follows.
|
87
87
|
# This is the same list that appears on the Following tab on your account dashboard.
|
88
88
|
def overview
|
89
|
-
get_request("/2.0/
|
89
|
+
get_request("/2.0/repositories/overview")
|
90
90
|
end
|
91
91
|
|
92
92
|
|
@@ -94,7 +94,7 @@ module BitBucket
|
|
94
94
|
# GET the list of repositories on the dashboard
|
95
95
|
# Gets the repositories list from the account's dashboard.
|
96
96
|
def dashboard
|
97
|
-
get_request("/2.0/
|
97
|
+
get_request("/2.0/repositories/dashboard")
|
98
98
|
end
|
99
99
|
|
100
100
|
end # User
|
@@ -49,28 +49,28 @@ describe BitBucket::User do
|
|
49
49
|
|
50
50
|
describe '#repositories' do
|
51
51
|
it 'sends the request to the right url' do
|
52
|
-
expect(@user).to receive(:request).with(:get, '/2.0/
|
52
|
+
expect(@user).to receive(:request).with(:get, '/2.0/repositories', {}, {})
|
53
53
|
@user.repositories
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
57
|
describe '#repos' do
|
58
58
|
it 'sends the request to the right url' do
|
59
|
-
expect(@user).to receive(:request).with(:get, '/2.0/
|
59
|
+
expect(@user).to receive(:request).with(:get, '/2.0/repositories', {}, {})
|
60
60
|
@user.repos
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
64
|
describe '#overview' do
|
65
65
|
it 'sends the request to the right url' do
|
66
|
-
expect(@user).to receive(:request).with(:get, '/2.0/
|
66
|
+
expect(@user).to receive(:request).with(:get, '/2.0/repositories/overview', {}, {})
|
67
67
|
@user.overview
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
71
|
describe '#dashboard' do
|
72
72
|
it 'sends the request to the right url' do
|
73
|
-
expect(@user).to receive(:request).with(:get, '/2.0/
|
73
|
+
expect(@user).to receive(:request).with(:get, '/2.0/repositories/dashboard', {}, {})
|
74
74
|
@user.dashboard
|
75
75
|
end
|
76
76
|
end
|