sass 3.3.0.rc.5 → 3.3.0.rc.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTc5YzExMjQxZmJhMzkyNmNjNDQxMTU1ZGMyYWZkYmVjZWIwZmM3Mg==
4
+ ZWRiNjA5MDgxMzBiNmFiYjRlN2ZkMTI2ZWM3ZGIwNDQ3M2M3OTRjNw==
5
5
  data.tar.gz: !binary |-
6
- NjYxYmU2OWIwZjNkZWYwNzhmYzYyNGNiZmRiNThjZWJlZGViMGU3MQ==
6
+ OWI2Njk3NzRlOTExOGFjNWY3MzEwMjUyN2IzMGY1OGVlMGY3MmYxZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzdjZmIzZTVhYWZmNDZlZjFlZWQ4NjIxYzBhN2Y3NTZjMzE0Y2YxZWU0MDk5
10
- ZmU0ZGRmYTY2MWZiMTVmMGM1NjYxODBjMjdhMTY3YWNlNWJjYjFjMWM4OTA3
11
- NTNmMDRhNmM0YmZjZDJhNDRlNzE4NDllMjBhYTY5M2MzNjc5N2Y=
9
+ MzI1YmZkMTEzMWM2ZjViOGFlOWRkOWJkM2U1Y2M5MzdlYjVlODYxNDY2N2Zh
10
+ MDJmYjdkOWJiYWZlM2Q2ZTMyZTY4NjRmYmRhM2M0OWI2Y2Y5ZWZhNWYxOGNl
11
+ NTJjZmEwNmI5ZjgwMjU0YmQ4ZWQ0MDlmNmE3Y2QyMmFmMGM4ZWI=
12
12
  data.tar.gz: !binary |-
13
- MzNkYTYyODdjMjQzNzU4YzFmMDhmMjg1OTNlMzg0ZWZjMzZiNDAxZGVhZjQy
14
- YjFmMDJlZDM4NjZiZTFmNmM0M2NkMmUwNjIwMGQ3NDgyMGJiZDgzYjQzZjIz
15
- NTlmNjAyMTZjMTNhYTY5ZTcxODI1Y2EyODY1OGJiNjliMWQ3Nzc=
13
+ OWFiNDNhZDQ2NWQ1ZmY1ZDIzMmVhMzE3OWU5N2VjM2Y1NmVmNjlmMTdhYWEx
14
+ OTRkZGIyNjkxZjVjZGFjNWE4NDc2OTZiZmRlYmNiNzFmMThhNmJkZjMwYzFk
15
+ ZDQwYjg3MzM1MjIxYjFhMDFlMmQyMDNjMDBmZjkyNWExZTdjODY=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0.rc.5
1
+ 3.3.0.rc.6
@@ -1 +1 @@
1
- 21 February 2014 23:09:12 UTC
1
+ 03 March 2014 22:36:24 UTC
@@ -14,8 +14,8 @@ puts "Ensuring you have the right version of listen installed."
14
14
  Gem::Command.build_args = ARGV
15
15
  inst = Gem::DependencyInstaller.new
16
16
  if Sass::Util.version_geq(RUBY_VERSION, "1.9.3")
17
- puts "Installing listen >= 1.1.0, < 2.5"
18
- inst.install "listen", Gem::Requirement.new(">= 1.1.0", "< 2.5")
17
+ puts "Installing listen >= 1.1.0, < 3.0.0"
18
+ inst.install "listen", Gem::Requirement.new(">= 1.1.0", "< 3.0.0")
19
19
  else
20
20
  puts "Installing listen ~> 1.1.0"
21
21
  inst.install "listen", "~> 1.1.0"
@@ -230,6 +230,16 @@ module Sass::Plugin
230
230
  # TODO: Keep better track of what depends on what
231
231
  # so we don't have to run a global update every time anything changes.
232
232
  listener_args = directories + [{:relative_paths => false}]
233
+
234
+ # The native windows listener is much slower than the polling option, according to
235
+ # https://github.com/nex3/sass/commit/a3031856b22bc834a5417dedecb038b7be9b9e3e
236
+ poll = @options[:poll] || Sass::Util.windows?
237
+ if poll && Sass::Util.listen_geq_2?
238
+ # In Listen 2.0.0 and on, :force_polling is an option. In earlier
239
+ # versions, it's a method on the listener (called below).
240
+ listener_args.last[:force_polling] = true
241
+ end
242
+
233
243
  listener = create_listener(*listener_args) do |modified, added, removed|
234
244
  recompile_required = false
235
245
 
@@ -276,9 +286,11 @@ module Sass::Plugin
276
286
  end
277
287
  end
278
288
 
279
- # The native windows listener is much slower than the polling option, according to
280
- # https://github.com/nex3/sass/commit/a3031856b22bc834a5417dedecb038b7be9b9e3e
281
- listener.force_polling(true) if @options[:poll] || Sass::Util.windows?
289
+ if poll && !Sass::Util.listen_geq_2?
290
+ # In Listen 2.0.0 and on, :force_polling is an option (set above). In
291
+ # earlier versions, it's a method on the listener.
292
+ listener.force_polling(true)
293
+ end
282
294
 
283
295
  listen_to(listener)
284
296
  end
@@ -89,12 +89,14 @@ module Sass
89
89
  return super_cseq if @members.size == 1 && parent.suffix.empty?
90
90
 
91
91
  CommaSequence.new(super_cseq.members.map do |super_seq|
92
- unless super_seq.members.last.is_a?(SimpleSequence)
92
+ members = super_seq.members.dup
93
+ newline = members.pop if members.last == "\n"
94
+ unless members.last.is_a?(SimpleSequence)
93
95
  raise Sass::SyntaxError.new("Invalid parent selector for \"#{self}\": \"" +
94
96
  super_seq.to_a.join + '"')
95
97
  end
96
98
 
97
- parent_sub = super_seq.members.last.members
99
+ parent_sub = members.last.members
98
100
  unless parent.suffix.empty?
99
101
  parent_sub = parent_sub.dup
100
102
  parent_sub[-1] = parent_sub.last.dup
@@ -120,8 +122,9 @@ module Sass
120
122
  end
121
123
  end
122
124
 
123
- Sequence.new(super_seq.members[0...-1] +
124
- [SimpleSequence.new(parent_sub + @members[1..-1], subject?)])
125
+ Sequence.new(members[0...-1] +
126
+ [SimpleSequence.new(parent_sub + @members[1..-1], subject?)] +
127
+ [newline].compact)
125
128
  end)
126
129
  end
127
130
 
@@ -576,6 +576,7 @@ DEPRECATION WARNING on line 4 of test_setting_global_variable_locally_warns_inli
576
576
  Assigning to global variable "$var" by default is deprecated.
577
577
  In future versions of Sass, this will create a new local variable.
578
578
  If you want to assign to the global variable, use "$var: x !global" instead.
579
+ Note that this will be incompatible with Sass 3.2.
579
580
  WARNING
580
581
  .foo {
581
582
  a: x; }
@@ -602,6 +603,7 @@ DEPRECATION WARNING on line 3 of test_setting_global_variable_locally_warns_only
602
603
  Assigning to global variable "$var" by default is deprecated.
603
604
  In future versions of Sass, this will create a new local variable.
604
605
  If you want to assign to the global variable, use "$var: x !global" instead.
606
+ Note that this will be incompatible with Sass 3.2.
605
607
  WARNING
606
608
  CSS
607
609
  $var: 1;
@@ -3099,6 +3099,17 @@ SCSS
3099
3099
  end
3100
3100
 
3101
3101
  # Regression
3102
+
3103
+ def test_parent_ref_with_newline
3104
+ assert_equal(<<CSS, render(<<SCSS))
3105
+ a.c
3106
+ , b.c {
3107
+ x: y; }
3108
+ CSS
3109
+ a
3110
+ , b {&.c {x: y}}
3111
+ SCSS
3112
+ end
3102
3113
 
3103
3114
  def test_parent_ref_in_nested_at_root
3104
3115
  assert_equal(<<CSS, render(<<SCSS))
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.5
4
+ version: 3.3.0.rc.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -10,8 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-02-21 00:00:00.000000000 Z
13
+ date: 2014-03-03 00:00:00.000000000 Z
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rake
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ! '>='
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
15
29
  - !ruby/object:Gem::Dependency
16
30
  name: yard
17
31
  requirement: !ruby/object:Gem::Requirement