Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
Merge pull request #16 from growcss/develop
Browse files Browse the repository at this point in the history
Release v2.0.5
  • Loading branch information
prisis committed Jul 5, 2015
2 parents 2ffa9ae + 05007fa commit 33e7e8e
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 9 deletions.
16 changes: 12 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All Notable changes to `sass-config-manager` will be documented in this file

## 2.0.5 Release

### Added
- new test.
- fix path for npm.
- fix npm link.
- bower package version.

## 2.0.4 Release

### Added
Expand All @@ -21,12 +29,12 @@ All Notable changes to `sass-config-manager` will be documented in this file
## 2.0.1 Release

### Fixed
- cs-fixes
- cs-fixes.

## 2.0.0 Release

### Added
- added tests for config-set(), config-get(), config-has()
- added tests for config-set(), config-get(), config-has().

### Deprecated
- Nothing
Expand All @@ -36,8 +44,8 @@ All Notable changes to `sass-config-manager` will be documented in this file
- some bugs in config-set() if a single key was added.

### Removed
- config-bind()
- config-remove()
- config-bind().
- config-remove().

### Security
- Nothing
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# sass-config-manager

[![Author](http://img.shields.io/badge/author-@@anolilab-blue.svg?style=flat-square)](https://twitter.com/@anolilab)
[![npm](https://img.shields.io/npm/v/sass-config-manager.svg?style=flat-square)](https://www.npmjs.com/package/sass-config-manager)
[![devDependency Status](https://david-dm.org/growcss/sass-config-manager/dev-status.svg?style=flat-square)](https://david-dm.org/growcss/sass-config-manager#info=devDependencies)
[![npm](https://img.shields.io/npm/v/npm.svg?style=flat-square)](https://www.npmjs.com/package/sass-config-manager)
[![npm](https://img.shields.io/npm/v/growcss-sass-config-manager.svg?style=flat-square)](https://www.npmjs.com/package/growcss-sass-config-manager)
[![Bower](https://img.shields.io/bower/v/sass-config-manager.svg?style=flat-square)](https://github.com/growcss/sass-config-manager)
[![GitHub release](https://img.shields.io/github/release/qubyte/rubidium.svg?style=flat-square)](https://github.com/growcss/sass-config-manager/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)

Expand Down Expand Up @@ -45,7 +45,7 @@ grunt test
## How to

### Usage
Include this library. If you use bower ``@import 'bower_components/sass-config-manager/src/scss/config-manager';`` or ``@import 'node_modules/sass-config-manager/src/scss/config-manager';``
Include this library. If you use bower ``@import 'bower_components/sass-config-manager/src/scss/config-manager';`` or ``@import 'node_modules/growcss-sass-config-manager/src/scss/config-manager';``

### Set default settings
~~~scss
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "growcss-sass-config-manager",
"version": "2.0.4",
"version": "2.0.5",
"homepage": "http://growcss.com/",
"authors": [
"Daniel Bannert <d.bannert@anolilab.de>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "growcss-sass-config-manager",
"version": "2.0.4",
"version": "2.0.5",
"description": "A dot-syntax configuration (Map) library for Sass (mixin / function).",
"author": {
"name": "Daniel Bannert",
Expand Down
28 changes: 28 additions & 0 deletions tests/specs/scss/functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,34 @@
@include assert-equal($config, $expect, "Check if map is correct.");
}

// Testing set functions
@include test("config-set [function] Set a map as vlaue.") {
@include config-set("map", ("bar": "foo", "foo": "bar"));

$expect: ("bar": "foo", "foo": "bar");
$config: config-get("map");

@include assert-equal($config, $expect, "Check if map is correct.");
}

// Testing set functions
@include test("config-set [function] Set a map variable as vlaue.") {
$color-black: #000 !default;
$color-white-bg: #fff !default;

$color: (
fg: $color-black,
bg: $color-white-bg
) !default;

@include config-set("map-variable", $color);

$expect: (fg: #000, bg: #fff);
$config: config-get("map-variable");

@include assert-equal($config, $expect, "Check if map is correct.");
}

// Testing get functions
@include test("config-get [function] Get a value from key.") {
@include config-set("test.color", #000);
Expand Down

0 comments on commit 33e7e8e

Please sign in to comment.