Skip to content

Commit 0a808ec

Browse files
committed
houndci suggested fixes.
1 parent d13b554 commit 0a808ec

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/bitbucket_rest_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def lookup_constant(const_name)
7777
:Issues => 'issues',
7878
:User => 'user',
7979
:Users => 'users',
80-
:Invitations => 'invitations'
80+
:Invitations => 'invitations'
8181

8282
#:Teams => 'teams',
8383
#:PullRequests => 'pull_requests',

lib/bitbucket_rest_api/client.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ def user_api(options = {})
5151
@user_api ||= ApiFactory.new 'User', options
5252
end
5353

54-
def invitations( options = {} )
55-
@invitations ||= ApiFactory.new 'Invitations', options
54+
def invitations(options = {})
55+
@invitations ||= ApiFactory.new "Invitations", options
5656
end
57-
5857
end # Client
5958
end # BitBucket

lib/bitbucket_rest_api/invitations.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
module BitBucket
44
class Invitations < API
5-
def invite( user_name, repo_name, emailaddress, perm )
5+
def invite(user_name, repo_name, emailaddress, perm)
66
_update_user_repo_params(user_name, repo_name)
77
_validate_user_repo_params(user, repo) unless user? && repo?
88
_validate_presence_of emailaddress
9-
perm ||= 'write'
9+
perm ||= "write"
1010

11-
post_request( "/invitations/#{user}/#{repo.downcase}/#{emailaddress}", permission: perm )
11+
post_request("/invitations/#{user}/#{repo.downcase}/#{emailaddress}",
12+
permission: perm)
1213
end
1314
end
1415
end

0 commit comments

Comments
 (0)