Simple update to the newest version of unicorn. Some new features:

* The ability to use separate groups for the default process group
  and the group for log files (useful if you are running a large
  number of unicorn applications).

* Ability to disable default middleware via a config file method.

* Improved rack.hijack support.

Will commit in a couple days unless I hear objections.

Thanks,
Jeremy

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/ruby-unicorn/Makefile,v
retrieving revision 1.23
diff -u -p -r1.23 Makefile
--- Makefile    13 Jun 2018 22:26:53 -0000      1.23
+++ Makefile    4 Mar 2019 02:39:34 -0000
@@ -2,8 +2,7 @@
 
 COMMENT =      ruby-rack HTTP server for Unix and fast clients
 
-DISTNAME =     unicorn-5.3.1
-REVISION =     0
+DISTNAME =     unicorn-5.5.0
 CATEGORIES =   www
 
 HOMEPAGE =     https://bogomips.org/unicorn/
@@ -27,10 +26,12 @@ post-install:
                mv unicorn_rails.1 
${WRKINST}/${LOCALBASE}/man/man1/unicorn_rails${GEM_MAN_SUFFIX}.1
        rm -r ${WRKINST}/${LOCALBASE}/${GEM_LIB}/gems/${DISTNAME}/man
 
-TEST_DEPENDS = devel/gmake \
-                 devel/ruby-isolate,${MODRUBY_FLAVOR}
+TEST_DEPENDS = devel/gmake \
+               devel/ruby-isolate,${MODRUBY_FLAVOR} \
+               www/ruby-rack,${MODRUBY_FLAVOR}
+
 do-test:
-       cd ${WRKSRC} && RUBYOPT=-rubygems RUBY=${RUBY} MRI=${RUBY} \
-               MAKE='gmake -ek' gmake -ek test
+       cd ${WRKSRC} && RUBY=${RUBY} MRI=${RUBY} \
+               MAKE='gmake -ek' gmake -ek check
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/www/ruby-unicorn/distinfo,v
retrieving revision 1.13
diff -u -p -r1.13 distinfo
--- distinfo    23 Oct 2017 21:38:37 -0000      1.13
+++ distinfo    4 Mar 2019 02:24:03 -0000
@@ -1,2 +1,2 @@
-SHA256 (unicorn-5.3.1.gem) = awP9QC//SHGSkijg7YruAWVtWcpxNfO0HgcWGCi0DTg=
-SIZE (unicorn-5.3.1.gem) = 217088
+SHA256 (unicorn-5.5.0.gem) = 75MIqhPrc378UQ9YL/VdlIWuF7jCwpu/G9kG6MFhyW0=
+SIZE (unicorn-5.5.0.gem) = 220160
Index: patches/patch-test_unit_test_signals_rb
===================================================================
RCS file: patches/patch-test_unit_test_signals_rb
diff -N patches/patch-test_unit_test_signals_rb
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-test_unit_test_signals_rb     4 Mar 2019 02:39:43 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Set maximum sleep time in test.
+
+Index: test/unit/test_signals.rb
+--- test/unit/test_signals.rb.orig
++++ test/unit/test_signals.rb
+@@ -96,7 +96,7 @@ class SignalsTest < Test::Unit::TestCase
+ 
+   def test_timeout_slow_response
+     pid = fork {
+-      app = lambda { |env| sleep }
++      app = lambda { |env| sleep(61) }
+       opts = @server_opts.merge(:timeout => 3)
+       redirect_test_io { HttpServer.new(app, opts).start.join }
+     }
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/www/ruby-unicorn/pkg/PLIST,v
retrieving revision 1.10
diff -u -p -r1.10 PLIST
--- pkg/PLIST   27 Mar 2017 14:40:13 -0000      1.10
+++ pkg/PLIST   4 Mar 2019 02:25:16 -0000
@@ -132,6 +132,8 @@ ${GEM_LIB}/gems/${DISTNAME}/t/t0116-clie
 ${GEM_LIB}/gems/${DISTNAME}/t/t0116.ru
 ${GEM_LIB}/gems/${DISTNAME}/t/t0200-rack-hijack.sh
 ${GEM_LIB}/gems/${DISTNAME}/t/t0300-no-default-middleware.sh
+${GEM_LIB}/gems/${DISTNAME}/t/t0301-no-default-middleware-ignored-in-config.sh
+${GEM_LIB}/gems/${DISTNAME}/t/t0301.ru
 ${GEM_LIB}/gems/${DISTNAME}/t/t9000-preread-input.sh
 ${GEM_LIB}/gems/${DISTNAME}/t/t9001-oob_gc.sh
 ${GEM_LIB}/gems/${DISTNAME}/t/t9002-oob_gc-path.sh

Reply via email to