sass 3.3.0.rc.4 → 3.3.0.rc.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 +13 -5
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/lib/sass/environment.rb +7 -0
- data/lib/sass/script/functions.rb +2 -1
- data/lib/sass/script/tree/list_literal.rb +0 -2
- data/lib/sass/script/tree/literal.rb +0 -2
- data/lib/sass/script/value.rb +1 -0
- data/lib/sass/script/value/base.rb +0 -10
- data/lib/sass/script/value/bool.rb +5 -0
- data/lib/sass/script/value/deprecated_false.rb +55 -0
- data/lib/sass/script/value/null.rb +5 -0
- data/lib/sass/stack.rb +6 -0
- data/lib/sass/tree/visitors/perform.rb +1 -0
- data/test/sass/functions_test.rb +64 -5
- metadata +231 -231
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MTc5YzExMjQxZmJhMzkyNmNjNDQxMTU1ZGMyYWZkYmVjZWIwZmM3Mg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NjYxYmU2OWIwZjNkZWYwNzhmYzYyNGNiZmRiNThjZWJlZGViMGU3MQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YzdjZmIzZTVhYWZmNDZlZjFlZWQ4NjIxYzBhN2Y3NTZjMzE0Y2YxZWU0MDk5
|
10
|
+
ZmU0ZGRmYTY2MWZiMTVmMGM1NjYxODBjMjdhMTY3YWNlNWJjYjFjMWM4OTA3
|
11
|
+
NTNmMDRhNmM0YmZjZDJhNDRlNzE4NDllMjBhYTY5M2MzNjc5N2Y=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MzNkYTYyODdjMjQzNzU4YzFmMDhmMjg1OTNlMzg0ZWZjMzZiNDAxZGVhZjQy
|
14
|
+
YjFmMDJlZDM4NjZiZTFmNmM0M2NkMmUwNjIwMGQ3NDgyMGJiZDgzYjQzZjIz
|
15
|
+
NTlmNjAyMTZjMTNhYTY5ZTcxODI1Y2EyODY1OGJiNjliMWQ3Nzc=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.0.rc.
|
1
|
+
3.3.0.rc.5
|
data/VERSION_DATE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
21 February 2014 23:09:12 UTC
|
data/lib/sass/environment.rb
CHANGED
@@ -83,6 +83,12 @@ module Sass
|
|
83
83
|
# @return [Set<[String, String, int]>]
|
84
84
|
attr_reader :global_warning_given
|
85
85
|
|
86
|
+
# Whether a warning has been emitted for misusing a deprecated false value.
|
87
|
+
# This is a set of tuples containing the filename and its line number.
|
88
|
+
#
|
89
|
+
# @return [Set<[String, int]>]
|
90
|
+
attr_reader :deprecated_false_warning_given
|
91
|
+
|
86
92
|
# @param options [{Symbol => Object}] The options hash. See
|
87
93
|
# {file:SASS_REFERENCE.md#sass_options the Sass options documentation}.
|
88
94
|
# @param parent [Environment] See \{#parent}
|
@@ -91,6 +97,7 @@ module Sass
|
|
91
97
|
@options = options || (parent && parent.options) || {}
|
92
98
|
@stack = Sass::Stack.new if @parent.nil?
|
93
99
|
@global_warning_given = Set.new
|
100
|
+
@deprecated_false_warning_given = Set.new
|
94
101
|
end
|
95
102
|
|
96
103
|
# The environment of the caller of this environment's mixin or function.
|
@@ -1881,7 +1881,8 @@ module Sass::Script
|
|
1881
1881
|
# 1-based index of `$value` in `$list`, or `null`
|
1882
1882
|
def index(list, value)
|
1883
1883
|
index = list.to_a.index {|e| e.eq(value).to_bool}
|
1884
|
-
|
1884
|
+
return number(index + 1) if index
|
1885
|
+
Sass::Script::Value::DeprecatedFalse.new(environment)
|
1885
1886
|
end
|
1886
1887
|
declare :index, [:list, :value]
|
1887
1888
|
|
data/lib/sass/script/value.rb
CHANGED
@@ -5,6 +5,7 @@ require 'sass/script/value/string'
|
|
5
5
|
require 'sass/script/value/number'
|
6
6
|
require 'sass/script/value/color'
|
7
7
|
require 'sass/script/value/bool'
|
8
|
+
require 'sass/script/value/deprecated_false'
|
8
9
|
require 'sass/script/value/null'
|
9
10
|
require 'sass/script/value/list'
|
10
11
|
require 'sass/script/value/arg_list'
|
@@ -11,21 +11,11 @@ module Sass::Script::Value
|
|
11
11
|
# @return [Object]
|
12
12
|
attr_reader :value
|
13
13
|
|
14
|
-
# The line of the document on which this node appeared.
|
15
|
-
#
|
16
|
-
# @return [Fixnum]
|
17
|
-
attr_accessor :line
|
18
|
-
|
19
14
|
# The source range in the document on which this node appeared.
|
20
15
|
#
|
21
16
|
# @return [Sass::Source::Range]
|
22
17
|
attr_accessor :source_range
|
23
18
|
|
24
|
-
# The file name of the document on which this node appeared.
|
25
|
-
#
|
26
|
-
# @return [String]
|
27
|
-
attr_accessor :filename
|
28
|
-
|
29
19
|
# Creates a new value.
|
30
20
|
#
|
31
21
|
# @param value [Object] The object for \{#value}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
module Sass::Script::Value
|
2
|
+
# A SassScript object representing a `false` value that came from a call to
|
3
|
+
# `index()`. It will print deprecation warnings if it's used with `==`.
|
4
|
+
class DeprecatedFalse < Bool
|
5
|
+
def self.new(environment)
|
6
|
+
obj = allocate
|
7
|
+
obj.send(:initialize, environment)
|
8
|
+
obj
|
9
|
+
end
|
10
|
+
|
11
|
+
def initialize(environment)
|
12
|
+
@value = false
|
13
|
+
@global_env = environment.global_env
|
14
|
+
if (frame = environment.stack.frames.last)
|
15
|
+
@filename = frame.filename
|
16
|
+
@line = frame.line
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def eq(other)
|
21
|
+
if other.value == false && !warned?
|
22
|
+
self.warned = true
|
23
|
+
Sass::Util.sass_warn <<WARNING + @global_env.stack.to_s.gsub(/^/, ' ')
|
24
|
+
DEPRECATION WARNING: The return value of index() will change from "false" to
|
25
|
+
"null" in future versions of Sass. For compatibility, avoid using "== false" on
|
26
|
+
the return value. For example, instead of "@if index(...) == false", just write
|
27
|
+
"@if index(...)".
|
28
|
+
WARNING
|
29
|
+
end
|
30
|
+
Bool.new(other.value == false)
|
31
|
+
end
|
32
|
+
|
33
|
+
def neq(other)
|
34
|
+
if other.value.nil? && !warned?
|
35
|
+
self.warned = true
|
36
|
+
Sass::Util.sass_warn <<WARNING + @global_env.stack.to_s.gsub(/^/, ' ')
|
37
|
+
DEPRECATION WARNING: The return value of index() will change from "false" to
|
38
|
+
"null" in future versions of Sass. For compatibility, avoid using "!= null" on
|
39
|
+
the return value.
|
40
|
+
WARNING
|
41
|
+
end
|
42
|
+
Bool.new(other.value != false)
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def warned?
|
48
|
+
@global_env.deprecated_false_warning_given.include?([@filename, @line])
|
49
|
+
end
|
50
|
+
|
51
|
+
def warned=(value)
|
52
|
+
@global_env.deprecated_false_warning_given << [@filename, @line]
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
data/lib/sass/stack.rb
CHANGED
@@ -429,6 +429,7 @@ DEPRECATION WARNING #{location}:
|
|
429
429
|
Assigning to global variable "$#{node.name}" by default is deprecated.
|
430
430
|
In future versions of Sass, this will create a new local variable.
|
431
431
|
If you want to assign to the global variable, use "#{var_expr}" instead.
|
432
|
+
Note that this will be incompatible with Sass 3.2.
|
432
433
|
WARNING
|
433
434
|
end
|
434
435
|
|
data/test/sass/functions_test.rb
CHANGED
@@ -1257,17 +1257,76 @@ WARNING
|
|
1257
1257
|
end
|
1258
1258
|
|
1259
1259
|
def test_index
|
1260
|
-
null = Sass::Script::Value::Null.new
|
1261
1260
|
assert_equal("1", evaluate("index(1px solid blue, 1px)"))
|
1262
1261
|
assert_equal("2", evaluate("index(1px solid blue, solid)"))
|
1263
1262
|
assert_equal("3", evaluate("index(1px solid blue, #00f)"))
|
1264
1263
|
assert_equal("1", evaluate("index(1px, 1px)"))
|
1265
|
-
assert_equal(
|
1266
|
-
assert_equal(
|
1267
|
-
assert_equal(
|
1264
|
+
assert_equal("false", evaluate("index(1px solid blue, 1em)"))
|
1265
|
+
assert_equal("false", evaluate("index(1px solid blue, notfound)"))
|
1266
|
+
assert_equal("false", evaluate("index(1px, #00f)"))
|
1268
1267
|
|
1269
1268
|
assert_equal("1", evaluate("index((foo: bar, bar: baz), (foo bar))"))
|
1270
|
-
assert_equal(
|
1269
|
+
assert_equal("false", evaluate("index((foo: bar, bar: baz), (foo: bar))"))
|
1270
|
+
end
|
1271
|
+
|
1272
|
+
def test_index_deprecation_warning
|
1273
|
+
assert_warning(<<WARNING) do
|
1274
|
+
DEPRECATION WARNING: The return value of index() will change from "false" to
|
1275
|
+
"null" in future versions of Sass. For compatibility, avoid using "== false" on
|
1276
|
+
the return value. For example, instead of "@if index(...) == false", just write
|
1277
|
+
"@if index(...)".
|
1278
|
+
WARNING
|
1279
|
+
assert_equal("true", evaluate("index(1, 2 3 4) == false"))
|
1280
|
+
end
|
1281
|
+
|
1282
|
+
assert_warning(<<WARNING) do
|
1283
|
+
DEPRECATION WARNING: The return value of index() will change from "false" to
|
1284
|
+
"null" in future versions of Sass. For compatibility, avoid using "!= null" on
|
1285
|
+
the return value.
|
1286
|
+
WARNING
|
1287
|
+
assert_equal("true", evaluate("index(1, 2 3 4) != null"))
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
assert_warning(<<WARNING) do
|
1291
|
+
DEPRECATION WARNING: The return value of index() will change from "false" to
|
1292
|
+
"null" in future versions of Sass. For compatibility, avoid using "== false" on
|
1293
|
+
the return value. For example, instead of "@if index(...) == false", just write
|
1294
|
+
"@if index(...)".
|
1295
|
+
WARNING
|
1296
|
+
assert_equal("true", evaluate("false == index(1, 2 3 4)"))
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
assert_warning(<<WARNING) do
|
1300
|
+
DEPRECATION WARNING: The return value of index() will change from "false" to
|
1301
|
+
"null" in future versions of Sass. For compatibility, avoid using "!= null" on
|
1302
|
+
the return value.
|
1303
|
+
WARNING
|
1304
|
+
assert_equal("true", evaluate("null != index(1, 2 3 4)"))
|
1305
|
+
end
|
1306
|
+
end
|
1307
|
+
|
1308
|
+
def test_index_deprecation_warning_is_only_emitted_once_per_call
|
1309
|
+
assert_warning(<<WARNING) do
|
1310
|
+
DEPRECATION WARNING: The return value of index() will change from "false" to
|
1311
|
+
"null" in future versions of Sass. For compatibility, avoid using "== false" on
|
1312
|
+
the return value. For example, instead of "@if index(...) == false", just write
|
1313
|
+
"@if index(...)".
|
1314
|
+
on line 3 of test_index_deprecation_warning_is_only_emitted_once_per_call_inline.scss
|
1315
|
+
DEPRECATION WARNING: The return value of index() will change from "false" to
|
1316
|
+
"null" in future versions of Sass. For compatibility, avoid using "== false" on
|
1317
|
+
the return value. For example, instead of "@if index(...) == false", just write
|
1318
|
+
"@if index(...)".
|
1319
|
+
on line 6 of test_index_deprecation_warning_is_only_emitted_once_per_call_inline.scss
|
1320
|
+
WARNING
|
1321
|
+
render(<<SCSS)
|
1322
|
+
@for $i from 1 to 10 {
|
1323
|
+
$var1: index(1, 2 3 4);
|
1324
|
+
$var2: $var1 == false;
|
1325
|
+
$var3: $var1 != null;
|
1326
|
+
}
|
1327
|
+
$var4: index(1, 2 3 4) == false;
|
1328
|
+
SCSS
|
1329
|
+
end
|
1271
1330
|
end
|
1272
1331
|
|
1273
1332
|
def test_list_separator
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.0.rc.
|
4
|
+
version: 3.3.0.rc.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Weizenbaum
|
@@ -10,41 +10,40 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-02-
|
13
|
+
date: 2014-02-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: yard
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - '>='
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 0.5.3
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - '>='
|
26
|
+
- - ! '>='
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 0.5.3
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: maruku
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - '>='
|
33
|
+
- - ! '>='
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: 0.5.9
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- - '>='
|
40
|
+
- - ! '>='
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 0.5.9
|
43
|
-
description:
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
command line tool or a web-framework plugin.
|
43
|
+
description: ! " Sass makes CSS fun again. Sass is an extension of CSS3, adding\n
|
44
|
+
\ nested rules, variables, mixins, selector inheritance, and more.\n It's
|
45
|
+
translated to well-formatted, standard CSS using the\n command line tool or
|
46
|
+
a web-framework plugin.\n"
|
48
47
|
email: sass-lang@googlegroups.com
|
49
48
|
executables:
|
50
49
|
- sass
|
@@ -54,267 +53,268 @@ extensions:
|
|
54
53
|
- ext/mkrf_conf.rb
|
55
54
|
extra_rdoc_files: []
|
56
55
|
files:
|
57
|
-
-
|
56
|
+
- .yardopts
|
57
|
+
- CONTRIBUTING
|
58
|
+
- MIT-LICENSE
|
59
|
+
- README.md
|
60
|
+
- REVISION
|
61
|
+
- Rakefile
|
62
|
+
- VERSION
|
63
|
+
- VERSION_DATE
|
64
|
+
- VERSION_NAME
|
65
|
+
- bin/sass
|
66
|
+
- bin/sass-convert
|
67
|
+
- bin/scss
|
68
|
+
- ext/mkrf_conf.rb
|
69
|
+
- extra/update_watch.rb
|
70
|
+
- init.rb
|
58
71
|
- lib/sass.rb
|
59
72
|
- lib/sass/cache_stores.rb
|
60
|
-
- lib/sass/
|
61
|
-
- lib/sass/plugin/merb.rb
|
62
|
-
- lib/sass/plugin/staleness_checker.rb
|
63
|
-
- lib/sass/plugin/rack.rb
|
64
|
-
- lib/sass/plugin/rails.rb
|
65
|
-
- lib/sass/plugin/configuration.rb
|
66
|
-
- lib/sass/plugin/generic.rb
|
67
|
-
- lib/sass/version.rb
|
68
|
-
- lib/sass/supports.rb
|
69
|
-
- lib/sass/media.rb
|
70
|
-
- lib/sass/stack.rb
|
73
|
+
- lib/sass/cache_stores/base.rb
|
71
74
|
- lib/sass/cache_stores/chain.rb
|
75
|
+
- lib/sass/cache_stores/filesystem.rb
|
72
76
|
- lib/sass/cache_stores/memory.rb
|
73
77
|
- lib/sass/cache_stores/null.rb
|
74
|
-
- lib/sass/
|
75
|
-
- lib/sass/
|
76
|
-
- lib/sass/shared.rb
|
77
|
-
- lib/sass/repl.rb
|
78
|
-
- lib/sass/error.rb
|
79
|
-
- lib/sass/tree/import_node.rb
|
80
|
-
- lib/sass/tree/trace_node.rb
|
81
|
-
- lib/sass/tree/return_node.rb
|
82
|
-
- lib/sass/tree/root_node.rb
|
83
|
-
- lib/sass/tree/if_node.rb
|
84
|
-
- lib/sass/tree/charset_node.rb
|
85
|
-
- lib/sass/tree/css_import_node.rb
|
86
|
-
- lib/sass/tree/function_node.rb
|
87
|
-
- lib/sass/tree/media_node.rb
|
88
|
-
- lib/sass/tree/while_node.rb
|
89
|
-
- lib/sass/tree/for_node.rb
|
90
|
-
- lib/sass/tree/directive_node.rb
|
91
|
-
- lib/sass/tree/rule_node.rb
|
92
|
-
- lib/sass/tree/each_node.rb
|
93
|
-
- lib/sass/tree/at_root_node.rb
|
94
|
-
- lib/sass/tree/node.rb
|
95
|
-
- lib/sass/tree/mixin_node.rb
|
96
|
-
- lib/sass/tree/extend_node.rb
|
97
|
-
- lib/sass/tree/mixin_def_node.rb
|
98
|
-
- lib/sass/tree/supports_node.rb
|
99
|
-
- lib/sass/tree/visitors/perform.rb
|
100
|
-
- lib/sass/tree/visitors/to_css.rb
|
101
|
-
- lib/sass/tree/visitors/check_nesting.rb
|
102
|
-
- lib/sass/tree/visitors/deep_copy.rb
|
103
|
-
- lib/sass/tree/visitors/extend.rb
|
104
|
-
- lib/sass/tree/visitors/set_options.rb
|
105
|
-
- lib/sass/tree/visitors/cssize.rb
|
106
|
-
- lib/sass/tree/visitors/convert.rb
|
107
|
-
- lib/sass/tree/visitors/base.rb
|
108
|
-
- lib/sass/tree/content_node.rb
|
109
|
-
- lib/sass/tree/comment_node.rb
|
110
|
-
- lib/sass/tree/warn_node.rb
|
111
|
-
- lib/sass/tree/debug_node.rb
|
112
|
-
- lib/sass/tree/prop_node.rb
|
113
|
-
- lib/sass/tree/variable_node.rb
|
78
|
+
- lib/sass/callbacks.rb
|
79
|
+
- lib/sass/css.rb
|
114
80
|
- lib/sass/engine.rb
|
115
|
-
- lib/sass/
|
116
|
-
- lib/sass/
|
81
|
+
- lib/sass/environment.rb
|
82
|
+
- lib/sass/error.rb
|
83
|
+
- lib/sass/exec.rb
|
117
84
|
- lib/sass/features.rb
|
118
85
|
- lib/sass/importers.rb
|
119
|
-
- lib/sass/
|
120
|
-
- lib/sass/
|
121
|
-
- lib/sass/
|
86
|
+
- lib/sass/importers/base.rb
|
87
|
+
- lib/sass/importers/deprecated_path.rb
|
88
|
+
- lib/sass/importers/filesystem.rb
|
122
89
|
- lib/sass/logger.rb
|
123
|
-
- lib/sass/util/normalized_map.rb
|
124
|
-
- lib/sass/util/test.rb
|
125
|
-
- lib/sass/util/cross_platform_random.rb
|
126
|
-
- lib/sass/util/ordered_hash.rb
|
127
|
-
- lib/sass/util/multibyte_string_scanner.rb
|
128
|
-
- lib/sass/util/subset_map.rb
|
129
|
-
- lib/sass/scss.rb
|
130
|
-
- lib/sass/scss/static_parser.rb
|
131
|
-
- lib/sass/scss/parser.rb
|
132
|
-
- lib/sass/scss/script_lexer.rb
|
133
|
-
- lib/sass/scss/rx.rb
|
134
|
-
- lib/sass/scss/script_parser.rb
|
135
|
-
- lib/sass/scss/css_parser.rb
|
136
|
-
- lib/sass/logger/log_level.rb
|
137
90
|
- lib/sass/logger/base.rb
|
138
|
-
- lib/sass/
|
91
|
+
- lib/sass/logger/log_level.rb
|
92
|
+
- lib/sass/media.rb
|
93
|
+
- lib/sass/plugin.rb
|
94
|
+
- lib/sass/plugin/compiler.rb
|
95
|
+
- lib/sass/plugin/configuration.rb
|
96
|
+
- lib/sass/plugin/generic.rb
|
97
|
+
- lib/sass/plugin/merb.rb
|
98
|
+
- lib/sass/plugin/rack.rb
|
99
|
+
- lib/sass/plugin/rails.rb
|
100
|
+
- lib/sass/plugin/staleness_checker.rb
|
101
|
+
- lib/sass/railtie.rb
|
102
|
+
- lib/sass/repl.rb
|
103
|
+
- lib/sass/root.rb
|
139
104
|
- lib/sass/script.rb
|
140
|
-
- lib/sass/
|
141
|
-
- lib/sass/
|
142
|
-
- lib/sass/importers/deprecated_path.rb
|
143
|
-
- lib/sass/importers/base.rb
|
144
|
-
- lib/sass/script/parser.rb
|
105
|
+
- lib/sass/script/css_lexer.rb
|
106
|
+
- lib/sass/script/css_parser.rb
|
145
107
|
- lib/sass/script/functions.rb
|
146
|
-
- lib/sass/script/
|
147
|
-
- lib/sass/script/
|
108
|
+
- lib/sass/script/lexer.rb
|
109
|
+
- lib/sass/script/parser.rb
|
110
|
+
- lib/sass/script/tree.rb
|
148
111
|
- lib/sass/script/tree/funcall.rb
|
149
|
-
- lib/sass/script/tree/literal.rb
|
150
|
-
- lib/sass/script/tree/string_interpolation.rb
|
151
112
|
- lib/sass/script/tree/interpolation.rb
|
152
113
|
- lib/sass/script/tree/list_literal.rb
|
114
|
+
- lib/sass/script/tree/literal.rb
|
115
|
+
- lib/sass/script/tree/map_literal.rb
|
153
116
|
- lib/sass/script/tree/node.rb
|
117
|
+
- lib/sass/script/tree/operation.rb
|
118
|
+
- lib/sass/script/tree/string_interpolation.rb
|
154
119
|
- lib/sass/script/tree/unary_operation.rb
|
155
|
-
- lib/sass/script/tree/
|
156
|
-
- lib/sass/script/tree.rb
|
157
|
-
- lib/sass/script/lexer.rb
|
158
|
-
- lib/sass/script/css_lexer.rb
|
120
|
+
- lib/sass/script/tree/variable.rb
|
159
121
|
- lib/sass/script/value.rb
|
160
|
-
- lib/sass/script/value/color.rb
|
161
|
-
- lib/sass/script/value/number.rb
|
162
|
-
- lib/sass/script/value/map.rb
|
163
122
|
- lib/sass/script/value/arg_list.rb
|
123
|
+
- lib/sass/script/value/base.rb
|
164
124
|
- lib/sass/script/value/bool.rb
|
165
|
-
- lib/sass/script/value/
|
125
|
+
- lib/sass/script/value/color.rb
|
126
|
+
- lib/sass/script/value/deprecated_false.rb
|
166
127
|
- lib/sass/script/value/helpers.rb
|
128
|
+
- lib/sass/script/value/list.rb
|
129
|
+
- lib/sass/script/value/map.rb
|
167
130
|
- lib/sass/script/value/null.rb
|
131
|
+
- lib/sass/script/value/number.rb
|
168
132
|
- lib/sass/script/value/string.rb
|
169
|
-
- lib/sass/
|
170
|
-
- lib/sass/
|
133
|
+
- lib/sass/scss.rb
|
134
|
+
- lib/sass/scss/css_parser.rb
|
135
|
+
- lib/sass/scss/parser.rb
|
136
|
+
- lib/sass/scss/rx.rb
|
137
|
+
- lib/sass/scss/script_lexer.rb
|
138
|
+
- lib/sass/scss/script_parser.rb
|
139
|
+
- lib/sass/scss/static_parser.rb
|
171
140
|
- lib/sass/selector.rb
|
172
|
-
- lib/sass/callbacks.rb
|
173
|
-
- lib/sass/selector/simple.rb
|
174
|
-
- lib/sass/selector/sequence.rb
|
175
141
|
- lib/sass/selector/abstract_sequence.rb
|
176
142
|
- lib/sass/selector/comma_sequence.rb
|
143
|
+
- lib/sass/selector/sequence.rb
|
144
|
+
- lib/sass/selector/simple.rb
|
177
145
|
- lib/sass/selector/simple_sequence.rb
|
178
|
-
- lib/sass/
|
179
|
-
- lib/sass/
|
180
|
-
- lib/sass/
|
181
|
-
-
|
182
|
-
-
|
183
|
-
-
|
184
|
-
-
|
185
|
-
-
|
186
|
-
-
|
187
|
-
-
|
188
|
-
-
|
189
|
-
-
|
146
|
+
- lib/sass/shared.rb
|
147
|
+
- lib/sass/source/map.rb
|
148
|
+
- lib/sass/source/position.rb
|
149
|
+
- lib/sass/source/range.rb
|
150
|
+
- lib/sass/stack.rb
|
151
|
+
- lib/sass/supports.rb
|
152
|
+
- lib/sass/tree/at_root_node.rb
|
153
|
+
- lib/sass/tree/charset_node.rb
|
154
|
+
- lib/sass/tree/comment_node.rb
|
155
|
+
- lib/sass/tree/content_node.rb
|
156
|
+
- lib/sass/tree/css_import_node.rb
|
157
|
+
- lib/sass/tree/debug_node.rb
|
158
|
+
- lib/sass/tree/directive_node.rb
|
159
|
+
- lib/sass/tree/each_node.rb
|
160
|
+
- lib/sass/tree/extend_node.rb
|
161
|
+
- lib/sass/tree/for_node.rb
|
162
|
+
- lib/sass/tree/function_node.rb
|
163
|
+
- lib/sass/tree/if_node.rb
|
164
|
+
- lib/sass/tree/import_node.rb
|
165
|
+
- lib/sass/tree/media_node.rb
|
166
|
+
- lib/sass/tree/mixin_def_node.rb
|
167
|
+
- lib/sass/tree/mixin_node.rb
|
168
|
+
- lib/sass/tree/node.rb
|
169
|
+
- lib/sass/tree/prop_node.rb
|
170
|
+
- lib/sass/tree/return_node.rb
|
171
|
+
- lib/sass/tree/root_node.rb
|
172
|
+
- lib/sass/tree/rule_node.rb
|
173
|
+
- lib/sass/tree/supports_node.rb
|
174
|
+
- lib/sass/tree/trace_node.rb
|
175
|
+
- lib/sass/tree/variable_node.rb
|
176
|
+
- lib/sass/tree/visitors/base.rb
|
177
|
+
- lib/sass/tree/visitors/check_nesting.rb
|
178
|
+
- lib/sass/tree/visitors/convert.rb
|
179
|
+
- lib/sass/tree/visitors/cssize.rb
|
180
|
+
- lib/sass/tree/visitors/deep_copy.rb
|
181
|
+
- lib/sass/tree/visitors/extend.rb
|
182
|
+
- lib/sass/tree/visitors/perform.rb
|
183
|
+
- lib/sass/tree/visitors/set_options.rb
|
184
|
+
- lib/sass/tree/visitors/to_css.rb
|
185
|
+
- lib/sass/tree/warn_node.rb
|
186
|
+
- lib/sass/tree/while_node.rb
|
187
|
+
- lib/sass/util.rb
|
188
|
+
- lib/sass/util/cross_platform_random.rb
|
189
|
+
- lib/sass/util/multibyte_string_scanner.rb
|
190
|
+
- lib/sass/util/normalized_map.rb
|
191
|
+
- lib/sass/util/ordered_hash.rb
|
192
|
+
- lib/sass/util/subset_map.rb
|
193
|
+
- lib/sass/util/test.rb
|
194
|
+
- lib/sass/version.rb
|
195
|
+
- rails/init.rb
|
196
|
+
- test/sass/cache_test.rb
|
197
|
+
- test/sass/callbacks_test.rb
|
198
|
+
- test/sass/compiler_test.rb
|
199
|
+
- test/sass/conversion_test.rb
|
200
|
+
- test/sass/css2sass_test.rb
|
190
201
|
- test/sass/data/hsl-rgb.txt
|
202
|
+
- test/sass/engine_test.rb
|
203
|
+
- test/sass/exec_test.rb
|
191
204
|
- test/sass/extend_test.rb
|
205
|
+
- test/sass/fixtures/test_staleness_check_across_importers.css
|
206
|
+
- test/sass/fixtures/test_staleness_check_across_importers.scss
|
207
|
+
- test/sass/functions_test.rb
|
208
|
+
- test/sass/importer_test.rb
|
192
209
|
- test/sass/logger_test.rb
|
193
|
-
- test/sass/
|
194
|
-
- test/sass/
|
210
|
+
- test/sass/mock_importer.rb
|
211
|
+
- test/sass/more_results/more1.css
|
212
|
+
- test/sass/more_results/more1_with_line_comments.css
|
213
|
+
- test/sass/more_results/more_import.css
|
214
|
+
- test/sass/more_templates/_more_partial.sass
|
215
|
+
- test/sass/more_templates/more1.sass
|
216
|
+
- test/sass/more_templates/more_import.sass
|
217
|
+
- test/sass/plugin_test.rb
|
218
|
+
- test/sass/results/alt.css
|
219
|
+
- test/sass/results/basic.css
|
220
|
+
- test/sass/results/cached_import_option.css
|
221
|
+
- test/sass/results/compact.css
|
222
|
+
- test/sass/results/complex.css
|
223
|
+
- test/sass/results/compressed.css
|
224
|
+
- test/sass/results/expanded.css
|
225
|
+
- test/sass/results/filename_fn.css
|
226
|
+
- test/sass/results/if.css
|
227
|
+
- test/sass/results/import.css
|
228
|
+
- test/sass/results/import_charset.css
|
229
|
+
- test/sass/results/import_charset_1_8.css
|
230
|
+
- test/sass/results/import_charset_ibm866.css
|
231
|
+
- test/sass/results/import_content.css
|
232
|
+
- test/sass/results/line_numbers.css
|
233
|
+
- test/sass/results/mixins.css
|
234
|
+
- test/sass/results/multiline.css
|
235
|
+
- test/sass/results/nested.css
|
236
|
+
- test/sass/results/options.css
|
237
|
+
- test/sass/results/parent_ref.css
|
238
|
+
- test/sass/results/script.css
|
239
|
+
- test/sass/results/scss_import.css
|
240
|
+
- test/sass/results/scss_importee.css
|
241
|
+
- test/sass/results/subdir/nested_subdir/nested_subdir.css
|
242
|
+
- test/sass/results/subdir/subdir.css
|
243
|
+
- test/sass/results/units.css
|
244
|
+
- test/sass/results/warn.css
|
245
|
+
- test/sass/results/warn_imported.css
|
246
|
+
- test/sass/script_conversion_test.rb
|
247
|
+
- test/sass/script_test.rb
|
248
|
+
- test/sass/scss/css_test.rb
|
249
|
+
- test/sass/scss/rx_test.rb
|
250
|
+
- test/sass/scss/scss_test.rb
|
251
|
+
- test/sass/scss/test_helper.rb
|
252
|
+
- test/sass/source_map_test.rb
|
253
|
+
- test/sass/templates/_cached_import_option_partial.scss
|
254
|
+
- test/sass/templates/_double_import_loop2.sass
|
195
255
|
- test/sass/templates/_filename_fn_import.scss
|
196
|
-
- test/sass/templates/
|
197
|
-
- test/sass/templates/
|
198
|
-
- test/sass/templates/options.sass
|
199
|
-
- test/sass/templates/scss_import.scss
|
200
|
-
- test/sass/templates/subdir/subdir.sass
|
201
|
-
- test/sass/templates/subdir/import_up2.scss
|
202
|
-
- test/sass/templates/subdir/nested_subdir/_nested_partial.sass
|
203
|
-
- test/sass/templates/subdir/nested_subdir/nested_subdir.sass
|
204
|
-
- test/sass/templates/subdir/import_up1.scss
|
256
|
+
- test/sass/templates/_imported_charset_ibm866.sass
|
257
|
+
- test/sass/templates/_imported_charset_utf8.sass
|
205
258
|
- test/sass/templates/_imported_content.sass
|
206
|
-
- test/sass/templates/
|
259
|
+
- test/sass/templates/_partial.sass
|
260
|
+
- test/sass/templates/_same_name_different_partiality.scss
|
207
261
|
- test/sass/templates/alt.sass
|
208
|
-
- test/sass/templates/
|
209
|
-
- test/sass/templates/same_name_different_partiality.scss
|
210
|
-
- test/sass/templates/complex.sass
|
211
|
-
- test/sass/templates/units.sass
|
212
|
-
- test/sass/templates/nested_import.sass
|
213
|
-
- test/sass/templates/importee.sass
|
214
|
-
- test/sass/templates/importee.less
|
215
|
-
- test/sass/templates/_cached_import_option_partial.scss
|
216
|
-
- test/sass/templates/scss_importee.scss
|
217
|
-
- test/sass/templates/line_numbers.sass
|
218
|
-
- test/sass/templates/expanded.sass
|
219
|
-
- test/sass/templates/bork3.sass
|
220
|
-
- test/sass/templates/bork5.sass
|
221
|
-
- test/sass/templates/import_content.sass
|
222
|
-
- test/sass/templates/warn_imported.sass
|
223
|
-
- test/sass/templates/import_charset_ibm866.sass
|
262
|
+
- test/sass/templates/basic.sass
|
224
263
|
- test/sass/templates/bork1.sass
|
225
|
-
- test/sass/templates/warn.sass
|
226
264
|
- test/sass/templates/bork2.sass
|
227
|
-
- test/sass/templates/
|
265
|
+
- test/sass/templates/bork3.sass
|
266
|
+
- test/sass/templates/bork4.sass
|
267
|
+
- test/sass/templates/bork5.sass
|
268
|
+
- test/sass/templates/cached_import_option.scss
|
228
269
|
- test/sass/templates/compact.sass
|
229
|
-
- test/sass/templates/
|
230
|
-
- test/sass/templates/
|
231
|
-
- test/sass/templates/multiline.sass
|
232
|
-
- test/sass/templates/_imported_charset_ibm866.sass
|
270
|
+
- test/sass/templates/complex.sass
|
271
|
+
- test/sass/templates/compressed.sass
|
233
272
|
- test/sass/templates/double_import_loop1.sass
|
234
|
-
- test/sass/templates/
|
235
|
-
- test/sass/templates/
|
236
|
-
- test/sass/templates/parent_ref.sass
|
237
|
-
- test/sass/templates/import.sass
|
238
|
-
- test/sass/templates/nested_bork3.sass
|
239
|
-
- test/sass/templates/script.sass
|
240
|
-
- test/sass/templates/same_name_different_ext.scss
|
241
|
-
- test/sass/templates/bork4.sass
|
273
|
+
- test/sass/templates/expanded.sass
|
274
|
+
- test/sass/templates/filename_fn.scss
|
242
275
|
- test/sass/templates/if.sass
|
243
|
-
- test/sass/templates/
|
244
|
-
- test/sass/templates/
|
276
|
+
- test/sass/templates/import.sass
|
277
|
+
- test/sass/templates/import_charset.sass
|
245
278
|
- test/sass/templates/import_charset_1_8.sass
|
246
|
-
- test/sass/templates/
|
247
|
-
- test/sass/templates/
|
279
|
+
- test/sass/templates/import_charset_ibm866.sass
|
280
|
+
- test/sass/templates/import_content.sass
|
281
|
+
- test/sass/templates/importee.less
|
282
|
+
- test/sass/templates/importee.sass
|
283
|
+
- test/sass/templates/line_numbers.sass
|
248
284
|
- test/sass/templates/mixin_bork.sass
|
249
|
-
- test/sass/templates/
|
285
|
+
- test/sass/templates/mixins.sass
|
286
|
+
- test/sass/templates/multiline.sass
|
287
|
+
- test/sass/templates/nested.sass
|
288
|
+
- test/sass/templates/nested_bork1.sass
|
289
|
+
- test/sass/templates/nested_bork2.sass
|
290
|
+
- test/sass/templates/nested_bork3.sass
|
250
291
|
- test/sass/templates/nested_bork4.sass
|
251
|
-
- test/sass/templates/
|
252
|
-
- test/sass/templates/
|
253
|
-
- test/sass/
|
254
|
-
- test/sass/
|
255
|
-
- test/sass/
|
256
|
-
- test/sass/
|
292
|
+
- test/sass/templates/nested_import.sass
|
293
|
+
- test/sass/templates/nested_mixin_bork.sass
|
294
|
+
- test/sass/templates/options.sass
|
295
|
+
- test/sass/templates/parent_ref.sass
|
296
|
+
- test/sass/templates/same_name_different_ext.sass
|
297
|
+
- test/sass/templates/same_name_different_ext.scss
|
298
|
+
- test/sass/templates/same_name_different_partiality.scss
|
299
|
+
- test/sass/templates/script.sass
|
300
|
+
- test/sass/templates/scss_import.scss
|
301
|
+
- test/sass/templates/scss_importee.scss
|
302
|
+
- test/sass/templates/single_import_loop.sass
|
303
|
+
- test/sass/templates/subdir/import_up1.scss
|
304
|
+
- test/sass/templates/subdir/import_up2.scss
|
305
|
+
- test/sass/templates/subdir/nested_subdir/_nested_partial.sass
|
306
|
+
- test/sass/templates/subdir/nested_subdir/nested_subdir.sass
|
307
|
+
- test/sass/templates/subdir/subdir.sass
|
308
|
+
- test/sass/templates/units.sass
|
309
|
+
- test/sass/templates/warn.sass
|
310
|
+
- test/sass/templates/warn_imported.sass
|
311
|
+
- test/sass/test_helper.rb
|
257
312
|
- test/sass/util/multibyte_string_scanner_test.rb
|
258
313
|
- test/sass/util/normalized_map_test.rb
|
259
|
-
- test/sass/
|
260
|
-
- test/sass/importer_test.rb
|
261
|
-
- test/sass/scss/css_test.rb
|
262
|
-
- test/sass/scss/scss_test.rb
|
263
|
-
- test/sass/scss/rx_test.rb
|
264
|
-
- test/sass/scss/test_helper.rb
|
314
|
+
- test/sass/util/subset_map_test.rb
|
265
315
|
- test/sass/util_test.rb
|
266
|
-
- test/sass/
|
267
|
-
- test/
|
268
|
-
- test/sass/results/expanded.css
|
269
|
-
- test/sass/results/compact.css
|
270
|
-
- test/sass/results/import_content.css
|
271
|
-
- test/sass/results/compressed.css
|
272
|
-
- test/sass/results/scss_importee.css
|
273
|
-
- test/sass/results/basic.css
|
274
|
-
- test/sass/results/subdir/nested_subdir/nested_subdir.css
|
275
|
-
- test/sass/results/subdir/subdir.css
|
276
|
-
- test/sass/results/options.css
|
277
|
-
- test/sass/results/scss_import.css
|
278
|
-
- test/sass/results/units.css
|
279
|
-
- test/sass/results/parent_ref.css
|
280
|
-
- test/sass/results/script.css
|
281
|
-
- test/sass/results/complex.css
|
282
|
-
- test/sass/results/cached_import_option.css
|
283
|
-
- test/sass/results/import_charset.css
|
284
|
-
- test/sass/results/alt.css
|
285
|
-
- test/sass/results/if.css
|
286
|
-
- test/sass/results/multiline.css
|
287
|
-
- test/sass/results/import_charset_1_8.css
|
288
|
-
- test/sass/results/warn.css
|
289
|
-
- test/sass/results/import_charset_ibm866.css
|
290
|
-
- test/sass/results/filename_fn.css
|
291
|
-
- test/sass/results/import.css
|
292
|
-
- test/sass/results/nested.css
|
293
|
-
- test/sass/results/line_numbers.css
|
294
|
-
- test/sass/test_helper.rb
|
295
|
-
- test/sass/more_templates/_more_partial.sass
|
296
|
-
- test/sass/more_templates/more_import.sass
|
297
|
-
- test/sass/more_templates/more1.sass
|
298
|
-
- test/sass/script_conversion_test.rb
|
299
|
-
- test/sass/more_results/more1.css
|
300
|
-
- test/sass/more_results/more1_with_line_comments.css
|
301
|
-
- test/sass/more_results/more_import.css
|
302
|
-
- test/sass/mock_importer.rb
|
303
|
-
- test/sass/cache_test.rb
|
304
|
-
- test/sass/source_map_test.rb
|
305
|
-
- test/sass/plugin_test.rb
|
306
|
-
- extra/update_watch.rb
|
307
|
-
- Rakefile
|
308
|
-
- init.rb
|
309
|
-
- .yardopts
|
310
|
-
- README.md
|
311
|
-
- VERSION_NAME
|
312
|
-
- VERSION_DATE
|
313
|
-
- REVISION
|
314
|
-
- MIT-LICENSE
|
315
|
-
- VERSION
|
316
|
-
- CONTRIBUTING
|
317
|
-
- ext/mkrf_conf.rb
|
316
|
+
- test/sass/value_helpers_test.rb
|
317
|
+
- test/test_helper.rb
|
318
318
|
homepage: http://sass-lang.com/
|
319
319
|
licenses:
|
320
320
|
- MIT
|
@@ -325,17 +325,17 @@ require_paths:
|
|
325
325
|
- lib
|
326
326
|
required_ruby_version: !ruby/object:Gem::Requirement
|
327
327
|
requirements:
|
328
|
-
- - '>='
|
328
|
+
- - ! '>='
|
329
329
|
- !ruby/object:Gem::Version
|
330
330
|
version: 1.8.7
|
331
331
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
332
332
|
requirements:
|
333
|
-
- - '>'
|
333
|
+
- - ! '>'
|
334
334
|
- !ruby/object:Gem::Version
|
335
335
|
version: 1.3.1
|
336
336
|
requirements: []
|
337
337
|
rubyforge_project: sass
|
338
|
-
rubygems_version: 2.
|
338
|
+
rubygems_version: 2.2.2
|
339
339
|
signing_key:
|
340
340
|
specification_version: 4
|
341
341
|
summary: A powerful but elegant CSS compiler that makes CSS fun again.
|