1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00

databases/rubygem-mario-redis-lock: patch to pull in databases/rubygem-redis

After r457876 and r457886, net-im/mastodon failed to start because of an
issue with both versions 3 and 4 of the redis gems being pulled in.

/usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.1/lib/bundler/runtime.rb:313:in
`check_for_activated_spec!': You have already activated redis 4.0.1, but
your Gemfile requires redis 3.3.5.
This commit is contained in:
Joseph Mingrone 2018-01-03 03:57:38 +00:00
parent 7529d42b64
commit df1ad146ad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=457945
2 changed files with 23 additions and 2 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= mario-redis-lock
PORTVERSION= 1.2.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= databases rubygems
MASTER_SITES= RG
@ -11,10 +11,11 @@ COMMENT= Ruby distributed lock using Redis, with emphasis in transparency
LICENSE= MIT
RUN_DEPENDS= rubygem-redis3>=3.3.3:databases/rubygem-redis3
RUN_DEPENDS= rubygem-redis>=4:databases/rubygem-redis
USES= gem
USE_RUBY= yes
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,20 @@
--- mario-redis-lock.gemspec.orig 2018-01-03 01:55:48 UTC
+++ mario-redis-lock.gemspec
@@ -22,7 +22,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<redis>.freeze, [">= 3.0.5", "~> 3"])
+ s.add_runtime_dependency(%q<redis>.freeze, [">= 3.0.5"])
s.add_development_dependency(%q<bundler>.freeze, ["~> 1"])
s.add_development_dependency(%q<rake>.freeze, ["~> 10"])
else
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
s.add_dependency(%q<rake>.freeze, ["~> 10"])
end
else
- s.add_dependency(%q<redis>.freeze, [">= 3.0.5", "~> 3"])
+ s.add_dependency(%q<redis>.freeze, [">= 3.0.5"])
s.add_dependency(%q<bundler>.freeze, ["~> 1"])
s.add_dependency(%q<rake>.freeze, ["~> 10"])
end