Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VDrift Data on GitHub
08-31-2012, 04:02 AM, (This post was last modified: 08-31-2012, 04:21 AM by NaN.)
#4
RE: VDrift Data on GitHub
(08-31-2012, 12:29 AM)joevenzon Wrote: @logzero if you think it's a good idea and want to handle the switch over, I'm OK with it, though make sure you disable (or remove from the UI) the auto-update stuff, since that scrapes the SVN repo.
I'd prefer to keep auto-update functionality, make it a blocker for data to github move.

@BiGBeN87 We need to add github support to auto update. Any ideas or maybe even a patch?

I've been playing a bit with github:
Code:
Get data content:
curl -k https://api.github.com/repos/bigben87/VDrift-Data/git/trees/master

Parse cars directory url:
{
      "type": "tree",
      "path": "cars",
      "mode": "040000",
      "url": "https://api.github.com/repos/bigben87/VDrift-Data/git/trees/de24ce5756a6e05d380f76a294d952592ce411cb",
      "sha": "de24ce5756a6e05d380f76a294d952592ce411cb"
}

Get car directory content:
curl -k https://api.github.com/repos/bigben87/VDrift-Data/git/trees/de24ce5756a6e05d380f76a294d952592ce411cb

Compare SHA hashes to find modified cars.

Btw ptree_inf is "almost" json. Adding a ptree_json to process github output should be quite simple. Or we could add a json lib as dependency.
Reply


Messages In This Thread
VDrift Data on GitHub - by BiGBeN87 - 08-30-2012, 01:15 PM
RE: VDrift Data on GitHub - by NaN - 08-30-2012, 02:42 PM
RE: VDrift Data on GitHub - by joevenzon - 08-31-2012, 12:29 AM
RE: VDrift Data on GitHub - by NaN - 08-31-2012, 04:02 AM
RE: VDrift Data on GitHub - by antoniovazquez - 08-31-2012, 04:05 PM
RE: VDrift Data on GitHub - by NaN - 08-31-2012, 04:50 PM
RE: VDrift Data on GitHub - by BiGBeN87 - 08-31-2012, 06:06 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)