sass 3.1.0.alpha.216 → 3.1.0.alpha.217

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.
Files changed (4) hide show
  1. data/REVISION +1 -1
  2. data/VERSION +1 -1
  3. data/lib/sass/script/funcall.rb +4 -5
  4. metadata +2 -2
data/REVISION CHANGED
@@ -1 +1 @@
1
- d4f5f05b36ae3e07d9c417174bf655b8f62969d9
1
+ 3ee1e35e2dfa2c1f5c2a24ca5cc807700d249ced
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0.alpha.216
1
+ 3.1.0.alpha.217
@@ -81,7 +81,7 @@ module Sass
81
81
  end
82
82
 
83
83
  ruby_name = @name.tr('-', '_')
84
- args = construct_keyword_args(ruby_name, args, environment) unless @keywords.empty?
84
+ args = construct_ruby_args(ruby_name, args, environment)
85
85
 
86
86
  unless Functions.callable?(ruby_name)
87
87
  opts(to_literal(args))
@@ -102,13 +102,12 @@ module Sass
102
102
 
103
103
  private
104
104
 
105
- def construct_keyword_args(name, args, environment)
106
- keywords = Sass::Util.map_hash(@keywords) {|k, v| [k, v.perform(environment)]}
107
-
108
- unless signature = Functions.signature(name.to_sym, args.size, keywords.size)
105
+ def construct_ruby_args(name, args, environment)
106
+ unless signature = Functions.signature(name.to_sym, args.size, @keywords.size)
109
107
  return args if keywords.empty?
110
108
  raise Sass::SyntaxError.new("Function #{name} doesn't support keyword arguments")
111
109
  end
110
+ keywords = Sass::Util.map_hash(@keywords) {|k, v| [k, v.perform(environment)]}
112
111
 
113
112
  # If the user passes more non-keyword args than the function expects,
114
113
  # but it does expect keyword args, Ruby's arg handling won't raise an error.
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.216
4
+ version: 3.1.0.alpha.217
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-01-13 00:00:00 -05:00
14
+ date: 2011-01-14 00:00:00 -05:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency