#898: update API response

This commit is contained in:
Vokhmin Alexey V 2013-02-07 17:50:55 +04:00
parent e0de8e7df4
commit 39808ae55a
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ json.build_list do |json|
json.(@build_list, :id, :name, :container_status, :status, :duration) json.(@build_list, :id, :name, :container_status, :status, :duration)
json.(@build_list, :is_circle, :update_type, :priority, :new_core) json.(@build_list, :is_circle, :update_type, :priority, :new_core)
json.(@build_list, :advisory, :mass_build, :use_save_to_repository) json.(@build_list, :advisory, :mass_build, :use_save_to_repository)
json.(@build_list, :auto_publish, :package_version, :commit_hash, :last_published_commit_hash, :publish_i686_into_x86_64) json.(@build_list, :auto_publish, :package_version, :commit_hash, :last_published_commit_hash)
json.build_log_url log_build_list_path(@build_list) json.build_log_url log_build_list_path(@build_list)
if @build_list.container_published? if @build_list.container_published?

View File

@ -1,6 +1,6 @@
json.projects @projects do |json, project| json.projects @projects do |json, project|
json.partial! 'project', :project => project, :json => json json.partial! 'project', :project => project, :json => json
json.(project, :visibility, :description, :ancestry, :has_issues, :has_wiki, :default_branch, :is_package, :average_build_time) json.(project, :visibility, :description, :ancestry, :has_issues, :has_wiki, :default_branch, :is_package, :average_build_time, :publish_i686_into_x86_64)
json.created_at project.created_at.to_i json.created_at project.created_at.to_i
json.updated_at project.updated_at.to_i json.updated_at project.updated_at.to_i
json.partial! 'api/v1/shared/owner', :owner => project.owner json.partial! 'api/v1/shared/owner', :owner => project.owner

View File

@ -1,6 +1,6 @@
json.project do |json| json.project do |json|
json.partial! 'project', :project => @project, :json => json json.partial! 'project', :project => @project, :json => json
json.(@project, :visibility, :description, :ancestry, :has_issues, :has_wiki, :default_branch, :is_package, :average_build_time) json.(@project, :visibility, :description, :ancestry, :has_issues, :has_wiki, :default_branch, :is_package, :average_build_time, :publish_i686_into_x86_64)
json.created_at @project.created_at.to_i json.created_at @project.created_at.to_i
json.updated_at @project.updated_at.to_i json.updated_at @project.updated_at.to_i
json.partial! 'api/v1/shared/owner', :owner => @project.owner json.partial! 'api/v1/shared/owner', :owner => @project.owner