diff options
author | gfyoung <gfyoung17@gmail.com> | 2018-10-06 16:10:08 -0700 |
---|---|---|
committer | gfyoung <gfyoung17@gmail.com> | 2018-10-06 17:02:50 -0700 |
commit | d598e4fd937797a7f7778f5b4158ebf73139ce7f (patch) | |
tree | aaf16bddfbd7b9aeba06b15e893c474b4f125506 /lib/container_registry | |
parent | c3389c8006443e2b4d994eb15e60bd249fc4732f (diff) | |
download | gitlab-ce-d598e4fd937797a7f7778f5b4158ebf73139ce7f.tar.gz |
Enable more frozen string in lib/**/*.rb
Enables frozen for the following:
* lib/*.rb
* lib/banzai/**/*.rb
* lib/bitbucket/**/*.rb
* lib/constraints/**/*.rb
* lib/container_registry/**/*.rb
* lib/declarative_policy/**/*.rb
Partially addresses #47424.
Diffstat (limited to 'lib/container_registry')
-rw-r--r-- | lib/container_registry/blob.rb | 2 | ||||
-rw-r--r-- | lib/container_registry/client.rb | 2 | ||||
-rw-r--r-- | lib/container_registry/config.rb | 2 | ||||
-rw-r--r-- | lib/container_registry/path.rb | 2 | ||||
-rw-r--r-- | lib/container_registry/registry.rb | 2 | ||||
-rw-r--r-- | lib/container_registry/tag.rb | 2 |
6 files changed, 12 insertions, 0 deletions
diff --git a/lib/container_registry/blob.rb b/lib/container_registry/blob.rb index d5f85f9fcad..837b22c3082 100644 --- a/lib/container_registry/blob.rb +++ b/lib/container_registry/blob.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ContainerRegistry class Blob attr_reader :repository, :config diff --git a/lib/container_registry/client.rb b/lib/container_registry/client.rb index 010ca1ec27b..c80f49f5ae0 100644 --- a/lib/container_registry/client.rb +++ b/lib/container_registry/client.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'faraday' require 'faraday_middleware' diff --git a/lib/container_registry/config.rb b/lib/container_registry/config.rb index 589f9f4380a..740c0e13da0 100644 --- a/lib/container_registry/config.rb +++ b/lib/container_registry/config.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ContainerRegistry class Config attr_reader :tag, :blob, :data diff --git a/lib/container_registry/path.rb b/lib/container_registry/path.rb index 1ab14c1c155..9b2a61cdedc 100644 --- a/lib/container_registry/path.rb +++ b/lib/container_registry/path.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ContainerRegistry ## # Class responsible for extracting project and repository name from diff --git a/lib/container_registry/registry.rb b/lib/container_registry/registry.rb index f90d711474a..523364ac7c7 100644 --- a/lib/container_registry/registry.rb +++ b/lib/container_registry/registry.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ContainerRegistry class Registry attr_reader :uri, :client, :path diff --git a/lib/container_registry/tag.rb b/lib/container_registry/tag.rb index c785bca4dad..8633e764f90 100644 --- a/lib/container_registry/tag.rb +++ b/lib/container_registry/tag.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ContainerRegistry class Tag attr_reader :repository, :name |