\
From e7c4a6c55ee1e4f05fb03220a3ea40496487e1e7 Mon Sep 17 00:00:00 2001
From: Derek Bess <2bitsolutions@gmail.com>
Date: Wed, 22 Feb 2017 11:26:00 -0500
Subject: [PATCH 4/7] Updated spaces from tab 4 to tab 2
---
src/helpers/ruler.js | 33 +++++++++++++++++++--------------
1 file changed, 19 insertions(+), 14 deletions(-)
diff --git a/src/helpers/ruler.js b/src/helpers/ruler.js
index c83bf6b..fe335a4 100644
--- a/src/helpers/ruler.js
+++ b/src/helpers/ruler.js
@@ -18,13 +18,14 @@ module.exports = function(options) {
String.prototype.trimUnit = function() { return this.replace(/\D/g, ''); }
// Variables & Options
- var color = options.hash.color,
- spacing = options.hash.spacing.trimUnit(),
- height = options.hash.height.trimUnit(),
- width = options.hash.width,
- widthType = '',
- trimWidth = width.trimUnit(),
- spacer = '';
+ var
+ color = options.hash.color,
+ spacing = options.hash.spacing.trimUnit(),
+ height = options.hash.height.trimUnit(),
+ width = options.hash.width,
+ widthType = '',
+ trimWidth = width.trimUnit(),
+ spacer = '';
// Set Undefined Options
if (typeof color === 'undefined') color = '';
@@ -48,13 +49,17 @@ module.exports = function(options) {
}
// HTML Output
- var ruler = '\
- '+spacer+'\
- \
- \
- | \
- '+spacer+'\
- ';
+ var ruler = '\
+ \
+ '+spacer+'\
+ \
+ \
+ \
+ | \
+ \
+ '+spacer+'\
+ \
+ ';
return ruler;
}
From 8d2f686022d08bc0f2eb8451a6c7552d1135d6e3 Mon Sep 17 00:00:00 2001
From: Derek Bess <2bitsolutions@gmail.com>
Date: Wed, 22 Feb 2017 11:33:55 -0500
Subject: [PATCH 5/7] Changed code spacing
Changed spacing from tab to spaces and size from 4 to 2.
---
src/helpers/ruler.js | 78 ++++++++++++++++++++++----------------------
1 file changed, 39 insertions(+), 39 deletions(-)
diff --git a/src/helpers/ruler.js b/src/helpers/ruler.js
index fe335a4..8822a36 100644
--- a/src/helpers/ruler.js
+++ b/src/helpers/ruler.js
@@ -14,52 +14,52 @@
module.exports = function(options) {
- // Trim Non-Numberic Chracters
- String.prototype.trimUnit = function() { return this.replace(/\D/g, ''); }
-
- // Variables & Options
- var
+ // Trim Non-Numberic Chracters
+ String.prototype.trimUnit = function() { return this.replace(/\D/g, ''); }
+
+ // Variables & Options
+ var
color = options.hash.color,
- spacing = options.hash.spacing.trimUnit(),
- height = options.hash.height.trimUnit(),
- width = options.hash.width,
- widthType = '',
- trimWidth = width.trimUnit(),
- spacer = '';
+ spacing = options.hash.spacing.trimUnit(),
+ height = options.hash.height.trimUnit(),
+ width = options.hash.width,
+ widthType = '',
+ trimWidth = width.trimUnit(),
+ spacer = '';
- // Set Undefined Options
- if (typeof color === 'undefined') color = '';
- if (typeof height === 'undefined') height = '';
- if (typeof width === 'undefined') width = '';
- if (typeof spacing === 'undefined') {
- spacer = '';
- } else {
- spacer = ' |