2013-09-12 15:52:22 +01:00
|
|
|
json.(package, :id, :name, :version, :release, :epoch)
|
2012-11-26 11:32:23 +00:00
|
|
|
json.type package.package_type
|
|
|
|
json.updated_at package.updated_at.to_i
|
2013-01-22 15:39:56 +00:00
|
|
|
json.url (package.sha1 ? "#{APP_CONFIG['file_store_url']}/api/v1/file_stores/#{package.sha1}" : '' )
|