diff --git a/devel/rubygem-rubygems-mirror/Makefile b/devel/rubygem-rubygems-mirror/Makefile index f09a42c3ff9d..c113cf929bd5 100644 --- a/devel/rubygem-rubygems-mirror/Makefile +++ b/devel/rubygem-rubygems-mirror/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= rubygems-mirror -PORTVERSION= 1.2.0 -PORTREVISION= 1 +PORTVERSION= 1.3.0 CATEGORIES= devel rubygems MASTER_SITES= RG @@ -14,8 +13,9 @@ LICENSE= MIT RUN_DEPENDS= rubygem-net-http-persistent>=2.9:www/rubygem-net-http-persistent -NO_ARCH= yes -USE_RUBY= yes USES= gem +USE_RUBY= yes + +NO_ARCH= yes .include diff --git a/devel/rubygem-rubygems-mirror/distinfo b/devel/rubygem-rubygems-mirror/distinfo index c1b8f99e5989..d6185d2f32c9 100644 --- a/devel/rubygem-rubygems-mirror/distinfo +++ b/devel/rubygem-rubygems-mirror/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1525985916 -SHA256 (rubygem/rubygems-mirror-1.2.0.gem) = 48f29d1ac5acb296a24b7d70034b12400374cf98cb1a4e8c63cdd6b4e6eca605 -SIZE (rubygem/rubygems-mirror-1.2.0.gem) = 11776 +TIMESTAMP = 1539374846 +SHA256 (rubygem/rubygems-mirror-1.3.0.gem) = fd3496a1bed5f19be639aae650162a8be32f5c5518dd27956216e6d275931416 +SIZE (rubygem/rubygems-mirror-1.3.0.gem) = 11776 diff --git a/devel/rubygem-rubygems-mirror/files/patch-lib-rubygems-mirror-fetcher.rb b/devel/rubygem-rubygems-mirror/files/patch-lib-rubygems-mirror-fetcher.rb deleted file mode 100644 index 6716b21a0163..000000000000 --- a/devel/rubygem-rubygems-mirror/files/patch-lib-rubygems-mirror-fetcher.rb +++ /dev/null @@ -1,20 +0,0 @@ -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