sass 3.3.0.alpha.141 → 3.3.0.alpha.142

Sign up to get free protection for your applications and to get access to all the features.
data/REVISION CHANGED
@@ -1 +1 @@
1
- a4b3fa2126c0f4460a64e02a7912d7f50ec4d99f
1
+ 7109e242c902419c9bd839c2b4e2b8f7b48a19c7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0.alpha.141
1
+ 3.3.0.alpha.142
@@ -1 +1 @@
1
- 10 May 2013 23:58:19 GMT
1
+ 24 May 2013 22:28:19 GMT
@@ -558,7 +558,7 @@ ERR
558
558
  importer.add_import("bar", "@import 'foo'")
559
559
 
560
560
  engine = Sass::Engine.new('@import "foo"', :filename => filename_for_test,
561
- :load_paths => [importer])
561
+ :load_paths => [importer], :importer => importer)
562
562
 
563
563
  assert_raise_message(Sass::SyntaxError, <<ERR.rstrip) {engine.render}
564
564
  An @import loop has been found:
@@ -575,7 +575,7 @@ ERR
575
575
  importer.add_import("baz", "@import 'foo'")
576
576
 
577
577
  engine = Sass::Engine.new('@import "foo"', :filename => filename_for_test,
578
- :load_paths => [importer])
578
+ :load_paths => [importer], :importer => importer)
579
579
 
580
580
  assert_raise_message(Sass::SyntaxError, <<ERR.rstrip) {engine.render}
581
581
  An @import loop has been found:
@@ -731,7 +731,7 @@ SASS
731
731
  importer.add_import("imported", "div{color:red}")
732
732
  Sass.load_paths << importer
733
733
 
734
- assert_equal "div {\n color: red; }\n", Sass::Engine.new('@import "imported"').render
734
+ assert_equal "div {\n color: red; }\n", Sass::Engine.new('@import "imported"', :importer => importer).render
735
735
  ensure
736
736
  Sass.load_paths.clear
737
737
  end
@@ -3024,7 +3024,7 @@ SCSS
3024
3024
 
3025
3025
  original_filename = filename_for_test
3026
3026
  engine = Sass::Engine.new('@import "imported"; div{color:blue}',
3027
- :filename => original_filename, :load_paths => [importer], :syntax => :scss)
3027
+ :filename => original_filename, :load_paths => [importer], :syntax => :scss, :importer => importer)
3028
3028
  engine.render
3029
3029
 
3030
3030
  assert_equal original_filename, engine.options[:original_filename]
@@ -3253,6 +3253,7 @@ SASS
3253
3253
 
3254
3254
  def render(sass, options = {})
3255
3255
  munge_filename options
3256
+ options[:importer] ||= MockImporter.new
3256
3257
  Sass::Engine.new(sass, options).render
3257
3258
  end
3258
3259
 
@@ -725,7 +725,7 @@ SCSS
725
725
 
726
726
  # Taken from http://dev.w3.org/csswg/selectors4/#overview, but without element
727
727
  # names.
728
- def test_summarized_selectors
728
+ def test_more_summarized_selectors
729
729
  assert_selector_parses(':not(s)')
730
730
  assert_selector_parses(':not(s1, s2)')
731
731
  assert_selector_parses(':matches(s1, s2)')
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: 592302615
4
+ hash: 592302609
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 3
9
9
  - 0
10
10
  - alpha
11
- - 141
12
- version: 3.3.0.alpha.141
11
+ - 142
12
+ version: 3.3.0.alpha.142
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: 2013-05-10 00:00:00 -04:00
22
+ date: 2013-05-24 00:00:00 -04:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency