diff options
author | gfyoung <gfyoung17@gmail.com> | 2018-08-03 10:15:25 +0300 |
---|---|---|
committer | gfyoung <gfyoung17@gmail.com> | 2018-08-03 11:44:16 +0300 |
commit | 388cb319d59e4c5e7cf5b3032d924afb57202fd0 (patch) | |
tree | 671b6ba52a90837f0b71fba9a16f8f8003b85989 /app/models/blob_viewer | |
parent | 5b663ddf4c0da4f8f2aa0a48809cda9757042e64 (diff) |
Enable frozen string for app/models/**/*.rb
Partially addresses #47424.
Diffstat (limited to 'app/models/blob_viewer')
38 files changed, 76 insertions, 0 deletions
diff --git a/app/models/blob_viewer/auxiliary.rb b/app/models/blob_viewer/auxiliary.rb index 1bea225f17c..263d51b4e36 100644 --- a/app/models/blob_viewer/auxiliary.rb +++ b/app/models/blob_viewer/auxiliary.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer module Auxiliary extend ActiveSupport::Concern diff --git a/app/models/blob_viewer/balsamiq.rb b/app/models/blob_viewer/balsamiq.rb index f982521db99..1af6c5474d7 100644 --- a/app/models/blob_viewer/balsamiq.rb +++ b/app/models/blob_viewer/balsamiq.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Balsamiq < Base include Rich diff --git a/app/models/blob_viewer/base.rb b/app/models/blob_viewer/base.rb index bf3453b3063..eaaf9af1330 100644 --- a/app/models/blob_viewer/base.rb +++ b/app/models/blob_viewer/base.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Base PARTIAL_PATH_PREFIX = 'projects/blob/viewers'.freeze diff --git a/app/models/blob_viewer/binary_stl.rb b/app/models/blob_viewer/binary_stl.rb index 80393471ef2..425f72decae 100644 --- a/app/models/blob_viewer/binary_stl.rb +++ b/app/models/blob_viewer/binary_stl.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class BinarySTL < Base include Rich diff --git a/app/models/blob_viewer/cartfile.rb b/app/models/blob_viewer/cartfile.rb index d8471bc33c0..ea0494033bf 100644 --- a/app/models/blob_viewer/cartfile.rb +++ b/app/models/blob_viewer/cartfile.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Cartfile < DependencyManager include Static diff --git a/app/models/blob_viewer/changelog.rb b/app/models/blob_viewer/changelog.rb index 0464ae27f71..8810bd25809 100644 --- a/app/models/blob_viewer/changelog.rb +++ b/app/models/blob_viewer/changelog.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Changelog < Base include Auxiliary diff --git a/app/models/blob_viewer/client_side.rb b/app/models/blob_viewer/client_side.rb index 079cfbe3616..f7efd4b8e50 100644 --- a/app/models/blob_viewer/client_side.rb +++ b/app/models/blob_viewer/client_side.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer module ClientSide extend ActiveSupport::Concern diff --git a/app/models/blob_viewer/composer_json.rb b/app/models/blob_viewer/composer_json.rb index def4879fbb5..9d1376de0cb 100644 --- a/app/models/blob_viewer/composer_json.rb +++ b/app/models/blob_viewer/composer_json.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class ComposerJson < DependencyManager include ServerSide diff --git a/app/models/blob_viewer/contributing.rb b/app/models/blob_viewer/contributing.rb index fbd1dd48697..fa224309e31 100644 --- a/app/models/blob_viewer/contributing.rb +++ b/app/models/blob_viewer/contributing.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Contributing < Base include Auxiliary diff --git a/app/models/blob_viewer/dependency_manager.rb b/app/models/blob_viewer/dependency_manager.rb index cc4950240af..711465c7c79 100644 --- a/app/models/blob_viewer/dependency_manager.rb +++ b/app/models/blob_viewer/dependency_manager.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class DependencyManager < Base include Auxiliary diff --git a/app/models/blob_viewer/download.rb b/app/models/blob_viewer/download.rb index 074e7204814..8228a83c2b1 100644 --- a/app/models/blob_viewer/download.rb +++ b/app/models/blob_viewer/download.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Download < Base include Simple diff --git a/app/models/blob_viewer/empty.rb b/app/models/blob_viewer/empty.rb index 2380578ed72..766be349d83 100644 --- a/app/models/blob_viewer/empty.rb +++ b/app/models/blob_viewer/empty.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Empty < Base include Simple diff --git a/app/models/blob_viewer/gemfile.rb b/app/models/blob_viewer/gemfile.rb index fae8c8df23f..77220cdbd08 100644 --- a/app/models/blob_viewer/gemfile.rb +++ b/app/models/blob_viewer/gemfile.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Gemfile < DependencyManager include Static diff --git a/app/models/blob_viewer/gemspec.rb b/app/models/blob_viewer/gemspec.rb index 7802edeb754..274859a7710 100644 --- a/app/models/blob_viewer/gemspec.rb +++ b/app/models/blob_viewer/gemspec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Gemspec < DependencyManager include ServerSide diff --git a/app/models/blob_viewer/gitlab_ci_yml.rb b/app/models/blob_viewer/gitlab_ci_yml.rb index 53bc247dec1..1a86f04b1b9 100644 --- a/app/models/blob_viewer/gitlab_ci_yml.rb +++ b/app/models/blob_viewer/gitlab_ci_yml.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class GitlabCiYml < Base include ServerSide diff --git a/app/models/blob_viewer/godeps_json.rb b/app/models/blob_viewer/godeps_json.rb index e19a602603b..743c759aea5 100644 --- a/app/models/blob_viewer/godeps_json.rb +++ b/app/models/blob_viewer/godeps_json.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class GodepsJson < DependencyManager include Static diff --git a/app/models/blob_viewer/image.rb b/app/models/blob_viewer/image.rb index c4eae5c79c2..56e27839fca 100644 --- a/app/models/blob_viewer/image.rb +++ b/app/models/blob_viewer/image.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Image < Base include Rich diff --git a/app/models/blob_viewer/license.rb b/app/models/blob_viewer/license.rb index 57355f2c3aa..3427227ad26 100644 --- a/app/models/blob_viewer/license.rb +++ b/app/models/blob_viewer/license.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class License < Base include Auxiliary diff --git a/app/models/blob_viewer/markup.rb b/app/models/blob_viewer/markup.rb index 33b59c4f512..f525180048e 100644 --- a/app/models/blob_viewer/markup.rb +++ b/app/models/blob_viewer/markup.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Markup < Base include Rich diff --git a/app/models/blob_viewer/notebook.rb b/app/models/blob_viewer/notebook.rb index e00b47e6c17..57d6d802db3 100644 --- a/app/models/blob_viewer/notebook.rb +++ b/app/models/blob_viewer/notebook.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Notebook < Base include Rich diff --git a/app/models/blob_viewer/package_json.rb b/app/models/blob_viewer/package_json.rb index 46cd2f04f4d..d12dd93ce2e 100644 --- a/app/models/blob_viewer/package_json.rb +++ b/app/models/blob_viewer/package_json.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class PackageJson < DependencyManager include ServerSide diff --git a/app/models/blob_viewer/pdf.rb b/app/models/blob_viewer/pdf.rb index 65805f5f388..2cf7752585c 100644 --- a/app/models/blob_viewer/pdf.rb +++ b/app/models/blob_viewer/pdf.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class PDF < Base include Rich diff --git a/app/models/blob_viewer/podfile.rb b/app/models/blob_viewer/podfile.rb index 507bc734cb4..73d714f48ca 100644 --- a/app/models/blob_viewer/podfile.rb +++ b/app/models/blob_viewer/podfile.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Podfile < DependencyManager include Static diff --git a/app/models/blob_viewer/podspec.rb b/app/models/blob_viewer/podspec.rb index a4c242db3a9..2303471583d 100644 --- a/app/models/blob_viewer/podspec.rb +++ b/app/models/blob_viewer/podspec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Podspec < DependencyManager include ServerSide diff --git a/app/models/blob_viewer/podspec_json.rb b/app/models/blob_viewer/podspec_json.rb index 602f4a51fd9..d3f6ae269da 100644 --- a/app/models/blob_viewer/podspec_json.rb +++ b/app/models/blob_viewer/podspec_json.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class PodspecJson < Podspec self.file_types = %i(podspec_json) diff --git a/app/models/blob_viewer/readme.rb b/app/models/blob_viewer/readme.rb index 4604a9934a0..f1a5c6a6acc 100644 --- a/app/models/blob_viewer/readme.rb +++ b/app/models/blob_viewer/readme.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Readme < Base include Auxiliary diff --git a/app/models/blob_viewer/requirements_txt.rb b/app/models/blob_viewer/requirements_txt.rb index 83ac55f61d0..58161e83493 100644 --- a/app/models/blob_viewer/requirements_txt.rb +++ b/app/models/blob_viewer/requirements_txt.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class RequirementsTxt < DependencyManager include Static diff --git a/app/models/blob_viewer/rich.rb b/app/models/blob_viewer/rich.rb index be373dbc948..0f66a672102 100644 --- a/app/models/blob_viewer/rich.rb +++ b/app/models/blob_viewer/rich.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer module Rich extend ActiveSupport::Concern diff --git a/app/models/blob_viewer/route_map.rb b/app/models/blob_viewer/route_map.rb index 153b4eeb2c9..6731536dfe1 100644 --- a/app/models/blob_viewer/route_map.rb +++ b/app/models/blob_viewer/route_map.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class RouteMap < Base include ServerSide diff --git a/app/models/blob_viewer/server_side.rb b/app/models/blob_viewer/server_side.rb index 86afcc86aa0..29501f50396 100644 --- a/app/models/blob_viewer/server_side.rb +++ b/app/models/blob_viewer/server_side.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer module ServerSide extend ActiveSupport::Concern diff --git a/app/models/blob_viewer/simple.rb b/app/models/blob_viewer/simple.rb index 454a20495fc..c176784df46 100644 --- a/app/models/blob_viewer/simple.rb +++ b/app/models/blob_viewer/simple.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer module Simple extend ActiveSupport::Concern diff --git a/app/models/blob_viewer/sketch.rb b/app/models/blob_viewer/sketch.rb index 818456778e1..659ab11f30b 100644 --- a/app/models/blob_viewer/sketch.rb +++ b/app/models/blob_viewer/sketch.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Sketch < Base include Rich diff --git a/app/models/blob_viewer/static.rb b/app/models/blob_viewer/static.rb index c9e257e5388..5cac08aa189 100644 --- a/app/models/blob_viewer/static.rb +++ b/app/models/blob_viewer/static.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer module Static extend ActiveSupport::Concern diff --git a/app/models/blob_viewer/svg.rb b/app/models/blob_viewer/svg.rb index b7e5cd71e6b..454c6a57568 100644 --- a/app/models/blob_viewer/svg.rb +++ b/app/models/blob_viewer/svg.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class SVG < Base include Rich diff --git a/app/models/blob_viewer/text.rb b/app/models/blob_viewer/text.rb index f68cbb7e212..e0c586a6680 100644 --- a/app/models/blob_viewer/text.rb +++ b/app/models/blob_viewer/text.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Text < Base include Simple diff --git a/app/models/blob_viewer/text_stl.rb b/app/models/blob_viewer/text_stl.rb index 8184dc0104c..fb6b26d2e44 100644 --- a/app/models/blob_viewer/text_stl.rb +++ b/app/models/blob_viewer/text_stl.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class TextSTL < BinarySTL self.binary = false diff --git a/app/models/blob_viewer/video.rb b/app/models/blob_viewer/video.rb index 057f9fe516f..48bb2a13518 100644 --- a/app/models/blob_viewer/video.rb +++ b/app/models/blob_viewer/video.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class Video < Base include Rich diff --git a/app/models/blob_viewer/yarn_lock.rb b/app/models/blob_viewer/yarn_lock.rb index 31588ddcbab..196d9f96f23 100644 --- a/app/models/blob_viewer/yarn_lock.rb +++ b/app/models/blob_viewer/yarn_lock.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BlobViewer class YarnLock < DependencyManager include Static |