debian/0000755000000000000000000000000012051465315007170 5ustar debian/rules0000755000000000000000000000074512037354413010256 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 export DH_RUBY_IGNORE_TESTS=ruby1.8 # # 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/watch0000644000000000000000000000015312037241640010215 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/integration .*/integration-(.*).tar.gz debian/source/0000755000000000000000000000000012040016565010465 5ustar debian/source/format0000644000000000000000000000001412037241640011673 0ustar 3.0 (quilt) debian/ruby-tests.rake0000644000000000000000000000022312037351366012156 0ustar require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = './spec/**/*_spec.rb' end task :default => :spec debian/copyright0000644000000000000000000000507712037276355011144 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: integration Source: http://https://github.com/clbustos/integration Files: * Copyright: 2005 Ben Gimpert (Beng) 2011 Claudio Bustos License: MIT-X11 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. . Except as contained in this notice, the name of the Beng shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Beng. Files: debian/* Copyright: 2012 Cédric Boutillier License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000644000000000000000000000211612051264356010575 0ustar Source: ruby-integration Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-rspec, rake, ruby-gsl Standards-Version: 3.9.4 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-integration.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-integration.git;a=summary Homepage: http://github.com/clbustos/integration XS-Ruby-Versions: all Package: ruby-integration Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Recommends: ruby-gsl Description: Numerical integration for Ruby, with a simple interface This library offers numerical integration for Ruby, with a simple interface. The rectangular, trapezoidal, Simpson, adaptive quadrature, Monte Carlo and Romberg integration methods are available in pure Ruby. Better performance and support for infinite bounds can be obtained via Ruby/GSL (from the ruby-gsl package). debian/patches/0000755000000000000000000000000012061263161010613 5ustar debian/patches/add_has_gsl_condition_to_complex_integration_spec.patch0000644000000000000000000000245312040345737024013 0ustar Description: add test on has_gsl? before using GSL integration method This one was missing from the spec for complex intergration with GSL methods Author: Cédric Boutillier Bug: https://github.com/clbustos/integration/pull/1 Last-Update: 2012-10-17 --- a/spec/integration_spec.rb +++ b/spec/integration_spec.rb @@ -17,9 +17,13 @@ Integration.integrate(0,1,{:tolerance=>1e-12,:method=>:adaptive_quadrature},&normal_pdf).should be_within(1e-11).of(0.341344746068) end it "should return a correct value for a complex integration with gsl methods" do - normal_pdf=lambda {|x| (1/Math.sqrt(2*Math::PI))*Math.exp(-(x**2/2))} - Integration.integrate(0,1,{:tolerance=>1e-12,:method=>:qng},&normal_pdf).should be_within(1e-11).of(0.341344746068) - Integration.integrate(0,1,{:tolerance=>1e-12,:method=>:qag},&normal_pdf).should be_within(1e-11).of(0.341344746068) + if Integration.has_gsl? + normal_pdf=lambda {|x| (1/Math.sqrt(2*Math::PI))*Math.exp(-(x**2/2))} + Integration.integrate(0,1,{:tolerance=>1e-12,:method=>:qng},&normal_pdf).should be_within(1e-11).of(0.341344746068) + Integration.integrate(0,1,{:tolerance=>1e-12,:method=>:qag},&normal_pdf).should be_within(1e-11).of(0.341344746068) + else + pending("GSL not available") + end end debian/patches/series0000644000000000000000000000007012037451766012042 0ustar add_has_gsl_condition_to_complex_integration_spec.patch debian/compat0000644000000000000000000000000212037241637010371 0ustar 7 debian/changelog0000644000000000000000000000045612051212606011040 0ustar ruby-integration (0.1.0-1) unstable; urgency=low * Initial release (Closes: #690673) * Add add_has_gsl_condition_to_complex_integration_spec.patch: + a a condition on had_gsl? which was missing for one of the specs. -- Cédric Boutillier Tue, 16 Oct 2012 13:17:31 +0200