Skip to content
Browse files

Added zips for all the individual set files in a single zip file

  • Loading branch information...
1 parent 45d957f commit 612be70cb212e98fc28148cbc0a4af9c471774da @Sembiance Sembiance committed
Showing with 19 additions and 2 deletions.
  1. +7 −0 web/changelog.json
  2. +6 −2 web/generate.js
  3. +6 −0 web/index.dust
View
7 web/changelog.json
@@ -1,5 +1,12 @@
[
{
+ "version": "2.8.4",
+ "when": "2014-07-13",
+ "changes": [
+ "Added AllSetFiles.zip and AllSetFiles-x.zip for those that want all files individually, more easily."
+ ]
+ },
+ {
"version": "2.8.3",
"when": "2014-07-12",
"changes": [
View
8 web/generate.js
@@ -18,8 +18,8 @@ var dustData =
{
title : "Magic the Gathering card data in JSON format",
sets : [],
- version : "2.8.3",
- lastUpdated : "Jul 12, 2014",
+ version : "2.8.4",
+ lastUpdated : "Jul 13, 2014",
setCodesNotOnGatherer : C.SETS_NOT_ON_GATHERER.join(", ")
};
@@ -112,6 +112,8 @@ tiptoe(
{
runUtil.run("zip", ["-9", "AllSets.json.zip", "AllSets.json"], { cwd: path.join(__dirname, "json"), silent : true }, this.parallel());
runUtil.run("zip", ["-9", "AllSets-x.json.zip", "AllSets-x.json"], { cwd: path.join(__dirname, "json"), silent : true }, this.parallel());
+ runUtil.run("zip", ["-9", "AllSetFiles.zip"].concat(C.SETS.map(function(SET) { return SET.code + ".json"; })), { cwd: path.join(__dirname, "json"), silent : true }, this.parallel());
+ runUtil.run("zip", ["-9", "AllSetFiles-x.zip"].concat(C.SETS.map(function(SET) { return SET.code + "-x.json"; })), { cwd: path.join(__dirname, "json"), silent : true }, this.parallel());
C.SETS.serialForEach(function(SET, cb)
{
@@ -127,6 +129,8 @@ tiptoe(
{
dustData.allSizeZip = printUtil.toSize(fs.statSync(path.join(__dirname, "json", "AllSets.json.zip")).size, 1);
dustData.allSizeXZip = printUtil.toSize(fs.statSync(path.join(__dirname, "json", "AllSets-x.json.zip")).size, 1);
+ dustData.allSetFilesZipSize = printUtil.toSize(fs.statSync(path.join(__dirname, "json", "AllSetFiles.zip")).size, 1);
+ dustData.allSetFilesXZipSize = printUtil.toSize(fs.statSync(path.join(__dirname, "json", "AllSetFiles-x.zip")).size, 1);
C.SETS.forEach(function(SET, i)
{
View
6 web/index.dust
@@ -608,6 +608,12 @@
<th colspan="7">Individual Sets</th>
</tr>
<tr>
+ <td colspan="7">
+ All Individual Set files in one zip: <a href="json/AllSetFiles.zip">AllSetFiles.zip</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="size">{allSetFilesZipSize|s}</span><br>
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;with extras: <a href="json/AllSetFiles-x.zip">AllSetFiles-x.zip</a>&nbsp;&nbsp;&nbsp;<span class="size">{allSetFilesXZipSize|s}</span>
+ </td>
+ </tr>
+ <tr>
<th>Name</th>
<th>Code</th>
<th>Release Date</th>

0 comments on commit 612be70

Please sign in to comment.
Something went wrong with that request. Please try again.