tasks/pkg.rake in bindata-1.4.3 vs tasks/pkg.rake in bindata-1.4.4
- old
+ new
@@ -1,8 +1,8 @@
begin
require 'rubygems'
- require 'rake/gempackagetask'
+ require 'rubygems/package_task'
SPEC = Gem::Specification.new do |s|
s.name = 'bindata'
s.version = CURRENT_VERSION
s.platform = Gem::Platform::RUBY
@@ -14,11 +14,11 @@
s.require_path = 'lib'
s.has_rdoc = true
s.extra_rdoc_files = ['NEWS']
s.rdoc_options << '--main' << 'NEWS'
s.files = PKG_FILES
- s.add_development_dependency('rspec', [">= 1.3.0"])
+ s.add_development_dependency('rspec', [">= 2.10.0"])
s.add_development_dependency('haml')
s.add_development_dependency('maruku')
s.add_development_dependency('syntax')
s.description = <<-END.gsub(/^ +/, "")
BinData is a declarative way to read and write binary file formats.
@@ -28,10 +28,10 @@
format. It is an easier ( and more readable ) alternative to
ruby's #pack and #unpack methods.
END
end
- Rake::GemPackageTask.new(SPEC) do |pkg|
+ Gem::PackageTask.new(SPEC) do |pkg|
pkg.need_tar_gz = true
end
file "bindata.gemspec" => ["Rakefile", "lib/bindata.rb"] do |t|
require 'yaml'