Skip to content

Commit 7a35d41

Browse files
committed
Releasing DownloadBuilder.js v0.6.0
1 parent 63667bd commit 7a35d41

File tree

5 files changed

+248
-639
lines changed

5 files changed

+248
-639
lines changed

README.markdown

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ If you find that you need a feature that DownloadBuilder does not currently supp
5050

5151
##Change Log
5252

53+
`0.6.0` - December 12, 2012
54+
55+
- Added Github Oauth Credentials global options: **client_id** and **client_secret**
56+
5357
`0.5.0` - September 12, 2012
5458

5559
- Updated concatenation logic - Added a newline to separate different files within the contatenated file

docs/DownloadBuilder.html

+230-631
Large diffs are not rendered by default.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "DownloadBuilder.js",
33
"title": "JavaScript Library to Create Custom Builds For Front-End Projects",
44
"description": "A JavaScript library that uses the HTML5 Filesystem API to create concatenated single file custom builds for front-end projects. The library currently supports concatenating local files (supported in all major browsers) and/or files from Github (not supported in IE unless you use a window.atob polyfill). The library also uses Session Storage to provide an option to cache ajax/jsonp requests.",
5-
"version": "0.5.0",
5+
"version": "0.6.0",
66
"homepage": "https://github.com/gfranko/DownloadBuilder.js",
77
"author": {
88
"name": "Greg Franko",

src/javascripts/DownloadBuilder.js

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* DownloadBuilder.js - v0.5.0 - 2012-09-12
1+
/* DownloadBuilder.js - v0.6.0 - 2012-12-12
22
* http://www.gregfranko.com/downloadBuilder.js/
33
* Copyright (c) 2012 Greg Franko; Licensed MIT */
44

@@ -35,7 +35,13 @@
3535
"repo": (obj && obj.repo) || "",
3636

3737
// Github branch option
38-
"branch": (obj && obj.branch) || ""
38+
"branch": (obj && obj.branch) || "",
39+
40+
// Github client id
41+
"client_id": (obj && obj.client_id) || "",
42+
43+
// Github client secret
44+
"client_secret": (obj && obj.client_secret) || ""
3945

4046
};
4147

@@ -61,7 +67,7 @@
6167
DownloadBuilder.prototype = {
6268

6369
// Library Version Number
64-
VERSION: "0.5.0",
70+
VERSION: "0.6.0",
6571

6672
//Github Rate Limit URL
6773
githubRateLimitUrl: "https://api.github.com/rate_limit",
@@ -162,7 +168,7 @@
162168
var self = this;
163169

164170
// Calls the custom JSONP method (created by Oscar Goodson)
165-
this.JSONP(this.githubRateLimitUrl, function(data){
171+
this.JSONP(this.githubRateLimitUrl + "?client_id=" + this.options.client_id + "&client_secret=" + this.options.client_secret, function(data){
166172

167173
// Sets an instance variable that determines if the Github rate limit has been reached or not
168174
self.rateLimit = data.data.rate.remaining;
@@ -492,7 +498,7 @@
492498
this.rateLimit -= 1;
493499

494500
// Sends a third party file request
495-
this._thirdPartyRequest({ "type": obj.location, "url": "https://api.github.com/repos/" + obj.repoAuthor + "/" + obj.repoName + "/contents/?ref=" + obj.repoBranch + "&path=" + obj.currentElem.value, "elem": obj.currentElem, "time": obj.time, "lastElem": obj.lastElem, "lang": obj.lang, "fileName": obj.fileName });
501+
this._thirdPartyRequest({ "type": obj.location, "url": "https://api.github.com/repos/" + obj.repoAuthor + "/" + obj.repoName + "/contents/?ref=" + obj.repoBranch + "&path=" + obj.currentElem.value + "&client_id=" + this.options.client_id + "&client_secret=" + this.options.client_secret, "elem": obj.currentElem, "time": obj.time, "lastElem": obj.lastElem, "lang": obj.lang, "fileName": obj.fileName });
496502

497503
}
498504

src/javascripts/DownloadBuilder.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)