File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.2.2")
6
6
gem "json" , "< 2.0"
7
7
end
8
8
9
- gem "addressable" , "~> 2.5"
10
-
11
9
group :test do
12
10
gem "coveralls" , require : false
13
11
gem "minitest" , "~> 5.8"
Original file line number Diff line number Diff line change @@ -128,10 +128,10 @@ def self.parse_uri(string)
128
128
# e.g. mock://. To do this, we match it manually and fake the hostname
129
129
if u . scheme && ( u . host . nil? || u . host . empty? ) && u . path . empty?
130
130
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"
135
135
end
136
136
u = Addressable ::URI . parse ( string )
137
137
u . host = nil
You can’t perform that action at this time.
0 commit comments