haml-edge 3.1.26 → 3.1.27
Sign up to get free protection for your applications and to get access to all the features.
- data/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/haml/exec.rb +20 -0
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.27
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.27
|
data/lib/haml/exec.rb
CHANGED
@@ -323,6 +323,12 @@ END
|
|
323
323
|
opts.on('-C', '--no-cache', "Don't cache to sassc files.") do
|
324
324
|
@options[:for_engine][:cache] = false
|
325
325
|
end
|
326
|
+
|
327
|
+
unless ::Haml::Util.ruby1_8?
|
328
|
+
opts.on('-E encoding', 'Specify the default encoding for Sass files.') do |encoding|
|
329
|
+
Encoding.default_external = encoding
|
330
|
+
end
|
331
|
+
end
|
326
332
|
end
|
327
333
|
|
328
334
|
# Processes the options set by the command-line arguments,
|
@@ -474,6 +480,14 @@ MSG
|
|
474
480
|
@options[:load_paths] << path
|
475
481
|
end
|
476
482
|
|
483
|
+
unless ::Haml::Util.ruby1_8?
|
484
|
+
opts.on('-E ex[:in]', 'Specify the default external and internal character encodings.') do |encoding|
|
485
|
+
external, internal = encoding.split(':')
|
486
|
+
Encoding.default_external = external if external && !external.empty?
|
487
|
+
Encoding.default_internal = internal if internal && !internal.empty?
|
488
|
+
end
|
489
|
+
end
|
490
|
+
|
477
491
|
opts.on('--debug', "Print out the precompiled Ruby source.") do
|
478
492
|
@options[:debug] = true
|
479
493
|
end
|
@@ -656,6 +670,12 @@ END
|
|
656
670
|
@options[:for_engine][:read_cache] = false
|
657
671
|
end
|
658
672
|
|
673
|
+
unless ::Haml::Util.ruby1_8?
|
674
|
+
opts.on('-E encoding', 'Specify the default encoding for Sass and CSS files.') do |encoding|
|
675
|
+
Encoding.default_external = encoding
|
676
|
+
end
|
677
|
+
end
|
678
|
+
|
659
679
|
super
|
660
680
|
end
|
661
681
|
|