From 17ccc22fbe5ee76be2eb9fb3f9161375cbffdcf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Hendricksen?= Date: Sun, 14 Aug 2016 19:23:22 -0400 Subject: [PATCH] fix the atom bug --- lib/travis/api/app/responders/atom.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/travis/api/app/responders/atom.rb b/lib/travis/api/app/responders/atom.rb index 8bdd3e44..bf7f6c3d 100644 --- a/lib/travis/api/app/responders/atom.rb +++ b/lib/travis/api/app/responders/atom.rb @@ -4,15 +4,15 @@ module Travis::Api::App::Responders class Atom < Base ATOM_FEED_ERB = ERB.new <<-EOF - + - + <%= resource.first.repository.slug %> Builds repo:<%= resource.first.repository.id %> Copyright (c) <%= DateTime.now.strftime("%Y") %> Travis CI GmbH <%= DateTime.now.rfc3339 %> - + <% resource.each do |build| %> <%= build.repository.slug %> Build #<%= build.number %> @@ -21,7 +21,7 @@ module Travis::Api::App::Responders <%= ::DateTime.parse(build.updated_at.to_s).rfc3339 %> <p> - <%= build.commit.message.encode(:xml => :text) %> (<%= build.commit.committer_name %>) + <%= build.commit.message.encode(:xml => :text) if build.commit.message %> (<%= build.commit.committer_name %>) <br/><br/> State: <%= build.state %> <br/> @@ -36,7 +36,7 @@ module Travis::Api::App::Responders <% end %> - + EOF