lib/chocbomb/tools/feed.rb in chocbomb-0.0.1 vs lib/chocbomb/tools/feed.rb in chocbomb-0.0.2

- old
+ new

@@ -24,10 +24,12 @@ def self.make_release_notes(cb) self.new(cb).make_release_notes end def make_appcast + dsa_signature = `openssl dgst -sha1 -binary < "#{chocbomb.pkg}" | openssl dgst -dss1 -sign "#{chocbomb.private_key}" | openssl enc -base64` + FileUtils.mkdir_p(chocbomb.build_path) appcast = File.open("#{chocbomb.build_path}/#{chocbomb.appcast_filename}", 'w') do |f| xml = Builder::XmlMarkup.new(:indent => 2) xml.instruct! xml_string = xml.rss('xmlns:atom' => "http://www.w3.org/2005/Atom", @@ -51,10 +53,10 @@ xml.guid("#{chocbomb.name}-#{chocbomb.version}", :isPermaLink => "false") xml.enclosure(:url => "#{chocbomb.base_url}/#{chocbomb.pkg_name}", :length => "#{File.size(chocbomb.pkg)}", :type => "application/dmg", :"sparkle:version" => chocbomb.version, - :"sparkle:dsaSignature" => chocbomb.dsa_signature) + :"sparkle:dsaSignature" => dsa_signature) end end end f << xml_string end \ No newline at end of file