On Thu, Jan 14, 2016 at 2:53 PM, sebb <[email protected]> wrote: > > Not sure the author or comment are useful, given that they only refer > to part of the whole. > > So perhaps something like: > > $ git show -format="%h %cI" -s HEAD > 9cc7ee8 2016-01-14T13:27:45+00:00 > > or > > $ git show --format="%H @ %cI" -s HEAD > 9cc7ee8135b61f16f5b16272f653f87731c6fe5c @ 2016-01-14T13:27:45+00:00
Whatever you feel is best. Given my recent addition which will cause the file to be updated if any of the lib files changed, it would probably be best to drop the if previous_results['gem_version'] == GEMVERSION check. Particularly if you replace that field with something that represents the hash of the HEAD. Clients will cache the JSON, so any unnecessary change to the file will introduce a delay while the content is refetched. - Sam Ruby
