Hello community, here is the log from the commit of package rubygem-raindrops for openSUSE:Factory checked in at 2017-09-13 22:34:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-raindrops (Old) and /work/SRC/openSUSE:Factory/.rubygem-raindrops.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-raindrops" Wed Sep 13 22:34:34 2017 rev:3 rq:523496 version:0.19.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-raindrops/rubygem-raindrops.changes 2017-03-31 15:07:59.265106423 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-raindrops.new/rubygem-raindrops.changes 2017-09-13 22:36:03.919205396 +0200 @@ -1,0 +2,25 @@ +Mon Sep 11 12:49:48 UTC 2017 - co...@suse.com + +- updated to version 0.19.0 + see installed NEWS + + === 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 + Raindrops::Middleware + <https://bogomips.org/raindrops/Raindrops/Middleware.html>. + Thanks to Dmytro Shteflyuk for this release. + + 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 + +------------------------------------------------------------------- Old: ---- raindrops-0.18.0.gem New: ---- raindrops-0.19.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-raindrops.spec ++++++ --- /var/tmp/diff_new_pack.IIzJYl/_old 2017-09-13 22:36:04.603109104 +0200 +++ /var/tmp/diff_new_pack.IIzJYl/_new 2017-09-13 22:36:04.607108541 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-raindrops -Version: 0.18.0 +Version: 0.19.0 Release: 0 %define mod_name raindrops %define mod_full_name %{mod_name}-%{version} @@ -33,7 +33,7 @@ BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 Url: https://bogomips.org/raindrops/ -Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: rubygem-raindrops-rpmlintrc Source2: gem2rpm.yml Summary: real-time stats for preforking Rack servers ++++++ raindrops-0.18.0.gem -> raindrops-0.19.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GIT-VERSION-FILE new/GIT-VERSION-FILE --- old/GIT-VERSION-FILE 2017-03-23 03:45:38.000000000 +0100 +++ new/GIT-VERSION-FILE 2017-08-10 01:53:31.000000000 +0200 @@ -1 +1 @@ -GIT_VERSION = 0.18.0 +GIT_VERSION = 0.19.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GIT-VERSION-GEN new/GIT-VERSION-GEN --- old/GIT-VERSION-GEN 2017-03-23 03:45:38.000000000 +0100 +++ new/GIT-VERSION-GEN 2017-08-10 01:53:31.000000000 +0200 @@ -1,7 +1,7 @@ #!/bin/sh GVF=GIT-VERSION-FILE -DEF_VER=v0.18.0 +DEF_VER=v0.19.0 LF=' ' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LATEST new/LATEST --- old/LATEST 2017-03-23 03:45:38.000000000 +0100 +++ new/LATEST 2017-08-10 01:53:31.000000000 +0200 @@ -1,42 +1,19 @@ -=== raindrops 0.18.0 / 2017-03-23 02:44 UTC +=== raindrops 0.19.0 - Rack 2.x middleware compatibility / 2017-08-09 23:52 UTC - The most notable feature of this release is the addition of - FreeBSD and OpenBSD TCP_INFO support. This includes the - Raindrops::TCP for portably mapping TCP state names to - platform-dependent numeric values: - - https://bogomips.org/raindrops/Raindrops.html#TCP - - Thanks to Jeremy Evans and Simon Eskildsen on the - unicorn-pub...@bogomips.org mailing list for inspiring - these changes to raindrops. - - There's also a few internal cleanups, and documentation - improvements, including some fixes to the largely-forgotten - Raindrops::Aggreage::PMQ class: - - https://bogomips.org/raindrops/Raindrops/Aggregate/PMQ.html - - 20 changes since 0.17.0: - - test_inet_diag_socket: fix Fixnum deprecation warning - TODO: add item for IPv6 breakage - ext: fix documentation for C ext-defined classes - TCP_Info: custom documentation for #get! - TypedData C-API conversion - test_watcher: disable test correctly when aggregate is missing - tcp_info: support this struct under FreeBSD - define Raindrops::TCP hash for TCP states - linux_inet_diag: reduce stack usage and simplify - avoid reading errno repeatedly - aggregate/pmq: avoid false sharing of lock buffers - aggregate/pmq: remove io-extra requirement - aggregate/pmq: avoid File#stat allocation - Merge remote-tracking branch 'origin/freebsd' - Merge remote-tracking branch 'origin/aggregate-pmq' - doc: remove private email support address - doc: update location of TCP_INFO-related stuff - build: avoid olddoc for building the RubyGem - doc: document Raindrops::TCP hash - aggregate/pmq: update version numbers for Ruby and Linux + 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. + + 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 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/NEWS new/NEWS --- old/NEWS 2017-03-23 03:45:38.000000000 +0100 +++ new/NEWS 2017-08-10 01:53:31.000000000 +0200 @@ -1,3 +1,22 @@ +=== 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 + Raindrops::Middleware + <https://bogomips.org/raindrops/Raindrops/Middleware.html>. + Thanks to Dmytro Shteflyuk for this release. + + 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 + === raindrops 0.18.0 / 2017-03-23 02:44 UTC The most notable feature of this release is the addition of Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ 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-03-23 03:45:38.000000000 +0100 +++ new/ext/raindrops/extconf.rb 2017-08-10 01:53:31.000000000 +0200 @@ -112,6 +112,7 @@ end have_func("getpagesize", "unistd.h") +have_func('rb_thread_call_without_gvl') have_func('rb_thread_blocking_region') have_func('rb_thread_io_blocking_region') 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-03-23 03:45:38.000000000 +0100 +++ new/ext/raindrops/linux_inet_diag.c 2017-08-10 01:53:31.000000000 +0200 @@ -1,46 +1,24 @@ #include <ruby.h> #include <stdarg.h> -#ifdef HAVE_RUBY_ST_H -# include <ruby/st.h> -#else -# include <st.h> -#endif +#include <ruby/st.h> #include "my_fileno.h" #ifdef __linux__ -/* Ruby 1.8.6+ macros (for compatibility with Ruby 1.9) */ -#ifndef RSTRING_LEN -# define RSTRING_LEN(s) (RSTRING(s)->len) -#endif - -/* partial emulation of the 1.9 rb_thread_blocking_region under 1.8 */ -#if !defined(HAVE_RB_THREAD_BLOCKING_REGION) && \ - !defined(HAVE_RB_THREAD_IO_BLOCKING_REGION) -# include <rubysig.h> -# define RUBY_UBF_IO ((rb_unblock_function_t *)-1) -typedef void rb_unblock_function_t(void *); -typedef VALUE rb_blocking_function_t(void *); -static VALUE -rb_thread_blocking_region( - rb_blocking_function_t *func, void *data1, - rb_unblock_function_t *ubf, void *data2) -{ - VALUE rv; - - TRAP_BEG; - rv = func(data1); - TRAP_END; - - return rv; -} -#endif /* ! HAVE_RB_THREAD_BLOCKING_REGION */ - #ifdef HAVE_RB_THREAD_IO_BLOCKING_REGION +/* Ruby 1.9.3 and 2.0.0 */ VALUE rb_thread_io_blocking_region(rb_blocking_function_t *, void *, int); +# define rd_fd_region(fn,data,fd) \ + rb_thread_io_blocking_region((fn),(data),(fd)) +#elif defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL) && \ + defined(HAVE_RUBY_THREAD_H) && HAVE_RUBY_THREAD_H +/* in case Ruby 2.0+ ever drops rb_thread_io_blocking_region: */ +# include <ruby/thread.h> +# define COMPAT_FN (void *(*)(void *)) +# define rd_fd_region(fn,data,fd) \ + rb_thread_call_without_gvl(COMPAT_FN(fn),(data),RUBY_UBF_IO,NULL) #else -# define rb_thread_io_blocking_region(fn,data,fd) \ - rb_thread_blocking_region((fn),(data),RUBY_UBF_IO,0) -#endif /* HAVE_RB_THREAD_IO_BLOCKING_REGION */ +# error Ruby <= 1.8 not supported +#endif #include <assert.h> #include <errno.h> @@ -608,7 +586,7 @@ gen_bytecode(&args->iov[2], &query_addr); memset(&args->stats, 0, sizeof(struct listen_stats)); - nl_errcheck(rb_thread_io_blocking_region(diag, args, args->fd)); + nl_errcheck(rd_fd_region(diag, args, args->fd)); return rb_listen_stats(&args->stats); } @@ -685,7 +663,7 @@ "addr must be an array of strings, a string, or nil"); } - nl_errcheck(rb_thread_io_blocking_region(diag, &args, args.fd)); + nl_errcheck(rd_fd_region(diag, &args, args.fd)); st_foreach(args.table, NIL_P(addrs) ? st_to_hash : st_AND_hash, rv); st_free_table(args.table); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/raindrops/tcp_info.c new/ext/raindrops/tcp_info.c --- old/ext/raindrops/tcp_info.c 2017-03-23 03:45:38.000000000 +0100 +++ new/ext/raindrops/tcp_info.c 2017-08-10 01:53:31.000000000 +0200 @@ -1,5 +1,4 @@ #include <ruby.h> -#include "extconf.h" #include <sys/socket.h> #include <netinet/in.h> #if defined(HAVE_LINUX_TCP_H) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/raindrops/middleware/proxy.rb new/lib/raindrops/middleware/proxy.rb --- old/lib/raindrops/middleware/proxy.rb 2017-03-23 03:45:38.000000000 +0100 +++ new/lib/raindrops/middleware/proxy.rb 2017-08-10 01:53:31.000000000 +0200 @@ -27,9 +27,9 @@ # Rack servers use +respond_to?+ to check for the presence of +close+ # and +to_path+ methods. - def respond_to?(m) + def respond_to?(m, include_all = false) m = m.to_sym - :close == m || @body.respond_to?(m) + :close == m || @body.respond_to?(m, include_all) end # Avoid breaking users of non-standard extensions (e.g. #body) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2017-03-23 03:45:38.000000000 +0100 +++ new/metadata 2017-08-10 01:53:31.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: raindrops version: !ruby/object:Gem::Version - version: 0.18.0 + version: 0.19.0 platform: ruby authors: - raindrops hackers autorequire: bindir: bin cert_chain: [] -date: 2017-03-23 00:00:00.000000000 Z +date: 2017-08-09 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: aggregate @@ -169,7 +169,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.6.10 +rubygems_version: 2.6.12 signing_key: specification_version: 4 summary: real-time stats for preforking Rack servers