diff options
Diffstat (limited to 'lang/ruby/files/update-gemspec.rb')
-rw-r--r-- | lang/ruby/files/update-gemspec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/ruby/files/update-gemspec.rb b/lang/ruby/files/update-gemspec.rb index 7e2a8546996..1723b7fe1c7 100644 --- a/lang/ruby/files/update-gemspec.rb +++ b/lang/ruby/files/update-gemspec.rb @@ -1,7 +1,7 @@ #!/usr/pkg/bin/ruby # -*- coding: utf-8 -*- # -# $NetBSD: update-gemspec.rb,v 1.5 2013/03/07 16:42:53 taca Exp $ +# $NetBSD: update-gemspec.rb,v 1.6 2013/03/08 10:14:18 taca Exp $ # # Copyright (c) 2011, 2012, 2013 The NetBSD Foundation, Inc. # All rights reserved. @@ -66,7 +66,7 @@ class GemSpecUpdater key = nil rules.each do |s| s.split.each do |ru| - if /^:([a-z_]+)=*(\S+)*/ =~ ru + if key.nil? and /^:([a-z_]+)=(\S+)*/ =~ ru key = $1 var = $2 @attr[key] = var |