Skip to content
Snippets Groups Projects
Commit ddca49e4 authored by gfyoung's avatar gfyoung
Browse files

Enable frozen string in apps/uploaders/*.rb

Partially addresses #47424.
parent 05af3768
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Showing
with 40 additions and 0 deletions
# frozen_string_literal: true
class AccessTokenValidationService
# Results:
VALID = :valid
Loading
Loading
# frozen_string_literal: true
##
# Branch can be deleted either by DeleteBranchService
# or by GitPushService.
Loading
Loading
# frozen_string_literal: true
class AkismetService
attr_accessor :owner, :text, :options
 
Loading
Loading
# frozen_string_literal: true
class AuditEventService
def initialize(author, entity, details = {})
@author, @entity, @details = author, entity, details
Loading
Loading
# frozen_string_literal: true
# Base class for services that count a single resource such as the number of
# issues for a project.
class BaseCountService
Loading
Loading
# frozen_string_literal: true
class BaseRenderer
attr_reader :current_user
 
Loading
Loading
# frozen_string_literal: true
class BaseService
include Gitlab::Allowable
 
Loading
Loading
# frozen_string_literal: true
class CohortsService
MONTHS_INCLUDED = 12
 
Loading
Loading
# frozen_string_literal: true
require 'securerandom'
 
# Compare 2 refs for one repo or between repositories
Loading
Loading
# frozen_string_literal: true
class CreateBranchService < BaseService
def execute(branch_name, ref)
create_master_branch if project.empty_repo?
Loading
Loading
# frozen_string_literal: true
class CreateDeploymentService
attr_reader :job
 
Loading
Loading
# frozen_string_literal: true
class CreateReleaseService < BaseService
def execute(tag_name, release_description)
repository = project.repository
Loading
Loading
# frozen_string_literal: true
class CreateSnippetService < BaseService
include SpamCheckService
 
Loading
Loading
# frozen_string_literal: true
class DeleteBranchService < BaseService
def execute(branch_name)
repository = project.repository
Loading
Loading
# frozen_string_literal: true
class DeleteMergedBranchesService < BaseService
def async_execute
DeleteMergedBranchesWorker.perform_async(project.id, current_user.id)
Loading
Loading
# frozen_string_literal: true
# EventCreateService class
#
# Used for creating events feed on dashboard after certain user action
Loading
Loading
# frozen_string_literal: true
class GitPushService < BaseService
attr_accessor :push_data, :push_commits
include Gitlab::Access
Loading
Loading
# frozen_string_literal: true
class GitTagPushService < BaseService
attr_accessor :push_data
 
Loading
Loading
# frozen_string_literal: true
class GravatarService
def execute(email, size = nil, scale = 2, username: nil)
return unless Gitlab::CurrentSettings.gravatar_enabled?
Loading
Loading
# frozen_string_literal: true
class HamService
attr_accessor :spam_log
 
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