Hello community, here is the log from the commit of package rubygem-raindrops for openSUSE:Factory checked in at 2020-03-07 21:39:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-raindrops (Old) and /work/SRC/openSUSE:Factory/.rubygem-raindrops.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-raindrops" Sat Mar 7 21:39:36 2020 rev:4 rq:773840 version:0.19.1 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-raindrops/rubygem-raindrops.changes 2017-09-13 22:36:03.919205396 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-raindrops.new.26092/rubygem-raindrops.changes 2020-03-07 21:39:38.720329142 +0100 @@ -1,0 +2,20 @@ +Mon Feb 10 15:30:45 UTC 2020 - Stephan Kulow <co...@suse.com> + +- updated to version 0.19.1 + see installed NEWS + + === raindrops 0.19.1 / 2020-01-08 09:31 UTC + + This release fixes some warnings on newer Rubies. + + We're no longer on bogomips.org since it's due + for expiry and I can't pay extortionists for a .org, so + s/bogomips.org/yhbt.net/ for now, and be prepared to move again + when extortionists move onto extorting the .net TLD. + + doc: switch homepage to dark216 + ext/raindrops/extconf: fix cflags reset on ancient CC + fixes for newer rubies + replace bogomips.org with yhbt.net + +------------------------------------------------------------------- Old: ---- raindrops-0.19.0.gem New: ---- raindrops-0.19.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-raindrops.spec ++++++ --- /var/tmp/diff_new_pack.Y73ZjI/_old 2020-03-07 21:39:39.268329512 +0100 +++ /var/tmp/diff_new_pack.Y73ZjI/_new 2020-03-07 21:39:39.272329515 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-raindrops # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,7 +24,7 @@ # Name: rubygem-raindrops -Version: 0.19.0 +Version: 0.19.1 Release: 0 %define mod_name raindrops %define mod_full_name %{mod_name}-%{version} @@ -32,12 +32,12 @@ BuildRequires: %{rubydevel >= 1.9.3} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 -Url: https://bogomips.org/raindrops/ +URL: https://yhbt.net/raindrops/ Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: rubygem-raindrops-rpmlintrc Source2: gem2rpm.yml Summary: real-time stats for preforking Rack servers -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: Development/Languages/Ruby %description ++++++ raindrops-0.19.0.gem -> raindrops-0.19.1.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.olddoc.yml new/.olddoc.yml --- old/.olddoc.yml 2017-08-10 01:53:31.000000000 +0200 +++ new/.olddoc.yml 2020-01-08 10:31:44.000000000 +0100 @@ -1,14 +1,13 @@ --- -cgit_url: https://bogomips.org/raindrops.git -git_url: git://bogomips.org/raindrops.git -rdoc_url: https://bogomips.org/raindrops/ -public_email: raindrops-pub...@bogomips.org +cgit_url: https://yhbt.net/raindrops.git/ +rdoc_url: https://yhbt.net/raindrops/ +public_email: raindrops-pub...@yhbt.net ml_url: -- https://bogomips.org/raindrops-public/ +- https://yhbt.net/raindrops-public/ - http://ou63pmih66umazou.onion/raindrops-public nntp_url: - nntp://news.public-inbox.org/inbox.comp.lang.ruby.raindrops - nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.raindrops source_code: -- git clone git://bogomips.org/raindrops.git -- git clone https://bogomips.org/raindrops.git +- git clone https://yhbt.net/raindrops.git +- torsocks git clone http://ou63pmih66umazou.onion/raindrops.git diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GIT-VERSION-FILE new/GIT-VERSION-FILE --- old/GIT-VERSION-FILE 2017-08-10 01:53:31.000000000 +0200 +++ new/GIT-VERSION-FILE 2020-01-08 10:31:44.000000000 +0100 @@ -1 +1 @@ -GIT_VERSION = 0.19.0 +GIT_VERSION = 0.19.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GIT-VERSION-GEN new/GIT-VERSION-GEN --- old/GIT-VERSION-GEN 2017-08-10 01:53:31.000000000 +0200 +++ new/GIT-VERSION-GEN 2020-01-08 10:31:44.000000000 +0100 @@ -1,7 +1,7 @@ #!/bin/sh GVF=GIT-VERSION-FILE -DEF_VER=v0.19.0 +DEF_VER=v0.19.1 LF=' ' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GNUmakefile new/GNUmakefile --- old/GNUmakefile 2017-08-10 01:53:31.000000000 +0200 +++ new/GNUmakefile 2020-01-08 10:31:44.000000000 +0100 @@ -1,4 +1,4 @@ all:: -RSYNC_DEST := bogomips.org:/srv/bogomips/raindrops +RSYNC_DEST := yhbt.net:/srv/yhbt/raindrops rfpackage := raindrops include pkg.mk diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LATEST new/LATEST --- old/LATEST 2017-08-10 01:53:31.000000000 +0200 +++ new/LATEST 2020-01-08 10:31:44.000000000 +0100 @@ -1,19 +1,14 @@ -=== raindrops 0.19.0 - Rack 2.x middleware compatibility / 2017-08-09 23:52 UTC +=== raindrops 0.19.1 / 2020-01-08 09:31 UTC - This release fixes Rack 2.x compatibility for the few users of - Raindrops::Middleware - <https://bogomips.org/raindrops/Raindrops/Middleware.html>. - Thanks to Dmytro Shteflyuk for this release. + This release fixes some warnings on newer Rubies. - No need to upgrade unless you use Raindrops::Middleware with - Rack 2.x. - - There's also a few minor, inconsequential cleanups. - - Dmytro Shteflyuk (1): - Properly override respond_to? in Raindrops::Middleware::Proxy - - Eric Wong (2): - Ruby thread compatibility updates - tcp_info: remove unnecessary extconf.h include + We're no longer on bogomips.org since it's due + for expiry and I can't pay extortionists for a .org, so + s/bogomips.org/yhbt.net/ for now, and be prepared to move again + when extortionists move onto extorting the .net TLD. + + doc: switch homepage to dark216 + ext/raindrops/extconf: fix cflags reset on ancient CC + fixes for newer rubies + replace bogomips.org with yhbt.net diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/NEWS new/NEWS --- old/NEWS 2017-08-10 01:53:31.000000000 +0200 +++ new/NEWS 2020-01-08 10:31:44.000000000 +0100 @@ -1,3 +1,17 @@ +=== raindrops 0.19.1 / 2020-01-08 09:31 UTC + + This release fixes some warnings on newer Rubies. + + We're no longer on bogomips.org since it's due + for expiry and I can't pay extortionists for a .org, so + s/bogomips.org/yhbt.net/ for now, and be prepared to move again + when extortionists move onto extorting the .net TLD. + + doc: switch homepage to dark216 + ext/raindrops/extconf: fix cflags reset on ancient CC + fixes for newer rubies + replace bogomips.org with yhbt.net + === raindrops 0.19.0 - Rack 2.x middleware compatibility / 2017-08-09 23:52 UTC This release fixes Rack 2.x compatibility for the few users of diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README new/README --- old/README 2017-08-10 01:53:31.000000000 +0200 +++ new/README 2020-01-08 10:31:44.000000000 +0100 @@ -59,20 +59,20 @@ See Raindrops::Middleware and Raindrops::LastDataRecv documentation for use Rack servers. The entire library is fully-documented and we are responsive on the publically archived mailing list -(mailto:raindrops-pub...@bogomips.org) if +(mailto:raindrops-pub...@yhbt.net) if you have any questions or comments. == Development You can get the latest source via git from the following locations: - git://bogomips.org/raindrops.git + git://yhbt.net/raindrops.git git://repo.or.cz/raindrops.git (mirror) You may browse the code from the web and download the latest snapshot tarballs here: -* https://bogomips.org/raindrops.git +* https://yhbt.net/raindrops.git * http://repo.or.cz/w/raindrops.git (gitweb) Inline patches (from "git format-patch") to the mailing list are @@ -90,11 +90,12 @@ All feedback (bug reports, user/development discussion, patches, pull requests) go to the publically archived mailing list: -mailto:raindrops-pub...@bogomips.org +mailto:raindrops-pub...@yhbt.net Mailing list archives are available over HTTPS and NNTP: -* https://bogomips.org/raindrops-public/ +* https://yhbt.net/raindrops-public/ +* http://ou63pmih66umazou.onion/raindrops-public/ * nntp://news.public-inbox.org/inbox.comp.lang.ruby.raindrops Since archives are public, scrub sensitive information and Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/examples/linux-listener-stats.rb new/examples/linux-listener-stats.rb --- old/examples/linux-listener-stats.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/examples/linux-listener-stats.rb 2020-01-08 10:31:44.000000000 +0100 @@ -15,7 +15,6 @@ usage = "Usage: #$0 [-d DELAY] [-t QUEUED_THRESHOLD] ADDR..." ARGV.size > 0 or abort usage delay = false -all = false queued_thresh = -1 # "normal" exits when driven on the command-line trap(:INT) { exit 130 } @@ -25,7 +24,7 @@ opts.banner = usage opts.on('-d', '--delay=DELAY', Float) { |n| delay = n } opts.on('-t', '--queued-threshold=INT', Integer) { |n| queued_thresh = n } - opts.on('-a', '--all') { all = true } + opts.on('-a', '--all') { } # noop opts.parse! ARGV end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/examples/watcher_demo.ru new/examples/watcher_demo.ru --- old/examples/watcher_demo.ru 2017-08-10 01:53:31.000000000 +0200 +++ new/examples/watcher_demo.ru 2020-01-08 10:31:44.000000000 +0100 @@ -1,5 +1,5 @@ # This is a snippet of the config that powers -# https://raindrops-demo.bogomips.org/ +# https://yhbt.net/raindrops-demo/ # This may be used with the packaged zbatery.conf.rb # # zbatery -c zbatery.conf.ru watcher_demo.ru -E none diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/raindrops/extconf.rb new/ext/raindrops/extconf.rb --- old/ext/raindrops/extconf.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/ext/raindrops/extconf.rb 2020-01-08 10:31:44.000000000 +0100 @@ -143,7 +143,7 @@ $defs.push(format("-DHAVE_GCC_ATOMIC_BUILTINS")) true else - prev_cflags = $CFLAGS + $CFLAGS = prev_cflags false end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/raindrops/linux_inet_diag.c new/ext/raindrops/linux_inet_diag.c --- old/ext/raindrops/linux_inet_diag.c 2017-08-10 01:53:31.000000000 +0200 +++ new/ext/raindrops/linux_inet_diag.c 2020-01-08 10:31:44.000000000 +0100 @@ -205,7 +205,7 @@ va_end(ap); fprintf(stderr, "Please report how you produced this at "\ - "raindrops-pub...@bogomips.org\n"); + "raindrops-pub...@yhbt.net\n"); fflush(stderr); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/raindrops/aggregate/pmq.rb new/lib/raindrops/aggregate/pmq.rb --- old/lib/raindrops/aggregate/pmq.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/lib/raindrops/aggregate/pmq.rb 2020-01-08 10:31:44.000000000 +0100 @@ -142,8 +142,8 @@ warn "Unhandled exception in #{__FILE__}:#{__LINE__}: #{e}" break end while true - ensure - flush_master + ensure + flush_master end # Loads the last shared \Aggregate from the master thread/process @@ -175,14 +175,14 @@ # worker thread or process def stop_master_loop sleep 0.1 until mq_send(false) - rescue Errno::EINTR - retry + rescue Errno::EINTR + retry end def lock! io, type # :nodoc: io.fcntl Fcntl::F_SETLKW, type - rescue Errno::EINTR - retry + rescue Errno::EINTR + retry end # we use both a mutex for thread-safety and fcntl lock for process-safety diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/raindrops/linux.rb new/lib/raindrops/linux.rb --- old/lib/raindrops/linux.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/lib/raindrops/linux.rb 2020-01-08 10:31:44.000000000 +0100 @@ -14,8 +14,7 @@ # The standard proc path for active UNIX domain sockets, feel free to call # String#replace on this if your /proc is mounted in a non-standard location # for whatever reason - PROC_NET_UNIX_ARGS = %w(/proc/net/unix) - defined?(::Encoding) and PROC_NET_UNIX_ARGS.push({ :encoding => "binary" }) + PROC_NET_UNIX_ARGS = [ '/proc/net/unix', { encoding: "binary" }] # Get ListenStats from an array of +paths+ # @@ -42,11 +41,11 @@ else paths = paths.map do |path| path = path.dup - path.force_encoding(Encoding::BINARY) if defined?(Encoding) + path.force_encoding(Encoding::BINARY) if File.symlink?(path) link = path path = File.readlink(link) - path.force_encoding(Encoding::BINARY) if defined?(Encoding) + path.force_encoding(Encoding::BINARY) rv[link] = rv[path] # vivify ListenerStats else rv[path] # vivify ListenerStats @@ -57,7 +56,7 @@ paths = /^\w+: \d+ \d+ (\d+) \d+ (\d+)\s+\d+ (#{paths.join('|')})$/n # no point in pread since we can't stat for size on this file - File.read(*PROC_NET_UNIX_ARGS).scan(paths) do |s| + File.read(PROC_NET_UNIX_ARGS[0], encoding: 'binary').scan(paths) do |s| path = s[-1] case s[0] when "00000000" # client sockets diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/raindrops/middleware.rb new/lib/raindrops/middleware.rb --- old/lib/raindrops/middleware.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/lib/raindrops/middleware.rb 2020-01-08 10:31:44.000000000 +0100 @@ -62,9 +62,9 @@ # = Demo Server # # There is a server running this middleware (and Watcher) at -# https://raindrops-demo.bogomips.org/_raindrops +# https://yhbt.net/raindrops-demo/_raindrops # -# Also check out the Watcher demo at https://raindrops-demo.bogomips.org/ +# Also check out the Watcher demo at https://yhbt.net/raindrops-demo/ # # The demo server is only limited to 30 users, so be sure not to abuse it # by using the /tail/ endpoint too much. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/raindrops/watcher.rb new/lib/raindrops/watcher.rb --- old/lib/raindrops/watcher.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/lib/raindrops/watcher.rb 2020-01-08 10:31:44.000000000 +0100 @@ -35,28 +35,28 @@ # Returns a plain text summary + histogram with X-* HTTP headers for # active connections. # -# e.g.: curl https://raindrops-demo.bogomips.org/active/0.0.0.0%3A80.txt +# e.g.: curl https://yhbt.net/raindrops-demo/active/0.0.0.0%3A80.txt # # === GET /active/$LISTENER.html # # Returns an HTML summary + histogram with X-* HTTP headers for # active connections. # -# e.g.: curl https://raindrops-demo.bogomips.org/active/0.0.0.0%3A80.html +# e.g.: curl https://yhbt.net/raindrops-demo/active/0.0.0.0%3A80.html # # === GET /queued/$LISTENER.txt # # Returns a plain text summary + histogram with X-* HTTP headers for # queued connections. # -# e.g.: curl https://raindrops-demo.bogomips.org/queued/0.0.0.0%3A80.txt +# e.g.: curl https://yhbt.net/raindrops-demo/queued/0.0.0.0%3A80.txt # # === GET /queued/$LISTENER.html # # Returns an HTML summary + histogram with X-* HTTP headers for # queued connections. # -# e.g.: curl https://raindrops-demo.bogomips.org/queued/0.0.0.0%3A80.html +# e.g.: curl https://yhbt.net/raindrops-demo/queued/0.0.0.0%3A80.html # # === POST /reset/$LISTENER # @@ -95,9 +95,9 @@ # # = Demo Server # -# There is a server running this app at https://raindrops-demo.bogomips.org/ +# There is a server running this app at https://yhbt.net/raindrops-demo/ # The Raindrops::Middleware demo is also accessible at -# https://raindrops-demo.bogomips.org/_raindrops +# https://yhbt.net/raindrops-demo/_raindrops # # The demo server is only limited to 30 users, so be sure not to abuse it # by using the /tail/ endpoint too much. @@ -106,7 +106,7 @@ attr_reader :snapshot include Rack::Utils include Raindrops::Linux - DOC_URL = "https://bogomips.org/raindrops/Raindrops/Watcher.html" + DOC_URL = "https://yhbt.net/raindrops/Raindrops/Watcher.html" Peak = Struct.new(:first, :last) def initialize(opts = {}) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/raindrops.rb new/lib/raindrops.rb --- old/lib/raindrops.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/lib/raindrops.rb 2020-01-08 10:31:44.000000000 +0100 @@ -12,7 +12,7 @@ # Unlike many classes in this package, the core Raindrops class is # intended to be portable to all reasonably modern *nix systems # supporting mmap(). Please let us know if you have portability -# issues, patches or pull requests at mailto:raindrops-pub...@bogomips.org +# issues, patches or pull requests at mailto:raindrops-pub...@yhbt.net class Raindrops # Used to represent the number of +active+ and +queued+ sockets for diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2017-08-10 01:53:31.000000000 +0200 +++ new/metadata 2020-01-08 10:31:44.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: raindrops version: !ruby/object:Gem::Version - version: 0.19.0 + version: 0.19.1 platform: ruby authors: - raindrops hackers autorequire: bindir: bin cert_chain: [] -date: 2017-08-09 00:00:00.000000000 Z +date: 2020-01-08 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: aggregate @@ -78,7 +78,7 @@ should support any Rack HTTP server on platforms supporting POSIX shared memory. It may also be used as a generic scoreboard for sharing atomic counters across multiple processes. -email: raindrops-pub...@bogomips.org +email: raindrops-pub...@yhbt.net executables: [] extensions: - ext/raindrops/extconf.rb @@ -149,7 +149,7 @@ - test/test_struct.rb - test/test_tcp_info.rb - test/test_watcher.rb -homepage: https://bogomips.org/raindrops/ +homepage: https://yhbt.net/raindrops/ licenses: - LGPL-2.1+ metadata: {} @@ -168,8 +168,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubyforge_project: -rubygems_version: 2.6.12 +rubygems_version: 3.0.2 signing_key: specification_version: 4 summary: real-time stats for preforking Rack servers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pkg.mk new/pkg.mk --- old/pkg.mk 2017-08-10 01:53:31.000000000 +0200 +++ new/pkg.mk 2020-01-08 10:31:44.000000000 +0100 @@ -60,7 +60,7 @@ -find lib -type f -name '*.rbc' -exec rm -f '{}' ';' -find ext -type f -name '*.rbc' -exec rm -f '{}' ';' $(RM) -r doc - $(RDOC) -f oldweb + $(RDOC) -f dark216 $(OLDDOC) merge install -m644 COPYING doc/COPYING install -m644 NEWS doc/NEWS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/raindrops.gemspec new/raindrops.gemspec --- old/raindrops.gemspec 2017-08-10 01:53:31.000000000 +0200 +++ new/raindrops.gemspec 2020-01-08 10:31:44.000000000 +0100 @@ -8,13 +8,13 @@ s.version = (ENV["VERSION"] ||= '0.18.0').dup s.authors = ["raindrops hackers"] s.description = File.read('README').split("\n\n")[1] - s.email = %q{raindrops-pub...@bogomips.org} + s.email = %q{raindrops-pub...@yhbt.net} s.extensions = %w(ext/raindrops/extconf.rb) s.extra_rdoc_files = IO.readlines('.document').map!(&:chomp!).keep_if do |f| File.exist?(f) end s.files = manifest - s.homepage = 'https://bogomips.org/raindrops/' + s.homepage = 'https://yhbt.net/raindrops/' s.summary = 'real-time stats for preforking Rack servers' s.required_ruby_version = '>= 1.9.3' s.test_files = test_files diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/ipv6_enabled.rb new/test/ipv6_enabled.rb --- old/test/ipv6_enabled.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/test/ipv6_enabled.rb 2020-01-08 10:31:44.000000000 +0100 @@ -2,8 +2,8 @@ tmp = TCPServer.new(ENV["TEST_HOST6"] || '::1', 0) tmp.close true - rescue => e - warn "skipping IPv6 tests, host does not seem to be IPv6 enabled:" - warn " #{e.class}: #{e}" - false +rescue => e + warn "skipping IPv6 tests, host does not seem to be IPv6 enabled:" + warn " #{e.class}: #{e}" + false end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_linux.rb new/test/test_linux.rb --- old/test/test_linux.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/test/test_linux.rb 2020-01-08 10:31:44.000000000 +0100 @@ -76,6 +76,7 @@ assert_equal 0, stats[tmp.path].active assert_equal 0, stats[tmp.path].queued + us.close end def test_unix_resolves_symlinks @@ -151,8 +152,8 @@ assert_equal 1, stats.size assert_equal 0, stats[addr].queued assert_equal 1, stats[addr].active - ensure - nlsock.close + ensure + nlsock.close end def test_tcp_multi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_linux_all_tcp_listen_stats_leak.rb new/test/test_linux_all_tcp_listen_stats_leak.rb --- old/test/test_linux_all_tcp_listen_stats_leak.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/test/test_linux_all_tcp_listen_stats_leak.rb 2020-01-08 10:31:44.000000000 +0100 @@ -37,7 +37,7 @@ end cur_kb = rss_kb p [ :cur_kb, cur_kb ] - ensure - s.close + ensure + s.close end end if ENV["STRESS"].to_i != 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_raindrops.rb new/test/test_raindrops.rb --- old/test/test_raindrops.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/test/test_raindrops.rb 2020-01-08 10:31:44.000000000 +0100 @@ -134,7 +134,7 @@ assert_equal 0, rd[rd.capa - 1] assert_equal 1, rd.incr(rd.capa - 1) assert_raises(ArgumentError) { rd[rd.capa] } - rescue RangeError + rescue RangeError end # if RUBY_PLATFORM =~ /linux/ def test_evaporate diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_tcp_info.rb new/test/test_tcp_info.rb --- old/test/test_tcp_info.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/test/test_tcp_info.rb 2020-01-08 10:31:44.000000000 +0100 @@ -60,10 +60,10 @@ a = s.accept i = Raindrops::TCP_Info.new(a) assert i.last_data_recv >= delay_ms, "#{i.last_data_recv} < #{delay_ms}" - ensure - c.close if c - a.close if a - s.close + ensure + c.close if c + a.close if a + s.close end def test_tcp_server_state_closed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_watcher.rb new/test/test_watcher.rb --- old/test/test_watcher.rb 2017-08-10 01:53:31.000000000 +0200 +++ new/test/test_watcher.rb 2020-01-08 10:31:44.000000000 +0100 @@ -118,28 +118,28 @@ def test_x_current_header env = @req.class.env_for "/active/#@addr.txt" - status, headers, body = @app.call(env) + _status, headers, _body = @app.call(env) assert_equal "0", headers["X-Current"], headers.inspect env = @req.class.env_for "/queued/#@addr.txt" - status, headers, body = @app.call(env) + _status, headers, _body = @app.call(env) assert_equal "1", headers["X-Current"], headers.inspect @ios << @srv.accept sleep 0.1 env = @req.class.env_for "/queued/#@addr.txt" - status, headers, body = @app.call(env) + _status, headers, _body = @app.call(env) assert_equal "0", headers["X-Current"], headers.inspect env = @req.class.env_for "/active/#@addr.txt" - status, headers, body = @app.call(env) + _status, headers, _body = @app.call(env) assert_equal "1", headers["X-Current"], headers.inspect end def test_peaks env = @req.class.env_for "/active/#@addr.txt" - status, headers, body = @app.call(env.dup) + _status, headers, _body = @app.call(env.dup) start = headers["X-First-Peak-At"] assert headers["X-First-Peak-At"], headers.inspect assert headers["X-Last-Peak-At"], headers.inspect @@ -148,14 +148,14 @@ before = headers["X-Last-Peak-At"] env = @req.class.env_for "/queued/#@addr.txt" - status, headers, body = @app.call(env) + _status, headers, _body = @app.call(env) assert_nothing_raised { Time.parse(headers["X-First-Peak-At"]) } assert_nothing_raised { Time.parse(headers["X-Last-Peak-At"]) } assert_equal before, headers["X-Last-Peak-At"], "should not change" sleep 2 env = @req.class.env_for "/active/#@addr.txt" - status, headers, body = @app.call(env.dup) + _status, headers, _body = @app.call(env.dup) assert_equal before, headers["X-Last-Peak-At"], headers.inspect @ios << @srv.accept @@ -167,7 +167,7 @@ end sleep 0.1 env = @req.class.env_for "/queued/#@addr.txt" - status, headers, body = @app.call(env.dup) + _status, headers, _body = @app.call(env.dup) assert headers["X-Last-Peak-At"], headers.inspect assert_nothing_raised { Time.parse(headers["X-Last-Peak-At"]) } assert before != headers["X-Last-Peak-At"] @@ -177,7 +177,7 @@ sleep 2 env = @req.class.env_for "/queued/#@addr.txt" - status, headers, body = @app.call(env) + _status, headers, _body = @app.call(env) assert_equal "0", headers["X-Current"] assert_nothing_raised { Time.parse(headers["X-Last-Peak-At"]) } assert_equal queued_before, headers["X-Last-Peak-At"], "should not change"