Группа :: Разработка/Ruby
Пакет: ruby-tzinfo
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: tzinfo-0.3.13-alt1.patch
Скачать
Скачать
Rakefile | 25 -------------------------
lib/tzinfo.rb | 7 +------
2 files changed, 1 insertions(+), 31 deletions(-)
diff --git a/Rakefile b/Rakefile
index 79805b1..de50a80 100755
--- a/Rakefile
+++ b/Rakefile
@@ -13,7 +13,6 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
-require 'rake/gempackagetask'
require 'fileutils'
PKG_VERSION = "0.3.13"
@@ -32,30 +31,6 @@ RDOC_EXTRA_FILES = %w[README CHANGES]
BUILD_TZ_CLASSES_DIR = 'lib/tzinfo.build_tz_classes'
-SPEC = Gem::Specification.new do |s|
- s.name = "tzinfo"
- s.version = PKG_VERSION
- s.author = "Philip Ross"
- s.email = "phil.ross@gmail.com"
- s.homepage = "http://tzinfo.rubyforge.org/"
- s.platform = Gem::Platform::RUBY
- s.summary = "Daylight-savings aware timezone library"
- s.files = PKG_FILES.delete_if do |item|
- item.include?(".svn")
- end
- s.require_path = "lib"
- s.has_rdoc = true
- s.extra_rdoc_files = RDOC_EXTRA_FILES
- s.rdoc_options = RDOC_OPTIONS
- s.rubyforge_project = "tzinfo"
-end
-
-Rake::GemPackageTask.new(SPEC) do |pkg|
- pkg.need_zip = true
- pkg.need_tar_gz = true
-end
-
-
Rake::TestTask.new('test') do |t|
# Force a particular timezone to be local (helps find issues when local
# timezone isn't GMT). This won't work on Windows.
diff --git a/lib/tzinfo.rb b/lib/tzinfo.rb
index 581d538..585898d 100755
--- a/lib/tzinfo.rb
+++ b/lib/tzinfo.rb
@@ -20,14 +20,9 @@
# THE SOFTWARE.
#++
-# Add the directory containing this file to the start of the load path if it
-# isn't there already.
-$:.unshift(File.dirname(__FILE__)) unless
- $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
-
require 'tzinfo/timezone'
require 'tzinfo/country'
require 'tzinfo/tzdataparser'
require 'tzinfo/timezone_proxy'
require 'tzinfo/data_timezone'
-require 'tzinfo/linked_timezone'
\ No newline at end of file
+require 'tzinfo/linked_timezone'