Date: Sat, 2 Jun 2018 22:26:11 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r471415 - in head/devel/rubygem-rubygems-mirror: . files Message-ID: <201806022226.w52MQBRq032363@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Sat Jun 2 22:26:11 2018 New Revision: 471415 URL: https://svnweb.freebsd.org/changeset/ports/471415 Log: Change RUN_DEPENDS from rubygem-net-http-persistent2 to rubygem-net-http-persistent - Bump PORTREVISION for dependency and package change Obtained from: https://github.com/rubygems/rubygems-mirror/commit/292a6b283b5ea96c20ed30b27526def4b142a866 Added: head/devel/rubygem-rubygems-mirror/files/ head/devel/rubygem-rubygems-mirror/files/patch-gemspec (contents, props changed) head/devel/rubygem-rubygems-mirror/files/patch-lib-rubygems-mirror-fetcher.rb (contents, props changed) Modified: head/devel/rubygem-rubygems-mirror/Makefile Modified: head/devel/rubygem-rubygems-mirror/Makefile ============================================================================== --- head/devel/rubygem-rubygems-mirror/Makefile Sat Jun 2 22:26:05 2018 (r471414) +++ head/devel/rubygem-rubygems-mirror/Makefile Sat Jun 2 22:26:11 2018 (r471415) @@ -3,6 +3,7 @@ PORTNAME= rubygems-mirror PORTVERSION= 1.2.0 +PORTREVISION= 1 CATEGORIES= devel rubygems MASTER_SITES= RG @@ -11,7 +12,7 @@ COMMENT= Mirror rubygems LICENSE= MIT -RUN_DEPENDS= rubygem-net-http-persistent2>=2.9:www/rubygem-net-http-persistent2 +RUN_DEPENDS= rubygem-net-http-persistent>=2.9:www/rubygem-net-http-persistent NO_ARCH= yes USE_RUBY= yes Added: head/devel/rubygem-rubygems-mirror/files/patch-gemspec ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/rubygem-rubygems-mirror/files/patch-gemspec Sat Jun 2 22:26:11 2018 (r471415) @@ -0,0 +1,11 @@ +--- rubygems-mirror.gemspec.orig 2018-06-02 21:27:45 UTC ++++ rubygems-mirror.gemspec +@@ -23,7 +23,7 @@ Gem::Specification.new do |s| + s.specification_version = 4 + + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then +- s.add_runtime_dependency(%q<net-http-persistent>.freeze, ["~> 2.9"]) ++ s.add_runtime_dependency(%q<net-http-persistent>.freeze, [">= 2.9"]) + s.add_development_dependency(%q<minitest>.freeze, ["~> 5.7"]) + s.add_development_dependency(%q<rdoc>.freeze, ["< 6", ">= 4.0"]) + s.add_development_dependency(%q<hoe>.freeze, ["~> 3.17"]) Added: head/devel/rubygem-rubygems-mirror/files/patch-lib-rubygems-mirror-fetcher.rb ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/rubygem-rubygems-mirror/files/patch-lib-rubygems-mirror-fetcher.rb Sat Jun 2 22:26:11 2018 (r471415) @@ -0,0 +1,20 @@ +Obtained from: https://github.com/rubygems/rubygems-mirror/commit/292a6b283b5ea96c20ed30b27526def4b142a866 + +--- lib/rubygems/mirror/fetcher.rb.orig 2018-06-02 12:50:03 UTC ++++ lib/rubygems/mirror/fetcher.rb +@@ -6,7 +6,14 @@ class Gem::Mirror::Fetcher + class Error < StandardError; end + + def initialize(opts = {}) +- @http = Net::HTTP::Persistent.new(self.class.name, :ENV) ++ @http = ++ if defined?(Net::HTTP::Persistent::DEFAULT_POOL_SIZE) ++ Net::HTTP::Persistent.new(name: self.class.name, proxy: :ENV) ++ else ++ # net-http-persistent < 3.0 ++ Net::HTTP::Persistent.new(self.class.name, :ENV) ++ end ++ + @opts = opts + + # default opts
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806022226.w52MQBRq032363>