Merge branch 'master' into jc-v3-logs
This commit is contained in:
commit
ce7adf5090
|
@ -21,7 +21,7 @@ module Travis::Api::App::Responders
|
||||||
<updated><%= ::DateTime.parse(build.updated_at.to_s).rfc3339 %></updated>
|
<updated><%= ::DateTime.parse(build.updated_at.to_s).rfc3339 %></updated>
|
||||||
<summary type="html">
|
<summary type="html">
|
||||||
<p>
|
<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/>
|
<br/><br/>
|
||||||
State: <%= build.state %>
|
State: <%= build.state %>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
|
@ -123,7 +123,7 @@ module Travis
|
||||||
end
|
end
|
||||||
|
|
||||||
def owner_key(feature, owner)
|
def owner_key(feature, owner)
|
||||||
suffix = owner.class.table_name
|
suffix = owner.class.table_name if owner
|
||||||
"#{key(feature)}:#{suffix}"
|
"#{key(feature)}:#{suffix}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -174,6 +174,7 @@ class Job < Travis::Model
|
||||||
end
|
end
|
||||||
|
|
||||||
def normalize_config(config)
|
def normalize_config(config)
|
||||||
|
config = YAML.load(config) if config.is_a? String
|
||||||
config = config ? config.deep_symbolize_keys : {}
|
config = config ? config.deep_symbolize_keys : {}
|
||||||
|
|
||||||
if config[:deploy]
|
if config[:deploy]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user