*Project MUST be named “AutoGist”. This is case sensitive.
New AutoGist Installer: https://gist.github.com/briarfox/5762703
The Installer is one file. Copy it and paste it over main in a newly created project named AutoGist. Then just run it! Thanks to @acp for the code.
AutoGist code - https://gist.github.com/briarfox/5525674
AutoGist 2.0 is here! First you will need to create a Github account @ http://www.github.com
-Open AutoGist and supply your username and password. These are not saved and only need to be used once. After you Authenticate it will save your Github token as a global.
-Exit and reload AutoGist
-You can now use AutoGist to pull full projects from a gist id. You Simply create a blank project, open AutoGist Enter the project name and the gist ID from the gist you want to pull.
-AutoGist can now create a single file that will install all tabs from a Gist. This makes it easy for people who do not have a Gist app. Simply Enter the Name of the Project and the gist id from it’s gist. A new gist will be created with one file. That files is ran in place of main and will install the project all in separate tabs.
-You can comment out code that you do not want to appear in the Gist. use
--to comment out code do
--/*
code to comment out
--*/
This is how you include AutoGist into your project to backup.
To backup your projects you simply add this to your main file and include AutoGist in your project:
VERSION = "1.0.1" --This will identify the version to users. Change it to update the Gist.
PROJECTNAME = "your project name" --This is also used for the Updater
--/*
BUILD = true/false
--BUILD will create a separate gist for builds when set to true, version is ignored
--*/
In setup add:
--/*
autoGist = AutoGist(PROJECTNAME,"DESCRIPTION",VERSION,true|false|functionName)
-- @param VERSION should be the variable used in setting the version at the top.
--last param will add an update checker and button if set to true or a specific function in main if you pass the function name..
autoGist.backup()
-- if you pass true in backup, your Version gist will be public.
--*/
Thats it! Future update will include Version tracking as a tab within Codea.