Add `# frozen_string_literal: true` to all files

parent 44ebc737
...@@ -170,10 +170,6 @@ Layout/DotPosition: ...@@ -170,10 +170,6 @@ Layout/DotPosition:
### backward compatibility ### backward compatibility
# only with ruby >= 2.3
Style/FrozenStringLiteralComment:
Enabled: false
# only with ruby >= 2.4 # only with ruby >= 2.4
Performance/RegexpMatch: Performance/RegexpMatch:
Enabled: false Enabled: false
# frozen_string_literal: true
source "https://rubygems.org" source "https://rubygems.org"
gem "rails", "5.1.3" gem "rails", "5.1.3"
......
# frozen_string_literal: true
guard :rspec, cmd: "bin/spring rspec", all_on_start: false, all_after_pass: false do guard :rspec, cmd: "bin/spring rspec", all_on_start: false, all_after_pass: false do
watch(/^spec\/.+_spec\.rb$/) watch(/^spec\/.+_spec\.rb$/)
watch(/^lib\/(.+)\.rb$/) {|m| "spec/lib/#{m[1]}_spec.rb" } watch(/^lib\/(.+)\.rb$/) {|m| "spec/lib/#{m[1]}_spec.rb" }
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
module Admin module Admin
class AdminController < ApplicationController class AdminController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
......
# frozen_string_literal: true
module Admin module Admin
class PodsController < AdminController class PodsController < AdminController
respond_to :html, :json, :mobile respond_to :html, :json, :mobile
......
# frozen_string_literal: true
module Admin module Admin
class UsersController < AdminController class UsersController < AdminController
......
# frozen_string_literal: true
class AdminsController < Admin::AdminController class AdminsController < Admin::AdminController
include ApplicationHelper include ApplicationHelper
......
# frozen_string_literal: true
module Api module Api
module OpenidConnect module OpenidConnect
class AuthorizationsController < ApplicationController class AuthorizationsController < ApplicationController
......
# frozen_string_literal: true
module Api module Api
module OpenidConnect module OpenidConnect
class ClientsController < ApplicationController class ClientsController < ApplicationController
......
# frozen_string_literal: true
# Copyright (c) 2011 nov matake # Copyright (c) 2011 nov matake
# #
# Permission is hereby granted, free of charge, to any person obtaining # Permission is hereby granted, free of charge, to any person obtaining
......
# frozen_string_literal: true
# Copyright (c) 2011 nov matake # Copyright (c) 2011 nov matake
# #
# Permission is hereby granted, free of charge, to any person obtaining # Permission is hereby granted, free of charge, to any person obtaining
......
# frozen_string_literal: true
module Api module Api
module OpenidConnect module OpenidConnect
class TokenEndpointController < ApplicationController class TokenEndpointController < ApplicationController
......
# frozen_string_literal: true
module Api module Api
module OpenidConnect module OpenidConnect
class UserApplicationsController < ApplicationController class UserApplicationsController < ApplicationController
......
# frozen_string_literal: true
module Api module Api
module OpenidConnect module OpenidConnect
class UserInfoController < ApplicationController class UserInfoController < ApplicationController
......
# frozen_string_literal: true
module Api module Api
module V0 module V0
class BaseController < ApplicationController class BaseController < ApplicationController
......
# frozen_string_literal: true
# Copyright (c) 2010-2012, Diaspora Inc. This file is # Copyright (c) 2010-2012, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
class BlocksController < ApplicationController class BlocksController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
class ConversationsController < ApplicationController class ConversationsController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
respond_to :html, :mobile, :json, :js respond_to :html, :mobile, :json, :js
......
# frozen_string_literal: true
class HelpController < ApplicationController class HelpController < ApplicationController
end end
# frozen_string_literal: true
# Copyright (c) 2010-2012, Diaspora Inc. This file is # Copyright (c) 2010-2012, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
class InvitationCodesController < ApplicationController class InvitationCodesController < ApplicationController
before_action :ensure_valid_invite_code before_action :ensure_valid_invite_code
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
class NodeInfoController < ApplicationController class NodeInfoController < ApplicationController
def jrd def jrd
render json: NodeInfo.jrd(CGI.unescape(node_info_url("123.123").sub("123.123", "%{version}"))) render json: NodeInfo.jrd(CGI.unescape(node_info_url("123.123").sub("123.123", "%{version}")))
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
class ParticipationsController < ApplicationController class ParticipationsController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
class PollParticipationsController < ApplicationController class PollParticipationsController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
......
# frozen_string_literal: true
class ResharesController < ApplicationController class ResharesController < ApplicationController
before_action :authenticate_user!, except: :index before_action :authenticate_user!, except: :index
respond_to :json respond_to :json
......
# frozen_string_literal: true
class SearchController < ApplicationController class SearchController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
......
# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
...