pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/ruby/files



Module Name:    pkgsrc
Committed By:   taca
Date:           Mon Dec 31 14:36:15 UTC 2018

Modified Files:
        pkgsrc/lang/ruby/files: update-gemspec.rb

Log Message:
lang/ruby/files/update-gemspec.rb: Allow modifying multiple records

Allow modifying multiple records, e.g. ":files foo=bar baz=bang".
There was a bug to allow only one record to change.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/lang/ruby/files/update-gemspec.rb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/ruby/files/update-gemspec.rb
diff -u pkgsrc/lang/ruby/files/update-gemspec.rb:1.10 pkgsrc/lang/ruby/files/update-gemspec.rb:1.11
--- pkgsrc/lang/ruby/files/update-gemspec.rb:1.10       Fri Jul  6 15:37:09 2018
+++ pkgsrc/lang/ruby/files/update-gemspec.rb    Mon Dec 31 14:36:15 2018
@@ -1,7 +1,7 @@
 #!/usr/pkg/bin/ruby
 # -*- coding: utf-8 -*-
 #
-# $NetBSD: update-gemspec.rb,v 1.10 2018/07/06 15:37:09 taca Exp $
+# $NetBSD: update-gemspec.rb,v 1.11 2018/12/31 14:36:15 taca Exp $
 #
 # Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
 # The NetBSD Foundation, Inc.
@@ -74,7 +74,9 @@ class GemSpecUpdater
           key = nil
         elsif /^:([a-z_]+)+/ =~ ru
           key = $1
-          @attr[key] = []
+          if @attr[key].nil?
+            @attr[key] = []
+          end
         elsif not key.nil?
           @attr[key].push ru unless key.nil?
         else



Home | Main Index | Thread Index | Old Index