sass 3.4.20 → 3.4.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +5 -13
  2. data/Rakefile +3 -1
  3. data/VERSION +1 -1
  4. data/VERSION_DATE +1 -1
  5. data/lib/sass/cache_stores/filesystem.rb +1 -1
  6. data/lib/sass/cache_stores/memory.rb +4 -5
  7. data/lib/sass/engine.rb +4 -10
  8. data/lib/sass/error.rb +4 -4
  9. data/lib/sass/exec/sass_convert.rb +6 -4
  10. data/lib/sass/exec/sass_scss.rb +5 -2
  11. data/lib/sass/plugin.rb +2 -1
  12. data/lib/sass/plugin/compiler.rb +14 -11
  13. data/lib/sass/plugin/configuration.rb +1 -1
  14. data/lib/sass/plugin/merb.rb +1 -1
  15. data/lib/sass/script/css_parser.rb +2 -3
  16. data/lib/sass/script/functions.rb +20 -33
  17. data/lib/sass/script/lexer.rb +7 -8
  18. data/lib/sass/script/parser.rb +1 -1
  19. data/lib/sass/script/tree/node.rb +1 -1
  20. data/lib/sass/script/tree/operation.rb +1 -1
  21. data/lib/sass/script/tree/variable.rb +1 -1
  22. data/lib/sass/script/value/base.rb +6 -6
  23. data/lib/sass/script/value/color.rb +2 -2
  24. data/lib/sass/script/value/helpers.rb +7 -7
  25. data/lib/sass/script/value/number.rb +9 -2
  26. data/lib/sass/scss/parser.rb +34 -33
  27. data/lib/sass/scss/rx.rb +2 -3
  28. data/lib/sass/selector.rb +7 -10
  29. data/lib/sass/selector/abstract_sequence.rb +3 -1
  30. data/lib/sass/selector/comma_sequence.rb +4 -2
  31. data/lib/sass/selector/pseudo.rb +2 -2
  32. data/lib/sass/selector/sequence.rb +2 -2
  33. data/lib/sass/selector/simple.rb +3 -1
  34. data/lib/sass/selector/simple_sequence.rb +4 -4
  35. data/lib/sass/tree/function_node.rb +2 -3
  36. data/lib/sass/tree/prop_node.rb +4 -5
  37. data/lib/sass/tree/rule_node.rb +1 -1
  38. data/lib/sass/tree/visitors/check_nesting.rb +16 -22
  39. data/lib/sass/tree/visitors/convert.rb +2 -2
  40. data/lib/sass/tree/visitors/extend.rb +15 -13
  41. data/lib/sass/tree/visitors/perform.rb +1 -1
  42. data/lib/sass/tree/visitors/set_options.rb +1 -1
  43. data/lib/sass/tree/visitors/to_css.rb +18 -15
  44. data/lib/sass/util.rb +7 -8
  45. data/lib/sass/util/multibyte_string_scanner.rb +0 -2
  46. data/test/sass/engine_test.rb +45 -4
  47. data/test/sass/script_test.rb +31 -0
  48. metadata +99 -98
@@ -384,6 +384,17 @@ SASS
384
384
  assert_equal "-1", resolve("-1")
385
385
  end
386
386
 
387
+ def test_subtraction_vs_minus_vs_identifier
388
+ assert_equal "0.25em", resolve("1em-.75")
389
+ assert_equal "0.25em", resolve("1em-0.75")
390
+ assert_equal "1em -0.75", resolve("1em -.75")
391
+ assert_equal "1em -0.75", resolve("1em -0.75")
392
+ assert_equal "1em- 0.75", resolve("1em- .75")
393
+ assert_equal "1em- 0.75", resolve("1em- 0.75")
394
+ assert_equal "0.25em", resolve("1em - .75")
395
+ assert_equal "0.25em", resolve("1em - 0.75")
396
+ end
397
+
387
398
  def test_string_ops
388
399
  assert_equal '"foo" "bar"', resolve('"foo" "bar"')
389
400
  assert_equal "true 1", resolve('true 1')
@@ -1306,6 +1317,26 @@ SASS
1306
1317
  assert_equal "-1 2 3", resolve_with_lazy_interp_warning('quote((-#{1} 2 3))', '"-1 #{2 3}"')
1307
1318
  end
1308
1319
 
1320
+ def test_comparison_of_complex_units
1321
+ # Tests for issue #1960
1322
+ assert_warning(<<WARNING) do
1323
+ DEPRECATION WARNING on line 1 of test_comparison_of_complex_units_inline.sass:
1324
+ The result of `10 == 10px` will be `false` in future releases of Sass.
1325
+ Unitless numbers will no longer be equal to the same numbers with units.
1326
+ WARNING
1327
+ assert_equal "true", resolve("10 == 2 * 5px")
1328
+ end
1329
+ assert_warning(<<WARNING) do
1330
+ DEPRECATION WARNING on line 1 of test_comparison_of_complex_units_inline.sass:
1331
+ The result of `10 == 10px*px` will be `false` in future releases of Sass.
1332
+ Unitless numbers will no longer be equal to the same numbers with units.
1333
+ WARNING
1334
+ assert_equal "true", resolve("10 == 2px * 5px")
1335
+ end
1336
+ assert_equal "true", resolve("10px * 1px == 2px * 5px")
1337
+ assert_equal "true", resolve("5px * 1px < 2px * 5px")
1338
+ end
1339
+
1309
1340
  private
1310
1341
 
1311
1342
  def resolve_with_lazy_interp_warning(str, contents = nil, environment = env)
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.4.20
4
+ version: 3.4.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Natalie Weizenbaum
@@ -10,54 +10,55 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-12-09 00:00:00.000000000 Z
13
+ date: 2016-01-12 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
43
  - !ruby/object:Gem::Dependency
44
44
  name: minitest
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ! '>='
47
+ - - '>='
48
48
  - !ruby/object:Gem::Version
49
49
  version: '5'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ! '>='
54
+ - - '>='
55
55
  - !ruby/object:Gem::Version
56
56
  version: '5'
57
- description: ! " Sass makes CSS fun again. Sass is an extension of CSS, adding\n
58
- \ nested rules, variables, mixins, selector inheritance, and more.\n It's
59
- translated to well-formatted, standard CSS using the\n command line tool or
60
- a web-framework plugin.\n"
57
+ description: |2
58
+ Sass makes CSS fun again. Sass is an extension of CSS, adding
59
+ nested rules, variables, mixins, selector inheritance, and more.
60
+ It's translated to well-formatted, standard CSS using the
61
+ command line tool or a web-framework plugin.
61
62
  email: sass-lang@googlegroups.com
62
63
  executables:
63
64
  - sass
@@ -66,47 +67,31 @@ executables:
66
67
  extensions: []
67
68
  extra_rdoc_files: []
68
69
  files:
69
- - .yardopts
70
- - CODE_OF_CONDUCT.md
71
- - CONTRIBUTING.md
72
- - MIT-LICENSE
73
- - README.md
74
- - REVISION
75
- - Rakefile
76
- - VERSION
77
- - VERSION_DATE
78
- - VERSION_NAME
79
- - bin/sass
80
- - bin/sass-convert
81
- - bin/scss
82
- - extra/update_watch.rb
83
- - init.rb
84
- - lib/sass.rb
85
- - lib/sass/cache_stores.rb
70
+ - rails/init.rb
86
71
  - lib/sass/cache_stores/base.rb
87
72
  - lib/sass/cache_stores/chain.rb
88
73
  - lib/sass/cache_stores/filesystem.rb
89
74
  - lib/sass/cache_stores/memory.rb
90
75
  - lib/sass/cache_stores/null.rb
76
+ - lib/sass/cache_stores.rb
91
77
  - lib/sass/callbacks.rb
92
78
  - lib/sass/css.rb
93
79
  - lib/sass/engine.rb
94
80
  - lib/sass/environment.rb
95
81
  - lib/sass/error.rb
96
- - lib/sass/exec.rb
97
82
  - lib/sass/exec/base.rb
98
83
  - lib/sass/exec/sass_convert.rb
99
84
  - lib/sass/exec/sass_scss.rb
85
+ - lib/sass/exec.rb
100
86
  - lib/sass/features.rb
101
- - lib/sass/importers.rb
102
87
  - lib/sass/importers/base.rb
103
88
  - lib/sass/importers/deprecated_path.rb
104
89
  - lib/sass/importers/filesystem.rb
105
- - lib/sass/logger.rb
90
+ - lib/sass/importers.rb
106
91
  - lib/sass/logger/base.rb
107
92
  - lib/sass/logger/log_level.rb
93
+ - lib/sass/logger.rb
108
94
  - lib/sass/media.rb
109
- - lib/sass/plugin.rb
110
95
  - lib/sass/plugin/compiler.rb
111
96
  - lib/sass/plugin/configuration.rb
112
97
  - lib/sass/plugin/generic.rb
@@ -114,16 +99,15 @@ files:
114
99
  - lib/sass/plugin/rack.rb
115
100
  - lib/sass/plugin/rails.rb
116
101
  - lib/sass/plugin/staleness_checker.rb
102
+ - lib/sass/plugin.rb
117
103
  - lib/sass/railtie.rb
118
104
  - lib/sass/repl.rb
119
105
  - lib/sass/root.rb
120
- - lib/sass/script.rb
121
106
  - lib/sass/script/css_lexer.rb
122
107
  - lib/sass/script/css_parser.rb
123
108
  - lib/sass/script/functions.rb
124
109
  - lib/sass/script/lexer.rb
125
110
  - lib/sass/script/parser.rb
126
- - lib/sass/script/tree.rb
127
111
  - lib/sass/script/tree/funcall.rb
128
112
  - lib/sass/script/tree/interpolation.rb
129
113
  - lib/sass/script/tree/list_literal.rb
@@ -135,7 +119,7 @@ files:
135
119
  - lib/sass/script/tree/string_interpolation.rb
136
120
  - lib/sass/script/tree/unary_operation.rb
137
121
  - lib/sass/script/tree/variable.rb
138
- - lib/sass/script/value.rb
122
+ - lib/sass/script/tree.rb
139
123
  - lib/sass/script/value/arg_list.rb
140
124
  - lib/sass/script/value/base.rb
141
125
  - lib/sass/script/value/bool.rb
@@ -146,20 +130,22 @@ files:
146
130
  - lib/sass/script/value/null.rb
147
131
  - lib/sass/script/value/number.rb
148
132
  - lib/sass/script/value/string.rb
149
- - lib/sass/scss.rb
133
+ - lib/sass/script/value.rb
134
+ - lib/sass/script.rb
150
135
  - lib/sass/scss/css_parser.rb
151
136
  - lib/sass/scss/parser.rb
152
137
  - lib/sass/scss/rx.rb
153
138
  - lib/sass/scss/script_lexer.rb
154
139
  - lib/sass/scss/script_parser.rb
155
140
  - lib/sass/scss/static_parser.rb
156
- - lib/sass/selector.rb
141
+ - lib/sass/scss.rb
157
142
  - lib/sass/selector/abstract_sequence.rb
158
143
  - lib/sass/selector/comma_sequence.rb
159
144
  - lib/sass/selector/pseudo.rb
160
145
  - lib/sass/selector/sequence.rb
161
146
  - lib/sass/selector/simple.rb
162
147
  - lib/sass/selector/simple_sequence.rb
148
+ - lib/sass/selector.rb
163
149
  - lib/sass/shared.rb
164
150
  - lib/sass/source/map.rb
165
151
  - lib/sass/source/position.rb
@@ -203,15 +189,54 @@ files:
203
189
  - lib/sass/tree/visitors/to_css.rb
204
190
  - lib/sass/tree/warn_node.rb
205
191
  - lib/sass/tree/while_node.rb
206
- - lib/sass/util.rb
207
192
  - lib/sass/util/cross_platform_random.rb
208
193
  - lib/sass/util/multibyte_string_scanner.rb
209
194
  - lib/sass/util/normalized_map.rb
210
195
  - lib/sass/util/ordered_hash.rb
211
196
  - lib/sass/util/subset_map.rb
212
197
  - lib/sass/util/test.rb
198
+ - lib/sass/util.rb
213
199
  - lib/sass/version.rb
214
- - rails/init.rb
200
+ - lib/sass.rb
201
+ - vendor/listen/CHANGELOG.md
202
+ - vendor/listen/CONTRIBUTING.md
203
+ - vendor/listen/Gemfile
204
+ - vendor/listen/Guardfile
205
+ - vendor/listen/lib/listen/adapter.rb
206
+ - vendor/listen/lib/listen/adapters/bsd.rb
207
+ - vendor/listen/lib/listen/adapters/darwin.rb
208
+ - vendor/listen/lib/listen/adapters/linux.rb
209
+ - vendor/listen/lib/listen/adapters/polling.rb
210
+ - vendor/listen/lib/listen/adapters/windows.rb
211
+ - vendor/listen/lib/listen/directory_record.rb
212
+ - vendor/listen/lib/listen/listener.rb
213
+ - vendor/listen/lib/listen/turnstile.rb
214
+ - vendor/listen/lib/listen/version.rb
215
+ - vendor/listen/lib/listen.rb
216
+ - vendor/listen/LICENSE
217
+ - vendor/listen/listen.gemspec
218
+ - vendor/listen/Rakefile
219
+ - vendor/listen/README.md
220
+ - vendor/listen/spec/listen/adapter_spec.rb
221
+ - vendor/listen/spec/listen/adapters/bsd_spec.rb
222
+ - vendor/listen/spec/listen/adapters/darwin_spec.rb
223
+ - vendor/listen/spec/listen/adapters/linux_spec.rb
224
+ - vendor/listen/spec/listen/adapters/polling_spec.rb
225
+ - vendor/listen/spec/listen/adapters/windows_spec.rb
226
+ - vendor/listen/spec/listen/directory_record_spec.rb
227
+ - vendor/listen/spec/listen/listener_spec.rb
228
+ - vendor/listen/spec/listen/turnstile_spec.rb
229
+ - vendor/listen/spec/listen_spec.rb
230
+ - vendor/listen/spec/spec_helper.rb
231
+ - vendor/listen/spec/support/adapter_helper.rb
232
+ - vendor/listen/spec/support/directory_record_helper.rb
233
+ - vendor/listen/spec/support/fixtures_helper.rb
234
+ - vendor/listen/spec/support/listeners_helper.rb
235
+ - vendor/listen/spec/support/platform_helper.rb
236
+ - vendor/listen/Vagrantfile
237
+ - bin/sass
238
+ - bin/sass-convert
239
+ - bin/scss
215
240
  - test/sass/cache_test.rb
216
241
  - test/sass/callbacks_test.rb
217
242
  - test/sass/compiler_test.rb
@@ -336,42 +361,18 @@ files:
336
361
  - test/sass/util_test.rb
337
362
  - test/sass/value_helpers_test.rb
338
363
  - test/test_helper.rb
339
- - vendor/listen/CHANGELOG.md
340
- - vendor/listen/CONTRIBUTING.md
341
- - vendor/listen/Gemfile
342
- - vendor/listen/Guardfile
343
- - vendor/listen/LICENSE
344
- - vendor/listen/README.md
345
- - vendor/listen/Rakefile
346
- - vendor/listen/Vagrantfile
347
- - vendor/listen/lib/listen.rb
348
- - vendor/listen/lib/listen/adapter.rb
349
- - vendor/listen/lib/listen/adapters/bsd.rb
350
- - vendor/listen/lib/listen/adapters/darwin.rb
351
- - vendor/listen/lib/listen/adapters/linux.rb
352
- - vendor/listen/lib/listen/adapters/polling.rb
353
- - vendor/listen/lib/listen/adapters/windows.rb
354
- - vendor/listen/lib/listen/directory_record.rb
355
- - vendor/listen/lib/listen/listener.rb
356
- - vendor/listen/lib/listen/turnstile.rb
357
- - vendor/listen/lib/listen/version.rb
358
- - vendor/listen/listen.gemspec
359
- - vendor/listen/spec/listen/adapter_spec.rb
360
- - vendor/listen/spec/listen/adapters/bsd_spec.rb
361
- - vendor/listen/spec/listen/adapters/darwin_spec.rb
362
- - vendor/listen/spec/listen/adapters/linux_spec.rb
363
- - vendor/listen/spec/listen/adapters/polling_spec.rb
364
- - vendor/listen/spec/listen/adapters/windows_spec.rb
365
- - vendor/listen/spec/listen/directory_record_spec.rb
366
- - vendor/listen/spec/listen/listener_spec.rb
367
- - vendor/listen/spec/listen/turnstile_spec.rb
368
- - vendor/listen/spec/listen_spec.rb
369
- - vendor/listen/spec/spec_helper.rb
370
- - vendor/listen/spec/support/adapter_helper.rb
371
- - vendor/listen/spec/support/directory_record_helper.rb
372
- - vendor/listen/spec/support/fixtures_helper.rb
373
- - vendor/listen/spec/support/listeners_helper.rb
374
- - vendor/listen/spec/support/platform_helper.rb
364
+ - extra/update_watch.rb
365
+ - Rakefile
366
+ - init.rb
367
+ - .yardopts
368
+ - CODE_OF_CONDUCT.md
369
+ - CONTRIBUTING.md
370
+ - MIT-LICENSE
371
+ - README.md
372
+ - REVISION
373
+ - VERSION
374
+ - VERSION_DATE
375
+ - VERSION_NAME
375
376
  homepage: http://sass-lang.com/
376
377
  licenses:
377
378
  - MIT
@@ -382,43 +383,43 @@ require_paths:
382
383
  - lib
383
384
  required_ruby_version: !ruby/object:Gem::Requirement
384
385
  requirements:
385
- - - ! '>='
386
+ - - '>='
386
387
  - !ruby/object:Gem::Version
387
388
  version: 1.8.7
388
389
  required_rubygems_version: !ruby/object:Gem::Requirement
389
390
  requirements:
390
- - - ! '>='
391
+ - - '>='
391
392
  - !ruby/object:Gem::Version
392
393
  version: '0'
393
394
  requirements: []
394
395
  rubyforge_project: sass
395
- rubygems_version: 2.4.3
396
+ rubygems_version: 2.0.3
396
397
  signing_key:
397
398
  specification_version: 4
398
399
  summary: A powerful but elegant CSS compiler that makes CSS fun again.
399
400
  test_files:
400
- - test/sass/importer_test.rb
401
- - test/sass/engine_test.rb
402
- - test/sass/value_helpers_test.rb
403
- - test/sass/superselector_test.rb
404
- - test/sass/logger_test.rb
405
- - test/sass/util_test.rb
406
401
  - test/sass/cache_test.rb
407
- - test/sass/encoding_test.rb
408
- - test/sass/source_map_test.rb
409
- - test/sass/css2sass_test.rb
410
- - test/sass/plugin_test.rb
402
+ - test/sass/callbacks_test.rb
403
+ - test/sass/compiler_test.rb
411
404
  - test/sass/conversion_test.rb
412
- - test/sass/util/subset_map_test.rb
413
- - test/sass/util/multibyte_string_scanner_test.rb
414
- - test/sass/util/normalized_map_test.rb
405
+ - test/sass/css2sass_test.rb
406
+ - test/sass/encoding_test.rb
407
+ - test/sass/engine_test.rb
415
408
  - test/sass/exec_test.rb
416
- - test/sass/scss/rx_test.rb
417
- - test/sass/scss/scss_test.rb
418
- - test/sass/scss/css_test.rb
419
- - test/sass/callbacks_test.rb
420
- - test/sass/functions_test.rb
421
409
  - test/sass/extend_test.rb
410
+ - test/sass/functions_test.rb
411
+ - test/sass/importer_test.rb
412
+ - test/sass/logger_test.rb
413
+ - test/sass/plugin_test.rb
422
414
  - test/sass/script_conversion_test.rb
423
415
  - test/sass/script_test.rb
424
- - test/sass/compiler_test.rb
416
+ - test/sass/scss/css_test.rb
417
+ - test/sass/scss/rx_test.rb
418
+ - test/sass/scss/scss_test.rb
419
+ - test/sass/source_map_test.rb
420
+ - test/sass/superselector_test.rb
421
+ - test/sass/util/multibyte_string_scanner_test.rb
422
+ - test/sass/util/normalized_map_test.rb
423
+ - test/sass/util/subset_map_test.rb
424
+ - test/sass/util_test.rb
425
+ - test/sass/value_helpers_test.rb