Commit a57d22a7 authored by gfyoung's avatar gfyoung
Browse files

Enable frozen string in lib/api and lib/backup

Partially addresses #47424.

Had to make changes to spec files because
stubbing methods on frozen objects is a mess
in RSpec and leads to failures:

https://github.com/rspec/rspec-mocks/issues/1190
parent 21ade7092f2a
---
title: Enable frozen string in lib/api and lib/backup
merge_request:
author: gfyoung
type: performance
# frozen_string_literal: true
module API
class AccessRequests < Grape::API
include PaginationParams
......
# frozen_string_literal: true
module API
class API < Grape::API
include APIGuard
......
# frozen_string_literal: true
# Guard API with OAuth 2.0 Access Token
require 'rack/oauth2'
......
# frozen_string_literal: true
module API
# External applications API
class Applications < Grape::API
......
# frozen_string_literal: true
module API
class Avatar < Grape::API
resource :avatar do
......
# frozen_string_literal: true
module API
class AwardEmoji < Grape::API
include PaginationParams
......
# frozen_string_literal: true
module API
class Badges < Grape::API
include PaginationParams
......
# frozen_string_literal: true
module API
class Boards < Grape::API
include BoardsResponses
......
# frozen_string_literal: true
module API
module BoardsResponses
extend ActiveSupport::Concern
......
# frozen_string_literal: true
require 'mime/types'
module API
......
# frozen_string_literal: true
module API
class BroadcastMessages < Grape::API
include PaginationParams
......
# frozen_string_literal: true
module API
class CircuitBreakers < Grape::API
before { authenticated_as_admin! }
......
# frozen_string_literal: true
require 'mime/types'
module API
......
# frozen_string_literal: true
require 'mime/types'
module API
......
# frozen_string_literal: true
module API
module CustomAttributesEndpoints
extend ActiveSupport::Concern
......
# frozen_string_literal: true
module API
class DeployKeys < Grape::API
include PaginationParams
......
# frozen_string_literal: true
module API
# Deployments RESTful API endpoints
class Deployments < Grape::API
......
# frozen_string_literal: true
module API
class Discussions < Grape::API
include PaginationParams
......
# frozen_string_literal: true
module API
module Entities
class WikiPageBasic < Grape::Entity
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment