[arch-commits] Commit in ruby-hoe/trunk (PKGBUILD ruby27.patch)

Anatol Pomozov anatolik at archlinux.org
Thu Dec 26 00:06:06 UTC 2019


    Date: Thursday, December 26, 2019 @ 00:06:04
  Author: anatolik
Revision: 541525

Add ruby 2.7 warning fix

Added:
  ruby-hoe/trunk/ruby27.patch
Modified:
  ruby-hoe/trunk/PKGBUILD

--------------+
 PKGBUILD     |   11 +++++++++--
 ruby27.patch |   21 +++++++++++++++++++++
 2 files changed, 30 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-26 00:05:32 UTC (rev 541524)
+++ PKGBUILD	2019-12-26 00:06:04 UTC (rev 541525)
@@ -15,8 +15,10 @@
 makedepends=('git' 'ruby-rdoc' 'ruby-rake')
 checkdepends=('ruby-minitest')
 options=('!emptydirs')
-source=("git+https://github.com/seattlerb/hoe#commit=${_gitcommit}")
-sha512sums=('SKIP')
+source=("git+https://github.com/seattlerb/hoe#commit=${_gitcommit}"
+        ruby27.patch)
+sha512sums=('SKIP'
+            'ec5e34b53fafc72fb6d9af3aa79dc1509632c390668a97db807d370759a6f0bdfe328933b648d35dedcc9662f94d6f1f99a2b982a037b49d354592a86f782a57')
 
 pkgver() {
   cd ${_gemname}
@@ -23,6 +25,11 @@
   grep 'VERSION = "' lib/hoe.rb|sed -E 's|.*"(.+)"|\1|'
 }
 
+prepare() {
+  cd ${_gemname}
+  patch -p1 < ../ruby27.patch
+}
+
 build() {
   cd ${_gemname}
   rake gem

Added: ruby27.patch
===================================================================
--- ruby27.patch	                        (rev 0)
+++ ruby27.patch	2019-12-26 00:06:04 UTC (rev 541525)
@@ -0,0 +1,21 @@
+commit d8e33cd84ae01ca281d497e390101c79e03f70a1
+Author: Anatol Pomozov <anatol.pomozov at gmail.com>
+Date:   Wed Dec 25 15:35:42 2019 -0800
+
+    Fix ruby 2.7 keyword parameter warning
+    
+    warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
+
+diff --git a/lib/hoe/debug.rb b/lib/hoe/debug.rb
+index 8bfdcf1..67be47b 100644
+--- a/lib/hoe/debug.rb
++++ b/lib/hoe/debug.rb
+@@ -91,7 +91,7 @@ module Hoe::Debug
+       begin
+         sh "#{DIFF} -du Manifest.txt #{f}", verbose
+       ensure
+-        rm f, verbose
++        rm f, **verbose
+       end
+     end
+   end



More information about the arch-commits mailing list