chroma-sass 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 331368e35b1462c392dee83882b40825a99169eb
4
- data.tar.gz: 4b22947f1a2e01de2f0c883d651fac2fa2072764
3
+ metadata.gz: c1c5cf6813992038de152db9aaf516384459a8f3
4
+ data.tar.gz: f3a371c5dd9aa2ec9d3ff573657561d3fb0cf3d7
5
5
  SHA512:
6
- metadata.gz: 5eb66a393d1c063d826897d3475e197667a263816df4942ad045e0f0c14d567f9654142fc09768ee3b6b8a9f66e3ad1683efd729ebe7bf5f8a2f1d78a91e2a39
7
- data.tar.gz: eefe53ba5f1c5e25d38e75b12a6a8a61a41be5a57b13a18c656d8d36b51d9449fa20942c4aa9b4d8add3077281e41641b3d8bc74aa96d6c2878fb285d22c4371
6
+ metadata.gz: 7eee35cbb5fe05bdc599ce6fffe3f4ebae9302ad0256358a7b4b455bdc8fce57752909cf3cb638a084ef72fb4bd26e37d2d49d520260448d75dca1f91646becc
7
+ data.tar.gz: 326964755ab48b04a7560cfece2de7c2782d41c0d04772bc6440409d5e3bcac5778bf70b8d0a195da72ec085a89280c07ec3aafffdcc9f14ff83a3242797b0e8
data/README.md CHANGED
@@ -109,4 +109,4 @@ See [Chroma’s online documentation](http://johnalbin.github.io/chroma/#install
109
109
 
110
110
  Available under the GPL v2 license. See [LICENSE.txt](https://github.com/JohnAlbin/chroma/blob/master/LICENSE.txt).
111
111
 
112
- [![Build Status](https://travis-ci.org/JohnAlbin/chroma.png?branch=master)](https://travis-ci.org/JohnAlbin/chroma)
112
+ [![Build Status](https://travis-ci.org/JohnAlbin/chroma.png?branch=master)](https://travis-ci.org/JohnAlbin/chroma/builds)
@@ -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.3'
13
- spec.date = '2016-04-01'
12
+ spec.version = '1.2.4'
13
+ spec.date = '2016-04-30'
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.3",
3
+ "version": "1.2.4",
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": {
@@ -30,17 +30,17 @@
30
30
  },
31
31
  "scripts": {
32
32
  "test": "mocha",
33
- "posttest": "eslint test",
33
+ "posttest": "eslint .",
34
34
  "docs": "kss-node --source sass --source docs --destination gh-pages --title 'Chroma for Sass'"
35
35
  },
36
36
  "license": "GPL-2.0",
37
37
  "dependencies": {},
38
38
  "devDependencies": {
39
39
  "chai": "^3.5.0",
40
- "eslint": "^2.4.0",
40
+ "eslint": "^2.9.0",
41
41
  "eyeglass": "^0.8.3",
42
- "kss": "kss-node/kss-node",
42
+ "kss": "3.0.0-beta.3",
43
43
  "mocha": "^2.4.5",
44
- "sassy-test": "^3.0.3"
44
+ "sassy-test": "^3.0.4"
45
45
  }
46
46
  }
@@ -74,18 +74,28 @@
74
74
  $reference: map-get($data, 'reference');
75
75
  $referenced_by: map-get($data, 'referenced_by');
76
76
 
77
+ // @TODO: node-sass 3.6.0 crashes with too many "+" operators in one command.
77
78
  $markup: $markup
78
79
  + '<div class="#{$color-class}">'
79
- + '<span class="#{$swatch-class}" style="background-color: #{$value}"></span>'
80
+ + '<span class="#{$swatch-class}" style="background-color: #{$value}"></span>';
81
+ $markup: $markup
80
82
  + '<code class="#{$variable-class}">#{$_chroma-spelling}(#{$color})</code>'
81
- + ' <span class="#{$alt-text-class}">uses the #{$_chroma-spelling}:</span> '
83
+ + ' <span class="#{$alt-text-class}">uses the #{$_chroma-spelling}:</span> ';
84
+ $markup: $markup
82
85
  + '<span class="#{$value-class}"><code>#{$value}</code>';
83
86
  @if $reference {
84
87
  $markup: $markup + ' (#{$reference})';
85
88
  }
86
89
  $markup: $markup + '</span>';
87
90
  @if length($referenced_by) > 0 {
88
- $markup: $markup + ' <span class="#{$reference_class}">This #{$_chroma-spelling} is inherited by: #{inspect($referenced_by)}</span>'
91
+ $markup: $markup + ' <span class="#{$reference_class}">This #{$_chroma-spelling} is inherited by: ';
92
+ @for $i from 1 through length($referenced_by) {
93
+ $markup: $markup + nth($referenced_by, $i);
94
+ @if ($i != length($referenced_by)) {
95
+ $markup: $markup + ', ';
96
+ }
97
+ }
98
+ $markup: $markup + '</span>';
89
99
  }
90
100
  $markup: $markup + '</div>';
91
101
  }
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.3
4
+ version: 1.2.4
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-01 00:00:00.000000000 Z
11
+ date: 2016-04-30 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.3
67
- rubygems_version: 2.6.1
66
+ rubyforge_project: 1.2.4
67
+ rubygems_version: 2.6.2
68
68
  signing_key:
69
69
  specification_version: 4
70
70
  summary: Chroma is the Sass color manager.