summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2016-11-19 13:50:19 +0000
committertaca <taca@pkgsrc.org>2016-11-19 13:50:19 +0000
commit954d8bb34fd91e0cbfbc64289c956da7793129ef (patch)
treee5406ea1b1299be35371848548f0113834f0288c /lang
parenta68cd8c0246b0fce7f1107182e790ee342664907 (diff)
downloadpkgsrc-954d8bb34fd91e0cbfbc64289c956da7793129ef.tar.gz
Do not restrict modifying depdencies to runtime.
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby/files/update-gemspec.rb6
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
}