From 72950568dde05bfe8a69ce4bbf6338fdebf3062f Mon Sep 17 00:00:00 2001 From: Kir Shatrov Date: Sun, 9 Jul 2017 15:06:36 +0300 Subject: Use frozen-string-literal in ActiveSupport --- activesupport/lib/active_support/core_ext/time/acts_like.rb | 1 + activesupport/lib/active_support/core_ext/time/calculations.rb | 1 + activesupport/lib/active_support/core_ext/time/compatibility.rb | 1 + activesupport/lib/active_support/core_ext/time/conversions.rb | 1 + activesupport/lib/active_support/core_ext/time/zones.rb | 1 + 5 files changed, 5 insertions(+) (limited to 'activesupport/lib/active_support/core_ext/time') diff --git a/activesupport/lib/active_support/core_ext/time/acts_like.rb b/activesupport/lib/active_support/core_ext/time/acts_like.rb index 08756a2dae..776456506c 100644 --- a/activesupport/lib/active_support/core_ext/time/acts_like.rb +++ b/activesupport/lib/active_support/core_ext/time/acts_like.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../object/acts_like" class Time diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb index 9ba6bf8fa1..4cfb702674 100644 --- a/activesupport/lib/active_support/core_ext/time/calculations.rb +++ b/activesupport/lib/active_support/core_ext/time/calculations.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../../duration" require_relative "conversions" require_relative "../../time_with_zone" diff --git a/activesupport/lib/active_support/core_ext/time/compatibility.rb b/activesupport/lib/active_support/core_ext/time/compatibility.rb index a554e71b74..ce69e5f478 100644 --- a/activesupport/lib/active_support/core_ext/time/compatibility.rb +++ b/activesupport/lib/active_support/core_ext/time/compatibility.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../date_and_time/compatibility" require_relative "../module/remove_method" diff --git a/activesupport/lib/active_support/core_ext/time/conversions.rb b/activesupport/lib/active_support/core_ext/time/conversions.rb index 0dbce99ccb..5cb0f9c980 100644 --- a/activesupport/lib/active_support/core_ext/time/conversions.rb +++ b/activesupport/lib/active_support/core_ext/time/conversions.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../../inflector/methods" require_relative "../../values/time_zone" diff --git a/activesupport/lib/active_support/core_ext/time/zones.rb b/activesupport/lib/active_support/core_ext/time/zones.rb index ba8b5b73f8..3794eab3f5 100644 --- a/activesupport/lib/active_support/core_ext/time/zones.rb +++ b/activesupport/lib/active_support/core_ext/time/zones.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../../time_with_zone" require_relative "acts_like" require_relative "../date_and_time/zones" -- cgit v1.2.3