From 32db7bfb978d8a1d945d2938f37bbfee8c065008 Mon Sep 17 00:00:00 2001 From: Dumitru Uzun Date: Mon, 20 Apr 2015 14:24:20 +0300 Subject: [PATCH] verup adds \n at the end of JSON files --- bower.json | 2 +- build/verup.js | 6 +++++- component.json | 2 +- package.json | 2 +- ua-parser-js.jquery.json | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/bower.json b/bower.json index 7ecce78..cd26d07 100644 --- a/bower.json +++ b/bower.json @@ -40,4 +40,4 @@ "Sandro Sonntag " ], "dependencies": {} -} \ No newline at end of file +} diff --git a/build/verup.js b/build/verup.js index f8f0140..a2cd149 100644 --- a/build/verup.js +++ b/build/verup.js @@ -15,7 +15,7 @@ * * * @author Dumitru Uzun (DUzun.Me) - * @version 1.0.0 + * @version 1.1.0 */ var path = require('path'); @@ -68,6 +68,7 @@ if ( over ) { var buf = JSON.stringify(packo, null, 2); if ( buf && over != nver ) { + buf += "\n"; fs.writeFileSync(packFile, buf); } @@ -82,6 +83,9 @@ if ( over ) { var packo = JSON.parse(cnt); packo.version = nver; buf = JSON.stringify(packo, null, 2); + if ( buf ) { + buf += "\n"; + } } break; default: { diff --git a/component.json b/component.json index 93d25df..12ca093 100644 --- a/component.json +++ b/component.json @@ -21,4 +21,4 @@ "visionmedia/mocha": "*", "mishoo/uglifyjs2": "*" } -} \ No newline at end of file +} diff --git a/package.json b/package.json index a70172e..175f857 100644 --- a/package.json +++ b/package.json @@ -72,4 +72,4 @@ "src": "src", "test": "test" } -} \ No newline at end of file +} diff --git a/ua-parser-js.jquery.json b/ua-parser-js.jquery.json index 608dd82..eb105da 100644 --- a/ua-parser-js.jquery.json +++ b/ua-parser-js.jquery.json @@ -29,4 +29,4 @@ "bugs": "https://github.com/faisalman/ua-parser-js/issues", "docs": "https://github.com/faisalman/ua-parser-js", "download": "https://raw.github.com/faisalman/ua-parser-js/master/dist/ua-parser.min.js" -} \ No newline at end of file +}