diff options
-rw-r--r-- | lib/bitbucket_server/client.rb | 2 | ||||
-rw-r--r-- | lib/bitbucket_server/collection.rb | 2 | ||||
-rw-r--r-- | lib/bitbucket_server/connection.rb | 4 | ||||
-rw-r--r-- | lib/bitbucket_server/page.rb | 2 | ||||
-rw-r--r-- | lib/bitbucket_server/paginator.rb | 2 | ||||
-rw-r--r-- | lib/bitbucket_server/representation/activity.rb | 4 | ||||
-rw-r--r-- | lib/bitbucket_server/representation/base.rb | 2 | ||||
-rw-r--r-- | lib/bitbucket_server/representation/comment.rb | 2 | ||||
-rw-r--r-- | lib/bitbucket_server/representation/pull_request.rb | 2 | ||||
-rw-r--r-- | lib/bitbucket_server/representation/pull_request_comment.rb | 2 | ||||
-rw-r--r-- | lib/bitbucket_server/representation/repo.rb | 2 |
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 |