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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cba905c4a611564a30f673941af311b360e64f79
4
- data.tar.gz: 83bfb6df3c6ebb5e086badf0a950ebc839cbc6f7
3
+ metadata.gz: dad45627d03b8a1fd2af2611ee17707a4a94044d
4
+ data.tar.gz: d42900beb5d5397a574d3324d9f51d7781cc91d7
5
5
  SHA512:
6
- metadata.gz: bd8dbb02e65de541608e51da7738824d1de7a8db2429d4b05396173a861ec2bbcd4d191ab39b426427b7ed5f31bcacf94a22782295827d736b1c0c1e8bd44212
7
- data.tar.gz: e6c839d26054ff6bba74ab525e357f3161a25416748baacc0a2abd416ad21d0a9dafeb6d8d038e8a929d08eac12e28a53d109b0a2aaa4e4902b89abd715be1ac
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
- Script.formatted_function_name(custom_function),
36
- callbacks[custom_function],
38
+ @function_names[custom_function],
39
+ @callbacks[custom_function],
37
40
  nil
38
41
  )
39
42
 
@@ -1,3 +1,3 @@
1
1
  module SassC
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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-02 00:00:00.000000000 Z
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.4.5
321
+ rubygems_version: 2.2.2
322
322
  signing_key:
323
323
  specification_version: 4
324
324
  summary: Use libsass with Ruby!