bitbucket_rest_api2 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e675e5b1e40391c9babeaf1639df858fe6ac4e05fbcad281ac15222b9c00364
4
- data.tar.gz: a7d463ae7f3c48e4e95b8308d39039ce2f75558d737241ab1e6db2b1a03b40cd
3
+ metadata.gz: c3c780a33274ab280cff7febc0e2c08867bdcb93d83d6684b06654cce218230e
4
+ data.tar.gz: 8e57c5a2cebac9abab4720f49f31b33c3f67c1b0cb666a7b161feabb584b3b57
5
5
  SHA512:
6
- metadata.gz: 2d28542b6f044d19d3a0b8e239d906469a8e9a9ad84841a095748ffe568f2db95838af1d8673af8c5923916dc63b67e290ecf17e2c7beb8afbc5eff1509f3f12
7
- data.tar.gz: c4624755aa32177de7c4707c97b4a97a71cce38b9f8dabb5ba3c8dc28433edd4a1fbb80ce5324dc8e22d72d63c9f56f6e06ae76638c0d3457bc06c9b0ee79f6e
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/user/repositories", params)
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/user/repositories")
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/user/repositories/overview")
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/user/repositories/dashboard")
97
+ get_request("/2.0/repositories/dashboard")
98
98
  end
99
99
 
100
100
  end # User
@@ -4,7 +4,7 @@ module BitBucket
4
4
  module VERSION
5
5
  MAJOR = 0
6
6
  MINOR = 2
7
- PATCH = 0
7
+ PATCH = 1
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
10
10
  end
@@ -100,7 +100,7 @@ describe BitBucket::Repos do
100
100
  before do
101
101
  expect(repo).to receive(:request).with(
102
102
  :get,
103
- '/2.0/user/repositories',
103
+ '/2.0/repositories',
104
104
  {},
105
105
  {}
106
106
  ).and_return(['repo1', 'repo2' ,'repo3'])
@@ -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/user/repositories', {}, {})
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/user/repositories', {}, {})
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/user/repositories/overview', {}, {})
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/user/repositories/dashboard', {}, {})
73
+ expect(@user).to receive(:request).with(:get, '/2.0/repositories/dashboard', {}, {})
74
74
  @user.dashboard
75
75
  end
76
76
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitbucket_rest_api2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Cochran