debian/0000755000000000000000000000000012255660741007176 5ustar debian/ruby-zoom.examples0000644000000000000000000000001112133040223012647 0ustar sample/* debian/copyright0000644000000000000000000000160312133040223011107 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ruby-zoom Upstream-Contact: Laurent Sansonetti Source: http://rubyforge.org/projects/ruby-zoom/ Files: * Copyright: 2005, Laurent Sansonetti License: LGPL-2.1+ Files: debian/* Copyright: 2008-2009, Ryan Niebur 2012, Paul van Tilburg License: LGPL-2.1+ Files: src/rbzoompackage.c Copyright: 2007, Katipo Communications, Ltd License: LGPL-2.1+ License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . A copy of the LGPL-2.1 can be found at `/usr/share/common-licenses/LGPL-2.1' on any Debian system. debian/rules0000755000000000000000000000070112133040223010232 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby debian/source/0000755000000000000000000000000012133040223010454 5ustar debian/source/format0000644000000000000000000000001412133040223011662 0ustar 3.0 (quilt) debian/source/lintian-overrides0000644000000000000000000000022512133040223014034 0ustar ruby-zoom source: duplicate-short-description libzoom-ruby libzoom-ruby1.8 ruby-zoom source: duplicate-long-description libzoom-ruby libzoom-ruby1.8 debian/control0000644000000000000000000000246512255660741010610 0ustar Source: ruby-zoom Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Paul van Tilburg , Ryan Niebur , Deepak Tripathi Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), libyaz4-dev, rake, ruby-test-unit Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-zoom.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-zoom.git;a=summary Homepage: http://ruby-zoom.rubyforge.org XS-Ruby-Versions: all Package: ruby-zoom Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: Ruby/ZOOM provides a Ruby binding to the Z40.50 Object-Orientation Model 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. . Z39.50 is a client-server protocol for searching and retrieving information from remote computer databases. It is covered by ANSI/NISO standard Z39.50, and ISO standard 23950. The standard's maintenance agency is the Library of Congress. debian/watch0000644000000000000000000000013512133040223010204 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/zoom .*/zoom-(.*).tar.gz debian/ruby-tests.rake0000644000000000000000000000063212255660741012164 0ustar # -*- coding: UTF-8 -*- task :default => :test require 'rake/testtask' require 'rbconfig' Rake::TestTask.new do |t| # Test files other than package_test.rb require network access (to # z3950.loc.gov) (see bug #683153 — Thanks to Felix Geyer for the # report and solution!) t.test_files = FileList['test/package_test.rb'] t.ruby_opts << '-I src' << '-rzoom' << '-rtest/unit' t.verbose = true end debian/changelog0000644000000000000000000000561312255660741011055 0ustar ruby-zoom (0.4.1-6) unstable; urgency=low [ Cédric Boutillier ] * Team upload. * d/control: remove obsolete DM-Upload-Allowed flag * d/copyright: use canonical URI in Vcs-* fields [ Jonas Genannt ] * d/control - changed ruby1.8 to all on XS-Ruby-Versions - removed transitional packages - bumped standards version to 3.9.5 (no changes needed) * d/ruby-tests.rake: changed encoding to utf8 * added patch for Ruby1.9.1 / Ruby 2.0 -- Jonas Genannt Sun, 22 Dec 2013 21:37:01 +0100 ruby-zoom (0.4.1-5) unstable; urgency=low * Team upload * Disabled the execution of tests requiring network access (Closes: #683153) -- Gunnar Wolf Sun, 05 Aug 2012 13:48:53 -0500 ruby-zoom (0.4.1-4) unstable; urgency=low * Team upload. * Force build-depends on gem2deb 0.3.0 -- Vincent Fourmond Sun, 24 Jun 2012 00:38:55 +0200 ruby-zoom (0.4.1-3) unstable; urgency=low * Source packages adapted according to the new Ruby policy: - Build for ruby1.8 only; extension needs to be ported to ruby1.9.1. - Migrated to pkg-ruby-extras git repos. Changed the Vcs-* fields in debian/control accordingly. - Changed the depends and recommends to follow the new Ruby library naming scheme. * debian/control: - Added a default DM-Upload-Allowed field set to yes. - Standards-Version bumped to 3.9.3; no changes required. - Set XS-Ruby-Versions to ruby1.8. - Changed the build-depends for using gem2deb instead of ruby-pkg-tools. - Switched the maintainer with the uploaders field as per new convention the team is the default maintainer. - Added libzoom-ruby and libzoom-ruby1.8 as transitional packages. - Added build-depends on rake and ruby-test-unit for running the test suite. * debian/copyright: reworked to fit the Debian copyright format version 1.0. * debian/patches: added fix_assert_in_test.patch. * debian/ruby-tests.rake: derived test suite from Rakefile. * debian/ruby-zoom.docs: renamed from libzoom-ruby1.8.docs. * debian/ruby-zoom.examples: renamed from libzoom-ruby1.8.examples. * debian/source/lintian-overrides: added overrides for the descriptions of the transitional packages. -- Paul van Tilburg Tue, 29 May 2012 22:16:35 +0200 libzoom-ruby (0.4.1-2) unstable; urgency=low * Closes unresolved dependencies. (Closes: #583416) * debian/control - added libyaz4-dev as BD. - bumped standatd version to 3.8.4 (no changes). - added myself to uploaders. * debian/watch - updated with alioth gemwatch. * debian/ - removed repack.sh. - added source/format. -- Deepak Tripathi Mon, 31 May 2010 12:46:51 +0530 libzoom-ruby (0.4.1-1) unstable; urgency=low * Initial release (Closes: #525093) -- Ryan Niebur Tue, 21 Apr 2009 21:16:52 -0700 debian/compat0000644000000000000000000000000212133040223010352 0ustar 7 debian/ruby-zoom.docs0000644000000000000000000000000712133040223011766 0ustar README debian/patches/0000755000000000000000000000000012255660741010625 5ustar debian/patches/fix_assert_in_test.patch0000644000000000000000000000130512133040223015517 0ustar Description: Fix an error in a test script The test script in question fails using the new ruby-test-unit test suite as the first argument should always be a String, Proc or test object. Author: Paul van Tilburg Last-Update: 2012-05-29 --- a/test/package_test.rb +++ b/test/package_test.rb @@ -31,7 +31,7 @@ #option correlationInfo.note p = @connection.package assert(p.respond_to?('correlation_info_note')) - assert(true, p.respond_to?('correlation_info_note=')) + assert(p.respond_to?('correlation_info_note=')) assert_equal(true, p.respond_to?('set_correlation_info_note')) p.correlation_info_note = 'correlation_info_note value' debian/patches/series0000644000000000000000000000004712255660741012043 0ustar fix_assert_in_test.patch ruby191.patch debian/patches/ruby191.patch0000644000000000000000000000502312255660741013062 0ustar Description: ruby 1.9.1 / ruby 2.0 fixes Author: Brice Stacey Origin: https://github.com/bricestacey/ruby-zoom diff --git a/src/extconf.rb b/src/extconf.rb index 001c588..41fef4f 100644 --- a/src/extconf.rb +++ b/src/extconf.rb @@ -2,12 +2,12 @@ require 'mkmf' unless system('yaz-config') $stderr.puts 'yaz does not appear to be installed' - break + exit end unless have_header('yaz/zoom.h') $stderr.puts 'yaz zoom header not available' - break + exit end $CFLAGS << " #{`yaz-config --cflags`} " diff --git a/src/rbzoom.h b/src/rbzoom.h index 4dbf81c..8f47337 100644 --- a/src/rbzoom.h +++ b/src/rbzoom.h @@ -53,7 +53,7 @@ void rbz_connection_check(VALUE obj); /* useful macros */ #if !defined (RVAL2CSTR) -# define RVAL2CSTR(x) (NIL_P (x) ? NULL : STR2CSTR(x)) +# define RVAL2CSTR(x) (NIL_P (x) ? NULL : RSTRING_PTR(x)) #endif #if !defined (CSTR2RVAL) # define CSTR2RVAL(x) (x == NULL ? Qnil : rb_str_new2(x)) diff --git a/src/rbzoomconnection.c b/src/rbzoomconnection.c index 1b85915..2049bbc 100644 --- a/src/rbzoomconnection.c +++ b/src/rbzoomconnection.c @@ -285,7 +285,7 @@ rbz_connection_package(VALUE self) { ZOOM_connection connection; ZOOM_options options; - ZOOM_package package; + VALUE package; connection = rbz_connection_get (self); options = ZOOM_options_create (); diff --git a/src/rbzoomoptions.c b/src/rbzoomoptions.c index 2a9b278..ec9fcf1 100644 --- a/src/rbzoomoptions.c +++ b/src/rbzoomoptions.c @@ -32,10 +32,10 @@ ruby_hash_to_zoom_options (VALUE hash) options = ZOOM_options_create (); ary = rb_funcall (hash, rb_intern ("to_a"), 0); - for (i = 0; i < RARRAY (ary)->len; i++) { - pair = RARRAY (ary)->ptr[i]; - key = RARRAY (pair)->ptr[0]; - value = RARRAY (pair)->ptr[1]; + for (i = 0; i < RARRAY_LEN(ary); i++) { + pair = RARRAY_PTR(ary)[i]; + key = RARRAY_PTR(pair)[0]; + value = RARRAY_PTR(pair)[1]; switch (TYPE (value)) { case T_TRUE: @@ -68,7 +68,7 @@ ruby_hash_to_zoom_options (VALUE hash) VALUE zoom_option_value_to_ruby_value (const char *value) { - int i; + unsigned int i; if (value == NULL) return Qnil; @@ -86,8 +86,8 @@ define_zoom_option (VALUE klass, const char *option) char code [1024]; char rubyname [128]; char c; - int i; - int j; + unsigned int i; + unsigned int j; /* rubyfy the option name */ for (i = 0, j = 0; i < strlen (option) && j < sizeof rubyname; i++, j++) {