sass 3.1.0.alpha.6 → 3.1.0.alpha.9
Sign up to get free protection for your applications and to get access to all the features.
- data/EDGE_GEM_VERSION +1 -1
- data/Rakefile +11 -1
- data/VERSION +1 -1
- data/lib/sass/script/funcall.rb +3 -2
- data/test/sass/cache_test.rb +0 -0
- data/test/sass/engine_test.rb +10 -0
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.0.alpha.
|
1
|
+
3.1.0.alpha.9
|
data/Rakefile
CHANGED
@@ -24,7 +24,7 @@ end
|
|
24
24
|
# Don't use Rake::GemPackageTast because we want prerequisites to run
|
25
25
|
# before we load the gemspec.
|
26
26
|
desc "Build all the packages."
|
27
|
-
task :package => [:revision_file, :submodules] do
|
27
|
+
task :package => [:permissions, :revision_file, :submodules] do
|
28
28
|
load scope('sass.gemspec')
|
29
29
|
Gem::Builder.new(SASS_GEMSPEC).build
|
30
30
|
pkg = "#{SASS_GEMSPEC.name}-#{SASS_GEMSPEC.version}"
|
@@ -36,6 +36,16 @@ task :package => [:revision_file, :submodules] do
|
|
36
36
|
sh %{gzip pkg/#{pkg}.tar}
|
37
37
|
end
|
38
38
|
|
39
|
+
task :permissions do
|
40
|
+
sh %{chmod -R a+rx bin}
|
41
|
+
sh %{chmod -R a+r .}
|
42
|
+
require 'shellwords'
|
43
|
+
Dir.glob('test/**/*_test.rb') do |file|
|
44
|
+
next if file =~ %r{^test/haml/spec/}
|
45
|
+
sh %{chmod a+rx #{file}}
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
39
49
|
task :revision_file do
|
40
50
|
require 'lib/sass'
|
41
51
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.0.alpha.
|
1
|
+
3.1.0.alpha.9
|
data/lib/sass/script/funcall.rb
CHANGED
@@ -63,10 +63,11 @@ module Sass
|
|
63
63
|
args = self.args.map {|a| a.perform(environment)}
|
64
64
|
ruby_name = name.gsub('-', '_')
|
65
65
|
unless Sass::Util.has?(:public_instance_method, Functions, ruby_name) && ruby_name !~ /^__/
|
66
|
-
|
66
|
+
result = Script::String.new("#{name}(#{args.map {|a| a.perform(environment)}.join(', ')})")
|
67
|
+
else
|
68
|
+
result = Functions::EvaluationContext.new(environment.options).send(ruby_name, *args)
|
67
69
|
end
|
68
70
|
|
69
|
-
result = Functions::EvaluationContext.new(environment.options).send(ruby_name, *args)
|
70
71
|
result.options = environment.options
|
71
72
|
return result
|
72
73
|
rescue ArgumentError => e
|
data/test/sass/cache_test.rb
CHANGED
File without changes
|
data/test/sass/engine_test.rb
CHANGED
@@ -2101,6 +2101,16 @@ CSS
|
|
2101
2101
|
SASS
|
2102
2102
|
end
|
2103
2103
|
|
2104
|
+
def test_function_output_with_comma
|
2105
|
+
assert_equal <<CSS, render(<<SASS)
|
2106
|
+
foo {
|
2107
|
+
a: b(c), d(e); }
|
2108
|
+
CSS
|
2109
|
+
foo
|
2110
|
+
a: b(c), d(e)
|
2111
|
+
SASS
|
2112
|
+
end
|
2113
|
+
|
2104
2114
|
# Encodings
|
2105
2115
|
|
2106
2116
|
unless Sass::Util.ruby1_8?
|