Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Build on current ruby & rake #1

Merged
merged 3 commits into from

2 participants

@psla

I got "authors may not be empty" while "raking" the ruby-zoom.
Adding following line fixed the problem, although, I didn't put all authors (just maintainers) to authors list.

@bricestacey bricestacey merged commit 9a37870 into bricestacey:master
@bricestacey
Owner

Thanks for the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 23, 2011
  1. @psla
Commits on Dec 24, 2011
  1. @psla
  2. @psla

    Update README.md

    psla authored
This page is out of date. Refresh to see the latest.
Showing with 35 additions and 34 deletions.
  1. +9 −9 README.md
  2. +7 −25 Rakefile
  3. +19 −0 zoom.gemspec
View
18 README.md
@@ -23,21 +23,21 @@ Requirements
script before building YAZ. Ruby/ZOOM requires a YAZ shared library
and YAZ does not build it by default.
-Install
--------
-
- 0. install Ruby
- 1. install YAZ
- 2. gem install ruby-zoom
-
Build from Source
------------------
+-------
- 0. checkout out code from svn at rubyforge
+ 0. checkout out code from git at github
1. install Rake
2. rake
3. gem install pkg/zoom-*.gem
+Build from Source using bundler
+-----------------
+
+ 0. add to your Gemfile:
+ gem 'zoom', :git => 'https://github.com/bricestacey/ruby-zoom.git'
+ 1. bundle
+
Samples
-------
View
32 Rakefile
@@ -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,28 +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.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
19 zoom.gemspec
@@ -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
Something went wrong with that request. Please try again.