pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/ruby/files lang/ruby/files/update-gemspec.rb: All...
details: https://anonhg.NetBSD.org/pkgsrc/rev/fcbb9409e17e
branches: trunk
changeset: 389391:fcbb9409e17e
user: taca <taca%pkgsrc.org@localhost>
date: Mon Dec 31 14:36:15 2018 +0000
description:
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.
diffstat:
lang/ruby/files/update-gemspec.rb | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r a0422960f940 -r fcbb9409e17e lang/ruby/files/update-gemspec.rb
--- a/lang/ruby/files/update-gemspec.rb Mon Dec 31 14:25:47 2018 +0000
+++ b/lang/ruby/files/update-gemspec.rb Mon Dec 31 14:36:15 2018 +0000
@@ -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 @@
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