sassc 2.3.0-x64-mingw32 → 2.4.0-x64-mingw32
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.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +5 -0
- data/lib/sassc/native.rb +3 -5
- data/lib/sassc/version.rb +1 -1
- data/test/native_test.rb +4 -4
- metadata +2 -3
- data/lib/sassc/native/lib_c.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aef021ba77abb64065e3844904e2f3c700111053b41d2ce9c9676c21e2ee6d51
|
4
|
+
data.tar.gz: e93a85d27b94d6c677106ef3defffab897557021b99b4dbbfd8fd2737aa709f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b633d7d402a16a8141b862d2412606c86ed9d400e2792e8446afa781d33c4a8f42748605c44ac3ed6535a2976342c2f13fba39ff6e26c40a3d8655fd18e3f630
|
7
|
+
data.tar.gz: 1e9a403743c64c4e27f4383a76e4eba0ca34187873a9614be1a2ce4ed1f92ede70b5b26156172c7ad49d599a7d7e0748c08eabebd35f74e5d71a157efc16c313
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
- **2.4.0**
|
2
|
+
- [Update libsass to 3.6.4](https://github.com/sass/sassc-ruby/pull/199)
|
3
|
+
- [Use FFI::MemoryPointer instead of libc's malloc()](https://github.com/sass/sassc-ruby/pull/205)
|
4
|
+
- [Test against Ruby 2.7.0](https://github.com/sass/sassc-ruby/pull/193)
|
5
|
+
|
1
6
|
- **2.3.0**
|
2
7
|
- [Fix rake gem:native task](https://github.com/sass/sassc-ruby/pull/196)
|
3
8
|
- [disable lto flag for darwin + nix](https://github.com/sass/sassc-ruby/pull/166)
|
data/lib/sassc/native.rb
CHANGED
@@ -34,7 +34,6 @@ module SassC
|
|
34
34
|
require_relative "native/sass_input_style"
|
35
35
|
require_relative "native/sass_output_style"
|
36
36
|
require_relative "native/string_list"
|
37
|
-
require_relative "native/lib_c"
|
38
37
|
|
39
38
|
# Remove the redundant "sass_" from the beginning of every method name
|
40
39
|
def self.attach_function(*args)
|
@@ -53,10 +52,9 @@ module SassC
|
|
53
52
|
end
|
54
53
|
|
55
54
|
def self.native_string(string)
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
data
|
55
|
+
m = FFI::MemoryPointer.from_string(string)
|
56
|
+
m.autorelease = false
|
57
|
+
m
|
60
58
|
end
|
61
59
|
|
62
60
|
require_relative "native/native_context_api"
|
data/lib/sassc/version.rb
CHANGED
data/test/native_test.rb
CHANGED
@@ -11,7 +11,7 @@ module SassC
|
|
11
11
|
|
12
12
|
class General < MiniTest::Test
|
13
13
|
def test_it_reports_the_libsass_version
|
14
|
-
assert_equal "3.6.
|
14
|
+
assert_equal "3.6.4", Native.version
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
@@ -185,9 +185,9 @@ module SassC
|
|
185
185
|
funct = FFI::Function.new(:pointer, [:pointer, :pointer, :pointer]) do |url, prev, cookie|
|
186
186
|
list = Native.make_import_list(2)
|
187
187
|
|
188
|
-
str = "$var: 5px
|
189
|
-
data =
|
190
|
-
data.
|
188
|
+
str = "$var: 5px;"
|
189
|
+
data = FFI::MemoryPointer.from_string(str)
|
190
|
+
data.autorelease = false
|
191
191
|
|
192
192
|
entry0 = Native.make_import_entry("fake_includ.scss", data, nil)
|
193
193
|
entry1 = Native.make_import_entry("not_included.scss", nil, nil)
|
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: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Ryan Boland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -161,7 +161,6 @@ files:
|
|
161
161
|
- lib/sassc/importer.rb
|
162
162
|
- lib/sassc/libsass.so
|
163
163
|
- lib/sassc/native.rb
|
164
|
-
- lib/sassc/native/lib_c.rb
|
165
164
|
- lib/sassc/native/native_context_api.rb
|
166
165
|
- lib/sassc/native/native_functions_api.rb
|
167
166
|
- lib/sassc/native/sass2scss_api.rb
|
data/lib/sassc/native/lib_c.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module SassC
|
4
|
-
module Native
|
5
|
-
module LibC
|
6
|
-
extend FFI::Library
|
7
|
-
ffi_lib FFI::Library::LIBC
|
8
|
-
|
9
|
-
# memory allocators
|
10
|
-
attach_function :malloc, [:size_t], :pointer
|
11
|
-
# attach_function :calloc, [:size_t], :pointer
|
12
|
-
# attach_function :valloc, [:size_t], :pointer
|
13
|
-
# attach_function :realloc, [:pointer, :size_t], :pointer
|
14
|
-
# attach_function :free, [:pointer], :void
|
15
|
-
|
16
|
-
# memory movers
|
17
|
-
# attach_function :memcpy, [:pointer, :pointer, :size_t], :pointer
|
18
|
-
# attach_function :bcopy, [:pointer, :pointer, :size_t], :void
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|