Skip to content

Instantly share code, notes, and snippets.

Avatar
Github has statuses?

C.J. Kinniburgh CJKinni

Github has statuses?
View GitHub Profile
@CJKinni
CJKinni / pre-commit
Last active Aug 29, 2015
Chrome Extension auto-increment version number and zip extension on commit via git hooks
View pre-commit
#!/usr/bin/env ruby
require 'json'
filename = './manifest.json'
text = File.read(filename)
json = JSON.parse(text)
oldVersion = json['version']