sass 3.1.0.alpha.254 → 3.1.0.alpha.256

Sign up to get free protection for your applications and to get access to all the features.
data/REVISION CHANGED
@@ -1 +1 @@
1
- 780e43432b40199255e6b5a993a6d2d2c1deca20
1
+ a84b376d8556cc9d0cabf7a29a491d9ff7df989c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0.alpha.254
1
+ 3.1.0.alpha.256
@@ -265,6 +265,14 @@ END
265
265
  children.flatten
266
266
  end
267
267
 
268
+ def visit_directive(node)
269
+ if node.value['#{']
270
+ node.value = run_interp(Sass::Engine.parse_interp(node.value, node.line, 0, node.options))
271
+ end
272
+ yield
273
+ node
274
+ end
275
+
268
276
  private
269
277
 
270
278
  def run_interp(text)
@@ -552,6 +552,13 @@ CSS
552
552
  render("@import \"http://fonts.googleapis.com/css?family=Droid+Sans\""))
553
553
  end
554
554
 
555
+ def test_http_import_with_interpolation
556
+ assert_equal("@import url(http://fonts.googleapis.com/css?family=Droid+Sans);\n",
557
+ render("$family: unquote(\"Droid+Sans\")\n@import \"http://fonts.googleapis.com/css?family=\#{$family}\"\n"))
558
+ assert_equal("@import url(\"http://fonts.googleapis.com/css?family=Droid+Sans\");\n",
559
+ render("$family: unquote(\"Droid+Sans\")\n@import url(\"http://fonts.googleapis.com/css?family=\#{$family}\")\n"))
560
+ end
561
+
555
562
  def test_url_import
556
563
  assert_equal("@import url(fonts.sass);\n", render("@import url(fonts.sass)"))
557
564
  end
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.1.0.alpha.254
4
+ version: 3.1.0.alpha.256
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-04-17 00:00:00 -04:00
14
+ date: 2011-04-19 00:00:00 -04:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -196,6 +196,7 @@ files:
196
196
  - test/sass/results/complex.css
197
197
  - test/sass/results/compressed.css
198
198
  - test/sass/results/expanded.css
199
+ - test/sass/results/if.css
199
200
  - test/sass/results/import.css
200
201
  - test/sass/results/import_charset.css
201
202
  - test/sass/results/import_charset_1_8.css
@@ -214,7 +215,6 @@ files:
214
215
  - test/sass/results/units.css
215
216
  - test/sass/results/warn.css
216
217
  - test/sass/results/warn_imported.css
217
- - test/sass/results/if.css
218
218
  - test/sass/script_conversion_test.rb
219
219
  - test/sass/mock_importer.rb
220
220
  - test/sass/scss/css_test.rb
@@ -234,6 +234,7 @@ files:
234
234
  - test/sass/templates/complex.sass
235
235
  - test/sass/templates/compressed.sass
236
236
  - test/sass/templates/expanded.sass
237
+ - test/sass/templates/if.sass
237
238
  - test/sass/templates/import.sass
238
239
  - test/sass/templates/import_charset.sass
239
240
  - test/sass/templates/import_charset_1_8.sass
@@ -255,13 +256,12 @@ files:
255
256
  - test/sass/templates/parent_ref.sass
256
257
  - test/sass/templates/scss_import.scss
257
258
  - test/sass/templates/scss_importee.scss
258
- - test/sass/templates/units.sass
259
259
  - test/sass/templates/subdir/nested_subdir/_nested_partial.sass
260
260
  - test/sass/templates/subdir/nested_subdir/nested_subdir.sass
261
261
  - test/sass/templates/subdir/subdir.sass
262
+ - test/sass/templates/units.sass
262
263
  - test/sass/templates/warn.sass
263
264
  - test/sass/templates/warn_imported.sass
264
- - test/sass/templates/if.sass
265
265
  - test/sass/templates/nested_import.sass
266
266
  - test/sass/test_helper.rb
267
267
  - test/sass/util/subset_map_test.rb