sassc 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sassc/functions_handler.rb +7 -4
- data/lib/sassc/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dad45627d03b8a1fd2af2611ee17707a4a94044d
|
4
|
+
data.tar.gz: d42900beb5d5397a574d3324d9f51d7781cc91d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 216cd8e87be576dc9095bf6f66ddfa6167bbfea1f4b194600eeb711788041d5ce0b5902bb5f596b37262623d30994ea84fb1fdf3bbc619d761bdc1cae82686ac
|
7
|
+
data.tar.gz: c12edbb1d070bc4080ade7360fdf1f4a5d1f9460894f1255f68a48448858b687cdfd55454cc54a61f23a0517de2da3521b9dffd5ca11ce67bf5eb47d00272acd
|
@@ -5,7 +5,8 @@ module SassC
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def setup(native_options)
|
8
|
-
callbacks = {}
|
8
|
+
@callbacks = {}
|
9
|
+
@function_names = {}
|
9
10
|
|
10
11
|
list = Native.make_function_list(Script.custom_functions.count)
|
11
12
|
|
@@ -13,7 +14,7 @@ module SassC
|
|
13
14
|
functs.options = @options
|
14
15
|
|
15
16
|
Script.custom_functions.each_with_index do |custom_function, i|
|
16
|
-
callbacks[custom_function] = FFI::Function.new(:pointer, [:pointer, :pointer]) do |s_args, cookie|
|
17
|
+
@callbacks[custom_function] = FFI::Function.new(:pointer, [:pointer, :pointer]) do |s_args, cookie|
|
17
18
|
length = Native.list_get_length(s_args)
|
18
19
|
|
19
20
|
v = Native.list_get_value(s_args, 0)
|
@@ -31,9 +32,11 @@ module SassC
|
|
31
32
|
end
|
32
33
|
end
|
33
34
|
|
35
|
+
@function_names[custom_function] = Script.formatted_function_name(custom_function)
|
36
|
+
|
34
37
|
callback = Native.make_function(
|
35
|
-
|
36
|
-
callbacks[custom_function],
|
38
|
+
@function_names[custom_function],
|
39
|
+
@callbacks[custom_function],
|
37
40
|
nil
|
38
41
|
)
|
39
42
|
|
data/lib/sassc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Boland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -318,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
318
318
|
version: '0'
|
319
319
|
requirements: []
|
320
320
|
rubyforge_project:
|
321
|
-
rubygems_version: 2.
|
321
|
+
rubygems_version: 2.2.2
|
322
322
|
signing_key:
|
323
323
|
specification_version: 4
|
324
324
|
summary: Use libsass with Ruby!
|