Skip to content
Snippets Groups Projects
Commit 3836d691 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 227cc997
No related branches found
No related tags found
No related merge requests found
Showing
with 43 additions and 0 deletions
---
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
Loading
Loading
# frozen_string_literal: true
module API
class API < Grape::API
include APIGuard
Loading
Loading
# frozen_string_literal: true
# Guard API with OAuth 2.0 Access Token
 
require 'rack/oauth2'
Loading
Loading
# frozen_string_literal: true
module API
# External applications API
class Applications < Grape::API
Loading
Loading
# frozen_string_literal: true
module API
class Avatar < Grape::API
resource :avatar do
Loading
Loading
# frozen_string_literal: true
module API
class AwardEmoji < Grape::API
include PaginationParams
Loading
Loading
# frozen_string_literal: true
module API
class Badges < Grape::API
include PaginationParams
Loading
Loading
# frozen_string_literal: true
module API
class Boards < Grape::API
include BoardsResponses
Loading
Loading
# frozen_string_literal: true
module API
module BoardsResponses
extend ActiveSupport::Concern
Loading
Loading
# frozen_string_literal: true
require 'mime/types'
 
module API
Loading
Loading
# frozen_string_literal: true
module API
class BroadcastMessages < Grape::API
include PaginationParams
Loading
Loading
# frozen_string_literal: true
module API
class CircuitBreakers < Grape::API
before { authenticated_as_admin! }
Loading
Loading
# frozen_string_literal: true
require 'mime/types'
 
module API
Loading
Loading
# frozen_string_literal: true
require 'mime/types'
 
module API
Loading
Loading
# frozen_string_literal: true
module API
module CustomAttributesEndpoints
extend ActiveSupport::Concern
Loading
Loading
# frozen_string_literal: true
module API
class DeployKeys < Grape::API
include PaginationParams
Loading
Loading
# frozen_string_literal: true
module API
# Deployments RESTful API endpoints
class Deployments < Grape::API
Loading
Loading
# frozen_string_literal: true
module API
class Discussions < Grape::API
include PaginationParams
Loading
Loading
# frozen_string_literal: true
module API
module Entities
class WikiPageBasic < Grape::Entity
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