From c411e5bbe339db791e0e9a13fde0625dd19e93c0 Mon Sep 17 00:00:00 2001 From: swamp09 Date: Wed, 13 Sep 2017 23:57:02 +0900 Subject: [PATCH 1/2] Suppress `warning: ambiguous first argument; put parentheses or a space even after `/' operator` --- lib/tasks/changelog_task.rb | 2 +- lib/tasks/github_release_task.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/changelog_task.rb b/lib/tasks/changelog_task.rb index 053c9d182..1edfb25d2 100644 --- a/lib/tasks/changelog_task.rb +++ b/lib/tasks/changelog_task.rb @@ -177,7 +177,7 @@ Watchers | #{watchers} end def committer_match - current_line.match /([-\w\s]+)\s+\(\d+\)/ + current_line.match (/([-\w\s]+)\s+\(\d+\)/) end def last_release_sha diff --git a/lib/tasks/github_release_task.rb b/lib/tasks/github_release_task.rb index 0e94749aa..0a25d4eae 100644 --- a/lib/tasks/github_release_task.rb +++ b/lib/tasks/github_release_task.rb @@ -47,7 +47,7 @@ module Fog end def release_match - @current_line.match /## (\d+\.\d+\.\d+) \d+\/\d+\d+/ + @current_line.match (/## (\d+\.\d+\.\d+) \d+\/\d+\d+/) end def github From 4144431d11958f262c000187f6d147c77c6f875c Mon Sep 17 00:00:00 2001 From: swamp09 Date: Thu, 14 Sep 2017 00:44:12 +0900 Subject: [PATCH 2/2] Suppress `warning: mismatched indentations at 'end' with 'class'` --- lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb b/lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb index 8ee3b5386..1f034bd6b 100644 --- a/lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb +++ b/lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb @@ -65,7 +65,7 @@ module Fog :body => body ) end - end + end end end end