mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Repair time dependencies
This commit is contained in:
parent
74e1ff9dc2
commit
bc1538e995
8 changed files with 9 additions and 13 deletions
|
@ -1,7 +1,4 @@
|
|||
require 'active_support/inflector'
|
||||
require 'active_support/core_ext/time/conversions'
|
||||
require 'active_support/core_ext/date_time/conversions'
|
||||
require 'active_support/values/time_zone'
|
||||
|
||||
class Date
|
||||
DATE_FORMATS = {
|
||||
|
|
|
@ -6,7 +6,7 @@ require 'active_support/core_ext/module/delegation'
|
|||
require 'active_support/core_ext/object/instance_variables'
|
||||
require 'active_support/deprecation'
|
||||
|
||||
require 'active_support/time_with_zone'
|
||||
require 'active_support/time'
|
||||
|
||||
# Hack to load json gem first so we can overwrite its to_json.
|
||||
begin
|
||||
|
|
|
@ -29,3 +29,6 @@ require 'active_support/core_ext/date_time/acts_like'
|
|||
require 'active_support/core_ext/date_time/calculations'
|
||||
require 'active_support/core_ext/date_time/conversions'
|
||||
require 'active_support/core_ext/date_time/zones'
|
||||
|
||||
require 'active_support/core_ext/integer/time'
|
||||
require 'active_support/core_ext/numeric/time'
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
require 'active_support/duration'
|
||||
require 'active_support/values/time_zone'
|
||||
require 'active_support/core_ext/numeric/time'
|
||||
require 'active_support/core_ext/integer/time'
|
||||
require 'active_support/core_ext/time/conversions'
|
||||
require 'active_support/core_ext/date/conversions'
|
||||
require 'active_support/core_ext/date_time/conversions'
|
||||
|
||||
module ActiveSupport
|
||||
# A Time-like class that can represent a time in any time zone. Necessary because standard Ruby Time instances are
|
||||
# limited to UTC and the system's <tt>ENV['TZ']</tt> zone.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'abstract_unit'
|
||||
require 'active_support/time'
|
||||
require 'active_support/core_ext/range'
|
||||
require 'active_support/core_ext/date/conversions'
|
||||
|
||||
class RangeTest < Test::Unit::TestCase
|
||||
def test_to_s_from_dates
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# encoding: UTF-8
|
||||
require 'abstract_unit'
|
||||
require 'active_support/json'
|
||||
require 'active_support/time'
|
||||
require 'active_support/core_ext/kernel/reporting'
|
||||
|
||||
class TestJSONDecoding < ActiveSupport::TestCase
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
require 'abstract_unit'
|
||||
require 'active_support/time'
|
||||
|
||||
class MessageEncryptorTest < Test::Unit::TestCase
|
||||
def setup
|
||||
|
|
|
@ -7,6 +7,8 @@ rescue LoadError, NameError
|
|||
$stderr.puts "Skipping MessageVerifier test: broken OpenSSL install"
|
||||
else
|
||||
|
||||
require 'active_support/time'
|
||||
|
||||
class MessageVerifierTest < Test::Unit::TestCase
|
||||
def setup
|
||||
@verifier = ActiveSupport::MessageVerifier.new("Hey, I'm a secret!")
|
||||
|
|
Loading…
Reference in a new issue