sass 3.1.0.alpha.6 → 3.1.0.alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 3.1.0.alpha.6
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.6
1
+ 3.1.0.alpha.9
@@ -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
- return Script::String.new("#{name}(#{args.map {|a| a.perform(environment)}.join(', ')})")
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
File without changes
@@ -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?
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.6
4
+ version: 3.1.0.alpha.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum