File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.2')
12
12
gem 'json' , '< 2.0'
13
13
end
14
14
15
+ gem 'addressable' , '~> 2.5'
16
+
15
17
group :test do
16
18
gem 'bundler' , '~> 1.11'
17
19
gem 'minitest' , '~> 5.8'
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ def self.parse_uri(string)
117
117
u = Addressable ::URI . parse ( string )
118
118
# A use-case we want to catch is parsing empty URIs with a schema
119
119
# e.g. mock://. To do this, we match it manually and fake the hostname
120
- if u . scheme and ( u . host . nil? or u . host . empty? ) and u . path . empty?
120
+ if u . scheme && ( u . host . nil? || u . host . empty? ) && u . path . empty?
121
121
case string
122
122
when %r{^([a-z]+)://$}
123
123
string += 'dummy'
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
25
25
26
26
spec . required_ruby_version = '>= 2.0'
27
27
28
+ spec . add_dependency 'addressable' , '~> 2.5'
28
29
spec . add_dependency 'json' , '>= 1.8' , '< 3.0'
29
30
# chef-client < 12.4.1 require mixlib-shellout-2.0.1
30
31
spec . add_dependency 'mixlib-shellout' , '~> 2.0'
You can’t perform that action at this time.
0 commit comments