chroma-sass 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/chroma-sass.gemspec +2 -2
- data/package.json +3 -3
- data/sass/chroma/_functions.scss +3 -3
- data/sass/chroma/_internals.scss +16 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82f33ef51a5b0155a518e051ca5b9e034b9dc2ac
|
4
|
+
data.tar.gz: 40aa660ac99805907b34fc4ee91258c8ced781c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feb45f7fe4fcc5d0bcac2d4039c281ce0cea9a93d57015b7dbaaee842f94f4ce04c85f0cf6bf65b4bef8c92acb8cc637e280f6ea66d4db04158d4f9d094a1d43
|
7
|
+
data.tar.gz: bd482fcc55a7c41c4bbd2c6ac47c30ea539510a7c0332a6274cc1b8460b34a9667ca042bb84d5442ea958af175a21f120675209c6f6869d91cf21c79fbd5a2f9
|
data/chroma-sass.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.homepage = 'https://github.com/JohnAlbin/chroma'
|
10
10
|
spec.rubyforge_project =
|
11
11
|
|
12
|
-
spec.version = '1.2.
|
13
|
-
spec.date = '2016-
|
12
|
+
spec.version = '1.2.5'
|
13
|
+
spec.date = '2016-10-14'
|
14
14
|
spec.licenses = ['GPL-2.0']
|
15
15
|
|
16
16
|
spec.authors = ['John Albin Wilkins']
|
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "chroma-sass",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.5",
|
4
4
|
"description": "Chroma is the Sass color manager, managing color names, variations, and color schemes.",
|
5
5
|
"homepage": "https://github.com/JohnAlbin/chroma",
|
6
6
|
"bugs": {
|
@@ -38,9 +38,9 @@
|
|
38
38
|
"devDependencies": {
|
39
39
|
"chai": "^3.5.0",
|
40
40
|
"eslint": "^2.9.0",
|
41
|
-
"eyeglass": "^
|
41
|
+
"eyeglass": "^1.1.2",
|
42
42
|
"kss": "3.0.0-beta.3",
|
43
|
-
"mocha": "^
|
43
|
+
"mocha": "^3.1.1",
|
44
44
|
"sassy-test": "^3.0.4"
|
45
45
|
}
|
46
46
|
}
|
data/sass/chroma/_functions.scss
CHANGED
@@ -202,7 +202,7 @@ $chroma: _chroma-init();
|
|
202
202
|
$function: map-get(nth($chain, $i), 'function');
|
203
203
|
$parameters: map-get(nth($chain, $i), 'parameters');
|
204
204
|
$parameters: set-nth($parameters, 1, $value);
|
205
|
-
$value: call($function, $parameters...);
|
205
|
+
$value: _safe-call($function, $parameters...);
|
206
206
|
}
|
207
207
|
}
|
208
208
|
@return $value;
|
@@ -382,7 +382,7 @@ $chroma: _chroma-init();
|
|
382
382
|
// If the value given is a color, just add it.
|
383
383
|
@if type-of($color-value) == 'color' and not (_is-old-libsass() and _is-keyword-string($color-value)) {
|
384
384
|
@if $color-function {
|
385
|
-
$color-value: call($color-function, $color-parameters...);
|
385
|
+
$color-value: _safe-call($color-function, $color-parameters...);
|
386
386
|
}
|
387
387
|
$chroma: _chroma-add-name($scheme, $color-name,
|
388
388
|
$value : $color-value,
|
@@ -405,7 +405,7 @@ $chroma: _chroma-init();
|
|
405
405
|
$new-value: map-get($referenced-color, 'value');
|
406
406
|
@if $color-function {
|
407
407
|
$color-parameters: set-nth($color-parameters, 1, $new-value);
|
408
|
-
$new-value: call($color-function, $color-parameters...);
|
408
|
+
$new-value: _safe-call($color-function, $color-parameters...);
|
409
409
|
}
|
410
410
|
$chroma: _chroma-add-name($scheme, $color-name,
|
411
411
|
$value : $new-value,
|
data/sass/chroma/_internals.scss
CHANGED
@@ -129,3 +129,19 @@
|
|
129
129
|
@function _is-keyword-string($name) {
|
130
130
|
@return if(map-has-key($_chroma-css4-color-keywords-in-strings, $name), true, false);
|
131
131
|
}
|
132
|
+
|
133
|
+
// _safe-call()
|
134
|
+
//
|
135
|
+
// LibSass incorrectly throws an error when using call() with an overloaded
|
136
|
+
// function; e.g. rgba(). To work-around this bug, we call rgba() directly
|
137
|
+
// instead of with call().
|
138
|
+
//
|
139
|
+
// @TODO: Remove when the fix for https://github.com/sass/libsass/issues/2205 is released.
|
140
|
+
//
|
141
|
+
// Style guide: internals._safe-call
|
142
|
+
@function _safe-call($function, $parameters...) {
|
143
|
+
@if $function == rgba {
|
144
|
+
@return rgba($parameters...);
|
145
|
+
}
|
146
|
+
@return call($function, $parameters...);
|
147
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chroma-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Albin Wilkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -63,8 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
|
-
rubyforge_project: 1.2.
|
67
|
-
rubygems_version: 2.6.
|
66
|
+
rubyforge_project: 1.2.5
|
67
|
+
rubygems_version: 2.6.4
|
68
68
|
signing_key:
|
69
69
|
specification_version: 4
|
70
70
|
summary: Chroma is the Sass color manager.
|