diff -Nru ruby-aggregate-0.2.2/debian/changelog ruby-aggregate-0.2.3/debian/changelog --- ruby-aggregate-0.2.2/debian/changelog 2020-04-02 17:35:13.000000000 +0000 +++ ruby-aggregate-0.2.3/debian/changelog 2020-05-13 01:35:39.000000000 +0000 @@ -1,3 +1,12 @@ +ruby-aggregate (0.2.3-1) unstable; urgency=medium + + * New upstream version 0.2.3 + * Switch d/watch to point to g/h tarball + * Drop d/patches as they're merged upstream + * Bump dh-compat to 13 + + -- Utkarsh Gupta Wed, 13 May 2020 07:05:39 +0530 + ruby-aggregate (0.2.2-3) unstable; urgency=medium [ Cédric Boutillier ] diff -Nru ruby-aggregate-0.2.2/debian/control ruby-aggregate-0.2.3/debian/control --- ruby-aggregate-0.2.2/debian/control 2020-04-02 17:35:13.000000000 +0000 +++ ruby-aggregate-0.2.3/debian/control 2020-05-13 01:35:39.000000000 +0000 @@ -5,7 +5,7 @@ Section: ruby Testsuite: autopkgtest-pkg-ruby Priority: optional -Build-Depends: debhelper-compat (= 12), +Build-Depends: debhelper-compat (= 13), gem2deb Standards-Version: 4.5.0 Vcs-Browser: https://salsa.debian.org/ruby-team/ruby-aggregate diff -Nru ruby-aggregate-0.2.2/debian/patches/dont-use-relative.patch ruby-aggregate-0.2.3/debian/patches/dont-use-relative.patch --- ruby-aggregate-0.2.2/debian/patches/dont-use-relative.patch 2020-04-02 17:35:13.000000000 +0000 +++ ruby-aggregate-0.2.3/debian/patches/dont-use-relative.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -Description: Simply use require. -Author: Utkarsh Gupta -Forwarded: https://github.com/josephruscio/aggregate/pull/5 -Last-Update: 2020-04-02 - ---- a/test/ts_aggregate.rb -+++ b/test/ts_aggregate.rb -@@ -1,5 +1,5 @@ - require 'test/unit' --require 'lib/aggregate' -+require 'aggregate' - - class SimpleStatsTest < Test::Unit::TestCase - diff -Nru ruby-aggregate-0.2.2/debian/patches/series ruby-aggregate-0.2.3/debian/patches/series --- ruby-aggregate-0.2.2/debian/patches/series 2020-04-02 17:35:13.000000000 +0000 +++ ruby-aggregate-0.2.3/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -dont-use-relative.patch diff -Nru ruby-aggregate-0.2.2/debian/watch ruby-aggregate-0.2.3/debian/watch --- ruby-aggregate-0.2.2/debian/watch 2020-04-02 17:35:13.000000000 +0000 +++ ruby-aggregate-0.2.3/debian/watch 2020-05-13 01:35:12.000000000 +0000 @@ -1,2 +1,2 @@ -version=3 -http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/aggregate .*/aggregate-(.*).tar.gz +version=4 +https://github.com/josephruscio/aggregate/releases .*/v([\d\.]+).tar.gz diff -Nru ruby-aggregate-0.2.2/Gemfile ruby-aggregate-0.2.3/Gemfile --- ruby-aggregate-0.2.2/Gemfile 1970-01-01 00:00:00.000000000 +0000 +++ ruby-aggregate-0.2.3/Gemfile 2020-05-07 23:36:46.000000000 +0000 @@ -0,0 +1,4 @@ +source "https://rubygems.org" + +gem "rake" +gem "minitest" diff -Nru ruby-aggregate-0.2.2/.gitignore ruby-aggregate-0.2.3/.gitignore --- ruby-aggregate-0.2.2/.gitignore 1970-01-01 00:00:00.000000000 +0000 +++ ruby-aggregate-0.2.3/.gitignore 2020-05-07 23:36:46.000000000 +0000 @@ -0,0 +1,2 @@ +Gemfile.lock +pkg/ diff -Nru ruby-aggregate-0.2.2/metadata.yml ruby-aggregate-0.2.3/metadata.yml --- ruby-aggregate-0.2.2/metadata.yml 2012-02-18 14:05:25.000000000 +0000 +++ ruby-aggregate-0.2.3/metadata.yml 1970-01-01 00:00:00.000000000 +0000 @@ -1,74 +0,0 @@ ---- !ruby/object:Gem::Specification -name: aggregate -version: !ruby/object:Gem::Version - hash: 19 - prerelease: - segments: - - 0 - - 2 - - 2 - version: 0.2.2 -platform: ruby -authors: -- Joseph Ruscio -autorequire: -bindir: bin -cert_chain: [] - -date: 2011-03-05 00:00:00 -08:00 -default_executable: -dependencies: [] - -description: "Aggregate is a Ruby class for accumulating aggregate statistics and includes histogram support. For a detailed README see: http://github.com/josephruscio/aggregate" -email: joe@ruscio.org -executables: [] - -extensions: [] - -extra_rdoc_files: -- LICENSE -- README.textile -files: -- LICENSE -- README.textile -- Rakefile -- VERSION -- aggregate.gemspec -- lib/aggregate.rb -- test/ts_aggregate.rb -has_rdoc: true -homepage: http://github.com/josephruscio/aggregate -licenses: [] - -post_install_message: -rdoc_options: [] - -require_paths: -- lib -required_ruby_version: !ruby/object:Gem::Requirement - none: false - requirements: - - - ">=" - - !ruby/object:Gem::Version - hash: 3 - segments: - - 0 - version: "0" -required_rubygems_version: !ruby/object:Gem::Requirement - none: false - requirements: - - - ">=" - - !ruby/object:Gem::Version - hash: 3 - segments: - - 0 - version: "0" -requirements: [] - -rubyforge_project: -rubygems_version: 1.4.2 -signing_key: -specification_version: 3 -summary: Aggregate is a Ruby class for accumulating aggregate statistics and includes histogram support -test_files: -- test/ts_aggregate.rb diff -Nru ruby-aggregate-0.2.2/Rakefile ruby-aggregate-0.2.3/Rakefile --- ruby-aggregate-0.2.2/Rakefile 2012-02-18 14:05:25.000000000 +0000 +++ ruby-aggregate-0.2.3/Rakefile 2020-05-07 23:36:46.000000000 +0000 @@ -13,3 +13,13 @@ rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end + +require 'rake/testtask' + +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList['test/ts_*.rb'] + t.verbose = true +end + +task :default => :test diff -Nru ruby-aggregate-0.2.2/test/ts_aggregate.rb ruby-aggregate-0.2.3/test/ts_aggregate.rb --- ruby-aggregate-0.2.2/test/ts_aggregate.rb 2012-02-18 14:05:25.000000000 +0000 +++ ruby-aggregate-0.2.3/test/ts_aggregate.rb 2020-05-07 23:36:46.000000000 +0000 @@ -1,7 +1,7 @@ -require 'test/unit' -require 'lib/aggregate' +require 'minitest/autorun' +require 'aggregate' -class SimpleStatsTest < Test::Unit::TestCase +class SimpleStatsTest < MiniTest::Test def setup @stats = Aggregate.new @@ -50,7 +50,7 @@ total_bucket_sum = 0 @stats.each_nonzero do |bucket, count| assert bucket > prev_bucket - assert_not_equal count, 0 + refute_equal count, 0 total_bucket_sum += count end @@ -117,7 +117,7 @@ end end -class LinearHistogramTest < Test::Unit::TestCase +class LinearHistogramTest < MiniTest::Test def setup @stats = Aggregate.new(0, 32768, 1024) @@ -129,16 +129,16 @@ def test_validation # Range cannot be 0 - assert_raise(ArgumentError) {bad_stats = Aggregate.new(32,32,4)} + assert_raises(ArgumentError) {bad_stats = Aggregate.new(32,32,4)} # Range cannot be negative - assert_raise(ArgumentError) {bad_stats = Aggregate.new(32,16,4)} + assert_raises(ArgumentError) {bad_stats = Aggregate.new(32,16,4)} # Range cannot be < single bucket - assert_raise(ArgumentError) {bad_stats = Aggregate.new(16,32,17)} + assert_raises(ArgumentError) {bad_stats = Aggregate.new(16,32,17)} # Range % width must equal 0 (for now) - assert_raise(ArgumentError) {bad_stats = Aggregate.new(1,16384,1024)} + assert_raises(ArgumentError) {bad_stats = Aggregate.new(1,16384,1024)} end #XXX: Update test_bucket_contents() if you muck with @@DATA diff -Nru ruby-aggregate-0.2.2/.travis.yml ruby-aggregate-0.2.3/.travis.yml --- ruby-aggregate-0.2.2/.travis.yml 1970-01-01 00:00:00.000000000 +0000 +++ ruby-aggregate-0.2.3/.travis.yml 2020-05-07 23:36:46.000000000 +0000 @@ -0,0 +1,7 @@ +language: ruby +rvm: + - 1.9.3 + - 2.3 + - 2.5 + - 2.6 + - 2.7