diff options
author | taca <taca> | 2016-11-19 13:50:19 +0000 |
---|---|---|
committer | taca <taca> | 2016-11-19 13:50:19 +0000 |
commit | 75ada5a028f422407d239df0fb51e68f249179f5 (patch) | |
tree | f7bc04a34ad7d3d62c9e44119472b77fe9c0a126 /lang | |
parent | 9efbc9995459b19f02e3ff4f69dd26950adb4cf9 (diff) | |
download | pkgsrc-75ada5a028f422407d239df0fb51e68f249179f5.tar.gz |
Do not restrict modifying depdencies to runtime.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby/files/update-gemspec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lang/ruby/files/update-gemspec.rb b/lang/ruby/files/update-gemspec.rb index 1c54b74acac..ceb13db4c5e 100644 --- a/lang/ruby/files/update-gemspec.rb +++ b/lang/ruby/files/update-gemspec.rb @@ -1,9 +1,9 @@ #!/usr/pkg/bin/ruby # -*- coding: utf-8 -*- # -# $NetBSD: update-gemspec.rb,v 1.7 2014/07/20 01:11:28 obache Exp $ +# $NetBSD: update-gemspec.rb,v 1.8 2016/11/19 13:50:19 taca Exp $ # -# Copyright (c) 2011, 2012, 2013 The NetBSD Foundation, Inc. +# Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016 The NetBSD Foundation, Inc. # All rights reserved. # # This code is derived from software contributed to The NetBSD Foundation @@ -103,7 +103,6 @@ class GemSpecUpdater def modify dependencies = @spec.instance_variable_get(:@dependencies) dependencies.each do |dep| - next if dep.type != :runtime update = @requirements[dep.name] if not update.nil? and update[:method] == :update r = dep.requirement.requirements @@ -115,7 +114,6 @@ class GemSpecUpdater end end dependencies.delete_if { |dep| - next if dep.type != :runtime update = @requirements[dep.name] not update.nil? and update[:method] == :delete } |