Skip to content
Snippets Groups Projects
Commit fd577b86 authored by Nick Thomas's avatar Nick Thomas
Browse files

Merge branch 'frozen_string_lib_2' into 'master'

Add frozen_string_literal to lib part 2

See merge request gitlab-org/gitlab-ce!32094
parents 1037935c a50703f1
No related branches found
No related tags found
No related merge requests found
Showing
with 39 additions and 2 deletions
Loading
Loading
@@ -97,7 +97,7 @@ module Gitlab
attr_reader :load_times_by_model, :private_token
 
def debug(message, *)
message.gsub!(private_token, FILTERED_STRING) if private_token
message = message.gsub(private_token, FILTERED_STRING) if private_token
 
_, type, time = *message.match(/(\w+) Load \(([0-9.]+)ms\)/)
 
Loading
Loading
Loading
Loading
@@ -17,8 +17,9 @@ module Gitlab
return unless content
 
all_names.each do |a_name|
content.gsub!(%r{/#{a_name} ?(.*)$}i, execute_block(action_block, context, '\1'))
content = content.gsub(%r{/#{a_name} ?(.*)$}i, execute_block(action_block, context, '\1'))
end
content
end
end
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::LegacyGithubImport::ReleaseFormatter do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::LegacyGithubImport::UserFormatter do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::LegacyGithubImport::WikiFormatter do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::LoopHelpers do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::ManifestImport::Manifest do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::ManifestImport::ProjectCreator do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::MarkupHelper do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::Metrics::BackgroundTransaction do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::Metrics::Delta do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::Metrics::Instrumentation do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::Metrics::MethodCall do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::Metrics::Methods do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::Metrics::Metric do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::Metrics::Prometheus, :prometheus do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::Metrics::RackMiddleware do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::Metrics::RequestsRackMiddleware do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::Metrics::Samplers::InfluxSampler do
Loading
Loading
# frozen_string_literal: true
require 'spec_helper'
 
describe Gitlab::Metrics::Samplers::RubySampler do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment