sass 3.3.0.alpha.67 → 3.3.0.alpha.69

Sign up to get free protection for your applications and to get access to all the features.
data/REVISION CHANGED
@@ -1 +1 @@
1
- f2051741fd9b7025a9ad2a9601cabeaea16a9c35
1
+ 2ada675414fd60b696703b85500d3528d482c64a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0.alpha.67
1
+ 3.3.0.alpha.69
@@ -1 +1 @@
1
- 28 December 2012 21:03:29 GMT
1
+ 05 January 2013 02:52:38 GMT
@@ -426,7 +426,7 @@ ERR
426
426
  comment_tab_str = nil
427
427
  first = true
428
428
  lines = []
429
- string.gsub(/\r|\n|\r\n|\r\n/, "\n").scan(/^[^\n]*?$/).each_with_index do |line, index|
429
+ string.gsub(/\r\n|\r|\n/, "\n").scan(/^[^\n]*?$/).each_with_index do |line, index|
430
430
  index += (@options[:line] || 1)
431
431
  if line.strip.empty?
432
432
  lines.last.text << "\n" if lines.last && lines.last.comment?
@@ -115,6 +115,9 @@ module Sass
115
115
  # @param name [String] The filename to search for.
116
116
  # @return [(String, Symbol)] A filename-syntax pair.
117
117
  def find_real_file(dir, name, options)
118
+ # on windows 'dir' can be in native File::ALT_SEPARATOR form
119
+ dir = dir.gsub(File::ALT_SEPARATOR, File::SEPARATOR) unless File::ALT_SEPARATOR.nil?
120
+
118
121
  found = possible_files(remove_root(name)).map do |f, s|
119
122
  path = (dir == "." || Pathname.new(f).absolute?) ? f : "#{dir}/#{f}"
120
123
  Dir[path].map do |full_path|
@@ -102,7 +102,7 @@ module Sass
102
102
  # seq is A, sels is B, and self is C
103
103
 
104
104
  self_without_sel = self.members - sels
105
- group.each {|e, _| e.result = :failed_to_unify}
105
+ group.each {|e, _| e.result = :failed_to_unify unless e.result == :succeeded}
106
106
  next unless unified = seq.members.last.unify(self_without_sel, subject?)
107
107
  group.each {|e, _| e.result = :succeeded}
108
108
  group.each {|e, _| check_directives_match!(e, parent_directives)}
@@ -140,7 +140,7 @@ class Sass::Tree::Visitors::CheckNesting < Sass::Tree::Visitors::Base
140
140
  end
141
141
 
142
142
  def try_send(method, *args)
143
- return unless respond_to?(method)
143
+ return unless respond_to?(method, true)
144
144
  send(method, *args)
145
145
  end
146
146
  end
@@ -379,6 +379,7 @@ module Sass
379
379
  #
380
380
  # @param msg [String]
381
381
  def sass_warn(msg)
382
+ msg = msg + "\n" unless ruby1?
382
383
  Sass.logger.warn(msg)
383
384
  end
384
385
 
@@ -484,6 +485,13 @@ module Sass
484
485
 
485
486
  ## Cross-Ruby-Version Compatibility
486
487
 
488
+ # Whether or not this is running under a Ruby version under 2.0.
489
+ #
490
+ # @return [Boolean]
491
+ def ruby1?
492
+ Sass::Util::RUBY_VERSION[0] <= 1
493
+ end
494
+
487
495
  # Whether or not this is running under Ruby 1.8 or lower.
488
496
  #
489
497
  # Note that IronRuby counts as Ruby 1.8,
@@ -2369,6 +2369,21 @@ SASS
2369
2369
 
2370
2370
  # Regression tests
2371
2371
 
2372
+ def test_line_numbers_with_dos_line_endings
2373
+ assert_equal <<CSS, render(<<SASS, :line_comments => true)
2374
+ /* line 5, test_line_numbers_with_dos_line_endings_inline.sass */
2375
+ .foo {
2376
+ a: b; }
2377
+ CSS
2378
+ \r
2379
+ \r
2380
+ \r
2381
+ \r
2382
+ .foo
2383
+ a: b
2384
+ SASS
2385
+ end
2386
+
2372
2387
  def test_variable_in_media_in_mixin
2373
2388
  assert_equal <<CSS, render(<<SASS)
2374
2389
  @media screen and (min-width: 10px) {
@@ -1130,6 +1130,20 @@ SCSS
1130
1130
 
1131
1131
  # Regression Tests
1132
1132
 
1133
+ def test_partially_failed_extend
1134
+ assert_no_warning {assert_equal(<<CSS, render(<<SCSS))}
1135
+ .rc, test {
1136
+ color: white; }
1137
+
1138
+ .prices span.pill span.rc {
1139
+ color: red; }
1140
+ CSS
1141
+ test { @extend .rc; }
1142
+ .rc {color: white;}
1143
+ .prices span.pill span.rc {color: red;}
1144
+ SCSS
1145
+ end
1146
+
1133
1147
  def test_newline_near_combinator
1134
1148
  assert_equal <<CSS, render(<<SCSS)
1135
1149
  .a +
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: 592302987
4
+ hash: 592302983
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 3
9
9
  - 0
10
10
  - alpha
11
- - 67
12
- version: 3.3.0.alpha.67
11
+ - 69
12
+ version: 3.3.0.alpha.69
13
13
  platform: ruby
14
14
  authors:
15
15
  - Nathan Weizenbaum
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2012-12-28 00:00:00 -05:00
22
+ date: 2013-01-04 00:00:00 -05:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency