lib/berkshelf/source_uri.rb in berkshelf-6.1.0 vs lib/berkshelf/source_uri.rb in berkshelf-6.1.1
- old
+ new
@@ -26,11 +26,11 @@
# @raise [Berkshelf::InvalidSourceURI]
def validate
super
- unless VALID_SCHEMES.include?(self.scheme)
- raise InvalidSourceURI.new(self, "invalid URI scheme '#{self.scheme}'. Valid schemes: #{VALID_SCHEMES}")
+ unless VALID_SCHEMES.include?(scheme)
+ raise InvalidSourceURI.new(self, "invalid URI scheme '#{scheme}'. Valid schemes: #{VALID_SCHEMES}")
end
rescue Addressable::URI::InvalidURIError => ex
raise InvalidSourceURI.new(self, ex)
end
end