From aa5ec0e3c53df5ce46da36cd9a583d4f7bda4385 Mon Sep 17 00:00:00 2001 From: Aditya Dalal Date: Sat, 19 Dec 2015 13:27:50 -0500 Subject: [PATCH] Update appcast.rb Remove format from `appcast` --- lib/hbc/dsl/appcast.rb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/hbc/dsl/appcast.rb b/lib/hbc/dsl/appcast.rb index 37d3d22f10f78..2545bed0abedc 100644 --- a/lib/hbc/dsl/appcast.rb +++ b/lib/hbc/dsl/appcast.rb @@ -3,24 +3,13 @@ class Hbc::DSL::Appcast # todo :latest_version is considered experimental # and may be removed - APPCAST_FORMATS = Set.new [ - :sparkle, # first one is the default - :plaintext, - :unknown, - ] - - attr_reader :parameters, :sha256, :format, :latest_version + attr_reader :parameters, :sha256, :latest_version def initialize(uri, parameters={}) @parameters = parameters @uri = Hbc::UnderscoreSupportingURI.parse(uri) @sha256 = @parameters[:sha256] @latest_version = @parameters[:latest_version] # experimental - @format = @parameters[:format] - @format = APPCAST_FORMATS.first if @format.nil? - unless APPCAST_FORMATS.include?(@format) - raise "invalid appcast format: '#{@format.inspect}'" - end end def to_yaml