From 94a6f02d5ed6de2c32c439256ef9db5af0baaff1 Mon Sep 17 00:00:00 2001 From: NeoNexus DeMortis Date: Fri, 27 Oct 2023 11:58:34 -0500 Subject: [PATCH] Fixed test. Fixed license badge. --- .gitignore | 1 + .idea/dictionaries/neonexus.xml | 8 ++++++++ README.md | 2 +- gpl.svg | 25 +++++++++++++++++++++++++ license.svg | 26 -------------------------- package-lock.json | 4 ++-- package.json | 2 +- test/index.test.js | 4 ++-- 8 files changed, 40 insertions(+), 32 deletions(-) create mode 100644 .idea/dictionaries/neonexus.xml create mode 100644 gpl.svg delete mode 100644 license.svg diff --git a/.gitignore b/.gitignore index 3c3629e..fd4f2b0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +.DS_Store diff --git a/.idea/dictionaries/neonexus.xml b/.idea/dictionaries/neonexus.xml new file mode 100644 index 0000000..f0ef56a --- /dev/null +++ b/.idea/dictionaries/neonexus.xml @@ -0,0 +1,8 @@ + + + + codeql + drfg + + + \ No newline at end of file diff --git a/README.md b/README.md index b41f630..0b9deb7 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Build Status](https://img.shields.io/travis/com/neonexus/drfg/release?style=plastic&logo=travis)](https://app.travis-ci.com/neonexus/drfg) [![NPM version](https://img.shields.io/npm/v/drfg/latest?style=plastic&logo=npm&color=blue)](https://www.npmjs.com/package/drfg) [![GitHub version](https://img.shields.io/github/v/release/neonexus/drfg?style=plastic&logo=github&label=GitHub@latest)](https://github.com/neonexus/drfg) -[](LICENSE) +[](LICENSE) The idea of this package, is to make downloading / extracting / installing a GitHub repo's latest release a breeze (without creating a new repo, or using Git for that matter). Both in the terminal, and programmatically, if you are into that kind of thing... diff --git a/gpl.svg b/gpl.svg new file mode 100644 index 0000000..9a9b453 --- /dev/null +++ b/gpl.svg @@ -0,0 +1,25 @@ + + license: GPL-3.0 + + + + + + + + + + + + + + + + + + license + + GPL-3.0 + + diff --git a/license.svg b/license.svg deleted file mode 100644 index 9502a26..0000000 --- a/license.svg +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - license - - MIT - - diff --git a/package-lock.json b/package-lock.json index 770faab..764f901 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "drfg", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "drfg", - "version": "0.0.1", + "version": "0.0.2", "funding": [ { "type": "github", diff --git a/package.json b/package.json index 878168a..0079dc2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "drfg", - "version": "0.0.1", + "version": "0.0.2", "description": "Download Release From GitHub, extract it into a new directory, and install dependencies, with a single command.", "bin": { "drfg": "src/bin.js", diff --git a/test/index.test.js b/test/index.test.js index faefa3b..005426e 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -6,7 +6,7 @@ const utils = require('../src/utilities'); chai.use(require('chai-spies')); -describe('drfg - Download Zipball From Github', () => { +describe('drfg - Download Release From Github', () => { afterEach((done) => { chai.spy.restore(); done(); @@ -77,7 +77,7 @@ describe('drfg - Download Zipball From Github', () => { }); it('should calculate the size of a directory recursively', (done) => { - const githubSize = fs.statSync(path.join(__dirname, '../.github/FUNDING.yml')).size + fs.statSync(path.join(__dirname, '../.github/workflows/codeql.yml')).size; + const githubSize = fs.statSync(path.join(__dirname, '../.github/FUNDING.yml')).size + fs.statSync(path.join(__dirname, '../.github/workflows/codeql-analysis.yml')).size; const utilsCalc = utils.getDirectorySize(path.join(__dirname, '../.github'));