lib/berkshelf/source_uri.rb in berkshelf-5.5.0 vs lib/berkshelf/source_uri.rb in berkshelf-5.6.0
- old
+ new
@@ -1,6 +1,6 @@
-require 'addressable/uri'
+require "addressable/uri"
module Berkshelf
class SourceURI < Addressable::URI
class << self
# Returns a URI object based on the parsed string.
@@ -20,10 +20,10 @@
rescue TypeError, ArgumentError => ex
raise InvalidSourceURI.new(uri, ex)
end
end
- VALID_SCHEMES = [ "http", "https" ].freeze
+ VALID_SCHEMES = %w{http https}.freeze
# @raise [Berkshelf::InvalidSourceURI]
def validate
super