Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4d7303a9
Commit
4d7303a9
authored
Nov 18, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up owner and slug representation
parent
9e6b25d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
lib/bitbucket/representation/repo.rb
lib/bitbucket/representation/repo.rb
+11
-3
No files found.
lib/bitbucket/representation/repo.rb
View file @
4d7303a9
...
...
@@ -5,10 +5,18 @@ module Bitbucket
def
initialize
(
raw
)
super
(
raw
)
end
def
owner_and_slug
@owner_and_slug
||=
full_name
.
split
(
'/'
,
2
)
end
if
full_name
&&
full_name
.
split
(
'/'
).
size
==
2
@owner
,
@slug
=
full_name
.
split
(
'/'
)
def
owner
owner_and_slug
.
first
end
def
slug
owner_and_slug
.
last
end
def
clone_url
(
token
=
nil
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment