Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 304cc18

Browse files
committed
update to libsass 3.3.2
1 parent 7c627a6 commit 304cc18

File tree

8 files changed

+19
-12
lines changed

8 files changed

+19
-12
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This gem combines the speed of `libsass`, the [Sass C implementation](https://gi
66

77
### libsass Version
88

9-
[3.3.1](https://github.com/sass/libsass/releases/tag/3.3.1)
9+
[3.3.2](https://github.com/sass/libsass/releases/tag/3.3.2)
1010

1111
## Usage
1212

@@ -25,6 +25,8 @@ and [awesome contributors](https://github.com/bolandrm/sassc-ruby/graphs/contrib
2525

2626
## Changelog
2727

28+
- **1.8.2**
29+
- Update to Libsass 3.3.2
2830
- **1.8.1**
2931
- Update to Libsass 3.3.1
3032
- **1.8.0**

lib/sassc/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module SassC
2-
VERSION = "1.8.1"
2+
VERSION = "1.8.2"
33
end

lib/tasks/libsass.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
end
1818

1919
file "lib/libsass.so" => "Makefile" do
20-
sh 'make lib/libsass.so LDFLAGS="-Wall -O2"'
20+
sh 'make lib/libsass.so'
2121
end
2222
end

test/custom_importer_test.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ def test_custom_importer_works
5858
end
5959

6060
def test_dependency_list
61+
base = temp_dir("").to_s
62+
6163
temp_dir("fonts")
6264
temp_dir("fonts/sub")
6365
temp_file("fonts/sub/sub_fonts.scss", "$font: arial;")
@@ -78,13 +80,13 @@ def test_dependency_list
7880
})
7981
engine.render
8082

81-
dependencies = engine.dependencies.map(&:filename)
83+
dependencies = engine.dependencies.map(&:filename).map { |f| f.gsub(base, "") }
8284

8385
assert_equal [
86+
"/fonts/sub/sub_fonts.scss",
87+
"/styles2.scss",
8488
"fonts/fonts.scss",
85-
"fonts/sub/sub_fonts.scss",
86-
"styles1.scss",
87-
"styles2.scss"
89+
"styles1.scss"
8890
], dependencies
8991
end
9092

test/engine_test.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ def test_precision_not_specified
9393
end
9494

9595
def test_dependency_filenames_are_reported
96+
base = temp_dir("").to_s
97+
9698
temp_file("not_included.scss", "$size: 30px;")
9799
temp_file("import_parent.scss", "$size: 30px;")
98100
temp_file("import.scss", "@import 'import_parent'; $size: 30px;")
@@ -102,9 +104,9 @@ def test_dependency_filenames_are_reported
102104
engine.render
103105
deps = engine.dependencies
104106

105-
expected = ["import.scss", "import_parent.scss"]
106-
assert_equal expected, deps.map { |dep| dep.options[:filename] }.sort
107-
assert_equal expected, deps.map(&:filename).sort
107+
expected = ["/import.scss", "/import_parent.scss"]
108+
assert_equal expected, deps.map { |dep| dep.options[:filename].gsub(base, "") }.sort
109+
assert_equal expected, deps.map { |dep| dep.filename.gsub(base, "") }.sort
108110
end
109111

110112
def test_no_dependencies

test/functions_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require_relative "test_helper"
22
require "stringio"
3+
require "sass/script"
34

45
module SassC
56
class FunctionsTest < MiniTest::Test

test/native_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module NativeTest
99

1010
class General < MiniTest::Test
1111
def test_it_reports_the_libsass_version
12-
assert_equal "3.3.1", Native.version
12+
assert_equal "3.3.2", Native.version
1313
end
1414
end
1515

0 commit comments

Comments
 (0)