From e1aa37bb305d76d4b6544dd2f6d3b8c50472ac0d Mon Sep 17 00:00:00 2001 From: mgrobelin Date: Tue, 19 Mar 2019 14:43:14 +0100 Subject: [PATCH] fixed linting and removed addressable from Gemfile see https://github.com/inspec/train/pull/339#pullrequestreview-215067182 Signed-off-by: Markus Grobelin --- lib/train.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/train.rb b/lib/train.rb index 74a0a75c..50340c13 100644 --- a/lib/train.rb +++ b/lib/train.rb @@ -128,10 +128,10 @@ def self.parse_uri(string) # e.g. mock://. To do this, we match it manually and fake the hostname if u.scheme && (u.host.nil? || u.host.empty?) && u.path.empty? case string - when %r{^([a-z]+)://$} - string += "dummy" - when /^([a-z]+):$/ - string += "//dummy" + when %r{^([a-z]+)://$} + string += "dummy" + when /^([a-z]+):$/ + string += "//dummy" end u = Addressable::URI.parse(string) u.host = nil