Permalink
Browse files

Gemspec file defined, changes in Rakefile according to new gemspec

  • Loading branch information...
1 parent 51614df commit 114813bd42da5e9d2c3f8b2a9070c35891d2e377 @psla psla committed Dec 24, 2011
Showing with 26 additions and 26 deletions.
  1. +7 −26 Rakefile
  2. +19 −0 zoom.gemspec
View
@@ -1,12 +1,12 @@
-RUBY_ZOOM_VERSION = '0.4.1'
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/testtask'
-require 'rake/rdoctask'
+require 'rdoc/task'
require 'rake/packagetask'
-require 'rake/gempackagetask'
+require 'rubygems/package_task'
+require 'rubygems'
require 'mkmf'
CLEAN.include '**/*.o'
@@ -25,6 +25,10 @@ task :build => [:clean] do |t|
end
end
+task :package do
+ system('gem build zoom.gemspec')
+end
+
Rake::TestTask.new('test') do |t|
t.test_files = FileList['test/*_test.rb']
t.ruby_opts = ['-r test/unit', '-I ext', '-r zoom']
@@ -37,29 +41,6 @@ Rake::TestTask.new('live_test') do |t|
t.verbose = true
end
-spec = Gem::Specification.new do |s|
- s.name = 'zoom'
- s.version = RUBY_ZOOM_VERSION
- s.homepage = 'http://ruby-zoom.rubyforge.org'
- s.platform = Gem::Platform::RUBY
- s.author = [ "Laurent Sansonetti", "Ed Summers" ]
- s.summary = 'Ruby/ZOOM provides a Ruby binding to the Z40.50 Object-Orientation Model (ZOOM), an abstract object-oriented programming interface to a subset of the services specified by the Z39.50 standard, also known as the international standard ISO 23950. This version introduces ZOOM Extended Services.'
- s.autorequire = 'zoom'
- s.files =
- Dir.glob('ext/*.c') +
- Dir.glob('ext/*.h') +
- Dir.glob('ext/*.rb') +
- Dir.glob('test/**/*') +
- Dir.glob('sample/**/*') +
- ['README.md', 'ChangeLog', 'Rakefile']
- s.extensions = 'ext/extconf.rb'
-end
-
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.need_zip = true
- pkg.need_tar = true
-end
-
Rake::RDocTask.new do |rd|
rd.main = "README.md"
rd.rdoc_files.include("README.md", "ext/*.c")
View
@@ -0,0 +1,19 @@
+RUBY_ZOOM_VERSION = '0.4.1'
+
+Gem::Specification.new do |s|
+ s.name = 'zoom'
+ s.version = RUBY_ZOOM_VERSION
+ s.homepage = 'http://ruby-zoom.rubyforge.org'
+ s.platform = Gem::Platform::RUBY
+ s.author = [ "Laurent Sansonetti", "Ed Summers" ]
+ s.summary = 'Ruby/ZOOM provides a Ruby binding to the Z39.50 Object-Orientation Model (ZOOM), an abstract object-oriented programming interface to a subset of the services specified by the Z39.50 standard, also known as the international standard ISO 23950. This version introduces ZOOM Extended Services.'
+ s.autorequire = 'zoom'
+ s.files =
+ Dir.glob('ext/*.c') +
+ Dir.glob('ext/*.h') +
+ Dir.glob('ext/*.rb') +
+ Dir.glob('test/**/*') +
+ Dir.glob('sample/**/*') +
+ ['README.md', 'ChangeLog', 'Rakefile']
+ s.extensions = 'ext/extconf.rb'
+end

0 comments on commit 114813b

Please sign in to comment.