lib/motion/project/sparkle.rb in motion-sparkle-0.0.3 vs lib/motion/project/sparkle.rb in motion-sparkle-0.0.4

- old
+ new

@@ -16,24 +16,25 @@ @appcast ||= Appcast.new end def publish(key, value) case key - when :feed_url - feed_url value when :public_key public_key value - when :version - version value - when :base_url + when :base_url appcast.base_url = value - feed_url appcast.full_feed_url - when :notes_filename, :package_filename + feed_url appcast.feed_url + when :feed_base_url appcast.send(key.to_s + '=', value) + feed_url appcast.feed_url when :feed_filename appcast.feed_filename = value - feed_url appcast.full_feed_url + feed_url appcast.feed_url + when :version + version value + when :notes_base_url, :package_base_url, :notes_filename, :package_filename + appcast.send(key.to_s + '=', value) else raise "Unknown Sparkle config option #{key}" end end alias_method :release, :publish @@ -69,14 +70,14 @@ File.open(gitignore_path, 'r') do |f| f.each_line do |line| @ignorable.delete(line) if @ignorable.include?(line) end end - File.open(gitignore_path, 'a') do |f| + File.open(gitignore_path, 'a') do |f| @ignorable.each do |i| f << "#{i}\n" - end + end end if @ignorable.any? `cat #{gitignore_path}` end def create_sparkle_folder @@ -135,10 +136,10 @@ def project_path @project_path ||= Pathname.new(@config.project_dir) end def gitignore_path - project_path + ".gitignore" + project_path + ".gitignore" end def sparkle_release_path project_path + RELEASE_PATH end