sass 3.5.6 → 3.5.7

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
- SHA1:
3
- metadata.gz: 2a0be81d849341f77d658cfb6a44988a273038b3
4
- data.tar.gz: e2d3106b331b62359df2b422d4d7142af4cf215e
2
+ SHA256:
3
+ metadata.gz: 339eac076bbfeee4552a45a36f17ef5fbdaea2e235d68c9718cb92459a899dfb
4
+ data.tar.gz: 484f472c548c347f149d73e92c548dde738f8dab06b1d4dca3a544bc993a8ec3
5
5
  SHA512:
6
- metadata.gz: fd05bc99a4719679bcdfde4d7d2e755080ecb93ba1b48ebab9d43a0ed24a03b2ea5ca190efd3dcace28c9b0bfdf56cb469d7efddc39a8ab70f1e0996769feb65
7
- data.tar.gz: db99debfdb3863aa2d04fa105e1be80403ba82e94f9f76f40cd26e5072b56a13215f78c6cf02bb901a96565c6224efef4acfe3903ea02ffb90301915ddf7427f
6
+ metadata.gz: 65baebb984171bd1b450f5bc1bbfb654bd2d5956063ed3a67be5517c6b4ded665fa694456470271bc840a1f12bec12dcdd8428708d401bcd999b58b93cf20dc1
7
+ data.tar.gz: 16483932b2658065f79b04fa5876409e041cdb8fec4a080d88d03b348110f7a3026f632003b816ebdc92ad3ae5b9e8a8015c63bf307b85e4938fd9853907c67b
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Sass [![Travis Build Status](https://travis-ci.org/sass/sass.svg?branch=next)](https://travis-ci.org/sass/sass) [![Gem Version](https://badge.fury.io/rb/sass.svg)](http://badge.fury.io/rb/sass) [![Inline docs](http://inch-ci.org/github/sass/sass.svg)](http://inch-ci.org/github/sass/sass)
1
+ # Sass [![Travis Build Status](https://travis-ci.org/sass/ruby-sass.svg?branch=next)](https://travis-ci.org/sass/ruby-sass) [![Gem Version](https://badge.fury.io/rb/sass.svg)](http://badge.fury.io/rb/sass) [![Inline docs](http://inch-ci.org/github/sass/sass.svg)](http://inch-ci.org/github/sass/sass)
2
2
 
3
3
  **Sass makes CSS fun again**. Sass is an extension of CSS,
4
4
  adding nested rules, variables, mixins, selector inheritance, and more.
data/Rakefile CHANGED
@@ -27,7 +27,7 @@ task :test do
27
27
  test_cases = [
28
28
  {
29
29
  'env' => {'MATHN' => 'true'},
30
- 'tasks' => ['test:ruby', 'test:spec', :rubocop]
30
+ 'tasks' => ['test:ruby', 'test:spec']
31
31
  },
32
32
  {
33
33
  'env' => {'MATHN' => 'false'},
@@ -110,20 +110,6 @@ def ruby_version_at_least?(version_string)
110
110
  ruby_version >= version
111
111
  end
112
112
 
113
- begin
114
- require 'rubocop/rake_task'
115
- RuboCop = Rubocop unless defined?(RuboCop)
116
- RuboCop::RakeTask.new do |t|
117
- t.patterns = FileList["lib/**/*"]
118
- end
119
- rescue LoadError
120
- task :rubocop do
121
- puts "Rubocop is disabled."
122
- puts "Passing this check is required in order for your patch to be accepted."
123
- puts "Install Rubocop and then run the style check with: rake rubocop."
124
- end
125
- end
126
-
127
113
  # ----- Packaging -----
128
114
 
129
115
  # Don't use Rake::GemPackageTast because we want prerequisites to run
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.5.6
1
+ 3.5.7
@@ -1 +1 @@
1
- 23 March 2018 00:44:24 UTC
1
+ 18 July 2018 19:10:13 UTC
@@ -499,7 +499,6 @@ END
499
499
  lines
500
500
  end
501
501
 
502
- # @comment
503
502
  def try_comment(line, last, tab_str, comment_tab_str, index)
504
503
  return unless last && last.comment?
505
504
  # Nested comment stuff must be at least one whitespace char deeper
@@ -726,10 +725,7 @@ WARNING
726
725
  end
727
726
  end
728
727
 
729
- # @comment
730
- # rubocop:disable ParameterLists
731
728
  def parse_property(name, parsed_name, value, prop, line, start_offset)
732
- # rubocop:enable ParameterLists
733
729
 
734
730
  if name.start_with?('--')
735
731
  unless line.children.empty?
@@ -1038,8 +1034,6 @@ WARNING
1038
1034
  values
1039
1035
  end
1040
1036
 
1041
- # @comment
1042
- # rubocop:disable MethodLength
1043
1037
  def parse_import_arg(scanner, offset)
1044
1038
  return if scanner.eos?
1045
1039
 
@@ -1114,8 +1108,6 @@ WARNING
1114
1108
  end
1115
1109
  node
1116
1110
  end
1117
- # @comment
1118
- # rubocop:enable MethodLength
1119
1111
 
1120
1112
  def parse_mixin_directive(parent, line, root, value, offset)
1121
1113
  parse_mixin_definition(line)
@@ -14,7 +14,6 @@ module Sass::Exec
14
14
  #
15
15
  # @see #parse
16
16
  def parse!
17
- # rubocop:disable RescueException
18
17
  begin
19
18
  parse
20
19
  rescue Exception => e
@@ -38,7 +37,6 @@ module Sass::Exec
38
37
  exit 1
39
38
  end
40
39
  exit 0
41
- # rubocop:enable RescueException
42
40
  end
43
41
 
44
42
  # Parses the command-line arguments and runs the executable.
@@ -256,8 +256,6 @@ MESSAGE
256
256
  Sass::Repl.new(@options).run
257
257
  end
258
258
 
259
- # @comment
260
- # rubocop:disable MethodLength
261
259
  def watch_or_update
262
260
  require 'sass/plugin'
263
261
  Sass::Plugin.options.merge! @options[:for_engine]
@@ -359,8 +357,6 @@ WARNING
359
357
 
360
358
  Sass::Plugin.watch(files)
361
359
  end
362
- # @comment
363
- # rubocop:enable MethodLength
364
360
 
365
361
  def run
366
362
  input = @options[:input]
@@ -1,9 +1,7 @@
1
1
  require 'sass/script/value/helpers'
2
2
 
3
3
  module Sass::Script
4
- # @comment
5
4
  # YARD can't handle some multiline tags, and we need really long tags for function declarations.
6
- # rubocop:disable LineLength
7
5
  # Methods in this module are accessible from the SassScript context.
8
6
  # For example, you can write
9
7
  #
@@ -364,9 +362,6 @@ module Sass::Script
364
362
  # representation) on those objects without first setting {Tree::Node#options=
365
363
  # the #options attribute}.
366
364
  #
367
- # @comment
368
- # rubocop:enable LineLength
369
- # rubocop:disable ModuleLength
370
365
  module Functions
371
366
  @signatures = {}
372
367
 
@@ -1500,13 +1495,11 @@ module Sass::Script
1500
1495
  def unquote(string)
1501
1496
  unless string.is_a?(Sass::Script::Value::String)
1502
1497
  # Don't warn multiple times for the same source line.
1503
- # rubocop:disable GlobalVars
1504
1498
  $_sass_warned_for_unquote ||= Set.new
1505
1499
  frame = environment.stack.frames.last
1506
1500
  key = [frame.filename, frame.line] if frame
1507
1501
  return string if frame && $_sass_warned_for_unquote.include?(key)
1508
1502
  $_sass_warned_for_unquote << key if frame
1509
- # rubocop:enable GlobalVars
1510
1503
 
1511
1504
  Sass::Util.sass_warn(<<MESSAGE.strip)
1512
1505
  DEPRECATION WARNING: Passing #{string.to_sass}, a non-string value, to unquote()
@@ -2065,12 +2058,9 @@ MESSAGE
2065
2058
  # will be bracketed. If this is `auto` (the default), the separator is
2066
2059
  # determined as explained above.
2067
2060
  # @return [Sass::Script::Value::List]
2068
- # @comment
2069
- # rubocop:disable ParameterLists
2070
2061
  def join(list1, list2,
2071
2062
  separator = identifier("auto"), bracketed = identifier("auto"),
2072
2063
  kwargs = nil, *rest)
2073
- # rubocop:enable ParameterLists
2074
2064
  if separator.is_a?(Hash)
2075
2065
  kwargs = separator
2076
2066
  separator = identifier("auto")
@@ -2913,10 +2903,7 @@ WARNING
2913
2903
  yield(value.value), value.numerator_units, value.denominator_units)
2914
2904
  end
2915
2905
 
2916
- # @comment
2917
- # rubocop:disable ParameterLists
2918
2906
  def _adjust(color, amount, attr, range, op, units = "")
2919
- # rubocop:enable ParameterLists
2920
2907
  assert_type color, :Color, :color
2921
2908
  assert_type amount, :Number, :amount
2922
2909
  Sass::Util.check_range('Amount', range, amount, units)
@@ -68,13 +68,11 @@ module Sass::Script::Tree
68
68
  def inspect
69
69
  args = @args.map {|a| a.inspect}.join(', ')
70
70
  keywords = @keywords.as_stored.to_a.map {|k, v| "$#{k}: #{v.inspect}"}.join(', ')
71
- # rubocop:disable RedundantSelf
72
71
  if self.splat
73
72
  splat = args.empty? && keywords.empty? ? "" : ", "
74
73
  splat = "#{splat}#{self.splat.inspect}..."
75
74
  splat = "#{splat}, #{kwarg_splat.inspect}..." if kwarg_splat
76
75
  end
77
- # rubocop:enable RedundantSelf
78
76
  "#{name}(#{args}#{', ' unless args.empty? || keywords.empty?}#{keywords}#{splat})"
79
77
  end
80
78
 
@@ -89,12 +87,10 @@ module Sass::Script::Tree
89
87
  args = @args.map(&arg_to_sass)
90
88
  keywords = @keywords.as_stored.to_a.map {|k, v| "$#{dasherize(k, opts)}: #{arg_to_sass[v]}"}
91
89
 
92
- # rubocop:disable RedundantSelf
93
90
  if self.splat
94
91
  splat = "#{arg_to_sass[self.splat]}..."
95
92
  kwarg_splat = "#{arg_to_sass[self.kwarg_splat]}..." if self.kwarg_splat
96
93
  end
97
- # rubocop:enable RedundantSelf
98
94
 
99
95
  arglist = [args, splat, keywords, kwarg_splat].flatten.compact.join(', ')
100
96
  "#{dasherize(name, opts)}(#{arglist})"
@@ -47,10 +47,7 @@ module Sass::Script::Tree
47
47
  # @param wa [Boolean] See {Interpolation#whitespace_after}
48
48
  # @param originally_text [Boolean] See {Interpolation#originally_text}
49
49
  # @param warn_for_color [Boolean] See {Interpolation#warn_for_color}
50
- # @comment
51
- # rubocop:disable ParameterLists
52
50
  def initialize(before, mid, after, wb, wa, opts = {})
53
- # rubocop:enable ParameterLists
54
51
  @before = before
55
52
  @mid = mid
56
53
  @after = after
@@ -1,8 +1,6 @@
1
1
  module Sass::Script::Value
2
2
  # Provides helper functions for creating sass values from within ruby methods.
3
3
  # @since `3.3.0`
4
- # @comment
5
- # rubocop:disable ModuleLength
6
4
  module Helpers
7
5
  # Construct a Sass Boolean.
8
6
  #
@@ -51,10 +51,7 @@ module Sass
51
51
  # @see Parser#initialize
52
52
  # @param allow_parent_ref [Boolean] Whether to allow the
53
53
  # parent-reference selector, `&`, when parsing the document.
54
- # @comment
55
- # rubocop:disable ParameterLists
56
54
  def initialize(str, filename, importer, line = 1, offset = 1, allow_parent_ref = true)
57
- # rubocop:enable ParameterLists
58
55
  super(str, filename, importer, line, offset)
59
56
  @allow_parent_ref = allow_parent_ref
60
57
  end
@@ -120,7 +120,7 @@ module Sass
120
120
  @@compound_extend_deprecation.warn(sseq.filename, sseq.line, <<WARNING)
121
121
  Extending a compound selector, #{sseq}, is deprecated and will not be supported in a future release.
122
122
  Consider "@extend #{sseq.members.join(', ')}" instead.
123
- See https://github.com/sass/sass/issues/1599 for details.
123
+ See http://bit.ly/ExtendCompound for details.
124
124
  WARNING
125
125
  end
126
126
 
@@ -344,8 +344,6 @@ module Sass
344
344
  # be nil. Otherwise, this will contained the merged selector. Array
345
345
  # elements are [Sass::Util#paths]-style options; conceptually, an "or"
346
346
  # of multiple selectors.
347
- # @comment
348
- # rubocop:disable MethodLength
349
347
  def merge_final_ops(seq1, seq2, res = [])
350
348
  ops1, ops2 = [], []
351
349
  ops1 << seq1.pop while seq1.last.is_a?(String)
@@ -427,8 +425,6 @@ module Sass
427
425
  return merge_final_ops(seq1, seq2, res)
428
426
  end
429
427
  end
430
- # @comment
431
- # rubocop:enable MethodLength
432
428
 
433
429
  # Takes initial subsequences of `seq1` and `seq2` and returns all
434
430
  # orderings of those subsequences. The initial subsequences are determined
@@ -84,8 +84,6 @@ module Sass::Source
84
84
  # @return [String] The JSON string.
85
85
  # @raise [ArgumentError] If neither `:css_uri` nor `:css_path` and
86
86
  # `:sourcemap_path` are specified.
87
- # @comment
88
- # rubocop:disable MethodLength
89
87
  def to_json(options)
90
88
  css_uri, css_path, sourcemap_path =
91
89
  options[:css_uri], options[:css_path], options[:sourcemap_path]
@@ -197,8 +195,6 @@ module Sass::Source
197
195
  result << "\n}"
198
196
  result
199
197
  end
200
- # @comment
201
- # rubocop:enable MethodLength
202
198
 
203
199
  private
204
200
 
@@ -141,9 +141,7 @@ module Sass::Tree
141
141
  parser = nil
142
142
  warnings = Sass.logger.capture do
143
143
  parser = Sass::SCSS::StaticParser.new(@rule.join.strip, nil, nil, 1)
144
- # rubocop:disable RescueModifier
145
144
  @parsed_rules = parser.parse_selector rescue nil
146
- # rubocop:enable RescueModifier
147
145
  end
148
146
 
149
147
  # If parsing produces a warning, throw away the result so we can parse
@@ -11,8 +11,6 @@ class Sass::Tree::Visitors::Perform < Sass::Tree::Visitors::Base
11
11
  end
12
12
 
13
13
  # @api private
14
- # @comment
15
- # rubocop:disable MethodLength
16
14
  def perform_arguments(callable, args, splat, environment)
17
15
  desc = "#{callable.type.capitalize} #{callable.name}"
18
16
  downcase_desc = "#{callable.type} #{callable.name}"
@@ -145,8 +143,6 @@ class Sass::Tree::Visitors::Perform < Sass::Tree::Visitors::Base
145
143
  end
146
144
  end
147
145
  end
148
- # @comment
149
- # rubocop:enable MethodLength
150
146
 
151
147
  protected
152
148
 
@@ -351,7 +347,7 @@ WARNING
351
347
  mixin = @environment.mixin(node.name)
352
348
  raise Sass::SyntaxError.new("Undefined mixin '#{node.name}'.") unless mixin
353
349
 
354
- if node.children.any? && !mixin.has_content
350
+ if node.has_children && !mixin.has_content
355
351
  raise Sass::SyntaxError.new(%(Mixin "#{node.name}" does not accept a content block.))
356
352
  end
357
353
 
@@ -171,8 +171,6 @@ class Sass::Tree::Visitors::ToCss < Sass::Tree::Visitors::Base
171
171
  for_node(node) {output(content)}
172
172
  end
173
173
 
174
- # @comment
175
- # rubocop:disable MethodLength
176
174
  def visit_directive(node)
177
175
  was_in_directive = @in_directive
178
176
  tab_str = ' ' * @tabs
@@ -244,8 +242,6 @@ class Sass::Tree::Visitors::ToCss < Sass::Tree::Visitors::Base
244
242
  ensure
245
243
  @in_directive = was_in_directive
246
244
  end
247
- # @comment
248
- # rubocop:enable MethodLength
249
245
 
250
246
  def visit_media(node)
251
247
  with_tabs(@tabs + node.tabs) {visit_directive(node)}
@@ -277,8 +273,6 @@ class Sass::Tree::Visitors::ToCss < Sass::Tree::Visitors::Base
277
273
  output(";") unless node.style == :compressed
278
274
  end
279
275
 
280
- # @comment
281
- # rubocop:disable MethodLength
282
276
  def visit_rule(node)
283
277
  with_tabs(@tabs + node.tabs) do
284
278
  rule_separator = node.style == :compressed ? ',' : ', '
@@ -377,8 +371,6 @@ class Sass::Tree::Visitors::ToCss < Sass::Tree::Visitors::Base
377
371
  output("}" + trailer)
378
372
  end
379
373
  end
380
- # @comment
381
- # rubocop:enable MethodLength
382
374
 
383
375
  def visit_keyframerule(node)
384
376
  visit_directive(node)
@@ -13,8 +13,6 @@ require 'sass/util/subset_map'
13
13
 
14
14
  module Sass
15
15
  # A module containing various useful functions.
16
- # @comment
17
- # rubocop:disable ModuleLength
18
16
  module Util
19
17
  extend self
20
18
 
@@ -1069,12 +1067,10 @@ module Sass
1069
1067
  end
1070
1068
  c
1071
1069
  end
1072
- # rubocop:disable ParameterLists
1073
1070
 
1074
1071
  # Computes a single longest common subsequence for arrays x and y.
1075
1072
  # Algorithm from [Wikipedia](http://en.wikipedia.org/wiki/Longest_common_subsequence_problem#Reading_out_an_LCS)
1076
1073
  def lcs_backtrace(c, x, y, i, j, &block)
1077
- # rubocop:enable ParameterList
1078
1074
  return [] if i == 0 || j == 0
1079
1075
  if (v = yield(x[i], y[j]))
1080
1076
  return lcs_backtrace(c, x, y, i - 1, j - 1, &block) << v
@@ -42,7 +42,6 @@ module Sass
42
42
  # }
43
43
  #
44
44
  # @return [{Symbol => String/Integer}] The version hash
45
- # @comment
46
45
  def version
47
46
  return @@version if defined?(@@version)
48
47
 
@@ -539,7 +539,7 @@ SCSS
539
539
  DEPRECATION WARNING on line 2 of test_long_extendee_inline.scss:
540
540
  Extending a compound selector, .foo.bar, is deprecated and will not be supported in a future release.
541
541
  Consider "@extend .foo, .bar" instead.
542
- See https://github.com/sass/sass/issues/1599 for details.
542
+ See http://bit.ly/ExtendCompound for details.
543
543
  WARNING
544
544
  end
545
545
 
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.5.6
4
+ version: 3.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Natalie Weizenbaum
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-03-23 00:00:00.000000000 Z
13
+ date: 2018-07-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sass-listen
@@ -370,7 +370,19 @@ homepage: http://sass-lang.com/
370
370
  licenses:
371
371
  - MIT
372
372
  metadata: {}
373
- post_install_message:
373
+ post_install_message: |2+
374
+
375
+ Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.
376
+
377
+ * If you use Sass as a command-line tool, we recommend using Dart Sass, the new
378
+ primary implementation: https://sass-lang.com/install
379
+
380
+ * If you use Sass as a plug-in for a Ruby web framework, we recommend using the
381
+ sassc gem: https://github.com/sass/sassc-ruby#readme
382
+
383
+ * For more details, please refer to the Sass blog:
384
+ http://sass.logdown.com/posts/7081811
385
+
374
386
  rdoc_options: []
375
387
  require_paths:
376
388
  - lib
@@ -386,34 +398,34 @@ required_rubygems_version: !ruby/object:Gem::Requirement
386
398
  version: '0'
387
399
  requirements: []
388
400
  rubyforge_project: sass
389
- rubygems_version: 2.6.14
401
+ rubygems_version: 2.7.7
390
402
  signing_key:
391
403
  specification_version: 4
392
404
  summary: A powerful but elegant CSS compiler that makes CSS fun again.
393
405
  test_files:
394
- - test/sass/extend_test.rb
395
- - test/sass/css2sass_test.rb
396
- - test/sass/util_test.rb
397
- - test/sass/superselector_test.rb
398
- - test/sass/value_helpers_test.rb
399
406
  - test/sass/plugin_test.rb
400
- - test/sass/logger_test.rb
401
- - test/sass/functions_test.rb
402
- - test/sass/conversion_test.rb
403
- - test/sass/source_map_test.rb
404
- - test/sass/cache_test.rb
405
407
  - test/sass/encoding_test.rb
406
- - test/sass/script_test.rb
408
+ - test/sass/importer_test.rb
407
409
  - test/sass/callbacks_test.rb
408
- - test/sass/script_conversion_test.rb
409
410
  - test/sass/scss/css_test.rb
410
411
  - test/sass/scss/rx_test.rb
411
412
  - test/sass/scss/scss_test.rb
413
+ - test/sass/util/multibyte_string_scanner_test.rb
414
+ - test/sass/util/normalized_map_test.rb
415
+ - test/sass/util/subset_map_test.rb
416
+ - test/sass/functions_test.rb
417
+ - test/sass/util_test.rb
418
+ - test/sass/cache_test.rb
412
419
  - test/sass/exec_test.rb
413
- - test/sass/importer_test.rb
420
+ - test/sass/value_helpers_test.rb
421
+ - test/sass/conversion_test.rb
422
+ - test/sass/script_test.rb
423
+ - test/sass/logger_test.rb
424
+ - test/sass/compiler_test.rb
414
425
  - test/sass/engine_test.rb
426
+ - test/sass/css2sass_test.rb
427
+ - test/sass/superselector_test.rb
428
+ - test/sass/script_conversion_test.rb
415
429
  - test/sass/css_variable_test.rb
416
- - test/sass/compiler_test.rb
417
- - test/sass/util/subset_map_test.rb
418
- - test/sass/util/normalized_map_test.rb
419
- - test/sass/util/multibyte_string_scanner_test.rb
430
+ - test/sass/source_map_test.rb
431
+ - test/sass/extend_test.rb