Skip to content

Commit 5ae8347

Browse files
mgrobelinzenspider
authored andcommitted
fixed linting and removed addressable from Gemfile
see #339 (review) Signed-off-by: Markus Grobelin <[email protected]>
1 parent 6ca2b1e commit 5ae8347

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.2.2")
66
gem "json", "< 2.0"
77
end
88

9-
gem "addressable", "~> 2.5"
10-
119
group :test do
1210
gem "coveralls", require: false
1311
gem "minitest", "~> 5.8"

lib/train.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ def self.parse_uri(string)
128128
# e.g. mock://. To do this, we match it manually and fake the hostname
129129
if u.scheme && (u.host.nil? || u.host.empty?) && u.path.empty?
130130
case string
131-
when %r{^([a-z]+)://$}
132-
string += "dummy"
133-
when /^([a-z]+):$/
134-
string += "//dummy"
131+
when %r{^([a-z]+)://$}
132+
string += "dummy"
133+
when /^([a-z]+):$/
134+
string += "//dummy"
135135
end
136136
u = Addressable::URI.parse(string)
137137
u.host = nil

0 commit comments

Comments
 (0)