sass 3.3.0.alpha.375 → 3.3.0.alpha.376
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.
- data/REVISION +1 -1
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/lib/sass/script/functions.rb +4 -4
- data/lib/sass/script/lexer.rb +2 -3
- data/lib/sass/script/value/color.rb +2 -2
- metadata +3 -3
data/REVISION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6ef97f52987bf7206f192d6d2e4f7732846462e5
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.3.0.alpha.
|
|
1
|
+
3.3.0.alpha.376
|
data/VERSION_DATE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
10 October 2013
|
|
1
|
+
10 October 2013 18:45:47 GMT
|
|
@@ -1019,7 +1019,7 @@ module Sass::Script
|
|
|
1019
1019
|
# same time
|
|
1020
1020
|
def adjust_color(color, kwargs)
|
|
1021
1021
|
assert_type color, :Color, :color
|
|
1022
|
-
with = Sass::Util.map_hash(
|
|
1022
|
+
with = Sass::Util.map_hash(
|
|
1023
1023
|
"red" => [-255..255, ""],
|
|
1024
1024
|
"green" => [-255..255, ""],
|
|
1025
1025
|
"blue" => [-255..255, ""],
|
|
@@ -1027,7 +1027,7 @@ module Sass::Script
|
|
|
1027
1027
|
"saturation" => [-100..100, "%"],
|
|
1028
1028
|
"lightness" => [-100..100, "%"],
|
|
1029
1029
|
"alpha" => [-1..1, ""]
|
|
1030
|
-
|
|
1030
|
+
) do |name, (range, units)|
|
|
1031
1031
|
|
|
1032
1032
|
val = kwargs.delete(name)
|
|
1033
1033
|
next unless val
|
|
@@ -1089,14 +1089,14 @@ module Sass::Script
|
|
|
1089
1089
|
# same time
|
|
1090
1090
|
def scale_color(color, kwargs)
|
|
1091
1091
|
assert_type color, :Color, :color
|
|
1092
|
-
with = Sass::Util.map_hash(
|
|
1092
|
+
with = Sass::Util.map_hash(
|
|
1093
1093
|
"red" => 255,
|
|
1094
1094
|
"green" => 255,
|
|
1095
1095
|
"blue" => 255,
|
|
1096
1096
|
"saturation" => 100,
|
|
1097
1097
|
"lightness" => 100,
|
|
1098
1098
|
"alpha" => 1
|
|
1099
|
-
|
|
1099
|
+
) do |name, max|
|
|
1100
1100
|
|
|
1101
1101
|
val = kwargs.delete(name)
|
|
1102
1102
|
next unless val
|
data/lib/sass/script/lexer.rb
CHANGED
|
@@ -70,11 +70,10 @@ module Sass
|
|
|
70
70
|
|
|
71
71
|
OPERATORS_REVERSE = Sass::Util.map_hash(OPERATORS) {|k, v| [v, k]}
|
|
72
72
|
|
|
73
|
-
TOKEN_NAMES = Sass::Util.map_hash(OPERATORS_REVERSE) {|k, v| [k, v.inspect]}.merge(
|
|
73
|
+
TOKEN_NAMES = Sass::Util.map_hash(OPERATORS_REVERSE) {|k, v| [k, v.inspect]}.merge(
|
|
74
74
|
:const => "variable (e.g. $foo)",
|
|
75
75
|
:ident => "identifier (e.g. middle)",
|
|
76
|
-
:bool => "boolean (e.g. true, false)"
|
|
77
|
-
})
|
|
76
|
+
:bool => "boolean (e.g. true, false)")
|
|
78
77
|
|
|
79
78
|
# A list of operator strings ordered with longer names first
|
|
80
79
|
# so that `>` and `<` don't clobber `>=` and `<=`.
|
|
@@ -17,7 +17,7 @@ module Sass::Script::Value
|
|
|
17
17
|
class << self; include Sass::Util; end
|
|
18
18
|
|
|
19
19
|
# A hash from color names to `[red, green, blue]` value arrays.
|
|
20
|
-
COLOR_NAMES = map_vals(
|
|
20
|
+
COLOR_NAMES = map_vals(
|
|
21
21
|
'aliceblue' => 0xF0F8FFFF,
|
|
22
22
|
'antiquewhite' => 0xFAEBD7FF,
|
|
23
23
|
'aqua' => 0x00FFFFFF,
|
|
@@ -166,7 +166,7 @@ module Sass::Script::Value
|
|
|
166
166
|
'whitesmoke' => 0xF5F5F5FF,
|
|
167
167
|
'yellow' => 0xFFFF00FF,
|
|
168
168
|
'yellowgreen' => 0x9ACD32FF
|
|
169
|
-
|
|
169
|
+
) do |color|
|
|
170
170
|
rgba = (0..3).map {|n| color >> (n << 3) & 0xff}.reverse
|
|
171
171
|
rgba[-1] = rgba[-1] / 255.0
|
|
172
172
|
rgba
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sass
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 592302589
|
|
5
5
|
prerelease: 6
|
|
6
6
|
segments:
|
|
7
7
|
- 3
|
|
8
8
|
- 3
|
|
9
9
|
- 0
|
|
10
10
|
- alpha
|
|
11
|
-
-
|
|
12
|
-
version: 3.3.0.alpha.
|
|
11
|
+
- 376
|
|
12
|
+
version: 3.3.0.alpha.376
|
|
13
13
|
platform: ruby
|
|
14
14
|
authors:
|
|
15
15
|
- Nathan Weizenbaum
|