提交 0039c034 编写于 作者: J Jeremy Kemper

Avoid inadvertently loading an old tzinfo gem

上级 f0dd77c6
......@@ -11,11 +11,6 @@
rescue Gem::LoadError
end
begin
gem 'tzinfo', '~> 0.3.13'
rescue Gem::LoadError
end
begin
gem 'i18n', '~> 0.1.3'
rescue Gem::LoadError
......
begin
require 'tzinfo'
rescue LoadError
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), 'tzinfo-0.3.13', 'lib'))
retry
gem 'tzinfo', '~> 0.3.13'
rescue Gem::LoadError
$LOAD_PATH.unshift File.expand_path("#{File.dirname(__FILE__)}/tzinfo-0.3.13/lib")
end
require 'tzinfo'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册