debian/0000755000000000000000000000000012253666146007201 5ustar debian/rules0000755000000000000000000000022712124702074010246 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby override_dh_installchangelogs: dh_installchangelogs CHANGELOG.rdoc -O--buildsystem=ruby debian/watch0000644000000000000000000000014712121002212010200 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/backports .*/backports-(.*).tar.gz debian/source/0000755000000000000000000000000012121101471010454 5ustar debian/source/format0000644000000000000000000000001412121002212011653 0ustar 3.0 (quilt) debian/gbp.conf0000644000000000000000000000003612121002212010563 0ustar [DEFAULT] pristine-tar = True debian/copyright0000644000000000000000000000275712121002212011113 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: backports Source: https://github.com/marcandre/backports Files: * Copyright: 2009 Marc-Andre Lafortune 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 AUTHORS OR COPYRIGHT HOLDERS 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. Files: debian/* Copyright: 2013 Jerémy Bobbio License: permissive Copying and distribution of this package, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. debian/control0000644000000000000000000000204412253666146010604 0ustar Source: ruby-backports Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Jérémy Bobbio Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), rake, ruby-activesupport Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-backports.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-backports.git;a=summary Homepage: https://github.com/marcandre/backports XS-Ruby-Versions: all Package: ruby-backports Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: backports of new features for older versions of Ruby This Ruby library contains essential backports that enable many of the nice features of Ruby 1.8.7 up to 2.0.0 for earlier versions. . Features are backported with the following limitations: - will not break older code, - can be implemented in pure Ruby (no C extensions), - must pass RubySpec. debian/patches/0000755000000000000000000000000012253666146010630 5ustar debian/patches/fix-collision-with-hash-function0000644000000000000000000000216612253666146017054 0ustar Description: Fix hash function collision It seems that the hash function defined in the tests sources, collides with the hash function provided by the library. Bug-Debian: http://bugs.debian.org/720249 Author: David Suárez Last-Update: 2013-12-04 --- ruby-backports-3.3.5.orig/test/_backport_guards_test.rb +++ ruby-backports-3.3.5/test/_backport_guards_test.rb @@ -35,14 +35,14 @@ class AAA_TestBackportGuards < Test::Uni EXCLUDE.map!(&:to_sym) if instance_methods.first.is_a?(Symbol) # For some very strange reason, Hash[kvp.flatten] doesn't always work in 1.8.6?? - def hash(key_value_pairs) + def own_hash(key_value_pairs) h = {} key_value_pairs.each{|k,v| h[k] = v} h end def class_signature(klass) - hash( + own_hash( (klass.instance_methods - EXCLUDE).map{|m| [m, klass.instance_method(m)] } + (klass.methods - EXCLUDE).map{|m| [".#{m}", klass.method(m) ]} ) @@ -62,7 +62,7 @@ class AAA_TestBackportGuards < Test::Uni end def digest - hash( + own_hash( CLASSES.map { |klass| [klass, class_signature(klass)] } ) end debian/patches/series0000644000000000000000000000004112253666146012040 0ustar fix-collision-with-hash-function debian/compat0000644000000000000000000000000212121002212010343 0ustar 7 debian/ruby-backports.docs0000644000000000000000000000001412121002212012761 0ustar README.rdoc debian/changelog0000644000000000000000000000075212253666146011057 0ustar ruby-backports (3.3.5-1) unstable; urgency=low * Team upload [ David Suárez ] * Fix collision with hash function (Closes: #720249) * Bump standards version to 3.9.5; no changes needed * Add build-depend on ruby-activesupport to run specs -- David Suárez Wed, 04 Dec 2013 20:31:42 +0100 ruby-backports (3.1.1-1) unstable; urgency=low * Initial release (Closes: #703075) -- Jérémy Bobbio Mon, 18 Mar 2013 16:44:22 +0100 debian/ruby-tests.rb0000644000000000000000000000012412121002212011610 0ustar require 'rake' app = Rake.application app.init app.load_rakefile app['test'].invoke