summaryrefslogtreecommitdiff
path: root/lib/bitbucket/representation/repo.rb
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2019-02-28 19:57:34 +0100
committerToon Claes <toon@gitlab.com>2019-02-28 19:57:34 +0100
commit62d7990b9bb30cf33ed87017c5c633d1cccc75c2 (patch)
treec3e1b69c58a412ba1c6f50a0337a23d9f9d6e1a4 /lib/bitbucket/representation/repo.rb
parentf6453eca992a9c142268e78ac782cef98110d183 (diff)
downloadgitlab-ce-tc-standard-gem.tar.gz
Ran standardrb --fix on the whole codebasetc-standard-gem
Inspired by https://twitter.com/searls/status/1101137953743613952 I decided to try https://github.com/testdouble/standard on our codebase. It's opinionated, but at least it's a _standard_.
Diffstat (limited to 'lib/bitbucket/representation/repo.rb')
-rw-r--r--lib/bitbucket/representation/repo.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/bitbucket/representation/repo.rb b/lib/bitbucket/representation/repo.rb
index c5bfc91e43d..78dcca4883d 100644
--- a/lib/bitbucket/representation/repo.rb
+++ b/lib/bitbucket/representation/repo.rb
@@ -10,7 +10,7 @@ module Bitbucket
end
def owner_and_slug
- @owner_and_slug ||= full_name.split('/', 2)
+ @owner_and_slug ||= full_name.split("/", 2)
end
def owner
@@ -22,7 +22,7 @@ module Bitbucket
end
def clone_url(token = nil)
- url = raw['links']['clone'].find { |link| link['name'] == 'https' }.fetch('href')
+ url = raw["links"]["clone"].find { |link| link["name"] == "https" }.fetch("href")
if token.present?
clone_url = URI.parse(url)
@@ -34,31 +34,31 @@ module Bitbucket
end
def description
- raw['description']
+ raw["description"]
end
def full_name
- raw['full_name']
+ raw["full_name"]
end
def issues_enabled?
- raw['has_issues']
+ raw["has_issues"]
end
def name
- raw['name']
+ raw["name"]
end
def valid?
- raw['scm'] == 'git'
+ raw["scm"] == "git"
end
def has_wiki?
- raw['has_wiki']
+ raw["has_wiki"]
end
def visibility_level
- if raw['is_private']
+ if raw["is_private"]
Gitlab::VisibilityLevel::PRIVATE
else
Gitlab::VisibilityLevel::PUBLIC