Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-07-25 15:22:53 +0300
committerStan Hu <stanhu@gmail.com>2018-07-25 15:22:53 +0300
commit4160a8dd81ecb1d062b20de44720f280902e940b (patch)
tree758af12d4f04aa4a9c63bdff651cd361ce2a2ba2 /lib/bitbucket_server
parentff3291e56dfeebb35d7afdf7a4ec7b23c76cacc7 (diff)
Enable frozen_string_literal
Diffstat (limited to 'lib/bitbucket_server')
-rw-r--r--lib/bitbucket_server/client.rb2
-rw-r--r--lib/bitbucket_server/collection.rb2
-rw-r--r--lib/bitbucket_server/connection.rb4
-rw-r--r--lib/bitbucket_server/page.rb2
-rw-r--r--lib/bitbucket_server/paginator.rb2
-rw-r--r--lib/bitbucket_server/representation/activity.rb4
-rw-r--r--lib/bitbucket_server/representation/base.rb2
-rw-r--r--lib/bitbucket_server/representation/comment.rb2
-rw-r--r--lib/bitbucket_server/representation/pull_request.rb2
-rw-r--r--lib/bitbucket_server/representation/pull_request_comment.rb2
-rw-r--r--lib/bitbucket_server/representation/repo.rb2
11 files changed, 24 insertions, 2 deletions
diff --git a/lib/bitbucket_server/client.rb b/lib/bitbucket_server/client.rb
index bfa8301f643..85c9757339e 100644
--- a/lib/bitbucket_server/client.rb
+++ b/lib/bitbucket_server/client.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module BitbucketServer
class Client
attr_reader :connection
diff --git a/lib/bitbucket_server/collection.rb b/lib/bitbucket_server/collection.rb
index 1f199c99854..b50c5dde352 100644
--- a/lib/bitbucket_server/collection.rb
+++ b/lib/bitbucket_server/collection.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module BitbucketServer
class Collection < Enumerator
def initialize(paginator)
diff --git a/lib/bitbucket_server/connection.rb b/lib/bitbucket_server/connection.rb
index 3918944aa81..8a3775bd152 100644
--- a/lib/bitbucket_server/connection.rb
+++ b/lib/bitbucket_server/connection.rb
@@ -1,8 +1,10 @@
+# frozen_string_literal: true
+
module BitbucketServer
class Connection
include ActionView::Helpers::SanitizeHelper
- DEFAULT_API_VERSION = '1.0'.freeze
+ DEFAULT_API_VERSION = '1.0'
attr_reader :api_version, :base_uri, :username, :token
diff --git a/lib/bitbucket_server/page.rb b/lib/bitbucket_server/page.rb
index 17be8cbb860..a91ccad5738 100644
--- a/lib/bitbucket_server/page.rb
+++ b/lib/bitbucket_server/page.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module BitbucketServer
class Page
attr_reader :attrs, :items
diff --git a/lib/bitbucket_server/paginator.rb b/lib/bitbucket_server/paginator.rb
index a17045be97e..c351fb2f11f 100644
--- a/lib/bitbucket_server/paginator.rb
+++ b/lib/bitbucket_server/paginator.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module BitbucketServer
class Paginator
PAGE_LENGTH = 25
diff --git a/lib/bitbucket_server/representation/activity.rb b/lib/bitbucket_server/representation/activity.rb
index 7c552c7f428..8c2b0be559e 100644
--- a/lib/bitbucket_server/representation/activity.rb
+++ b/lib/bitbucket_server/representation/activity.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module BitbucketServer
module Representation
class Activity < Representation::Base
@@ -6,7 +8,7 @@ module BitbucketServer
end
def comment?
- action == 'COMMENTED'.freeze
+ action == 'COMMENTED'
end
def inline_comment?
diff --git a/lib/bitbucket_server/representation/base.rb b/lib/bitbucket_server/representation/base.rb
index 11b32b70c4c..0f3f2b60f5a 100644
--- a/lib/bitbucket_server/representation/base.rb
+++ b/lib/bitbucket_server/representation/base.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module BitbucketServer
module Representation
class Base
diff --git a/lib/bitbucket_server/representation/comment.rb b/lib/bitbucket_server/representation/comment.rb
index 44f76139fc4..8e442fb4e8e 100644
--- a/lib/bitbucket_server/representation/comment.rb
+++ b/lib/bitbucket_server/representation/comment.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module BitbucketServer
module Representation
# A general comment with the structure:
diff --git a/lib/bitbucket_server/representation/pull_request.rb b/lib/bitbucket_server/representation/pull_request.rb
index 344b6806a91..a39753fa7c8 100644
--- a/lib/bitbucket_server/representation/pull_request.rb
+++ b/lib/bitbucket_server/representation/pull_request.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module BitbucketServer
module Representation
class PullRequest < Representation::Base
diff --git a/lib/bitbucket_server/representation/pull_request_comment.rb b/lib/bitbucket_server/representation/pull_request_comment.rb
index c7d08e604fd..dea244bdec5 100644
--- a/lib/bitbucket_server/representation/pull_request_comment.rb
+++ b/lib/bitbucket_server/representation/pull_request_comment.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module BitbucketServer
module Representation
# An inline comment with the following structure that identifies
diff --git a/lib/bitbucket_server/representation/repo.rb b/lib/bitbucket_server/representation/repo.rb
index 1338f877fc1..ba90a15f11f 100644
--- a/lib/bitbucket_server/representation/repo.rb
+++ b/lib/bitbucket_server/representation/repo.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module BitbucketServer
module Representation
class Repo < Representation::Base