Support frozen_string_literal in lib/**/*.rb (#26561).

Contributed by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17988 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-03-17 16:36:34 +00:00
parent bd5977d97e
commit 30e341db69
40 changed files with 99 additions and 98 deletions

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.dirname(__FILE__) + '/lib/acts_as_activity_provider'
ActiveRecord::Base.send(:include, Redmine::Acts::ActivityProvider)

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.dirname(__FILE__) + '/lib/acts_as_attachable'
ActiveRecord::Base.send(:include, Redmine::Acts::Attachable)

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.dirname(__FILE__) + '/lib/acts_as_customizable'
ActiveRecord::Base.send(:include, Redmine::Acts::Customizable)

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.dirname(__FILE__) + '/lib/acts_as_event'
ActiveRecord::Base.send(:include, Redmine::Acts::Event)

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.dirname(__FILE__) + '/lib/acts_as_searchable'
ActiveRecord::Base.send(:include, Redmine::Acts::Searchable)

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'rake'
require 'rake/testtask'

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module ActiveRecord
module Acts

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'test/unit'

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Include hook code here
require File.dirname(__FILE__) + '/lib/acts_as_watchable'

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# ActsAsWatchable
module Redmine

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'gravatar'
ActionView::Base.send :include, GravatarHelper::PublicMethods

View File

@@ -89,7 +89,7 @@ module OpenIdAuthentication
# dodge XRIs -- TODO: validate, don't just skip.
unless ['=', '@', '+', '$', '!', '('].include?(identifier.at(0))
# does it begin with http? if not, add it.
identifier = "http://#{identifier}" unless identifier =~ /^http/i
identifier = +"http://#{identifier}" unless identifier =~ /^http/i
# strip any fragments
identifier.gsub!(/\#(.*)$/, '')