{"action":"created","issue":{"url":"https://api.github.com/repos/KrauseFx/fastlane/issues/299","labels_url":"https://api.github.com/repos/KrauseFx/fastlane/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/KrauseFx/fastlane/issues/299/comments","events_url":"https://api.github.com/repos/KrauseFx/fastlane/issues/299/events","html_url":"https://github.com/KrauseFx/fastlane/pull/299","id":77933812,"number":299,"title":"s3 command will include a version.json","user":{"login":"dbachrach","id":45016,"avatar_url":"https://avatars.githubusercontent.com/u/45016?v=3","gravatar_id":"","url":"https://api.github.com/users/dbachrach","html_url":"https://github.com/dbachrach","followers_url":"https://api.github.com/users/dbachrach/followers","following_url":"https://api.github.com/users/dbachrach/following{/other_user}","gists_url":"https://api.github.com/users/dbachrach/gists{/gist_id}","starred_url":"https://api.github.com/users/dbachrach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbachrach/subscriptions","organizations_url":"https://api.github.com/users/dbachrach/orgs","repos_url":"https://api.github.com/users/dbachrach/repos","events_url":"https://api.github.com/users/dbachrach/events{/privacy}","received_events_url":"https://api.github.com/users/dbachrach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-19T04:55:55Z","updated_at":"2015-05-19T14:11:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/KrauseFx/fastlane/pulls/299","html_url":"https://github.com/KrauseFx/fastlane/pull/299","diff_url":"https://github.com/KrauseFx/fastlane/pull/299.diff","patch_url":"https://github.com/KrauseFx/fastlane/pull/299.patch"},"body":"For enterprise distribution via S3, it's useful to have a `version.json` that apps can poll to see if there are app updates.\r\n\r\nThis change will upload a `version.json` next to the `index.html` with the following structure:\r\n\r\n```json\r\n{ \r\n    \"latestVersion\": \"<%= full_version %>\",\r\n    \"updateUrl\": \"itms-services://?action=download-manifest&url=<%= url %>\"\r\n}\r\n```\r\n\r\nCallers to the `s3` command can pass the following parameters:\r\n\r\n```ruby\r\ns3(\r\n  version_file_name, # Name of the file to upload to S3. Defaults to 'version.son'\r\n  version_template_path # Path to an ERB to configure the structure of the JSON file\r\n)"},"comment":{"url":"https://api.github.com/repos/KrauseFx/fastlane/issues/comments/103513038","html_url":"https://github.com/KrauseFx/fastlane/pull/299#issuecomment-103513038","issue_url":"https://api.github.com/repos/KrauseFx/fastlane/issues/299","id":103513038,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T14:11:22Z","updated_at":"2015-05-19T14:11:22Z","body":"\n[![Coverage Status](https://coveralls.io/builds/2598749/badge)](https://coveralls.io/builds/2598749)\n\nCoverage decreased (-0.23%) to 82.22% when pulling **d5badc58ed031f9b8bae26d8b678ae68b8b6383f on dbachrach:s3-version-file** into **98f8dfad829c91fa9ec53ca0d26e8e09292d65c7 on KrauseFx:master**.\n"}}