From 7d30c08a9fbff26f406aecee3efa2a86198a0805 Mon Sep 17 00:00:00 2001 From: anolilab Date: Tue, 25 Aug 2015 09:07:17 +0200 Subject: [PATCH 1/4] Added mixin for config-get --- src/scss/utils/_mixins.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/scss/utils/_mixins.scss b/src/scss/utils/_mixins.scss index a688a1b..858feab 100644 --- a/src/scss/utils/_mixins.scss +++ b/src/scss/utils/_mixins.scss @@ -14,6 +14,18 @@ $config: config-set($key, $value, $default); } +// Gets a value to/from a configuration path +// +// @function config-get +// +// @param $key {string} The configuration path +// @param $default {bool} Whether the configuration is default +// +// @return {*} The value of the configuration path +@mixin config-get($key, $default: false) { + $config: config-get($key, $default); +} + // Remove settings // // @mixin config-reset From f8fbe9a9bd74582d891a84cd792fac7a773c7752 Mon Sep 17 00:00:00 2001 From: anolilab Date: Tue, 25 Aug 2015 09:12:20 +0200 Subject: [PATCH 2/4] Added mixin for config-get --- dist/_config-manager.scss | 12 ++++++++++++ tests/specs/_config-manager.scss | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/dist/_config-manager.scss b/dist/_config-manager.scss index d0fe3b4..affb1e2 100644 --- a/dist/_config-manager.scss +++ b/dist/_config-manager.scss @@ -23,6 +23,18 @@ $config: config-set($key, $value, $default); } +// Gets a value to/from a configuration path +// +// @function config-get +// +// @param $key {string} The configuration path +// @param $default {bool} Whether the configuration is default +// +// @return {*} The value of the configuration path +@mixin config-get($key, $default: false) { + $config: config-get($key, $default); +} + // Remove settings // // @mixin config-reset diff --git a/tests/specs/_config-manager.scss b/tests/specs/_config-manager.scss index d0fe3b4..affb1e2 100644 --- a/tests/specs/_config-manager.scss +++ b/tests/specs/_config-manager.scss @@ -23,6 +23,18 @@ $config: config-set($key, $value, $default); } +// Gets a value to/from a configuration path +// +// @function config-get +// +// @param $key {string} The configuration path +// @param $default {bool} Whether the configuration is default +// +// @return {*} The value of the configuration path +@mixin config-get($key, $default: false) { + $config: config-get($key, $default); +} + // Remove settings // // @mixin config-reset From bd3478edc2862dd600be78971274912b47f442f0 Mon Sep 17 00:00:00 2001 From: anolilab Date: Tue, 25 Aug 2015 09:12:29 +0200 Subject: [PATCH 3/4] Release v2.0.11 --- bower.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index bae344d..a7f00ee 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "growcss-sass-config-manager", - "version": "2.0.10", + "version": "2.0.11", "homepage": "http://growcss.com/", "authors": [ "Daniel Bannert " diff --git a/package.json b/package.json index 25dc928..1ed7772 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "growcss-sass-config-manager", - "version": "2.0.10", + "version": "2.0.11", "description": "A dot-syntax configuration (Map) library for Sass (mixin / function).", "author": { "name": "Daniel Bannert", From df0cf6ddc5f158733398393126c36995177bfe91 Mon Sep 17 00:00:00 2001 From: anolilab Date: Tue, 25 Aug 2015 09:13:03 +0200 Subject: [PATCH 4/4] Release v2.1.0 --- bower.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index a7f00ee..1b08ab1 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "growcss-sass-config-manager", - "version": "2.0.11", + "version": "2.1.0", "homepage": "http://growcss.com/", "authors": [ "Daniel Bannert " diff --git a/package.json b/package.json index 1ed7772..02e2f12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "growcss-sass-config-manager", - "version": "2.0.11", + "version": "2.1.0", "description": "A dot-syntax configuration (Map) library for Sass (mixin / function).", "author": { "name": "Daniel Bannert",