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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1c5cf6813992038de152db9aaf516384459a8f3
4
- data.tar.gz: f3a371c5dd9aa2ec9d3ff573657561d3fb0cf3d7
3
+ metadata.gz: 82f33ef51a5b0155a518e051ca5b9e034b9dc2ac
4
+ data.tar.gz: 40aa660ac99805907b34fc4ee91258c8ced781c8
5
5
  SHA512:
6
- metadata.gz: 7eee35cbb5fe05bdc599ce6fffe3f4ebae9302ad0256358a7b4b455bdc8fce57752909cf3cb638a084ef72fb4bd26e37d2d49d520260448d75dca1f91646becc
7
- data.tar.gz: 326964755ab48b04a7560cfece2de7c2782d41c0d04772bc6440409d5e3bcac5778bf70b8d0a195da72ec085a89280c07ec3aafffdcc9f14ff83a3242797b0e8
6
+ metadata.gz: feb45f7fe4fcc5d0bcac2d4039c281ce0cea9a93d57015b7dbaaee842f94f4ce04c85f0cf6bf65b4bef8c92acb8cc637e280f6ea66d4db04158d4f9d094a1d43
7
+ data.tar.gz: bd482fcc55a7c41c4bbd2c6ac47c30ea539510a7c0332a6274cc1b8460b34a9667ca042bb84d5442ea958af175a21f120675209c6f6869d91cf21c79fbd5a2f9
@@ -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.4'
13
- spec.date = '2016-04-30'
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']
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chroma-sass",
3
- "version": "1.2.4",
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": "^0.8.3",
41
+ "eyeglass": "^1.1.2",
42
42
  "kss": "3.0.0-beta.3",
43
- "mocha": "^2.4.5",
43
+ "mocha": "^3.1.1",
44
44
  "sassy-test": "^3.0.4"
45
45
  }
46
46
  }
@@ -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,
@@ -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
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-04-30 00:00:00.000000000 Z
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.4
67
- rubygems_version: 2.6.2
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.